/* --- Global Styles & Variables --- */
:root {
    --primary-red: #FF4757; /* Brighter Red */
    --accent-blue: #A8DADC; /* Friendly Light Blue */
    --friendly-blue: #457B9D; /* Darker Friendly Blue */
    --text-dark: #2f3542;
    --bg-light: #f1f2f6;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background: url('../img/background.png') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 800;
}

h2 { 
    font-size: 3rem; 
    text-align: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
h2 .fa-solid, h2 .fab { color: var(--accent-blue); }

.subtitle { 
    text-align: center; 
    max-width: 600px; 
    margin: -1rem auto 2.5rem; 
    font-size: 1.15rem; 
    color: #57606f; 
}

a { 
    text-decoration: none; 
    color: var(--primary-red); 
    font-weight: 600;
}

/* --- Floating Content Wrapper --- */
.content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    margin: 3rem auto;
    padding: 4rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 1200px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.content-wrapper > section:not(:last-child) {
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 2px dashed var(--accent-blue);
}


/* --- Header & Navigation --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.logo img { 
    max-height: 90px; 
    transition: var(--transition);
}
.logo:hover img { transform: scale(1.05); }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0 auto; /* Center the nav links */
}
.nav-links li { padding: 0 1rem; }
.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    border-radius: 5px;
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-ticket-button {
    background: var(--primary-red);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
}
.nav-ticket-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.5);
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    font-size: 1.8rem;
    color: var(--text-dark);
}

.mobile-nav-links { display: none; }


/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden; /* Ensures video doesn't spill out */
    padding-top: 110px; /* Pushes content below the fixed header */
    margin-top: 60px; /* Pushes the entire video section down */
    box-sizing: border-box; /* Ensures padding is included in height calculation */
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover; /* This makes the video cover the area */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 53, 87, 0.5); /* Semi-transparent overlay */
    z-index: -1;
}

.hero-content {
    z-index: 1; /* Make sure content is on top of the overlay */
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 0rem;
    color: #fff;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
    word-break: break-word;
}
.hero-content .hero-location {
    font-size: 2.5rem;
    color: var(--accent-blue);
    font-family: var(--font-body);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin: 0 0 1rem 0;
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 2.2rem;
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.time-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 100px;
}

.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* --- General Components --- */
.cta-button, .cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-red);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}
.cta-button:hover {
    background-color: #c42c38;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.5);
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    box-shadow: none;
}
.cta-button-secondary:hover {
    background: var(--primary-red);
    color: #fff;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.about-location h3 { font-size: 1.5rem; }
.about-location h4 { font-size: 1rem; margin-bottom: 1rem; color: #555; font-weight: 400;}

.event-details {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 5px solid var(--accent-blue);
    border-radius: var(--border-radius);
}
.event-details p { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }

/* --- Slideshow --- */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.slide { display: none; }
.slide img { width: 100%; vertical-align: middle; }
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1rem 1.2rem;
    margin-top: -2rem;
    color: white;
    font-size: 1.5rem;
    transition: 0.6s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    height: 4rem;
    width: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.prev { left: 1rem; }
.next { right: 1rem; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* --- Forms & Contest --- */
.form-section { max-width: 700px; margin: auto; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

.radio-group { display: flex; align-items: center; flex-wrap: wrap; }
.radio-group > label { margin-right: 2rem; }
.radio-group div { display: flex; gap: 1rem; }
.radio-group div label { font-weight: 400;}

.file-upload label {
    background: var(--bg-light);
    padding: 0.9rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: block;
    text-align: center;
    border: 2px dashed #ccc;
}
.file-upload input { display: none; }

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
    font-weight: 600;
}
.form-message.success { background-color: #d1fae5; color: #065f46; }
.form-message.error { background-color: #fee2e2; color: #991b1b; }

/* ADDED THIS SECTION */
.progress-bar-container {
    display: none; /* Hidden by default */
}
.progress-bar-container.visible {
    display: block; /* Class to show it */
}

.contest-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.contest-details p {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contest-details p .fa-solid { font-size: 1.5rem; color: var(--primary-red); }

/* --- Volunteer Tabs --- */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    background: var(--bg-light);
    border-radius: 50px;
    padding: 0.5rem;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.tab-link {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 50px;
    color: var(--text-dark);
}
.tab-link.active {
    background-color: var(--primary-red);
    color: #fff;
    box-shadow: var(--box-shadow);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Sponsors --- */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.sponsor-grid img {
    max-height: 70px;
    max-width: 150px;
    transition: var(--transition);
}
.sponsor-grid img:hover {
    transform: scale(1.1);
}

.sponsorship-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.tier {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-blue);
}
.tier h4 {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.tier h4 span { color: var(--primary-red); }

#sponsors hr { margin: 3.5rem 0; border: 0; border-top: 1px solid #eee; }

/* --- Instagram & Donate --- */
.instagram-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.instagram-media {
    margin: 0 auto !important; /* Important to override inline styles */
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow) !important;
}

.donation-cta {
    background-color: var(--friendly-blue);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    max-width: 1200px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.donation-cta .donation-logo {
    max-height: 120px;
    margin-bottom: 1rem;
}
.donation-cta h2, .donation-cta p { color: #fff; }

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: #ccc;
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
}
footer a { color: var(--accent-blue); }

/* --- Animations --- */
.bounce-in { animation: bounceIn 1s ease-out; }
.fade-in { animation: fadeIn 1.5s ease-in-out; }

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links { display: none; } /* Hide desktop nav */

    .mobile-nav-links {
        display: flex; /* Show mobile nav */
        position: fixed;
        list-style: none;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 0;
    }
    .mobile-nav-links.active { transform: translateY(0); }
    .mobile-nav-links li { padding: 1.5rem 0; }
    .mobile-nav-links a { font-size: 2rem; }
    .mobile-nav-links .mobile-only { display: block; margin-top: 2rem; }
    .mobile-nav-links .mobile-only .nav-ticket-button { font-size: 1.5rem; }


    .hamburger { display: block; z-index: 1001; }
    .hamburger .fa-bars { display: none; } /* Hide original HTML icon */
    .hamburger:not(.active)::before { content: "\f0c9"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
    .hamburger.active::before { content: "\f00d"; font-family: "Font Awesome 6 Free"; font-weight: 900; }

    .header-actions .nav-ticket-button { display: none; }

    #hero {
        padding-top: 120px;
    }
    .hero-content h1 { font-size: 3.2rem; }
    .hero-content h2 { font-size: 1.8rem; }
    
    .about-grid { grid-template-columns: 1fr; }
    .content-wrapper { margin: 1.5rem; padding: 3rem 0; width: auto; }
}

@media (max-width: 576px) {
    .container { padding: 0 1rem; }
    h2 { 
        font-size: 2rem;
        gap: 0.5rem;
        line-height: 1.2;
        flex-direction: column;
        align-items: center;
    }
    #hero {
        padding-top: 100px;
        margin-top: 50px;
    }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .hero-location { font-size: 2rem; }
    .hero-content h2 { font-size: 1.5rem; }
    #countdown { flex-wrap: wrap; gap: 1rem; }
    .time-box { flex-basis: 45%; padding: 0.8rem; }
    .time-box span { font-size: 2rem; }

    .tabs { flex-direction: column; border-radius: var(--border-radius); }
    .tab-link { border-radius: var(--border-radius); }
    
    .radio-group { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    
    .cta-button { padding: 0.8rem 1.8rem; font-size: 1rem; }
}