/* ═══════════════════════════════════════════════════
   SkyXroot — Style Sheet
   Professional Scientific Project Website
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0e17;
    --bg-alt: #0f1520;
    --surface: #151b2b;
    --surface-hover: #1c2438;
    --border: rgba(255,255,255,0.06);
    --text: #e1e5ee;
    --text-dim: #8892a6;
    --text-muted: #5a6478;
    --primary: #4ECDC4;
    --primary-glow: rgba(78,205,196,0.15);
    --secondary: #45B7D1;
    --accent: #FF6B6B;
    --accent2: #96CEB4;
    --gradient-1: linear-gradient(135deg, #4ECDC4, #45B7D1);
    --gradient-2: linear-gradient(135deg, #FF6B6B, #ffa502);
    --gradient-hero: linear-gradient(180deg, rgba(10,14,23,0) 0%, rgba(10,14,23,0.8) 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: opacity 0.2s ease;
}

body.lang-loading {
    opacity: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead { font-size: 1.15rem; color: var(--text-dim); line-height: 1.8; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #0a0e17;
    box-shadow: 0 4px 20px rgba(78,205,196,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(78,205,196,0.4);
    color: #0a0e17;
}

.btn-download {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 2px solid rgba(78,205,196,0.35);
}
.btn-download:hover {
    background: rgba(78,205,196,0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(78,205,196,0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.play-icon { font-size: 0.8rem; }

/* ═══════════════════ NAVBAR ═══════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(10,14,23,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text);
}
.logo:hover { color: var(--text); }
.nav-logo-img {
    height: 38px;
    width: auto;
    transition: var(--transition);
}
#navbar.scrolled .nav-logo-img {
    height: 32px;
}
.logo-icon { font-size: 1.6rem; }
.logo-text strong { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* ─── Language Switcher ─── */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    padding: 3px;
    background: var(--surface);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.5px;
    color: var(--text-dim);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.lang-btn.active {
    color: var(--bg);
    background: var(--primary);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* ═══════════════════ HERO ═══════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.particle-field {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 30%, rgba(78,205,196,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 40% 70%, rgba(255,107,107,0.05) 0%, transparent 50%),
        var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 900px;
}

.hero-banner {
    max-width: 720px;
    width: 90%;
    height: auto;
    margin: 0 auto 32px;
    filter: drop-shadow(0 4px 24px rgba(78,205,196,0.25));
}

.hero-tag {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(78,205,196,0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-unit {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-left: 2px;
}
.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    animation: bounce-scroll 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}
@keyframes bounce-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    background: var(--primary-glow);
    margin-bottom: 16px;
}

.section-header h2 { margin-bottom: 8px; }

.section-sub-header {
    text-align: center;
    margin: 60px 0 40px;
}
.section-sub-header h3 { margin-bottom: 8px; }
.section-sub-header p { color: var(--text-dim); }

.image-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 12px;
}

/* ═══════════════════ ABOUT ═══════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .lead { margin-bottom: 32px; }

.feature-list { display: flex; flex-direction: column; gap: 20px; }

.feature-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.feature-item:hover { background: var(--surface); }

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border-radius: var(--radius-xs);
    background: var(--surface);
}

.feature-item h4 { margin-bottom: 4px; font-size: 1rem; }
.feature-item p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }

.about-image { position: relative; }

.image-frame {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    padding: 16px;
    border: 1px solid var(--border);
}

.image-frame img { border-radius: var(--radius-sm); }
.image-frame .image-caption { padding: 12px 0 0; }

/* ═══════════════════ CRISIS ═══════════════════ */
.crisis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.crisis-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.crisis-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(78,205,196,0.1);
}

.crisis-icon { font-size: 2rem; margin-bottom: 16px; }

.crisis-stat {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.crisis-card p { color: var(--text-dim); font-size: 0.9rem; }

.crisis-map {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
}

.map-info { display: flex; flex-direction: column; gap: 28px; }

.map-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.map-item p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; }

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════ VIDEO ═══════════════════ */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.video-placeholder { position: relative; }

