/* --- Google Font Import (also in HTML) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Lato:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-blue: #105696;
    --primary-green: #57b74a;
    --dark-blue: #002d56;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --section-padding: 5rem 0;
    --container-width: 1280px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nav-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    /* Padding top to account for fixed navbar + topbar */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    color: var(--primary-blue);
}

/* --- Typography Updates --- */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
}

.kicker {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-green);
    color: var(--text-light);
    font-weight: 700;
    border-radius: 50px; /* Pill shape is more modern */
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 86, 150, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #f39c12;
    color: #000;
    text-align: center;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    font-size: 0.9rem;
    font-weight: bold;
}

.top-bar a { text-decoration: underline; }

/* --- Navigation (NEW) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    height: 100px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: top 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-blue);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* --- Hero Section (Restructured) --- */
.hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(87,183,74,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 20px 20px 0px var(--bg-light), 20px 20px 0px 2px var(--primary-green);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* --- Sections General --- */
section {
    padding: var(--section-padding);
}

/* --- About / What We Do --- */
.what-we-do {
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Year in Numbers (Modernized) --- */
.year-in-numbers {
    background-color: var(--dark-blue);
    color: var(--text-light);
    background-image: linear-gradient(rgba(0, 45, 86, 0.85), rgba(0, 45, 86, 0.85)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    text-align: center;
    padding: 6rem 0;
}

.year-in-numbers h2 { color: white; margin-bottom: 4rem; }

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.number-item .number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-green);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.number-item .label {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* --- Gallery (Grid Layout) --- */
.work-in-progress { background-color: var(--bg-light); }
.work-in-progress h2 { text-align: center; margin-bottom: 3rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Highlights (Asymmetric) --- */
.highlights-header {
    background-color: var(--primary-green);
    padding: 4rem 0 8rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    margin-bottom: -6rem;
    position: relative;
    z-index: 1;
}

.highlights-header h2 { color: white; }

.highlights-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.highlights-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- Mission & Principles --- */
.mission-principles {
    background-color: #fff;
    margin-top: 4rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.principles-box ol {
    padding-left: 1.5rem;
}

.principles-box li {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* --- Timeline --- */
.journey h2 { text-align: center; margin-bottom: 4rem; }
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 2rem;
}

/* The Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12.5%; /* Half of one column */
    right: 12.5%;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-item {
    text-align: center;
    position: relative;
    padding-top: 2rem;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(16, 86, 150, 0.1);
}

.timeline-item:last-child .timeline-dot {
    background: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(87, 183, 74, 0.2);
}

/* --- Sponsors Section --- */
.sponsors {
    background-color: #fff;
    padding: 4rem 0;
    text-align: center;
}

/* --- Help Options (Hover Cards) --- */
.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.help-card {
    position: relative;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    text-align: center;
    color: white;
    isolation: isolate;
}

.help-card h3 { color: white; font-size: 1.8rem; margin-bottom: 1rem; position: relative; z-index: 2;}
.help-card .btn { width: 100%; position: relative; z-index: 2; }

.help-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
}

.help-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    z-index: -1;
}

.help-card:hover img { transform: scale(1.1); }

/* --- Footer --- */
.footer {
    background-color: var(--dark-blue);
    color: rgba(255,255,255,0.8);
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.footer a { color: white; }
.footer h4 { color: white; }

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* --- Mobile Styles --- */
@media (max-width: 992px) {
    :root { --nav-height: 70px; }
    
    h1 { font-size: 2.5rem; }
    
    .hero-container, .split-layout, .mission-grid, .highlights-content, .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image { order: -1; } /* Image on top for mobile */
    
    /* Mobile Nav */
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: calc(var(--nav-height) + 35px);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active { transform: translateY(0); }
    
    .timeline {
        grid-template-columns: 1fr;
        padding-left: 2rem;
        border-left: 4px solid #e0e0e0;
    }
    
    .timeline::before { display: none; } /* Remove horizontal line */
    
    .timeline-dot {
        left: -2rem; /* Move to the vertical line */
        transform: translateX(-50%);
        top: 2rem;
    }
    
    .timeline-item {
        text-align: left;
        padding-left: 1.5rem;
        padding-top: 0;
        margin-bottom: 2rem;
    }
}