* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ff88;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.video-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: 0;
    transition: opacity 1s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.dynamic-color-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-align: center;
    z-index: 2;
    text-shadow: 0 0 30px rgba(0,0,0,0.7);
    mix-blend-mode: difference;
}

.content-section {
    position: relative;
    padding: 120px 5%;
    min-height: 100vh;
    background: #0a0a0a;
    z-index: 3;
}

.bio-container {
    max-width: 800px;
    margin: 0 auto;
    background: #181c1f;
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.bio-content {
    position: relative;
    margin-top: 2rem;
    background: rgba(24, 28, 31, 0.95);
    border-radius: 15px;
    padding: 1.5rem 0 1.5rem 0;
    min-height: 350px;
}

.bio-output {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff88;
    border-radius: 8px;
    color: #00ff88;
    font-family: 'Fira Code', monospace;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.bio-output pre {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.echo-output {
    color: #00ff88;
    font-size: 0.9em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.code-animation, #typewriter {
    background: #181c1f;
    color: #00ff88;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    border-radius: 15px;
    width: 100%;
    min-height: 100%;
    height: 100%;
    padding: 2rem;
    opacity: 1;
    transition: none;
    display: block;
}

#typewriter {
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre;
    overflow: hidden;
    display: inline-block;
    padding-right: 3px;
    min-height: 300px;
    opacity: 1;
    visibility: visible;
    border-right: 2px solid #00ff88;
    transition: opacity 1s;
}

#typewriter::after {
    content: "|";
    animation: blink 1s step-end infinite;
    color: #00ff88;
}

.code-animation::after {
    content: none;
}

/* Стили для подсветки синтаксиса */
.php-tag {
    color: #00bfff;
    font-weight: bold;
}
.keyword {
    color: #c586c0;
    font-weight: bold;
}
.variable {
    color: #9cdcfe;
}
.string {
    color: #ce9178;
}
.number {
    color: #b5cea8;
}

/* Общие стили для социальных иконок */
.mobile-socials {
    display: none;
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    padding: 0 5%;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Фиксируем круглую форму */
    overflow: hidden; /* Обрезаем всё за пределами круга */
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(120, 120, 120, 0.2) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.social-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

/* Цвета иконок */
.telegram .social-icon { fill: #0088cc; }
.vk .social-icon { fill: #0077ff; }
.steam .social-icon path:first-child { fill: #1B2838; }
.steam .social-icon path:last-child { fill: #C6D4DF; }
.yandex-music .social-icon path { fill: #FFD400; }
.discord .social-icon { fill: #5865f2; }

/* Анимация */
.social-link:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.2);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Специальные настройки для Яндекс.Музыки */
.yandex-music .social-icon {
    width: 32px;
    height: 32px;
    margin: 2px; /* Центрируем сложную форму */
}

.steam .social-icon path:first-child {
    fill: #0b65af; /* Основной синий Steam */
}

.steam .social-icon path:last-child {
    fill: #fdfdfd; /* Светло-серый акцент */
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 5%;
        backdrop-filter: none;
    }

    .nav-brand {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .video-container {
        background: #1a1a1a;
    }

    .background-video {
        display: none;
    }

    .dynamic-color-text {
        font-size: 3.5rem;
        width: 90%;
        line-height: 1.2;
    }

    .content-section {
        padding: 80px 5%;
    }

    .bio-container {
        padding: 1.5rem;
        border-radius: 10px;
        backdrop-filter: none;
    }

    .mobile-socials {
        display: flex;
    }

    .social-link {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.3);
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .yandex-music .social-icon {
        width: 28px;
        height: 28px;
    }

    .steam .social-icon {
        transform: scale(0.95);
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.8);
        border: none;
        color: white;
        padding: 0.8rem;
        border-radius: 5px;
        font-size: 1.2rem;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 4rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        border-radius: 10px;
        backdrop-filter: blur(10px);
    }

    .code-animation {
        padding: 1.5rem;
        font-size: 0.9rem;
        min-height: 200px;
    }

    .code-animation::after {
        right: 1rem;
        bottom: 1rem;
    }

}

.bracket {
    color: #ffd700;
    font-weight: bold;
}
.comment {
    color: #6a9955;
    font-style: italic;
    opacity: 0.8;
}