.video-poster {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) blur(2px);
    transition: var(--transition);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.video-play-btn:hover { transform: scale(1.1); }
.video-play-btn svg { width: 100%; height: 100%; }

.video-label {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.video-placeholder:hover .video-poster img {
    filter: brightness(0.4) blur(1px);
    transform: scale(1.03);
}

/* ═══════════════════ DESIGN / ANATOMY ═══════════════════ */
.anatomy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.anatomy-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    padding: 20px;
    border: 1px solid var(--border);
}

.anatomy-image img { border-radius: var(--radius-sm); }

.anatomy-details { display: flex; flex-direction: column; gap: 20px; }

.anatomy-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.anatomy-card:hover {
    transform: translateX(6px);
    border-color: var(--marker-color, var(--primary));
}

.anatomy-marker {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    color: var(--bg);
    background: var(--marker-color, var(--primary));
}

.anatomy-card h4 { margin-bottom: 4px; font-size: 1rem; }
.anatomy-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }

/* Cross Section */
.cross-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cross-image {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cross-image img { border-radius: var(--radius-sm); }

.zone-list { display: flex; flex-direction: column; gap: 20px; }

.zone-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--zone-color);
    transition: var(--transition);
}

.zone-item:hover { transform: translateX(4px); }

.zone-bar {
    width: 6px;
    min-height: 40px;
    border-radius: 3px;
    background: var(--zone-color);
    flex-shrink: 0;
}

.zone-info h5 { font-size: 1rem; margin-bottom: 2px; }
.zone-info span {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}
.zone-info p { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }

/* ═══════════════════ MECHANISM ═══════════════════ */
.impact-timeline {
    max-width: 900px;
    margin: 0 auto 64px;
}

.timeline-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.timeline-step {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.timeline-step.active .step-icon,
.timeline-step:hover .step-icon { color: var(--primary); }

.step-content h4 { font-size: 1rem; margin-bottom: 6px; }
.step-content p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.4; }

.step-value {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.timeline-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin-top: 30px;
    flex-shrink: 0;
    position: relative;
}
.timeline-connector::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.7rem;
}

.mechanism-visual {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.mechanism-visual img { border-radius: var(--radius-sm); }

/* ═══════════════════ SPECS ═══════════════════ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.spec-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.spec-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(78,205,196,0.08);
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.spec-icon { font-size: 1.5rem; }
.spec-header h4 { font-size: 1.1rem; }

.spec-table { display: flex; flex-direction: column; gap: 0; }

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.spec-row:last-child { border-bottom: none; }
.spec-row span { color: var(--text-dim); font-size: 0.9rem; }
.spec-row strong {
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Formula */
.formula-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.formula-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    text-align: center;
}

.formula-card h4 { margin-bottom: 16px; font-size: 1rem; }

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--primary);
    padding: 20px;
    background: rgba(78,205,196,0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.formula-card p { color: var(--text-muted); font-size: 0.82rem; }

/* ═══════════════════ SCALES ═══════════════════ */
.scales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.scale-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.scale-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.scale-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 32px rgba(78,205,196,0.1);
}

.scale-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--gradient-1);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 50px;
    margin-bottom: 16px;
}

.scale-card h4 { margin-bottom: 8px; }

.scale-dims {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.scale-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }

.scale-card ul {
    list-style: none;
    text-align: left;
}

.scale-card li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.scale-card li:last-child { border-bottom: none; }

.scale-image {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.scale-image img { border-radius: var(--radius-sm); }

/* ═══════════════════ GALLERY ═══════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--surface);
}

.gallery-item.large { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,14,23,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay h4 { font-size: 1rem; margin-bottom: 4px; }
.gallery-overlay p { font-size: 0.85rem; color: var(--text-dim); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-caption {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

/* ═══════════════════ BIODEGRADATION ═══════════════════ */
.bio-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.bio-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.bio-track::before {
    content: '';
    position: absolute;
    top: 46px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
}

.bio-step { text-align: center; }

.bio-time {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.bio-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 12px rgba(78,205,196,0.4);
}

.bio-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    border: 1px solid var(--border);
}

