/**
 * ==============================================================================
 * ZAYTOUNA: SPIRIT OF GAZA - PALESTINIAN SOLIDARITY THEME (css/style.css)
 * Features authentic Palestinian Keffiyeh & Tatreez motifs, Flag accents,
 * Emerald & Crimson glow, and full English & Arabic (العربية) RTL support.
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&family=Press+Start+2P&display=swap');

:root {
    /* Authentic Palestinian Flag Palette */
    --pal-black: #06090a;
    --pal-white: #ffffff;
    --pal-green: #10b981;
    --pal-green-dark: #047857;
    --pal-green-glow: rgba(16, 185, 129, 0.45);
    --pal-red: #e11d48;
    --pal-red-glow: rgba(225, 29, 72, 0.45);
    --pal-gold: #f59e0b;
    --pal-gold-glow: rgba(245, 158, 11, 0.35);

    --bg-main: #060908;
    --bg-card: rgba(12, 20, 18, 0.78);
    --bg-card-hover: rgba(18, 30, 26, 0.9);
    --bg-glass: rgba(10, 16, 14, 0.85);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-pal-green: rgba(16, 185, 129, 0.35);
    --border-pal-red: rgba(225, 29, 72, 0.35);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    --font-pixel: 'Press Start 2P', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 12px 35px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px var(--pal-green-glow);
}

/* ==============================================================================
 * PALESTINIAN FLAG TOP RIBBON
 * ============================================================================== */
.palestine-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background: linear-gradient(90deg, 
        #111111 0%, #111111 25%, 
        #ffffff 25%, #ffffff 50%, 
        #10b981 50%, #10b981 75%, 
        #e11d48 75%, #e11d48 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* ==============================================================================
 * KEFFIYEH (KUFIYA) PATTERN & TATREEZ EMBROIDERY DIVIDERS
 * ============================================================================== */
/* Subtle Traditional Keffiyeh Fishnet Grid Pattern */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle, rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.015) 75%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.015) 75%);
    background-size: 32px 32px, 32px 32px, 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Tatreez Cross-Stitch Section Divider */
.tatreez-divider {
    width: 100%;
    height: 12px;
    margin: 40px 0;
    background-image: repeating-linear-gradient(
        45deg,
        #e11d48, #e11d48 4px,
        transparent 4px, transparent 8px,
        #10b981 8px, #10b981 12px,
        transparent 12px, transparent 16px
    );
    opacity: 0.35;
}

/* ==============================================================================
 * RTL (ARABIC) OVERRIDES
 * ============================================================================== */
[dir="rtl"], body.rtl-mode {
    font-family: var(--font-arabic) !important;
    text-align: right;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .brand-title, [dir="rtl"] .hero-title, [dir="rtl"] .btn {
    font-family: var(--font-arabic) !important;
}

[dir="rtl"] .story-card::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .quote-highlight {
    border-left: none;
    border-right: 4px solid var(--pal-green);
    padding-left: 0;
    padding-right: 18px;
}

[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 20px;
}

[dir="rtl"] .floating-settings-btn {
    right: auto;
    left: 24px;
}

[dir="rtl"] .input-group {
    text-align: right;
}

/* ==============================================================================
 * GENERAL RESETS & TYPOGRAPHY
 * ============================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, var(--pal-green) 80%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-red {
    background: linear-gradient(135deg, #ffffff 20%, var(--pal-red) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pal-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==============================================================================
 * HEADER & NAVBAR
 * ============================================================================== */
.main-header {
    position: fixed;
    top: 4px; /* below flag bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 9, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand-tag {
    font-size: 0.72rem;
    color: var(--pal-green);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pal-green);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher Button Group */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.lang-switch-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch-btn:hover {
    color: var(--text-primary);
}

.lang-switch-btn.active {
    background: linear-gradient(135deg, var(--pal-green) 0%, var(--pal-green-dark) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--pal-green-glow);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn.muted {
    color: var(--pal-red);
}

.mobile-toggle {
    display: none;
}

/* ==============================================================================
 * BUTTONS
 * ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--pal-green-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.65);
    filter: brightness(1.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: buttonShine 4s infinite;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.15rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==============================================================================
 * HERO SECTION
 * ============================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px 0;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, rgba(6, 9, 8, 0.75) 0%, rgba(6, 9, 8, 0.94) 85%, #060908 100%),
        url('../assets/images/hero-banner.jpg') center center/cover no-repeat;
    z-index: 1;
    filter: brightness(0.92);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 840px;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(12, 20, 18, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: var(--pal-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pal-green);
    animation: pulseGlow 1.5s infinite;
}

.hero-pill-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 22px;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 36px;
    max-width: 700px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
}

.download-meta-text {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.download-meta-text span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 45px;
    padding: 24px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-pal-green);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--pal-green);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ==============================================================================
 * STORY & PALESTINIAN HERITAGE SECTION
 * ============================================================================== */
.story-section {
    padding: 100px 0;
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-pal-green);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--pal-green), var(--pal-red));
}

