:root {
    /* --- Light Mode (Default) --- */
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --primary: #0984e3;
    --accent: #e17055;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #eee;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);
}

/* --- 1. Dark Mode Override --- */
[data-theme="dark"] {
    --bg-color: #050505;
    --card-bg: #111111;
    --primary: #4fa3ff;
    --accent: #ff8e72;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.5);
    --nav-bg: rgba(5, 5, 5, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- 4. Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}
/* --- Cursor Aura (Fixed) --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    /* Soft Blue Gradient */
    background: radial-gradient(circle, rgba(9, 132, 227, 0.2), transparent 70%);
    border-radius: 50%;
    
    /* CRITICAL FIXES: */
    pointer-events: none; /* Allows you to click through it */
    z-index: 999;         /* Brings it ON TOP of everything */
    transform: translate(-50%, -50%);
    
    /* Optional: Makes it blend coolly with text */
    mix-blend-mode: multiply; 
    transition: width 0.2s, height 0.2s;
}

/* Dark Mode Adjustment for Glow */
[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(9, 132, 227, 0.25), transparent 70%);
    mix-blend-mode: screen; /* Glows in dark mode */
}

/* --- Navigation & Actions --- */
.glass-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(128,128,128,0.1);
    transition: background 0.3s;
}

.logo-img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* New Nav Actions (Buttons) */
.nav-actions { display: flex; align-items: center; gap: 15px; }

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.8rem;
    transition: 0.3s;
    display: flex; justify-content: center; align-items: center;
}

.icon-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.btn-primary-nav {
    background: var(--text-main); color: white !important;
    padding: 10px 24px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s;
}
.btn-primary-nav:hover { background: var(--primary); transform: translateY(-2px); }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 5% 50px 5%;
    position: relative; overflow: hidden;
}
/* Hero image / logo size control – BIGGER */
.logo-orb img {
    width: 150%;         /* fill the orb properly */
    max-width: 460px;    /* strong desktop presence */
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-orb img {
        width: 70%;
        max-width: 220px;
    }
}



.big-bg-text {
    position: absolute; right: -20px; bottom: -50px;
    font-size: 15vw; font-weight: 900; color: var(--text-main);
    opacity: 0.03; z-index: -1; user-select: none;
}

.hero-content { max-width: 700px; z-index: 2; }
.badge { background: rgba(9, 132, 227, 0.1); color: var(--primary); padding: 8px 16px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 25px; letter-spacing: 2px; }
.hero h1 { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 25px; font-weight: 800; color: var(--text-main); }
.glitch-text { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 500px; margin-bottom: 40px; line-height: 1.6; }

