/* 
   SAFALTA SETU: THE PATRIOTIC ENGINE (FINAL STABLE)
   Design System: Deep Tricolor, High Visibility, No Blend Modes
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

:root {
    /* --- DARK THEME (Deep Jungle) --- */
    /* User asked for "background green colour green" - we give a Premium Deep Green/Black */
    --bg-deep: #020804;
    --bg-surface: #05140a;
    --text-main: #ffffff;
    --text-muted: #d0d0d0;
    /* Brighter for readability */

    --glass-bg: rgba(5, 20, 10, 0.85);
    --glass-border: rgba(255, 153, 51, 0.15);
    /* Saffron tint border */
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* VIBRANT INDIAN COLORS */
    --saffron-glow: #FF9933;
    --green-glow: #138808;
    --blue-chakra: #000080;
    /* Navy for box shadows/accents only, NO TEXT */

    --nav-height: 80px;
    --container-width: 1200px;
}

/* --- LIGHT MODE (Green-Cream) --- */
[data-theme="light"] {
    --bg-deep: #FDFBF7;
    /* Requested "Tinted Cream" */
    --bg-surface: #FFFFFF;
    --text-main: #0a1f0a;
    --text-muted: #405040;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(19, 136, 8, 0.15);
    --glass-highlight: rgba(255, 153, 51, 0.1);

    --saffron-glow: #CC5500;
    --green-glow: #006400;
}

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

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.5s ease;
}

/* --- TYPOGRAPHY (Patriotic) --- */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Fix: Text Gradient showing as rectangle */
.tricolor-text {
    background: linear-gradient(90deg, var(--saffron-glow), #ffffff, var(--green-glow));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

/* FINAL FIX: Light mode uses SOLID text to avoid "Rectangle" bugs */
[data-theme="light"] .tricolor-text {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: initial;
    color: #000000;
    /* Crisp Black */
}

.display-text {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* --- LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
}

.center-text {
    text-align: center;
}

.grid {
    display: grid;
    gap: 40px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo-container {
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    height: 50px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

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

.theme-switch {
    background: none;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}

/* --- STREAKS (THE FIX) --- */
/* No Blend Modes. Explicit coloring. */
.light-streak {
    position: fixed;
    /* Fixed so they stay on screen */
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    /* Behind content */
    opacity: 0.6;
    pointer-events: none;
}

/* Dark Mode Streaks */
.streak-saffron {
    top: -200px;
    right: -200px;
    background: var(--saffron-glow);
}

.streak-green {
    bottom: -200px;
    left: -200px;
    background: var(--green-glow);
}

/* --- CARDS & BOXES --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--saffron-glow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Partners Box Specific - NO OUTLINES */
.partner-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle fill */
    border: none;
    /* KEY FIX */
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

[data-theme="light"] .partner-box {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

/* --- BUTTONS (Fixed: No Glow) --- */
.btn-cinema {
    background: var(--saffron-glow);
    /* Solid Saffron */
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    /* REMOVED GLOW per user request */
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-cinema:hover {
    filter: brightness(1.05);
    background: #FF9933;
}

.btn-ghost {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
}

/* --- UTILS --- */
.footer-minimal {
    border-top: 1px solid var(--glass-border);
    padding: 50px 0;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-surface);
}


/* --- MOBILE RESPONSIVENESS (The Fix) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    /* Hide Desktop Menu */
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        height: 300px;
        /* Open Drawer Height */
    }

    /* Mobile Hamburger Icon (Visual only, JS triggers it) */
    .mobile-menu-btn {
        display: block !important;
        font-size: 1.5rem;
        color: var(--text-main);
        cursor: pointer;
    }

    /* Stack Hero Buttons */
    .hero-btn-group a {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
        text-align: center;
    }

    /* Adjust Headlines */
    .display-text {
        font-size: 2.5rem;
    }
}

/* Base Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
}


/* --- ADVANCED ANIMATIONS ("THE SQUADRON" - REALISTIC) --- */

/* Base Jet Class - IMPROVED SHAPE */
.jet {
    position: fixed;
    width: 0;
    height: 0;
    /* Main Delta Wing Body */
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 80px solid var(--text-muted);

    z-index: 50;
    opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.jet::after {
    /* Tail Fin */
    content: '';
    position: absolute;
    top: 75px;
    left: -8px;
    width: 16px;
    height: 20px;
    background: var(--text-muted);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.jet-1 {
    top: 20%;
    left: -100px;
    /* LINEAR ease for constant speed */
    animation: squadronFly 4s linear forwards;
    transform: rotate(90deg) scale(0.8);
    animation-delay: 0.2s;
}

.jet-2 {
    top: 15%;
    left: -150px;
    animation: squadronFly 4s linear forwards;
    transform: rotate(90deg) scale(0.6);
    opacity: 0.5;
    animation-delay: 0.4s;
}

.jet-3 {
    top: 25%;
    left: -150px;
    animation: squadronFly 4s linear forwards;
    transform: rotate(90deg) scale(0.6);
    opacity: 0.5;
    animation-delay: 0.6s;
}

@keyframes squadronFly {
    0% {
        left: -150px;
        transform: rotate(90deg) scale(var(--scale, 1));
    }

    100% {
        left: 120vw;
        transform: rotate(90deg) scale(var(--scale, 1));
    }
}




/* --- NAVAL FLEET (REALISTIC SHAPES) --- */
.navy-fleet-container {
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* 1. AIRCRAFT CARRIER (The Big One) */
.carrier {
    position: absolute;
    bottom: 10px;
    right: -300px;
    width: 280px;
    height: 50px;
    background: var(--text-muted);
    opacity: 0.2;
    z-index: 2;
    animation: fleetSail 20s linear infinite;
    /* Hull Shape */
    clip-path: polygon(5% 100%, 100% 100%, 95% 40%, 0% 40%);
}

.carrier::before {
    /* Flight Deck / Tower */
    content: '';
    position: absolute;
    right: 40px;
    bottom: 30px;
    /* Tower position */
    width: 40px;
    height: 25px;
    background: var(--text-muted);
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
}

.carrier::after {
    /* Runway details (Subtle) */
    content: '';
    position: absolute;
    top: 22px;
    left: 10px;
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* 2. DESTROYER (Escorts) */
.destroyer {
    position: absolute;
    bottom: 5px;
    width: 120px;
    height: 35px;
    background: var(--text-muted);
    opacity: 0.15;
    z-index: 1;
    /* Sharp Hull with Radar Tower */
    clip-path: polygon(20% 100%, 90% 100%, 100% 30%, 40% 30%, 35% 0%, 25% 30%, 0% 30%);
}

.destroyer-1 {
    right: -450px;
    /* Behind Carrier */
    animation: fleetSail 20s linear infinite;
    animation-delay: 0.2s;
    /* Slight offset parallax */
}

.destroyer-2 {
    right: -150px;
    /* In front of Carrier */
    transform: scale(0.8);
    animation: fleetSail 20s linear infinite;
    animation-delay: -2s;
}

@keyframes fleetSail {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-120vw);
    }

    /* Move Left across screen */
}

/* ANIMATION CLASSES */
.reveal-text {
    opacity: 1;
    transform: none;
}

/* Simplified for stability for now */