:root {
    --primary-deep: #002D62;
    --primary-navy: #0A3D6E;
    --accent-blue: #007BFF;
    --accent-light: #4DA3FF;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #5A6474;
    --text-light: #FFFFFF;
    --border-color: #E1E5EB;
    --shadow-sm: 0 2px 8px rgba(0, 45, 98, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 45, 98, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 45, 98, 0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated Large Logo */
.nav-logo {
    height: 80px; 
    width: auto;
    display: block;
    max-width: 250px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--primary-deep);
    transition: var(--transition);
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--text-light) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--text-light);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-deep);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-navy) 100%);
    color: var(--text-light);
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Badges */
.badge-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-highlight {
    display: inline-block;
    background: #FFD700; /* Gold */
    color: #002D62;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- SECTIONS --- */
section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-white {
    background: var(--bg-white);
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-navy) 100%);
    color: var(--text-light);
}

.section-cta {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-deep) 100%);
    color: var(--text-light);
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.85;
}

.section-dark .section-intro,
.section-cta .section-intro {
    opacity: 0.9;
}

/* --- MISSION GRID --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.mission-icon {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.mission-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-deep);
}

.mission-card p {
    color: var(--text-muted);
}

/* --- STATS & CHARTS --- */
.chart-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

    /* FIX FOR MOBILE: */
    position: relative;
    height: 400px; /* Default height for Desktop */
    width: 100%;
}

/* Add this Mobile Query at the bottom of your CSS file if not present */
@media (max-width: 768px) {
    .chart-container {
        height: 300px; /* Taller/Adjusted for mobile readability */
        padding: 1rem; /* Less padding to give the chart more space */
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.stat-card p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-card small {
    opacity: 0.75;
    font-size: 0.9rem;
}

/* --- FEATURES GRID --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-deep);
}

.feature p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- TEAM GRID (UPDATED) --- */
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.team-member {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);

    /* Flex sizing for 5 members */
    flex: 1 1 300px;
    max-width: 350px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 4px solid var(--accent-blue);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-deep);
}

.member-role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-affiliation {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CONTACT FORM --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* --- FOOTER --- */
footer {
    background: var(--primary-deep);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Updated Footer Logo */
.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    opacity: 0.8;
    max-width: 300px;
}

/* Contact Email Link */
.contact-email a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}
.contact-email a:hover {
    text-decoration: underline;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.6;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-legal-links {
    margin-bottom: 1rem;
}

.footer-legal-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-legal-links .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* --- LEGAL PAGES (Privacy Policy, Terms, etc.) --- */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: calc(100vh - 300px);
    background: var(--bg-light);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--primary-deep);
    margin-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-deep);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
}

/* --- ANIMATIONS --- */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.75rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    /* Mobile Logo Adjustment */
    .nav-logo { height: 50px; }

    .mobile-menu-btn { display: flex; }

    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        display: none;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }

    .hero { padding: 8rem 0 4rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero h1 br { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { grid-column: span 1; }
    .footer-brand p { margin: 0 auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }

    .hero h1 { font-size: 1.85rem; }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary { text-align: center; }

    .stat-card h3 { font-size: 2.25rem; }

    .contact-form { padding: 1.5rem; }
}
/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-blue);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-deep);
    transform: translateY(-5px);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1rem 2rem;
    box-shadow: none;
    z-index: 1000;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-top: 1px solid var(--border-color);
    transform: translateY(100%);
}

.cookie-banner.show {
    transform: translateY(0);
    box-shadow: 0 -4px 20px rgba(0, 45, 98, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