.cta-group { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #74b9ff); color: white;
    padding: 16px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(9, 132, 227, 0.3); transition: 0.4s;
}
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(9, 132, 227, 0.4); }
.btn-text { color: var(--text-main); text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-text:hover { color: var(--primary); }

/* --- Marquee --- */
.marquee-strip {
    background: var(--text-main); color: var(--bg-color);
    padding: 15px 0; overflow: hidden; width: 110%; margin-left: -5%;
    transform: rotate(-2deg); border-top: 4px solid var(--accent); border-bottom: 4px solid var(--primary);
    position: relative; z-index: 5; margin-bottom: -30px;
}
.marquee-content { display: flex; gap: 30px; white-space: nowrap; animation: scroll 20s linear infinite; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Stats --- */
.stats-container { display: flex; justify-content: space-around; padding: 6rem 10% 4rem 10%; background: var(--bg-color); border-bottom: 1px solid var(--border-color); }
.stat-item { text-align: center; }
.stat-item h2 { font-size: 3.5rem; font-weight: 900; color: var(--primary); }
.stat-item h2::after { content: '+'; color: var(--accent); font-size: 2rem; vertical-align: super; }
.stat-item p { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

/* =========================================
   --- Videos (Clean Premium Grid) --- 
   ========================================= */
.videos-section {
    padding: 6rem 10%; /* Standard padding */
    position: relative;
    background: var(--bg-color);
}

.section-title {
    font-size: 3rem; margin-bottom: 4rem; text-align: center;
    font-weight: 800; color: var(--text-main);
}
.highlight { color: var(--primary); }

/* The Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Auto-responsive columns */
    gap: 3rem;
    width: 100%;
}

/* The Card Style */
.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s;
    
    /* Start slightly hidden for scroll animation */
    opacity: 0;
    transform: translateY(30px);
}

/* Hover Effects (The "Premium" feel) */
.video-card:hover {
    transform: translateY(-10px); /* Lifts up */
    box-shadow: 0 20px 40px rgba(9, 132, 227, 0.15);
    border-color: var(--primary);
}

/* Scroll Animation Class (Added by JS) */
.video-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Card Content */
.thumbnail { position: relative; height: 200px; overflow: hidden; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(9, 132, 227, 0.8); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s;
}
.play-overlay i { font-size: 3rem; color: white; }
.video-card:hover .thumbnail img { transform: scale(1.1); }
.video-card:hover .play-overlay { opacity: 1; }

.card-info { padding: 1.5rem; }
.card-tag { font-size: 0.7rem; color: var(--accent); font-weight: 800; text-transform: uppercase; background: rgba(225, 112, 85, 0.1); padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 10px; }
.card-info h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-main); }
.card-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }
.watch-link { color: var(--primary); font-weight: 800; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; }
.watch-link:hover { letter-spacing: 1px; color: var(--accent); }

/* Footer (Keep this below videos) */
footer { text-align: center; padding: 4rem; border-top: 1px solid var(--border-color); color: var(--text-muted); margin-top: 5rem; }
.socials a { color: var(--text-main); margin: 0 10px; font-size: 1.4rem; transition: 0.3s; }
.socials a:hover { color: var(--primary); }

/* Mobile */
@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; } /* 1 column on mobile */
}

/* =========================================
   --- MISSION PAGE STYLES --- 
   ========================================= */

/* Compact Hero for Mission Page */
.mission-hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.mission-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-main);
}

/* Story Section (Zig-Zag) */
.story-section { padding: 4rem 10%; }

.story-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6rem;
    gap: 4rem;
}

.story-row.reverse { flex-direction: row-reverse; }

.story-text { flex: 1; }

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Abstract Visuals */
.story-visual {
    flex: 1;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.story-visual span {
    font-size: 1rem;
    margin-top: 1rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

/* Values Grid */
.values-section { padding: 4rem 10%; background: var(--bg-color); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    position: relative; /* Reset position for grid */
    transform: none; /* Remove init transform */
    opacity: 0; /* Hidden for animation */
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
}

.value-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Quote Section */
.quote-section {
    padding: 6rem 10%;
    text-align: center;
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.1), rgba(225, 112, 85, 0.1));
    margin: 4rem 5%;
    border-radius: 30px;
}

blockquote {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    font-style: italic;
}

cite {
    display: block;
    margin-top: 20px;
    font-size: 1rem;
    color: var(--accent);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mission-hero h1 { font-size: 2.5rem; }
    .story-row { flex-direction: column; text-align: center; }
    .story-row.reverse { flex-direction: column; }
    .story-visual { width: 100%; height: 200px; }
}

/* Active Link Indicator */
.nav-links a.active-link {
    color: var(--primary);
}

/* --- Inline Hero Logo --- */
.hero-logo-inline {
    height: 1em; /* Matches the height of the H1 text dynamically */
    width: auto;
    vertical-align: middle; /*Aligns nicely with text center */
    margin-left: 15px; /* Space between text and logo */
    margin-bottom: 10px; /* Slight adjustment for alignment */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); /* Subtle pop */
    transition: transform 0.3s ease;
}

/* Optional: A little hover effect on the inline logo */
.hero-logo-inline:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile adjustment to prevent it being too massive */
@media (max-width: 768px) {
    .hero-logo-inline {
        margin-left: 10px;
        margin-bottom: 5px;
    }
}