:root {
    /* Default: DARK MODE */
    --bg-color: #000000;
    --text-color: #ffffff;
    --header-bg: rgba(0, 0, 0, 0.95);
    --pill-bg: #ffffff; 
    --pill-text: #000000;
    --border-color: rgba(255, 255, 255, 0.2);
    --modal-bg: rgba(0, 0, 0, 0.95);
    --sub-text: #e0e0e0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-impact: 'Impact', 'Charcoal', sans-serif;
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #000000;
    --header-bg: rgba(255, 255, 255, 0.95);
    --pill-bg: #000000; 
    --pill-text: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --modal-bg: rgba(255, 255, 255, 0.98);
    --sub-text: #333333;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: 0.4s ease;
}

/* ================= HEADER ================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    text-align: center;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 70px;
}

.impact-title {
    font-family: var(--font-impact);
    font-size: 32px;
    letter-spacing: 2px;
}

nav {
    margin-top: 12px;
    background: var(--pill-bg);
    padding: 8px 25px;
    border-radius: 50px;
    display: inline-flex;
    gap: 15px;
}

nav a {
    color: var(--pill-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* MAIN OFFSET FIX */
main {
    margin-top: 180px; /* Space for the fixed header */
}

/* ================= HERO ================= */

.hero {
    padding: 60px 8%;
    display: flex;
    justify-content: center;
}

.main-quote-box {
    background: var(--pill-bg);
    color: var(--pill-text);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 850px;
    font-family: var(--font-heading);
    font-size: clamp(22px, 4vw, 34px);
    font-style: italic;
}

/* ================= IMAGE SECTION ================= */

.visual-impact-section {
    padding: 60px 8%;
    display: flex;
    justify-content: center;
}

.impact-container {
    width: 100%;
    max-width: 1100px;
    height: 480px;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.impact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.85);
}

/* ================= SECTIONS ================= */

.section {
    padding: 80px 8%;
    text-align: center;
}

.label-pill {
    background: var(--pill-bg);
    padding: 10px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    color: var(--pill-text);
    text-transform: uppercase;
    margin-bottom: 30px;
    display: inline-block;
}

.serif-text {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.6;
    color: var(--sub-text);
    max-width: 800px;
    margin: 0 auto;
}

.impact-box {
    border-top: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    padding: 30px 0;
    margin: 40px auto;
    max-width: 750px;
}

.impact-box p {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ================= REELS ================= */

.reel-container {
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.reel-container::-webkit-scrollbar {
    display: none;
}

.reel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 8%;
}

.reel-card {
    width: 250px;
    height: 450px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.reel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= CTA ================= */

.cta-section {
    padding: 100px 8%;
    text-align: center;
}

.cta-gradient-box {
    background: var(--pill-bg);
    color: var(--pill-text);
    padding: 50px 20px;
    border-radius: 25px;
    max-width: 850px;
    margin: 0 auto;
}

/* ================= FOOTER ================= */

footer {
    padding: 90px 8% 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    min-width: 220px;
}

.footer-col a {
    color: var(--text-color);
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.social-links a {
    background: var(--pill-bg);
    color: var(--pill-text);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
}

.footer-logo-img {
    height: 80px;
    margin: 20px 0;
}

/* ================= THEME BUTTON ================= */

.theme-control {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.theme-action-btn {
    background: var(--pill-bg);
    color: var(--pill-text);
    border: 2px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= MODAL ================= */

.reel-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.reel-modal video {
    height: 90vh;
    aspect-ratio: 9/16;
    border-radius: 20px;
    object-fit: cover;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001 !important;
    color: white;
}

/* ============================================================
   MOBILE OPTIMIZATION (THE ABSOLUTE FINAL REPAIR)
   ============================================================ */
@media screen and (max-width: 768px) {
    /* 1. Header Logic - Stacking for space */
    header {
        padding: 10px 0 !important;
    }

    .logo img {
        height: 50px !important;
    }

    .impact-title {
        font-size: 22px !important;
    }

    /* 2. Navigation - No more overlapping */
    nav {
        margin-top: 10px !important;
        padding: 6px 15px !important;
        gap: 10px !important;
        width: 90% !important;
        justify-content: center !important;
    }

    nav a {
        font-size: 11px !important;
    }

    /* 3. THE MAGIC FIX: Teleport the button to the bottom corner */
    .theme-control {
        position: fixed !important;
        bottom: 25px !important;
        right: 20px !important;
        top: auto !important; /* This pulls it out of the header forever */
        z-index: 9999 !important;
    }

    .theme-action-btn {
        padding: 12px 20px !important;
        font-size: 10px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    }

    /* 4. CONTENT & IMAGE REPAIR */
    main {
        margin-top: 150px !important; /* Brings content back into view */
    }

    .impact-container {
        height: 250px !important; /* Mobile height for your cinematic image */
        width: 95% !important;
        margin: 0 auto !important;
    }
}