/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Кастомный скроллбар для Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #000000;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    75% {
        transform: translateY(8px) rotate(-1deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.4);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

:root {
    --primary: #8B5CF6;
    --secondary: #A78BFA;
    --dark: #0F0B1A;
    --darker: #0A0612;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #D1D5DB;
    --light-gray: #E5E7EB;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--white);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ========================================
   КАСТОМНЫЙ СКРОЛЛБАР
   ======================================== */

/* Для Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary) 0%, #C4B5FD 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(196, 181, 253, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 30s linear infinite;
}

/* ========================================
   ПРЕЛОАДЕР (ЗАГРУЗОЧНЫЙ ЭКРАН)
   ======================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A0612 0%, #0F0B1A 50%, #0A0612 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: none;
}

.preloader.fade-out {
    animation: preloaderDissolve 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloaderDissolve {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
        visibility: hidden;
    }
}

.preloader.fade-out .preloader-content {
    animation: contentExplode 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contentExplode {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scale(0.7);
        filter: blur(20px);
    }
}

.preloader-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3;
}

.code-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    background-size: 100% 200%;
    animation: codeScroll 3s linear infinite;
}

@keyframes codeScroll {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 600px;
    width: 90%;
}

/* Логотип прелоадера */
.preloader-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    animation: logoAppear 1s ease-out;
}

.preloader-name {
    background: linear-gradient(
        135deg,
        #8B5CF6 0%,
        #A78BFA 50%,
        #C4B5FD 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
    animation: logoGlow 2s ease-in-out infinite;
}

.preloader-dev {
    color: var(--white);
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(139, 92, 246, 1)) drop-shadow(0 0 80px rgba(167, 139, 250, 0.6));
    }
}

/* Терминал */
.terminal-window {
    width: 100%;
    background: rgba(15, 15, 25, 0.6);
    border-radius: 12px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: terminalSlideUp 0.8s ease-out 0.3s backwards;
}

@keyframes terminalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    background: rgba(20, 20, 30, 0.8);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-btn.close {
    background: linear-gradient(135deg, #ff5f56, #ff3b30);
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.5);
}

.terminal-btn.minimize {
    background: linear-gradient(135deg, #ffbd2e, #ffa500);
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.5);
}

.terminal-btn.maximize {
    background: linear-gradient(135deg, #27c93f, #00d084);
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.5);
}

.terminal-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.terminal-prompt {
    color: var(--primary);
    font-weight: bold;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.terminal-command {
    color: var(--secondary);
    font-weight: 600;
}

.terminal-output {
    color: rgba(255, 255, 255, 0.7);
}

.terminal-output.loading {
    color: #27c93f;
    font-weight: 500;
}

.loading-dots {
    display: inline-flex;
    gap: 2px;
}

.loading-dots span {
    animation: dotBlink 1.4s infinite;
    color: #27c93f;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBlink {
    0%, 60%, 100% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
}

/* Прогресс бар */
.progress-bar {
    width: 70%;
    max-width: 450px;
    margin: 0 auto;
    height: 30px;
    background: rgba(15, 15, 25, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    overflow: visible;
    position: relative;
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.3),
        inset 0 2px 10px rgba(0, 0, 0, 0.6),
        inset 0 -2px 10px rgba(139, 92, 246, 0.1);
    animation: progressBarAppear 0.8s ease-out 0.6s backwards;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    border-radius: 13px;
    pointer-events: none;
}

@keyframes progressShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes progressBarAppear {
    0% {
        opacity: 0;
        transform: scaleX(0.5);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #8B5CF6 0%,
        #A78BFA 25%,
        #C4B5FD 50%,
        #A78BFA 75%,
        #8B5CF6 100%
    );
    background-size: 200% 100%;
    border-radius: 13px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.9),
        0 0 50px rgba(139, 92, 246, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    animation: progressGlow 2s ease-in-out infinite;
}

/* Бегущие полосы внутри прогресса */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255, 255, 255, 0.15) 15px,
        rgba(255, 255, 255, 0.15) 30px
    );
    animation: progressStripes 1s linear infinite;
}

