/* ===== RESET & BASE ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
html {
    scroll-behavior: smooth; 
}
body { 
    font-family: 'Inter', sans-serif; 
    background: #05060f; 
    color: #e8e6f0; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

::-webkit-scrollbar { 
    width: 8px; 
}
::-webkit-scrollbar-track { 
    background: #05060f; 
}
::-webkit-scrollbar-thumb { 
    background: #9B7FD4; 
    border-radius: 10px; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { 
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    } to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}
@keyframes float { 
    0%, 100% { 
        transform: translateY(0px); 
    } 50% { 
        transform: translateY(-16px); 
    } 
}
@keyframes pulseGlow { 
    0%, 100% {
        box-shadow: 0 0 20px rgba(155, 127, 212, 0.2); 
    } 50% {
        box-shadow: 0 0 60px rgba(155, 127, 212, 0.5); 
    } 
}
@keyframes gradientMove {
    0% {
        background-position: 0% 50%; 
    } 50% { 
        background-position: 100% 50%; 
    } 100% { 
        background-position: 0% 50%; 
    } 
}

.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); 
}
.animate-on-scroll.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ===== NAVIGATION ===== */
nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    padding: 16px 0; 
    background: rgba(5, 6, 15, 0.75); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(155, 127, 212, 0.1); 
    transition: all 0.3s ease; 
}
nav.scrolled { 
    background: rgba(5, 6, 15, 0.92); 
    padding: 10px 0; 
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo { 
    font-weight: 800; 
    font-size: 1.3rem; 
    color: #fff; 
    letter-spacing: -0.5px; 
    text-decoration: none; 
}
.logo span { 
    color: #9B7FD4; 
}
.nav-links { 
    display: flex; 
    gap: 32px; 
    list-style: none; 
    align-items: center; 
}
.nav-links a { 
    color: #b0acc4; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: color 0.3s ease; 
    position: relative; 
}
.nav-links a::after { 
    content: ''; 
    position: absolute; 
    bottom: -4px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: #9B7FD4; 
    transition: width 0.3s ease; 
}
.nav-links a:hover { 
    color: #fff; 
}
.nav-links a:hover::after { 
    width: 100%; 
}
.nav-cta { 
    background: #9B7FD4; 
    color: #05060f !important; 
    padding: 8px 20px; 
    border-radius: 100px; 
    font-weight: 600 !important; 
    transition: all 0.3s ease !important; 
}
.nav-cta::after { 
    display: none !important; 
}
.nav-cta:hover { 
    transform: scale(1.05); 
    background: #b095e6 !important; 
    color: #05060f !important; 
}

.burger { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    background: none; 
    border: none; 
    padding: 4px; 
}
.burger span { 
    display: block; 
    width: 28px; 
    height: 2.5px; 
    background: #e8e6f0; 
    border-radius: 4px; 
    transition: all 0.3s ease; 
}

/* ===== HERO ===== */
#hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding: 120px 0 80px; 
    position: relative; 
    overflow: hidden; 
}
#hero::before { 
    content: ''; 
    position: absolute; 
    width: 600px; 
    height: 600px; 
    background: radial-gradient(circle, rgba(155, 127, 212, 0.15), transparent 70%); 
    top: -200px; 
    right: -200px; 
    border-radius: 50%; 
    pointer-events: none; 
}
#hero::after { 
    content: ''; 
    position: absolute; 
    width: 400px; 
    height: 400px; 
    background: radial-gradient(circle, rgba(155, 127, 212, 0.06), transparent 70%); 
    bottom: -100px; 
    left: -100px; 
    border-radius: 50%; 
    pointer-events: none; 
}
.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
    position: relative; 
    z-index: 2; 
}
.hero-content { 
    animation: fadeUp 1s ease forwards; 
}
.hero-badge { 
    display: inline-block; 
    background: rgba(155, 127, 212, 0.15); 
    border: 1px solid rgba(155, 127, 212, 0.25); 
    padding: 6px 18px; 
    border-radius: 100px; 
    font-size: 0.8rem; 
    color: #9B7FD4; 
    font-weight: 500; 
    margin-bottom: 24px; 
    letter-spacing: 0.5px; 
}
.hero-content h1 { 
    font-size: clamp(2.8rem, 6vw, 4.8rem); 
    font-weight: 900; 
    line-height: 1.05; 
    letter-spacing: -2px; 
    margin-bottom: 12px; 
}
.hero-content h1 .highlight {
    background: linear-gradient(135deg, #9B7FD4, #c4b0e8, #9B7FD4); 
    background-size: 200% 200%; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    animation: gradientMove 4s ease infinite; 
}
.hero-content .subtitle { 
    font-size: 1.25rem; 
    color: #b0acc4; 
    font-weight: 400; 
    margin-bottom: 12px; 
}
.hero-content .tagline { 
    font-size: 1rem; 
    color: #8a86a0; 
    max-width: 480px; 
    margin-bottom: 32px; 
    line-height: 1.8; 
}
.hero-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 16px; 
}
.btn-primary { 
    background: #9B7FD4; 
    color: #05060f; 
    padding: 14px 36px; 
    border-radius: 100px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
}
.btn-primary:hover { 
    transform: scale(1.04); 
    background: #b095e6; 
    box-shadow: 0 0 40px rgba(155, 127, 212, 0.3); 
}
.btn-secondary { 
    background: rgba(255, 255, 255, 0.05); 
    color: #e8e6f0; 
    padding: 14px 36px; 
    border-radius: 100px; 
    font-weight: 500; 
    font-size: 0.95rem; 
    border: 1px solid rgba(155, 127, 212, 0.2); 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
}
.btn-secondary:hover { 
    background: rgba(155, 127, 212, 0.1); 
    border-color: #9B7FD4; 
}

