/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #8f2b40; /* Maroon/Cranberry */
    --dark-color: #1c1c1c;    /* Dark Gray/Black */
    --white-color: #ffffff;
    --bg-gray: #f0f0f0;
}

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

html {
    scroll-behavior: smooth;
    height: 100%; /* Ensure html takes full height */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    
    /* --- STICKY FOOTER FIX --- */
    min-height: 100vh; /* Minimum height is 100% of viewport */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
}

/* --- NAVIGATION --- */
header {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%; /* Ensure nav spans width */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo a {
    color: var(--white-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
    transition: 0.4s;
}

/* --- HERO SECTIONS --- */
.hero {
    /* Cloudflare Background Image */
    background: linear-gradient(rgba(28, 28, 28, 0.85), rgba(28, 28, 28, 0.7)), 
                url('https://imagedelivery.net/CaN6tPHwuX-NOcXEjJG0lg/25e00e83-ed49-4f42-8e9f-d5cb04cdc700/public'); 
    background-size: cover; 
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
    
    /* Default height for Home Page */
    height: 90vh; 
    width: 100%;
}

/* Smaller Hero for Sub-pages */
.hero.small {
    height: 50vh;
    min-height: 300px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- GENERAL SECTIONS --- */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure section takes width */
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--dark-color);
    margin-top: 5px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
    align-items: center;
}

.flex-item {
    flex: 1;
    min-width: 300px;
}

/* Used for "About" section image */
.feature-image {
    width: 100%;
    height: auto;
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: block;
}

/* --- CARDS (Startup Model) --- */
.card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background-color: var(--bg-gray);
    padding: 30px;
    flex: 1;
    min-width: 250px;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* --- STATS BANNER --- */
.stats-banner {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 20px;
    text-align: center;
    width: 100%;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item {
    margin: 20px;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffcc00; /* Gold */
}

/* --- SPONSOR GRID (Updated with your custom styles) --- */
.sponsors-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.sponsor-logo {
    max-width: 250px;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.7;
    object-fit: contain; /* Ensures logos fit nicely */
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- PHOTO GALLERY (NUCLEAR FIX) --- */
.gallery-grid {
    column-count: 4; 
    column-gap: 15px; 
    padding: 10px;
}

.gallery-item {
    height: auto !important; 
    min-height: 0 !important; 
    break-inside: avoid; 
    margin-bottom: 15px; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #ccc; 
    display: inline-block; 
    width: 100%;
}

.gallery-item img {
    width: 100% !important;
    height: auto !important; 
    display: block; 
    object-fit: cover; 
    transition: transform 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- LIGHTBOX (ENLARGED IMAGES) --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform:scale(0.9); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10000;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
}


/* --- FOOTER & ANIMATIONS --- */
footer {
    background-color: var(--dark-color);
    color: #999;
    padding: 50px 20px;
    text-align: center;
    
    /* --- STICKY FOOTER PART 2 --- */
    margin-top: auto; /* Pushes footer to bottom */
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

.regional-hub {
    background-color: var(--bg-gray);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--dark-color);
        text-align: center;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        margin: 15px 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .gallery-grid {
        column-count: 2;
    }
    
    /* Sponsors Grid Mobile Fix */
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
    .sponsor-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}