/* ============================================================
   Colun — Premium Worsted Wool Fabrics
   Design: High-End Minimalist · Dark + Gold
   ============================================================ */

/* --- Local Fonts ----------------------------------------- */
@font-face {
    font-family: 'Champignon';
    src: url('../fonts/Champignon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #151515;
    --bg-alt: #1c1c1c;
    --gold: #c9a96e;
    --gold-light: #d4b87a;
    --gold-dark: #b8944f;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #787878;
    --border: #2a2a2a;
    --border-light: #333;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
    --section-padding: 120px 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Typography ----------------------------------------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--bg-secondary);
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 24px;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

/* --- Navigation ----------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.4s ease, padding 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.nav-logo {
    font-family: 'Champignon', var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--white);
    transition: opacity var(--transition);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Hero Section --------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 40%, #111 100%);
    overflow: hidden;
}

/* Texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.008) 2px,
            rgba(255,255,255,0.008) 4px
        );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--gold);
    margin-bottom: 28px;
    font-weight: 400;
}

.hero-logo {
    width: min(320px, 60vw);
    height: auto;
    opacity: 0.75;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.4s ease;
}

.hero-logo:hover {
    opacity: 0.95;
}

.hero-title {
    font-family: 'Champignon', var(--font-heading);
    font-size: clamp(5rem, 9vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.btn-gold {
    background: var(--gold);
    color: #0d0d0d;
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- About / Features ----------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    transition: stroke var(--transition);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--gold-light);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 300;
}

/* --- Products Section ----------------------------------- */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.product-card-header {
    padding: 40px 40px 24px;
    border-bottom: 1px solid var(--border);
}

.product-badge {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.product-badge.badge-summer {
    color: #7eb8a0;
    border-color: #7eb8a0;
}

.product-badge.badge-tech {
    color: #8ba8c8;
    border-color: #8ba8c8;
}

.product-badge.badge-pro {
    color: #b8956a;
    border-color: #b8956a;
}

.product-badge.badge-new {
    color: #c97a5e;
    border-color: #c97a5e;
}

.product-name {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.product-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

.product-card-body {
    padding: 32px 40px 40px;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 500;
}

.spec-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 400;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

/* Product features list */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* --- Quality Section ------------------------------------ */
.cert-banner {
    display: flex;
    gap: 24px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.cert-badge {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.cert-badge:hover {
    border-color: var(--gold-dark);
}

.cert-icon {
    font-size: 1.6rem;
    color: var(--gold);
    flex-shrink: 0;
}

.cert-badge strong {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 2px;
}

.cert-badge span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quality-block {
    margin-bottom: 56px;
}

.quality-block-title {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.02em;
}

/* Substance grid */
.substance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.substance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(201, 169, 110, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.1);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.substance-item:hover {
    border-color: rgba(201, 169, 110, 0.25);
}

.check-icon {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Quality Table */
.quality-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.quality-table thead {
    border-bottom: 2px solid var(--gold);
}

.quality-table th {
    text-align: left;
    padding: 16px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 500;
}

.quality-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 300;
}

.quality-table tbody tr {
    transition: background 0.2s ease;
}

.quality-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.quality-table tbody tr td:first-child {
    color: var(--text-primary);
    font-weight: 400;
}

.quality-table tbody tr td:last-child {
    color: var(--white);
    font-weight: 500;
    font-family: var(--font-heading);
}

/* --- Contact Section ------------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Champignon', var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 6px;
}

.contact-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    letter-spacing: 0.03em;
}

.contact-details {
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-icon {
    font-size: 1.1rem;
    color: var(--gold);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-success {
    color: #7eb8a0;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* --- Footer --------------------------------------------- */
.footer {
    background: #0a0a0a;
    padding: 72px 0 36px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: 'Champignon', var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--white);
    display: inline-block;
    margin-bottom: 16px;
    transition: opacity var(--transition);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Scroll Animations ---------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay helpers */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Responsive ----------------------------------------- */
@media (max-width: 1024px) {
    .product-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hamburger {
        display: flex;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Product cards */
    .product-card-header,
    .product-card-body {
        padding: 28px 24px;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-name {
        font-size: 1.25rem;
    }

    /* Cert banner */
    .cert-banner {
        flex-direction: column;
    }

    /* Substance grid */
    .substance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Quality table */
    .quality-table {
        font-size: 0.8rem;
    }

    .quality-table th,
    .quality-table td {
        padding: 12px 14px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .substance-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.7rem;
    }
}

/* ============================================================
   Gallery & Lightbox
   ============================================================ */

/* Gallery Button */
.btn-gallery {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-gallery:hover {
    background: var(--gold);
    color: #0d0d0d;
}

/* Gallery Overlay */
.gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.gallery-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    overflow-y: auto;
    padding: 80px 32px 60px;
}

.gallery-close {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 10;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.2rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
    padding: 8px;
}

.gallery-close:hover {
    color: var(--white);
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: 0.04em;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 10px 22px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.gallery-tab:hover {
    color: var(--white);
    border-color: var(--text-secondary);
}

.gallery-tab.active {
    background: var(--gold);
    color: #0d0d0d;
    border-color: var(--gold);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid transparent;
    transition: border-color var(--transition), transform var(--transition);
    aspect-ratio: 4 / 3;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 4px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 10;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.4rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
    padding: 8px;
}

.lightbox-close:hover {
    color: var(--white);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 2.4rem;
    width: 56px;
    height: 80px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.lightbox-prev {
    left: 24px;
    border-radius: 0 4px 4px 0;
}

.lightbox-next {
    right: 24px;
    border-radius: 4px 0 0 4px;
}

.lightbox-counter {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Gallery Empty State */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.gallery-empty p {
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-panel {
        padding: 70px 16px 40px;
    }

    .gallery-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .gallery-tab {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 56px;
        font-size: 1.6rem;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