/* ===== AVATAR ===== */
.hero-visual { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    animation: float 6s ease-in-out infinite; 
}
.avatar-container { 
    width: 420px; 
    height: 520px; 
    border-radius: 30px; 
    background: radial-gradient(circle at 30% 30%, rgba(155, 127, 212, 0.3), transparent 70%); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    overflow: hidden; 
    border: 1px solid rgba(155, 127, 212, 0.3); 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); 
    animation: pulseGlow 4s ease-in-out infinite; 
}
.hero-photo { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(20%) contrast(1.1); 
    transition: filter 0.3s ease; 
}
.avatar-container:hover .hero-photo {
    filter: grayscale(0%) contrast(1); 
}

/* ===== SECTION TITLES ===== */
.section-title { 
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 800; 
    letter-spacing: -1px; 
    margin-bottom: 12px; 
}
.section-title .highlight { 
    color: #9B7FD4; 
}
.section-subtitle { 
    color: #8a86a0; 
    font-size: 1.1rem; 
    margin-bottom: 48px; 
    max-width: 600px; 
}

/* ===== ABOUT ===== */
#about { 
    padding: 80px 0; 
}
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}
.about-text p { 
    color: #b0acc4; 
    font-size: 1.05rem; 
    line-height: 1.9;
    margin-bottom: 20px; 
}
.about-text strong { 
    color: #e8e6f0; 
}
.skills-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-top: 20px; 
}
.skill-tag { 
    background: rgba(155, 127, 212, 0.1);
    border: 1px solid rgba(155, 127, 212, 0.15); 
    padding: 8px 20px; 
    border-radius: 100px; 
    font-size: 0.85rem; 
    color: #c4b0e8; 
    transition: all 0.3s ease; 
}
.skill-tag:hover { 
    background: rgba(155, 127, 212, 0.2); 
    transform: translateY(-2px); 
}
.about-visual { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.about-photo { 
    width: 100%; 
    max-height: 500px; 
    object-fit: cover; 
    border-radius: 24px; 
    border: 1px solid rgba(155, 127, 212, 0.2); 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); 
}
.about-stats { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
}
.stat-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 16px; 
    padding: 24px; 
    text-align: center; 
    transition: all 0.3s ease; 
}
.stat-card:hover { 
    background: rgba(155, 127, 212, 0.05); 
    border-color: rgba(155, 127, 212, 0.2); 
    transform: translateY(-4px); 
}
.stat-number { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #9B7FD4; 
}
.stat-label { 
    color: #8a86a0; 
    font-size: 0.85rem; 
    margin-top: 4px; 
}

/* ===== SKILLS (ПРОГРЕСС-БАРЫ) ===== */
#skills { 
    padding: 80px 0; 
}
.skills-bars { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    max-width: 800px; 
    margin: 0 auto; 
}
.skill-bar-item { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 16px; 
    padding: 20px; 
    transition: all 0.3s ease; 
}
.skill-bar-item:hover { 
    border-color: rgba(155, 127, 212, 0.2); 
    background: rgba(155, 127, 212, 0.05); 
}
.skill-bar-label { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 10px; 
    font-weight: 500; 
    color: #e8e6f0; 
}
.skill-bar-percent { 
    color: #9B7FD4; 
    font-weight: 700; 
}
.skill-bar-track { 
    height: 8px; 
    background: rgba(155, 127, 212, 0.1); 
    border-radius: 100px; 
    overflow: hidden; 
}
.skill-bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, #9B7FD4, #c4b0e8); 
    border-radius: 100px; 
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1); 
}