/* Световой блик */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: progressSweep 2.5s ease-in-out infinite;
}

@keyframes progressStripes {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-30px);
    }
}

@keyframes progressSweep {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

@keyframes progressGlow {
    0%, 100% {
        background-position: 0% center;
        box-shadow: 
            0 0 25px rgba(139, 92, 246, 0.9),
            0 0 50px rgba(139, 92, 246, 0.6),
            inset 0 2px 5px rgba(255, 255, 255, 0.3),
            inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    }
    50% {
        background-position: 100% center;
        box-shadow: 
            0 0 35px rgba(139, 92, 246, 1),
            0 0 70px rgba(167, 139, 250, 0.8),
            0 0 100px rgba(196, 181, 253, 0.4),
            inset 0 2px 5px rgba(255, 255, 255, 0.4),
            inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6, #C4B5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    letter-spacing: 0.05em;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
    white-space: nowrap;
    animation: percentPulse 1s ease-in-out infinite;
}

@keyframes percentPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 1));
    }
}

/* Текст загрузки */
.loading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-align: center;
    animation: loadingTextPulse 2s ease-in-out infinite, textAppear 0.8s ease-out 0.8s backwards;
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingTextPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   АНИМАЦИИ ПОЯВЛЕНИЯ КОНТЕНТА
   ======================================== */

/* Начальное состояние - все скрыто */
body:not(.loaded) .navbar,
body:not(.loaded) .hero > .container,
body:not(.loaded) .scroll-indicator {
    opacity: 0;
    visibility: hidden;
}

/* Анимации появления после загрузки */
body.loaded .navbar {
    animation: slideDownFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

body.loaded .hero > .container > h1 {
    animation: slideUpFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

body.loaded .hero > .container > .subtitle {
    animation: slideUpFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

body.loaded .hero > .container > .description {
    animation: slideUpFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

body.loaded .hero > .container > .hero-buttons {
    animation: scaleInFade 1s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

body.loaded .scroll-indicator {
    animation: scrollIndicatorFade 1s cubic-bezier(0.4, 0, 0.2, 1) 1.3s forwards;
}

/* Анимация сверху вниз */
@keyframes slideDownFade {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(-50px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Анимация снизу вверх */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для скролл-индикатора (с центрированием) */
@keyframes scrollIndicatorFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Анимация масштабирования */
@keyframes scaleInFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Навигация */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 
        0 0 60px rgba(139, 92, 246, 0.4),
        0 0 100px rgba(139, 92, 246, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.08);
}

.logo-name {
    background: linear-gradient(
        90deg,
        #8B5CF6 0%,
        #A78BFA 25%,
        #FFFFFF 50%,
        #A78BFA 75%,
        #8B5CF6 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glossShine 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

.logo-dev {
    background: linear-gradient(
        90deg,
        #FFFFFF 0%,
        #E5E7EB 25%,
        #FFFFFF 50%,
        #E5E7EB 75%,
        #FFFFFF 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glossShine 3s linear infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

@keyframes glossShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.social-link {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 1.15rem;
    overflow: hidden;
}

/* Анимированная вращающаяся рамка */
.social-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, 
        var(--primary) 0%,
        var(--secondary) 50%,
        #C4B5FD 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: rotateBorder 3s linear infinite;
}

.social-link:hover::before {
    opacity: 1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.social-link i,
.social-link .lolz-icon {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.social-link:hover i,
.social-link:hover .lolz-icon {
    filter: drop-shadow(0 0 8px currentColor);
    transform: scale(1.1);
}

.social-link:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-5px) rotate(5deg) scale(1.15);
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.6),
        0 0 50px rgba(139, 92, 246, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

/* GitHub - темная тема */
.social-link:nth-child(1) {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(139, 92, 246, 0.1));
}

.social-link:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(139, 92, 246, 0.25));
}

.social-link:nth-child(1)::before {
    background: linear-gradient(45deg, #5865F2 0%, #8B5CF6 50%, #A78BFA 100%);
}

/* Telegram - синяя тема */
.social-link:nth-child(2) {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15), rgba(41, 171, 226, 0.1));
}

.social-link:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.3), rgba(41, 171, 226, 0.25));
}

.social-link:nth-child(2)::before {
    background: linear-gradient(45deg, #0088CC 0%, #29ABE2 50%, #39C5F0 100%);
}

.social-link:nth-child(2):hover::after {
    background: radial-gradient(circle, rgba(41, 171, 226, 0.5) 0%, transparent 70%);
}

/* Lolz - зелёная тема */
.social-link:has(.lolz-icon) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
}

.social-link:has(.lolz-icon):hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.25));
    box-shadow: 
        0 0 25px rgba(16, 185, 129, 0.6),
        0 0 50px rgba(16, 185, 129, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-link:has(.lolz-icon)::before {
    background: linear-gradient(45deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
}

.social-link:has(.lolz-icon):hover::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, transparent 70%);
}

/* Tooltip */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 25, 0.95);
    color: var(--white);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
}

