/* --- VARIABLES & RESET --- */
:root {
    --primary-red: #D32F2F;
    --dark-red: #8B0000;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --light-gray: #F4F4F4;
    --glass-nav: rgba(10, 10, 10, 0.95);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Teko', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: var(--glass-nav);
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.4));
}

.team-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--white);
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: 0.3s;
    padding: 5px 2px;
    border-bottom: 2px solid transparent; /* Reserve space for active underline */
}

/* ACTIVE PAGE HIGHLIGHT */
.nav-links a.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

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

/* CONTACT US BUTTON STYLE */
.nav-contact-btn {
    border: 1px solid var(--primary-red);
    padding: 6px 15px !important; /* Overriding standard nav padding */
    border-radius: 4px;
}

.nav-contact-btn:hover, 
.nav-contact-btn.active {
    background-color: var(--primary-red);
    color: white !important;
}

/* --- HERO SECTION --- */
/* --- HERO SECTION WITH CAROUSEL --- */
.hero {
    position: relative;
    height: 70vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Keeps slides contained */
}

/* Background Slideshow Container */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 15s infinite; /* 15s total for 3 images */
    
    /* THE MUTED EFFECT: Dark overlay + Lower brightness/saturation */
    filter: brightness(0.4) grayscale(30%); 
}

/* Overlay to ensure text is readable */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 2;
}

/* Stagger the animation for each slide */
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

/* The Fade Animation */
@keyframes heroFade {
    0% { opacity: 0; }
    10% { opacity: 1; }  /* Fade in */
    33% { opacity: 1; }  /* Stay visible */
    43% { opacity: 0; }  /* Fade out */
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3; /* Keeps text above the slides */
    text-align: center;
    color: var(--white);
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
}

.sub-title {
    font-size: 2rem;
    letter-spacing: 8px;
    color: var(--primary-red);
    margin-top: -10px;
}

/* --- SCHEDULE PAGE TABLE --- */
.section-container {
    padding: 40px 5%;
    min-height: 60vh;
    text-align: center;
}

.section-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-top: 10px;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}

.table-wrapper {
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: var(--black);
    color: var(--white);
    padding: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    text-align: center;
}

tr:nth-child(even) {
    background: var(--light-gray);
}

/* --- SPONSOR CAROUSEL --- */
.sponsors-section {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.sponsors-section h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

/* --- UPDATED SPONSOR CAROUSEL (LARGER LOGOS) --- */
.slider {
    height: 150px; /* Increased from 100px */
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    display: flex;
    /* Formula: Slide width (300px) * Total number of slides (12) */
    width: calc(300px * 12); 
    animation: scroll 35s linear infinite;
}

.slide {
    height: 150px; /* Match slider height */
    width: 300px;  /* Increased from 250px to give logos more room */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
}

.slide img {
    max-width: 100%;
    max-height: 120px; /* Increased from 80px to make them physically larger */
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.4s;
    object-fit: contain; /* Ensures logos don't stretch */
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Update the animation to match the new slide width */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 6)); } /* Must be half the total track width */
}

/* --- FOOTER --- */
footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-top: 5px solid var(--primary-red);
}

.footer-logo {
    height: 70px;
    margin-bottom: 15px;
}

/* --- MOBILE RESPONSIVENESS --- */
/* --- UPDATED MOBILE NAVIGATION LOGIC --- */

/* Hide the checkbox itself */
.menu-toggle {
    display: none;
}

/* The Hamburger Icon (the 3 bars) */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

/* --- MOBILE STYLES (Phones) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger on mobile */
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Drops down right below nav bar */
        left: 0;
        width: 100%;
        background: var(--glass-nav);
        border-bottom: 3px solid var(--primary-red);
        max-height: 0; /* Starts hidden */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        padding: 0;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-bottom: none; /* Clean up active underline for mobile */
    }

    /* WHEN CHECKBOX IS CHECKED, SHOW MENU */
    .menu-toggle:checked ~ .nav-links {
        max-height: 500px; /* Expands the menu */
    }

    /* ANIMATE HAMBURGER TO 'X' WHEN OPEN */
    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Adjust Hero/Text for mobile */
    .main-title { font-size: 2.5rem; }
    .sub-title { font-size: 1rem; letter-spacing: 4px; }
    .section-header { font-size: 1.8rem; }
}

/* --- CONTACT PAGE STYLES --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    text-align: left;
}

.contact-info h3, .social-links-container h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-red);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.contact-info p {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-red);
    margin-right: 10px;
    width: 25px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-transform: uppercase;
}

.instagram { background: #E1306C; }
.twitter { background: #000000; }
.facebook { background: #4267B2; }

.social-btn i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Adjustments for Contact */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack them on top of each other */
        text-align: center;
    }
}