/* ===== STACK ===== */
#stack { 
    padding: 80px 0; 
}
.stack-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 20px; 
}
.stack-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 20px; 
    padding: 24px; 
    text-align: center; 
    transition: all 0.3s ease; 
}
.stack-card:hover { 
    transform: translateY(-6px); 
    border-color: rgba(155, 127, 212, 0.2); 
    background: rgba(155, 127, 212, 0.05); 
}
.stack-icon { 
    font-size: 3rem; 
    margin-bottom: 10px; 
}
.stack-name { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: #b0acc4; 
}

/* ===== PROCESS ===== */
#process { 
    padding: 80px 0; 
}
.process-steps { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}
.process-step { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 20px; 
    padding: 28px; 
    transition: all 0.3s ease; 
    position: relative; 
}
.process-step:hover { 
    background: rgba(155, 127, 212, 0.05); 
    border-color: rgba(155, 127, 212, 0.2); 
    transform: translateY(-6px); 
}
.process-number { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #9B7FD4; 
    opacity: 0.3; 
    margin-bottom: 12px; 
}
.process-title { 
    font-weight: 700; 
    margin-bottom: 8px; 
}
.process-desc { 
    color: #8a86a0; 
    font-size: 0.95rem; 
    line-height: 1.5; 
}

/* ===== PROJECTS (СЛАЙДЕР) ===== */
#projects { 
    padding: 80px 0; 
}
.project-slider { 
    position: relative; 
    max-width: 1000px; 
    margin: 0 auto; 
}
.project-slide { 
    display: none; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
}
.project-slide.active { 
    display: block; 
    opacity: 1; 
}
.project-slide-inner { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 24px; 
    padding: 40px; 
    display: flex; 
    gap: 40px; 
    align-items: center; 
}
.project-slide-image { 
    flex: 1; 
    cursor: pointer; 
    border-radius: 16px; 
    overflow: hidden; 
}
.project-slide-image img { 
    width: 100%; 
    height: auto; 
    max-height: 500px; 
    object-fit: contain; 
    transition: transform 0.3s ease; 
}
.project-slide-image img:hover { 
    transform: scale(1.02); 
}
.project-slide-content { 
    flex: 1; 
}
.project-slide-icon { 
    font-size: 3rem; 
    margin-bottom: 16px; 
}
.project-slide-title { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin-bottom: 12px; 
}
.project-slide-desc { 
    color: #b0acc4; 
    font-size: 1rem; 
    line-height: 1.7; 
    margin-bottom: 20px; 
}
.project-slide-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 24px; 
}
.project-slide-link { 
    display: inline-block; 
    color: #9B7FD4; 
    font-weight: 600; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}
.project-slide-link:hover { 
    color: #c4b0e8; 
}

/* Слайдер навигация */
.slider-nav { 
    display: flex; 
    justify-content: center; 
    gap: 16px; 
    margin-top: 24px; 
}
.slider-btn { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(155, 127, 212, 0.2); 
    color: #e8e6f0; 
    cursor: pointer; 
    font-size: 1.2rem; 
    transition: all 0.3s ease; 
}
.slider-btn:hover { 
    background: rgba(155, 127, 212, 0.2); 
    border-color: #9B7FD4; 
}

/* ===== ICONS ===== */
#icons { 
    padding: 80px 0; 
}
.icons-grid {
    display: grid; 
    grid-template-columns: 
    repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 24px; 
}
.icon-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 20px; 
    padding: 24px; 
    text-align: center; 
    transition: all 0.3s ease; 
    cursor: pointer; 
}
.icon-card:hover { 
    transform: translateY(-6px); 
    border-color: rgba(155, 127, 212, 0.2); 
    background: rgba(155, 127, 212, 0.04); 
}
.icon-card img { 
    max-width: 100%; 
    height: auto; 
    max-height: 120px; 
    object-fit: contain; 
}

/* ===== TESTIMONIALS ===== */
#testimonials { 
    padding: 80px 0; 
}
.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 28px; 
}
.testimonial-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 20px; 
    padding: 28px; 
    transition: all 0.3s ease; 
}
.testimonial-card:hover { 
    border-color: rgba(155, 127, 212, 0.2); 
    background: rgba(155, 127, 212, 0.04); 
}
.testimonial-header { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    margin-bottom: 16px; 
}
.testimonial-avatar { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background: #9B7FD4; 
    color: #05060f; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    font-weight: 800; 
}
.testimonial-name { 
    font-weight: 600; 
}
.testimonial-role { 
    color: #6a6680; 
    font-size: 0.85rem; 
}
.testimonial-text { 
    color: #b0acc4; 
    font-size: 0.95rem; 
    line-height: 1.7; 
    font-style: italic; 
}