.bio-icon { font-size: 1.5rem; margin-bottom: 8px; }
.bio-card h5 { margin-bottom: 8px; font-size: 0.95rem; }
.bio-card p { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 12px; }

.bio-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.bio-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 1.5s;
}

/* ═══════════════════ SNAP-FIT ═══════════════════ */
.snapfit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.snapfit-image {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.snapfit-image img { border-radius: var(--radius-sm); }

.snapfit-details { display: flex; flex-direction: column; gap: 16px; }

.snapfit-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.snapfit-label { color: var(--text-dim); font-size: 0.95rem; }
.snapfit-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.snapfit-result {
    padding: 16px 20px;
    background: rgba(78,205,196,0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(78,205,196,0.2);
    font-weight: 600;
    text-align: center;
}

.snapfit-result .check {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 8px;
}

/* ═══════════════════ ASSEMBLY ═══════════════════ */
.assembly-showcase {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.assembly-showcase img { border-radius: var(--radius-sm); }

/* ═══════════════════ TEAM (HAKKIMIZDA) ═══════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.15);
    border-color: var(--primary);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 24px 20px;
}

.team-info h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.team-class {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(78, 205, 196, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.team-info p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ═══════════════════ SCHOOL (OKULUMUZ) ═══════════════════ */
.school-content {
    max-width: 1000px;
    margin: 0 auto;
}

.school-hero {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.school-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.school-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}

.school-hero-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.school-hero-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.school-text-side p,
.school-text-bottom p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.school-text-side p:first-child {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 500;
}

.school-text-bottom {
    margin-top: 8px;
}

.school-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.value-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.value-tag:hover {
    background: var(--primary);
    color: var(--bg);
}

/* ═══════════════════ CONTACT ═══════════════════ */
.contact-grid { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-grid .lead { margin-bottom: 40px; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-icon { font-size: 1.5rem; margin-bottom: 12px; }
.contact-card h5 { margin-bottom: 6px; }
.contact-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ═══════════════════ REFERENCES ═══════════════════ */
.ref-list {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    counter-reset: ref-counter;
    list-style: none;
}

.ref-list li {
    counter-increment: ref-counter;
    position: relative;
    padding: 16px 20px 16px 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-dim);
    transition: border-color 0.3s;
}

.ref-list li::before {
    content: "[" counter(ref-counter) "]";
    position: absolute;
    left: 12px;
    top: 16px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.82rem;
}

.ref-list li:hover {
    border-color: var(--primary);
}

.ref-list li em {
    color: var(--text);
    font-style: italic;
}

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
    background: var(--bg-alt);
    padding: 64px 0 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    margin-bottom: 4px;
}

.footer-brand .logo-icon { font-size: 2rem; }
.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-left: 8px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h5 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text);
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ═══════════════════ ANIMATIONS ═══════════════════ */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim="fade-left"] { transform: translateX(40px); }
[data-anim="zoom-in"] { transform: scale(0.9); }

[data-anim].visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
    .crisis-grid { grid-template-columns: repeat(2, 1fr); }
    .specs-grid { grid-template-columns: 1fr; }
    .formula-section { grid-template-columns: 1fr; }
    .scales-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,14,23,0.98);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: flex; }
    .lang-switcher { margin-left: auto; margin-right: 8px; }

    .about-grid,
    .anatomy-section,
    .cross-grid,
    .snapfit-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .crisis-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large { grid-column: span 1; }

    .timeline-track { flex-direction: column; align-items: center; gap: 16px; }
    .timeline-connector {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }

    .bio-track {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .bio-track::before { display: none; }

    .team-grid { grid-template-columns: 1fr; max-width: 400px; }
    .school-hero { height: 260px; }

    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 32px; flex-wrap: wrap; }

    .section { padding: 64px 0; }
}

@media (max-width: 480px) {
    .hero-content { padding: 100px 16px 60px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .bio-track { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Selection ── */
::selection { background: rgba(78,205,196,0.3); color: white; }
