body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    position: relative;
}
#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 204, 0.1), rgba(128, 0, 255, 0.1), #000000);
    background-size: 200% 200%;
    animation: holographic 8s ease-in-out infinite;
    z-index: 0;
}
#background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 204, 0.05) 2px, rgba(0, 255, 204, 0.05) 4px);
    animation: scanLines 4s linear infinite;
}
@keyframes holographic {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}
@keyframes scanLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}
canvas#ai-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
canvas#matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1; /* Увеличено для максимальной видимости */
}
.text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}
.text {
    font-size: 4em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.8), 0 0 30px rgba(128, 0, 255, 0.5), 0 0 50px rgba(0, 255, 204, 0.3);
}
.text span {
    display: inline-block;
    animation: digitalConstruct 2s ease-out forwards, float 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5), 0 0 20px rgba(128, 0, 255, 0.3);
}
.text span:nth-child(1) { animation-delay: 0s, 0s; }
.text span:nth-child(2) { animation-delay: 0.1s, 0.2s; }
.text span:nth-child(3) { animation-delay: 0.2s, 0.4s; }
.text span:nth-child(4) { animation-delay: 0.3s, 0.6s; }
.text span:nth-child(5) { animation-delay: 0.4s, 0.8s; }
.text span:nth-child(6) { animation-delay: 0.5s, 1s; }
.text span:nth-child(7) { animation-delay: 0.6s, 1.2s; } /* Пробел */
.text span:nth-child(8) { animation-delay: 0.7s, 1.4s; }
.text span:nth-child(9) { animation-delay: 0.8s, 1.6s; }
.text span:nth-child(10) { animation-delay: 0.9s, 1.8s; }
.text span:nth-child(11) { animation-delay: 1s, 2s; }
.text:hover span {
    animation: glitch 0.3s infinite alternate, float 3s ease-in-out infinite;
}
@keyframes digitalConstruct {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
        filter: blur(5px);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2) translateY(-10px);
        filter: blur(2px);
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: 0 0 10px rgba(0, 255, 204, 0.5), 0 0 20px rgba(128, 0, 255, 0.3);
    }
    50% {
        transform: translate(3px, -3px);
        text-shadow: 3px 0 5px rgba(255, 0, 0, 0.7), -3px 0 5px rgba(0, 0, 255, 0.7);
    }
    100% {
        transform: translate(-3px, 3px);
        text-shadow: -3px 0 5px rgba(0, 0, 255, 0.7), 3px 0 5px rgba(255, 0, 0, 0.7);
    }
}
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: particleBurst 1.5s ease-out forwards;
}
.particle--matrix1 { background: rgba(0, 255, 204, 0.8); } /* Яркий циан */
.particle--matrix2 { background: rgba(0, 255, 204, 0.6); } /* Средний циан */
.particle--matrix3 { background: rgba(0, 255, 204, 0.4); } /* Полупрозрачный циан */
@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.2);
    }
}
footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer a, footer button {
    color: #ffffff;
    font-size: 1.8em;
    margin: 0 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}
footer button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
footer a i, footer button i {
    transition: transform 0.3s ease, color 0.3s ease;
}
footer a::after, footer button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 20px;
    height: 2px;
    background: #00ffcc;
    transition: transform 0.3s ease;
}
footer a:hover::after, footer button::after {
    transform: translateX(-50%) scale(1);
}
footer a:hover, footer button:hover {
    color: #00ffcc;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.8), 0 0 20px rgba(0, 255, 204, 0.4);
}
footer a:hover i, footer button:hover i {
    transform: scale(1.3);
    color: #00ffcc;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .text {
        font-size: 1.8em;
    }
    footer a, footer button {
        font-size: 1.4em;
        margin: 0 10px;
    }
}