/* ===== CONTACT ===== */
#contact { 
    padding: 80px 0 60px; 
}
.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 60px; 
    align-items: start; 
    max-width: 600px; 
    margin: 0 auto; 
}
.contact-info h2 { 
    font-size: clamp(2rem, 3vw, 2.8rem); 
    font-weight: 800; 
    letter-spacing: -1px; 
    margin-bottom: 12px; 
    text-align: center; 
}
.contact-info p { 
    color: #8a86a0; 
    font-size: 1.05rem; 
    margin-bottom: 32px; 
    text-align: center; 
}
.contact-links { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
.contact-link { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    color: #b0acc4; 
    text-decoration: none; 
    padding: 14px 20px; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(155, 127, 212, 0.08); 
    border-radius: 14px; 
    transition: all 0.3s ease; 
}
.contact-link:hover { 
    background: rgba(155, 127, 212, 0.05); 
    border-color: rgba(155, 127, 212, 0.2); 
    transform: translateX(6px); 
    color: #fff; 
}
.contact-link .emoji { 
    font-size: 1.3rem; 
    width: 36px; 
    text-align: center; 
}

/* ===== FOOTER ===== */
footer { 
    padding: 40px 0; 
    border-top: 1px solid rgba(155, 127, 212, 0.06); 
    text-align: center; 
    color: #5a5670; 
    font-size: 0.85rem; 
}
footer span { 
    color: #9B7FD4; 
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .hero-content .tagline { 
        margin: 0 auto 32px; 
    }
    .hero-buttons { 
        justify-content: center; 
    }
    .avatar-container { 
        width: 320px; 
        height: 400px; 
    }
    .about-grid { 
        grid-template-columns: 1fr; 
    }
    .about-visual { 
        order: -1; 
    }
    .process-steps { 
        grid-template-columns: 1fr 1fr; 
    }
    .project-slide-inner { 
        flex-direction: column; 
    }
}

@media (max-width: 768px) {
    .nav-links { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 70%; 
        height: 100vh; 
        background: rgba(5, 6, 15, 0.96); 
        backdrop-filter: blur(20px); 
        flex-direction: column; 
        justify-content: center; 
        padding: 40px; 
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
        gap: 24px; 
    }
    .nav-links.open { 
        right: 0; 
    }
    .burger { 
        display: flex; 
        z-index: 1001; 
    }
    .burger.active span:nth-child(1) { 
        transform: rotate(45deg) translate(5px, 5px); 
    }
    .burger.active span:nth-child(2) { 
        opacity: 0; 
    }
    .burger.active span:nth-child(3) { 
        transform: rotate(-45deg) translate(5px, -5px); 
    }
    .avatar-container { 
        width: 260px; 
        height: 320px; 
    }
    .stack-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    .process-steps { 
        grid-template-columns: 1fr; 
    }
    .testimonials-grid { 
        grid-template-columns: 1fr; 
    }
    .icons-grid { 
        grid-template-columns: 1fr; 
    }
    .about-stats { 
        grid-template-columns: 1fr 1fr; 
    }
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
}

@media (max-width: 480px) {
    .about-stats { 
        grid-template-columns: 1fr; 
    }
    .hero-buttons { 
        flex-direction: column; 
        align-items: center; 
    }
    .hero-buttons a { 
        width: 100%; 
        justify-content: center; 
    }
    .timeline-container { 
        padding-left: 20px; 
    }
    .timeline-item::before { 
        left: -14px; 
        width: 10px; 
        height: 10px; 
        top: 24px; 
    }
    .stack-grid { 
        grid-template-columns: 1fr; 
    }
}

/* ===== ЭФФЕКТ ДЫМА (МАЛЕНЬКИЕ ЧАСТИЦЫ) ===== */
.cursor-particle { 
    position: fixed; 
    pointer-events: none; 
    border-radius: 50%; 
    filter: blur(20px); 
    mix-blend-mode: screen; 
    z-index: 9998; 
    animation: particleFade 0.8s ease-out forwards; 
    opacity: 0; 
}
@keyframes particleFade {
     0% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5); 
    } 100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(2.5); 
    } 
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeUp 0.3s ease;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    background: #0a0a0f;
    border-radius: 16px;
    border: 1px solid rgba(155, 127, 212, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-width: 95vw;
    max-height: 95vh;
}

.lightbox-content--long {
    width: 90vw;
    height: 90vh;
    padding: 0;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
}

.lightbox-content--long img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: default;
    max-height: none;
    margin-bottom: 50px;
}

.lightbox-content--normal {
    width: auto;
    height: auto;
    padding: 12px;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img--zoomable {
    transition: transform 0.2s ease-out;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    cursor: zoom-in;
}

.lightbox-img--dragging {
    cursor: grabbing !important;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #9B7FD4;
    color: #05060f;
    border: none;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-caption {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #b0acc4;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    z-index: 21;
}