@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0c0a18;
    color: #f0f0f0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.main-header {
    background-color: rgba(12, 10, 24, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #a0a1a5;
    font-weight: 500;
}
.logo-img {
    height: 50px;
    width: auto;
}

.header-buttons .login-btn {
    background-image: linear-gradient(90deg, #ed2929, #ff006e);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.header-buttons .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 58, 58, 0.4);
}

/* Main Content */
.main-container {
    padding: 3rem 5%;
}

/* Navbar */
.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    position: relative;
    color: #a0a1a5;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(90deg, #e93434, #901313);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    background: url('/img/home1.jpg') no-repeat center center/cover;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(12, 10, 24, 0.95) 0%, rgba(12, 10, 24, 0.6) 60%, rgba(12, 10, 24, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    color: #a0a1a5;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    line-height: 1.1;
    letter-spacing: 3px;
    color: #ffffff;
    margin: 0 0 2rem 0;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-image: linear-gradient(90deg, #e62020, #ff006e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 55, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}
.btn-secondary:hover {
    background-color: white;
    color: #0c0a18;
}

.countdown-timer {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    z-index: 2;
    display: flex;
    gap: 1.5rem;
}

.time-block {
    text-align: center;
}

.time-block span {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    color: white;
}

.time-block small {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #a0a1a5;
}

/* Events Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 1px;
    margin: 0;
}

.view-more-link {
    color: #3a86ff;
    text-decoration: none;
    font-weight: 500;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.event-card {
    background: linear-gradient(145deg, #1e1c32, #121020);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
    border-color: rgba(58, 134, 255, 0.3);
}

.event-card .image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-info h3 {
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.event-meta {
    color: #a0a1a5;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.event-meta p {
    margin: 0.3rem 0;
}

.event-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: auto;
    color: #f0f0f0;
}

.event-price span {
    font-weight: 400;
    font-size: 0.9rem;
    color: #a0a1a5;
}

.buy-ticket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-top: auto;
}

.buy-ticket-btn.btn-lomba {
    background-color: #3a86ff;
    color: white;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.2);
}
.buy-ticket-btn.btn-lomba:hover {
    background-color: #2071f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.3);
}

.buy-ticket-btn.btn-konser {
    background-color:#ff3333;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.2);
}
.buy-ticket-btn.btn-konser:hover {
    background-color: #e60036;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.3);
}

/* Location Section */
.location-section {
    background-color: #ffffff;
    color: #333;
    padding: 5rem 5%;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-details h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    margin: 0 0 1rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.location-details h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-image: linear-gradient(90deg, #ff3a3a, #ff006e);
}

.location-details p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.location-details ul {
    list-style: none;
    padding: 0;
}

.location-details ul li {
    margin-bottom: 0.8rem;
    color: #555;
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sponsors Section */
.sponsors-section {
    background-color: #f0f2f5;
    padding: 3rem 5%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.sponsor-logo img {
    max-height: 50px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.sponsor-logo img:hover {
    opacity: 1;
}

/* Footer */
.main-footer {
    position: relative;
    overflow: hidden;
    color: #a0a1a5;
    padding: 4rem 5% 2rem 5%;
    background-color: #121020;
    background-image:
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.15), transparent 40%),
        radial-gradient(circle at 20% 30%, rgba(58, 199, 255, 0.15), transparent 40%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.footer-content {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-footer {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-decoration: none;
    display: inline-block;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav a {
    color: #a0a1a5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ff006e;
    border-color: #ff006e;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Form Beli Tiket */
.form-page-container {
    padding: 4rem 2rem;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.purchase-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background-color: #201010;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-left-panel {
    width: 45%;
    padding: 3rem;
    background-color: #2a0000;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.purchase-left-panel img {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.purchase-left-panel h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0;
}

.purchase-left-panel p {
    color: #a0a1a5;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.purchase-left-panel p strong {
    color: #f0f0f0;
}

.purchase-right-panel, .competition-right-panel {
    width: 55%;
    padding: 3rem;
    color: white;
}

.purchase-right-panel {
    background-color: rgba(255, 60, 0, 0.537);
}

.competition-right-panel {
    background-color: rgba(23, 112, 255, 0.217);
}

.competition-left-panel {
    background-color: rgba(0, 13, 33, 0.217);
}

.purchase-right-panel h2, .competition-right-panel h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 5rem;
    height: 4px;
    background-image: linear-gradient(90deg, #dfebff, #ffe0e0);
    margin-bottom: 2.5rem;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #a0a1a5;
}

.form-input, .form-input-file, textarea.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(12, 10, 24, 0.5);
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-input:focus, .form-input-file:focus, textarea.form-input:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 0 2px rgba(0, 30, 255, 0.3);
}

.form-input-file {
    cursor: pointer;
}
.form-input::placeholder {
    color: #6b7280;
}

.submit-button {
    display: block;
    width: 100%;
    background-image: linear-gradient(90deg, #ffba3a, #c08d00);
    color: white;
    text-align: center;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* =============================================== */
/* == KOREKSI DAN TAMBAHAN UNTUK RESPONSIVE == */
/* =============================================== */

/* Untuk Tablet (di bawah 992px) */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 70px; /* Sesuaikan dengan tinggi header */
        left: 0;
        width: 100%;
        background-color: rgba(12, 10, 24, 0.98);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 1rem;
        width: 90%;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }

    /* Sembunyikan tombol login di header saat menu burger aktif */
    .header-buttons {
        display: none; 
    }

    .location-content {
        grid-template-columns: 1fr; /* Ubah layout lokasi menjadi 1 kolom */
    }
}

/* Untuk Ponsel (di bawah 768px) */
@media (max-width: 768px) {
    .purchase-container {
        flex-direction: column;   
        min-height: auto;   
        width: 90%;    
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .purchase-left-panel,
    .purchase-right-panel,
    .competition-right-panel {
        width: 100%;   
        padding: 2rem;
        box-sizing: border-box; /* Tambahkan ini agar padding tidak menambah lebar */
    }

    .form-page-container {
        align-items: flex-start;
        padding: 0;
    }

    .purchase-left-panel img {
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Untuk Ponsel Layar Kecil (di bawah 576px) */
@media (max-width: 576px) {
    .main-header {
        padding: 1rem 4%; /* Kurangi padding header */
    }

    .hero-content {
        padding: 0 1rem; /* Beri sedikit ruang di sisi kiri dan kanan */
        text-align: center; /* Pusatkan teks */
        width: 100%;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 3.5rem; /* Kecilkan ukuran font judul */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        justify-content: center; /* Atur tombol agar di tengah */
        flex-direction: column; /* Susun tombol ke bawah */
        gap: 1rem;
    }

    .countdown-timer {
        position: relative; /* Ubah posisi agar tidak absolut */
        bottom: auto;
        right: auto;
        margin-top: 3rem;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .time-block span {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}
