/* styles.css */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
}

header.hero-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
}

nav {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

.menu-toggle {
    display: none;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background: url('./images/banner.jpg') no-repeat center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.5) 0.1px,
        transparent 0.5px
    );
    background-size: 12px 12px;
}

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

.hero-logo {
    width: 137px;
    height: 105px;
    margin: 0 auto 20px;
    display: block;
}

.hero h1 {
    font-size: 3em;
    margin: 0;
}

.hero p {
    font-size: 1.2em;
}

.date {
    font-weight: bold;
}

.buttons {
    margin: 20px 0;
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background-color: #f80;
}

.primary {
    background-color: #CB1F14;
    color: #fff;
}

.secondary {
    background-color: #CB1F14;
    color: #fff;
}

.countdown {
    margin-top: 20px;
    color: #fff;
}

.countdown p {
    font-size: 0.8em;
    text-transform: uppercase;
}

#countdown-timer {
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.content-container {
    max-width: 1136px;
    margin: 0 auto;
}

.glance {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.glance h2 {
    margin-bottom: 30px;
}

.glance-items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.glance-item {
    padding: 20px;
    width: 248px;
}

.glance-item h3 {
    font-size: 2em;
    color: #f80;
}

.separator {
    width: 2px;
    height: 100px;
    background-color: #f80;
    align-self: center;
}

.experience {
    background: linear-gradient(to bottom, #fff8e1, #ffe4b5);
    padding: 50px 20px;
    text-align: center;
}

.experience h2 {
    margin-bottom: 30px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.exp-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.exp-item p {
    margin-top: 10px;
    font-weight: bold;
}

.contest {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.contest h2 {
    margin-bottom: 30px;
}

.contest-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.contest-grid a {
    text-decoration: none;
    color: #333;
}

.contest-grid p {
    color: #CB1F14;
}

.contest-grid a:hover p {
    color: #f80;
}

.contest-grid .exp-item {
    width: 300px;
}

.contest-grid .exp-item img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about {
    background-color: #fffaf0;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    background-image: url('./images/left.png'), url('./images/right.png');
    background-repeat: no-repeat;
    background-position: calc(50% - 568px + 20px) 10%, calc(50% + 568px - 20px) 90%;
    background-size: 80px auto, 80px auto;
}

.about h2 {
    color: #f80;
}

.about p {
    max-width: 800px;
    margin: 20px auto;
}

.sponsors-vendors {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.sv-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.sv-item {
    padding: 20px;
    width: 300px;
}

.sponsors {
    background-color: transparent;
}

.vendors {
    background-color: transparent;
}

.sv-item h3 {
    color: #CB1F14;
}

.volunteer {
    background-color: #fffaf0;
    padding: 50px 20px;
    text-align: center;
}

.volunteer-content {
    max-width: 1136px;
    margin: 0 auto;
}

.volunteer h2 {
    margin-bottom: 30px;
    color: #f80;
}

.volunteer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.volunteer-text {
    flex: 1;
    max-width: 550px;
    text-align: center;
}

.volunteer-text h3 {
    margin-bottom: 15px;
}

.volunteer-text p {
    margin: 20px 0;
}


.volunteer-image {
    flex: 0 0 auto;
}

.volunteer-image img {
    width: 456px;
    height: 200px;
    border-radius: 6px;
}

.media-sponsors {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.media-sponsors h2 {
    margin-bottom: 30px;
    color: #f80;
}

.sponsor-carousel {
    overflow: hidden;
    width: 100%;
}

.sponsor-track {
    display: flex;
    width: calc(200px * 10); /* 5 sponsors + 5 duplicates */
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.sponsor-track:hover {
    animation-play-state: paused;
}

.sponsor-item {
    flex: 0 0 200px;
    text-align: center;
    padding: 10px;
}

.sponsor-item img {
    height: 100px;
    width: auto;
    margin-bottom: 10px;
}

.sponsor-item p {
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 5)); /* Move by 5 sponsors */
    }
}

.contact {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1136px;
}

.map {
    width: 400px;
    max-width: 400px;
}

.map iframe {
    width: 100%;
    max-width: 400px;
    height: 200px;
}

.map-button {
    text-align: left;
    margin-top: 10px;
}

.info {
    max-width: calc((1136px - 300px - 60px) / 2);
    text-align: left;
}

.social-media {
    max-width: calc((1136px - 300px - 60px) / 2);
    text-align: left;
}

.social-media h3 {
    margin-bottom: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.social-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.social-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    order: 1;
}

.social-item span {
    font-size: 1em;
    font-weight: bold;
    order: 2;
}

.social-item a:hover {
    color: #f80;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.highlight {
    font-style: italic;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

.popup-content h2 {
    margin-bottom: 15px;
    color: #f80;
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-btn {
    padding: 10px;
    background-color: #CB1F14;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}

.popup-btn:hover {
    background-color: #f80;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #f80;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        justify-content: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }

    .hero {
        padding: 100px 10px 50px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero-logo {
        width: 120px;
        height: 88px;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .glance-items {
        flex-direction: column;
        align-items: center;
    }

    .separator {
        display: none;
    }

    .contest-grid {
        flex-direction: column;
        align-items: center;
    }

    .sv-grid {
        flex-direction: column;
        align-items: center;
    }

    .volunteer-grid {
        flex-direction: column;
        align-items: center;
    }

    .volunteer-text {
        max-width: 100%;
        text-align: center;
    }

    .volunteer-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .sponsor-track {
        width: calc(150px * 10); /* 5 sponsors + 5 duplicates */
        animation: scroll-mobile 20s linear infinite;
    }

    .sponsor-item {
        flex: 0 0 150px;
    }

    .sponsor-item img {
        width: 100px;
    }

    .sponsor-item p {
        font-size: 0.9em;
    }

    @keyframes scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 5)); /* Move by 5 sponsors */
        }
    }

    .about {
        background-position: 20px 10%, calc(100% - 20px) 90%;
        background-size: 100px auto, 100px auto;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid .map,
    .contact-grid .info,
    .contact-grid .social-media {
        flex: 0 0 100%;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-grid .info {
        text-align: left;
    }

    .contact-grid .social-media {
        text-align: left;
    }

    .social-item {
        justify-content: flex-start;
    }

    .map iframe {
        max-width: 300px;
        margin: 0 auto;
    }

    .popup-content {
        width: 80%;
    }
}