.quote-highlight {
    font-size: 1.25rem;
    font-style: italic;
    color: #f1f5f9;
    margin-bottom: 20px;
    border-left: 4px solid var(--pal-green);
    padding-left: 18px;
}

.story-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

.features-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}

.feature-mini-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature-mini-box:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--pal-green-glow);
    transform: translateY(-3px);
}

.feature-mini-box i {
    font-size: 1.5rem;
    color: var(--pal-green);
    margin-bottom: 12px;
}

.feature-mini-box h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature-mini-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.story-media-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-pal-green);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.story-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    image-rendering: pixelated;
}

.story-media-card:hover img {
    transform: scale(1.04);
}

/* ==============================================================================
 * 2D PIXEL GALLERY (SHOWCASE)
 * ============================================================================== */
.showcase-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.04) 50%, transparent 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-pal-green);
    background: var(--bg-card);
    aspect-ratio: 16 / 9;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--pal-green);
    box-shadow: 0 15px 35px var(--pal-green-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 24px 20px 24px;
    background: linear-gradient(to top, rgba(6, 9, 8, 0.95) 0%, rgba(6, 9, 8, 0.6) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.zoom-hint {
    width: 38px;
    height: 38px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pal-green);
}

/* ==============================================================================
 * SYSTEM REQUIREMENTS
 * ============================================================================== */
.specs-section {
    padding: 100px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.specs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.specs-card:hover {
    border-color: var(--border-pal-green);
}

.specs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.specs-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.specs-tag.recommended {
    background: rgba(16, 185, 129, 0.15);
    color: var(--pal-green);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.spec-label i {
    width: 20px;
    color: var(--pal-green);
}

.spec-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Steps Section */
.steps-section {
    padding: 60px 0 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--pal-green-glow);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.4);
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==============================================================================
 * FAQ SECTION
 * ============================================================================== */
.faq-section {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--pal-green);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 26px 22px 26px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==============================================================================
 * FOOTER
 * ============================================================================== */
.main-footer {
    background: #030504;
    border-top: 1px solid var(--border-pal-green);
    padding: 60px 0 30px 0;
    position: relative;
    z-index: 2;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 14px;
    max-width: 380px;
    font-size: 0.92rem;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==============================================================================
 * MODALS
 * ============================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 5, 4, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

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

.modal-card {
    background: #091210;
    border: 1px solid var(--border-pal-green);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px var(--pal-green-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 36px;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.dl-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin: 24px 0 16px 0;
    overflow: hidden;
}

.dl-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pal-green), #34d399);
    border-radius: 4px;
    transition: width 1.2s ease-in-out;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--pal-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.input-help {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.lightbox-modal {
    max-width: 1000px;
    padding: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.lightbox-modal img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    image-rendering: pixelated;
}

.lightbox-caption {
    text-align: center;
    margin-top: 14px;
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 600;
}

.floating-settings-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: rgba(12, 20, 18, 0.9);
    border: 1px solid var(--border-pal-green);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.floating-settings-btn:hover {
    background: rgba(18, 30, 26, 0.98);
    color: var(--pal-green);
    border-color: var(--pal-green);
    transform: translateY(-2px);
}

/* ==============================================================================
 * RESPONSIVE DESIGN
 * ============================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats-banner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 84px;
        left: 0;
        width: 100%;
        background: #070c0a;
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border-glass);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        gap: 20px;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

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

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
