/* Mengimpor font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

/* Pengaturan dasar untuk seluruh halaman */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Semua gambar & video responsif */
img, video {
    max-width: 100%;
    height: auto;
}

/* ===== STYLE INTRO FUTURISTIK ===== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    visibility: visible;
    opacity: 1;
}

.intro-content {
    text-align: center;
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
}

.intro-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #00FF00;
    box-shadow: 0 0 15px #00FF00, inset 0 0 10px #00FF00;
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 250px;
    height: 10px;
    border: 1px solid #00FF00;
    margin: 20px auto;
    padding: 2px;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background-color: #00FF00;
    animation: loading 3s linear forwards;
    animation-delay: 0.5s;
}

.loading-text {
    letter-spacing: 2px;
    animation: flicker 2s infinite;
}

/* ===== STYLE KONTEN UTAMA ===== */
.main-content-wrapper {
    width: 100%;
}

/* Header & Navigasi */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.5em;
    color: #0056b3;
    text-decoration: none;
}

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

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

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #0056b3;
}

.nav-button {
    background-color: #ff8c00;
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #cc7000;
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    color: white;
    padding: calc(70px + 5vh) 20px 0 20px;
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 40, 85, 0.7)), url('https://source.unsplash.com/1600x900/?soccer-stadium') no-repeat center center/cover;
}

#hero h1 {
    font-size: 4em;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

#hero .tagline {
    font-size: 1.6em;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.time-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    min-width: 100px;
}

.time-box span {
    display: block;
    font-size: 3em;
    font-weight: 700;
}

.time-box small {
    font-size: 1em;
    opacity: 0.8;
}

/* Key Info */
.key-info {
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 40px;
}

.key-info span {
    font-weight: 700;
}

/* CTA Button */
#hero .cta-button {
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    background-color: #ff8c00;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#hero .cta-button:hover {
    background-color: #cc7000;
    transform: translateY(-3px);
}

/* Section */
main {
    width: 100%;
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 900;
    color: #0056b3;
}

#tentang { background-color: #ffffff; }
#jadwal { background-color: #f4f4f4; }
#lomba { background-color: #ffffff; }
#galeri { background-color: #f4f4f4; }
#faq { background-color: #ffffff; }
#kontak { background-color: #f4f4f4; }

/* Footer */
.main-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* ===== Animations ===== */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px #00FF00; }
    50% { transform: scale(1.05); box-shadow: 0 0 25px #00FF00; }
    100% { transform: scale(1); box-shadow: 0 0 15px #00FF00; }
}

@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 0 0 4px #00ff00, 0 0 11px #00ff00, 0 0 19px #00ff00; opacity: 1; }
    20%, 24%, 55% { text-shadow: none; opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero h1, #hero .tagline, #hero .countdown, #hero .key-info, #hero .cta-button {
    opacity: 0;
}

.main-content-wrapper.loaded #hero h1 { animation: fadeIn 1s ease-out 0.2s forwards; }
.main-content-wrapper.loaded #hero .tagline { animation: fadeIn 1s ease-out 0.4s forwards; }
.main-content-wrapper.loaded #hero .countdown { animation: fadeIn 1s ease-out 0.6s forwards; }
.main-content-wrapper.loaded #hero .key-info { animation: fadeIn 1s ease-out 0.8s forwards; }
.main-content-wrapper.loaded #hero .cta-button { animation: fadeIn 1s ease-out 1s forwards; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    #hero h1 { font-size: 2.5em; }
    #hero .tagline { font-size: 1.2em; }
    .time-box { min-width: 80px; padding: 10px; }
    .time-box span { font-size: 2em; }
    .key-info { flex-direction: column; gap: 10px; background: none; }
    section h2 { font-size: 2em; }
    section { padding: 60px 15px; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    #hero h1 { font-size: 2em; }
    .countdown { flex-direction: column; gap: 10px; }
}

/* ===== Hamburger Menu ===== */
.hamburger-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* Hamburger Menu Mobile */
@media (max-width: 768px) {
    .hamburger-btn { display: block; z-index: 1001; }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    .main-nav ul li { margin: 0; text-align: center; }
    .main-nav ul li a {
        display: block;
        padding: 15px 0;
    }
    .nav-button { margin: 10px 20px; }
}

/* Tambahan untuk Konten Baru */
.content-box { max-width: 800px; margin: 0 auto; text-align: center; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-date { font-weight: bold; color: #ff8c00; }
.lomba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.lomba-card { background: #fff; padding: 30px; text-align: center; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.lomba-card i { font-size: 3rem; color: #0056b3; margin-bottom: 15px; }
.gallery-subtitle { text-align: center; margin-bottom: 30px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 20px; }
.faq-question { background: #fff; padding: 15px; border-radius: 5px; cursor: pointer; }
.faq-answer { padding: 15px; display: block; }
.kontak-info { margin: 20px 0; }
.social-media a { color: white; margin: 0 10px; font-size: 1.5rem; }