/* ==========================================================================
   CSS VARIABLES & THEMING
   ========================================================================== */
:root {
    --primary: #1e3a8a; /* Blue */
    --primary-light: #3b82f6;
    --accent: #f97316; /* Orange */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --header-text: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --radius: 12px;
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-alt: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --glass-bg: rgba(15, 23, 42, 0.8);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.section-padding { padding: 5rem 0; }
.accent { color: var(--accent); }

/* ==========================================================================
   HEADER & NAVIGATION (Strict Top: 0 rules)
   ========================================================================== */
.site-header {
    position: absolute; /* Overlay Hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0;
    color: var(--header-text);
}
.site-header.scrolled {
    position: fixed;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
    color: var(--text-main);
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 95%; max-width: 1400px; margin: 0 auto; }
.logo-text { font-size: 1.5rem; font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.5px; }

/* Desktop Nav */
.desktop-nav { display: none; }
@media (min-width: 1024px) {
    .desktop-nav { display: block; }
    .nav-list { display: flex; gap: 2rem; }
    .nav-link { font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.5rem 0; }
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--accent); transition: width 0.3s ease; }
    .nav-link:hover::after { width: 100%; }
    
    /* Mega Menu */
    .has-mega { position: static; }
    .mega-menu {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-main); color: var(--text-main);
        padding: 2.5rem 0; box-shadow: var(--shadow-soft);
        opacity: 0; visibility: hidden; transform: translateY(10px);
        transition: all 0.3s ease;
    }
    .has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .mega-grid { display: flex; justify-content: center; gap: 4rem; max-width: 1200px; margin: 0 auto; }
    .mega-column h4 { color: var(--primary); margin-bottom: 1rem; border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; }
    .mega-column li { margin-bottom: 0.8rem; }
    .mega-column a:hover { color: var(--accent); padding-left: 5px; }
}

.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn-icon { background: none; border: none; color: inherit; cursor: pointer; display: flex; align-items: center; }
.btn { padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; font-family: var(--font-body); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }
.scrolled .btn-outline { border-color: var(--primary); color: var(--primary); }
.scrolled .btn-outline:hover { background: var(--primary); color: white; }

/* Hamburger */
.hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; z-index: 10000; }
.hamburger .bar { width: 25px; height: 2px; background-color: currentColor; transition: 0.3s; }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-main); z-index: 9998;
    transform: translateX(100%); transition: transform 0.4s ease-in-out;
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu-overlay.active { transform: translateX(0); }
.mobile-nav ul { text-align: center; font-size: 2rem; font-family: var(--font-heading); font-weight: 700; }
.mobile-nav li { margin: 1.5rem 0; }

/* ==========================================================================
   HERO SECTIONS (Top 0 constraint)
   ========================================================================== */
.hero-slider, .inner-hero { position: relative; top: 0; margin: 0; padding: 0; width: 100%; }
.hero-slider { min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.inner-hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }

.slide-bg, .inner-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: -2;
    transform: scale(1.05); /* Pre-scale for Ken Burns */
}
.hero-slider .slide-bg { animation: kenBurns 20s infinite alternate linear; }
.slide-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4)); z-index: -1;
}

.slide-content, .inner-hero-content {
    width: 90%; max-width: 1200px; margin: 0 auto; color: white; z-index: 1; padding-top: 5rem;
}
.hero-title { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.1; margin: 1rem 0; }
.hero-desc { font-size: 1.2rem; max-width: 600px; margin-bottom: 2.5rem; opacity: 0.9; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

@keyframes kenBurns { 0% { transform: scale(1.05); } 100% { transform: scale(1.15); } }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse { width: 30px; height: 50px; border: 2px solid white; border-radius: 15px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; background: white; border-radius: 50%; animation: scrollDown 2s infinite; }
@keyframes scrollDown { 0% { top: 10px; opacity: 1; } 100% { top: 30px; opacity: 0; } }

/* ==========================================================================
   COMPONENTS (Cards, Stats)
   ========================================================================== */
.grid-2-col { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .grid-2-col { grid-template-columns: 1fr 1fr; } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-card { padding: 3rem 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card h3 { font-size: 3rem; color: var(--primary); margin-bottom: 0.5rem; }
.stat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.news-card {
    background: var(--bg-main); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-soft); transition: all 0.3s ease; border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-img { height: 200px; background-size: cover; background-position: center; }
.news-content { padding: 1.5rem; }
.news-date { font-size: 0.85rem; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.news-content h3 { font-size: 1.25rem; margin: 0.5rem 0; }
.read-more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--primary); }
.read-more:hover { color: var(--accent); }

.rounded-img { border-radius: var(--radius); }
.shadow-lg { box-shadow: var(--shadow-hover); }
.bg-alt { background-color: var(--bg-alt); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background-color: #0f172a; color: #cbd5e1; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
#back-to-top { background: var(--primary); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: background 0.3s ease; }
#back-to-top:hover { background: var(--accent); }

/* Utility Animations for GSAP */
.fade-up, .slide-up, .slide-up-delay, .slide-up-delay-2, .slide-up-delay-3 { opacity: 0; }