/* Иконка Lolz */
.lolz-icon {
    width: 24px;
    height: 24px;
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Анимированный фон - теперь более тонкий */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: floatOrb 25s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent);
    top: 50%;
    right: 10%;
    animation-delay: 8s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.25), transparent);
    bottom: 10%;
    left: 45%;
    animation-delay: 15s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(
        90deg,
        #8B5CF6 0%,
        #A78BFA 25%,
        #C4B5FD 50%,
        #A78BFA 75%,
        #8B5CF6 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 4s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #A78BFA, #E5E7EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    letter-spacing: -0.01em;
}

.description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s backwards;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* Кнопки - Киберпанк стиль */
.btn {
    padding: 1rem 2.5rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    overflow: visible;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Угловые акценты */
.btn::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn:hover::after {
    opacity: 1;
    top: -5px;
    right: -5px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: var(--white);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.8);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.7),
        0 0 60px rgba(139, 92, 246, 0.5),
        0 0 100px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(15, 15, 25, 0.5);
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.3),
        inset 0 0 15px rgba(139, 92, 246, 0.1);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--secondary);
    color: var(--white);
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.5),
        0 0 50px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-3px);
}

/* Скролл индикатор */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    z-index: 10;
    animation: scrollPulse 2s ease-in-out infinite;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.scroll-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    animation: textGlow 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.scroll-arrow i {
    color: var(--primary);
    font-size: 1.5rem;
    animation: arrowBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
}

.scroll-indicator:hover .scroll-arrow {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4),
        inset 0 0 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.scroll-indicator:hover .scroll-text {
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
}

@keyframes scrollPulse {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    }
}

.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.3),
        inset 0 0 15px rgba(139, 92, 246, 0.1);
}

/* Секции */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(
        135deg,
        #8B5CF6 0%,
        #A78BFA 50%,
        #C4B5FD 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Статистика */
.stats {
    background: linear-gradient(180deg, 
        rgba(15, 11, 26, 0.3) 0%, 
        rgba(45, 27, 105, 0.2) 50%,
        rgba(15, 11, 26, 0.3) 100%
    );
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.08));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:nth-child(1) { 
    animation: fadeInUp 0.6s ease 0.1s forwards, gentleFloat 6s ease-in-out 0.5s infinite;
}
.stat-card:nth-child(2) { 
    animation: fadeInUp 0.6s ease 0.2s forwards, gentleFloat 6s ease-in-out 1.5s infinite;
}
.stat-card:nth-child(3) { 
    animation: fadeInUp 0.6s ease 0.3s forwards, gentleFloat 6s ease-in-out 3s infinite;
}
.stat-card:nth-child(4) { 
    animation: fadeInUp 0.6s ease 0.4s forwards, gentleFloat 6s ease-in-out 4.5s infinite;
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(124, 58, 237, 0.12));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    animation: float 3s ease-in-out infinite;
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1.1rem;
}

/* О себе / Таймлайн */
.about {
    background: linear-gradient(180deg,
        rgba(15, 11, 26, 0.2) 0%,
        rgba(45, 27, 105, 0.25) 50%,
        rgba(15, 11, 26, 0.2) 100%
    );
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--primary) 10%,
        var(--secondary) 50%,
        var(--primary) 90%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.left {
    left: 0;
    padding-right: 4rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 4rem;
    transform: translateX(100px);
}

.timeline-item.right.visible {
    transform: translateX(0);
}

.timeline-content {
    position: relative;
}

.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.2), 0 8px 25px rgba(139, 92, 246, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.left .timeline-icon {
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item.right .timeline-icon {
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item.visible .timeline-icon {
    animation: pulse 2s ease-in-out infinite;
}

.timeline-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.06));
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.timeline-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.timeline-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Навыки */
.skills {
    background: linear-gradient(180deg,
        rgba(15, 11, 26, 0.3) 0%,
        rgba(45, 27, 105, 0.2) 50%,
        rgba(15, 11, 26, 0.3) 100%
    );
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.skills::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.06));
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(124, 58, 237, 0.08));
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.8rem 1rem;
    align-items: center;
    padding: 1.3rem 1.5rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    z-index: 1;
}

.skill-item:hover {
    background: rgba(139, 92, 246, 0.13);
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.skill-item i {
    grid-row: 1 / 3;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.skill-item:hover i {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.skill-item span {
    grid-column: 2;
    grid-row: 1;
    color: var(--white);
    font-weight: 500;
    font-size: 1.05rem;
}

.skill-bar {
    grid-column: 2;
    grid-row: 2;
    height: 6px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA, #C4B5FD);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Контакты */
.contact {
    background: linear-gradient(180deg,
        rgba(15, 11, 26, 0.2) 0%,
        rgba(45, 27, 105, 0.25) 50%,
        rgba(10, 6, 18, 0.4) 100%
    );
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease forwards;
    opacity: 0;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-icon {
    transform: rotate(3deg) scale(1.05);
}

.contact-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #00a0e9);
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

.contact-icon.github {
    background: linear-gradient(135deg, #333, #666);
    box-shadow: 0 5px 20px rgba(51, 51, 51, 0.4);
}

.contact-icon.lolz {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    padding: 12px;
}

.contact-icon.lolz img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.contact-icon.email {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.contact-icon i {
    color: white;
}

.contact-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-text h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-text p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Социальные иконки - разделение для десктопа и мобильных */
.nav-social-mobile {
    display: none; /* Скрыты по умолчанию на десктопе */
}

.nav-social-desktop {
    display: flex; /* Показаны по умолчанию на десктопе */
}

/* Заголовок мобильного меню */
.mobile-menu-header {
    display: none; /* Скрыт по умолчанию на десктопе */
}

.menu-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-logo-dev {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.menu-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 400;
    margin-top: 0.3rem;
}

/* Оверлей для мобильного меню */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Бургер меню для мобильных */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.1));
    border: 2px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(167, 139, 250, 0.15));
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.mobile-menu-toggle.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.2));
    border-color: var(--secondary);
}

.mobile-menu-toggle.active span {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Адаптивность для планшетов */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    /* Навигация */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Скрываем desktop социальные иконки, показываем мобильные */
    .nav-social-desktop {
        display: none !important;
    }
    
    .nav-social-mobile {
        display: flex !important;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid rgba(139, 92, 246, 0.25);
        width: 100%;
        position: relative;
    }
    
    .nav-social-mobile::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        border-radius: 10px;
    }
    
    .nav-social-mobile .social-link {
        background: rgba(139, 92, 246, 0.15);
        border: 2px solid rgba(139, 92, 246, 0.3);
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-social-mobile .social-link:hover {
        background: var(--primary);
        border-color: var(--secondary);
        transform: translateY(-5px) scale(1.15) rotate(5deg);
        box-shadow: 
            0 10px 25px rgba(139, 92, 246, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .nav-social-mobile .social-link:has(.lolz-icon) {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.15));
        border-color: rgba(16, 185, 129, 0.4);
    }
    
    .nav-social-mobile .social-link:has(.lolz-icon):hover {
        background: linear-gradient(135deg, #10b981, #34d399);
        border-color: #059669;
        box-shadow: 
            0 10px 25px rgba(16, 185, 129, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: translateY(-5px) scale(1.15) rotate(-5deg);
    }
    
    /* Показываем заголовок меню на мобильных */
    .mobile-menu-header {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 1.2rem;
        border-bottom: 2px solid rgba(139, 92, 246, 0.25);
        width: 100%;
        position: relative;
    }
    
    .mobile-menu-header .menu-logo {
        font-size: 1.5rem;
    }
    
    .mobile-menu-header .menu-subtitle {
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }
    
    .mobile-menu-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        border-radius: 10px;
    }
    
    .nav-links {
        position: fixed;
        top: 10vh;
        right: -350px;
        width: 300px;
        max-height: 85vh;
        background: linear-gradient(135deg, rgba(15, 15, 25, 0.98) 0%, rgba(25, 15, 40, 0.98) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0.85rem;
        padding: 2.5rem 1.8rem 2rem;
        border: 2px solid rgba(139, 92, 246, 0.4);
        border-radius: 25px;
        box-shadow: 
            -15px 0 40px rgba(0, 0, 0, 0.6),
            0 0 60px rgba(139, 92, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        opacity: 0;
    }
    
    /* Убираем стандартный скроллбар и добавляем свой */
    .nav-links::-webkit-scrollbar {
        width: 5px;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: rgba(139, 92, 246, 0.1);
        border-radius: 10px;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--primary), var(--secondary));
        border-radius: 10px;
    }
    
    .nav-links::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        width: 2px;
        height: 60%;
        background: linear-gradient(180deg, transparent, var(--primary), var(--secondary), transparent);
        border-radius: 10px;
    }
    
    .nav-links.active {
        right: 1rem;
        opacity: 1;
    }
    
    .nav-links a {
        font-size: 1rem;
        font-weight: 600;
        padding: 0.75rem 1.3rem;
        width: 100%;
        max-width: 240px;
        text-align: center;
        background: rgba(139, 92, 246, 0.08);
        border: 2px solid rgba(139, 92, 246, 0.25);
        border-radius: 14px;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-links a:hover::before {
        left: 100%;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(167, 139, 250, 0.15));
        border-color: var(--primary);
        transform: translateX(-5px) scale(1.05);
        box-shadow: 
            0 8px 20px rgba(139, 92, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .navbar {
        width: calc(100% - 2rem);
        max-width: 100%;
        padding: 0.9rem 1.2rem;
        margin: 1rem auto;
    }
    
    .nav-content {
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    /* Hero секция */
    .hero {
        padding: 7rem 0 4rem;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .subtitle {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .description {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    /* Кнопки */
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 0.06em;
        width: 100%;
        max-width: 100%;
        white-space: nowrap;
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    }
    
    .btn::before {
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 100%;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Секции */
    section {
        padding: 3.5rem 0;
        max-width: 100%;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.9rem;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    /* Статистика */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .stat-card {
        padding: 1.3rem 0.8rem;
        max-width: 100%;
        width: 100%;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 1.9rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    /* Таймлайн */
    .timeline {
        max-width: 100%;
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .timeline-item {
        width: 100%;
        max-width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item.left .timeline-icon,
    .timeline-item.right .timeline-icon {
        left: 0;
        right: auto;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .timeline-card {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .timeline-year {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
    }
    
    .timeline-card h3 {
        font-size: 1.05rem;
        word-wrap: break-word;
    }
    
    .timeline-card p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    /* Навыки */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    .skill-category {
        padding: 1.3rem;
        max-width: 100%;
        width: 100%;
    }
    
    .skill-header {
        font-size: 1.05rem;
        word-wrap: break-word;
    }
    
    .skill-name {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    /* Контакты */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .contact-card {
        padding: 1.3rem;
        max-width: 100%;
        width: 100%;
    }
    
    /* Скролл индикатор на мобильных */
    .scroll-indicator {
        bottom: 25px;
        gap: 0.3rem;
    }
    
    .scroll-text {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
    
    .scroll-arrow {
        width: 42px;
        height: 42px;
    }
    
    .scroll-arrow i {
        font-size: 1.2rem;
    }
    
    /* Прелоадер на планшетах */
    .preloader-logo {
        font-size: 3rem;
    }
    
    .terminal-window {
        width: 95%;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .terminal-title {
        font-size: 0.75rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .progress-bar {
        width: 85%;
        max-width: 350px;
        height: 24px;
    }
    
    .progress-text {
        font-size: 1.1rem;
        right: -55px;
    }
}

/* Адаптивность для маленьких телефонов */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .navbar {
        margin: 0.5rem auto;
        width: calc(100% - 1rem);
        max-width: 100%;
        padding: 0.75rem 0.9rem;
    }
    
    .hero {
        padding: 6.5rem 0 3.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .subtitle {
        font-size: 1.05rem;
        word-wrap: break-word;
    }
    
    .description {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    .btn {
        padding: 0.8rem 1.3rem;
        font-size: 0.75rem;
        max-width: 100%;
        width: 100%;
        clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    }
    
    .btn::before {
        clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    }
    
    .hero-buttons .btn {
        max-width: 260px;
    }
    
    section {
        padding: 2.5rem 0;
        max-width: 100%;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.7rem;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    /* Статистика */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .stat-card {
        padding: 1.3rem;
        max-width: 100%;
        width: 100%;
    }
    
    /* Социальные иконки */
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .lolz-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Таймлайн */
    .timeline {
        padding: 0 0.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    .timeline-item {
        padding-left: 55px !important;
        max-width: 100%;
        width: 100%;
    }
    
    .timeline-line {
        left: 12px;
    }
    
    .timeline-item.left .timeline-icon,
    .timeline-item.right .timeline-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .timeline-card {
        padding: 0.9rem;
        max-width: 100%;
        width: 100%;
    }
    
    .timeline-card h3 {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    .timeline-card p {
        font-size: 0.8rem;
        word-wrap: break-word;
    }
    
    .timeline-year {
        font-size: 0.7rem;
    }
    
    /* Навыки */
    .skills-grid {
        max-width: 100%;
        width: 100%;
    }
    
    .skill-category {
        padding: 1.1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .skill-header {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    .skill-name {
        font-size: 0.8rem;
        word-wrap: break-word;
    }
    
    /* Контакты */
    .contact-grid {
        max-width: 100%;
        width: 100%;
    }
    
    .contact-card {
        padding: 1.1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .contact-card i {
        font-size: 1.7rem;
    }
    
    .contact-card h3 {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    .contact-card p {
        font-size: 0.8rem;
        word-wrap: break-word;
    }
    
    /* Скролл индикатор для маленьких экранов */
    .scroll-indicator {
        bottom: 20px;
        gap: 0.25rem;
    }
    
    .scroll-text {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }
    
    .scroll-arrow {
        width: 38px;
        height: 38px;
    }
    
    .scroll-arrow i {
        font-size: 1.1rem;
    }
    
    /* Прелоадер на маленьких экранах */
    .preloader-logo {
        font-size: 2.2rem;
    }
    
    .preloader-content {
        gap: 1.8rem;
        width: 95%;
    }
    
    .terminal-window {
        width: 100%;
    }
    
    .terminal-header {
        padding: 0.6rem 0.8rem;
    }
    
    .terminal-btn {
        width: 10px;
        height: 10px;
    }
    
    .terminal-title {
        font-size: 0.7rem;
    }
    
    .terminal-body {
        padding: 0.8rem;
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .progress-bar {
        width: 90%;
        max-width: 280px;
        height: 20px;
    }
    
    .progress-text {
        font-size: 0.95rem;
        right: -48px;
    }
    
    .loading-text {
        font-size: 0.85rem;
    }
}
