/* --- Variables untuk Warna Tema --- */
:root {
    --bg-dark: #0b0c10;
    --bg-card: #1f2833;
    --neon-purple: #b800ff;
    --neon-cyan: #00f3ff;
    --text-main: #ffffff;
    --text-muted: #c5c6c7;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Ini sihir utamanya */
    scroll-padding-top: 80px; /* Jarak aman dari navbar hitam */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Efek Teks Neon --- */
.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 12, 16, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px; 
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Poppins', sans-serif; 
    font-weight: 400; 
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* --- Sections --- */
.section-dark {
    padding: 80px 10%;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 40px;
}

.border-top-neon {
    border-top: 2px dashed var(--neon-purple);
}

/* --- Hero Section --- */
.section-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 70%); 
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem; 
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.1; 
} 

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 5rem; 
    } 
} 

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

/* --- Buttons --- */
.btn-neon-purple {
    display: inline-block;
    padding: 10px 20px; 
    margin-top: 20px; 
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem; 
    color: var(--text-main);
    text-decoration: none;
    border: 2px solid var(--neon-purple);
    border-radius: 5px;
    box-shadow: 0 0 15px var(--neon-purple) inset, 0 0 15px var(--neon-purple);
    transition: all 0.3s ease;
}

.btn-neon-purple:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 30px var(--neon-purple) inset, 0 0 30px var(--neon-purple);
}

.btn-neon-cyan {
    display: inline-block;
    padding: 8px 15px; 
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem; 
    color: var(--text-main);
    text-decoration: none;
    border: 2px solid var(--neon-cyan);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--neon-cyan) inset, 0 0 10px var(--neon-cyan);
    transition: all 0.3s ease;
}

.btn-neon-cyan:hover {
    background: var(--neon-cyan);
    color: #000;
}

/* --- Slider Recap --- */
.slider-wrapper {
    position: relative;
    max-width: 1000px; 
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.slider-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    width: 100%;
    padding-bottom: 75%; 
    height: 0; 
    overflow: hidden;
}

.slide img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; 
    border: none;
    padding: 0;
    color: var(--neon-cyan);
    font-size: 2.5rem; 
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.slider-btn:hover {
    background: transparent; 
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    transform: translateY(-50%) scale(1.1); 
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (min-width: 1024px) {
    .slide {
        padding-bottom: 0; 
        height: 650px;     
    }
}

/* --- Benefits Grid --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border-bottom: 3px solid var(--neon-cyan);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--neon-purple);
    box-shadow: 0 10px 20px rgba(184, 0, 255, 0.2);
}

.card h3 {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

/* --- Race Pack --- */
.racepack-content {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
    max-width: 1000px; 
    margin: 0 auto; 
}

.racepack-image {
    flex: 1;
    min-width: 300px; 
}

.racepack-details {
    flex: 1;
    min-width: 300px; 
}

.racepack-image img {
    width: 100%; 
    height: auto; 
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(184, 0, 255, 0.4);
}

.racepack-details h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.racepack-details ul {
    list-style: none;
    margin-bottom: 30px;
}

.racepack-details ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.racepack-details ul li::before {
    content: "►";
    color: var(--neon-purple);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- Story / Highlight Text Section --- */
.story-container {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 40px; 
    max-width: 1000px;
    margin: 50px auto; 
    padding: 0 20px;
    align-items: flex-start; 
    text-align: left; 
}

.story-left {
    flex: 1;
    min-width: 300px; 
    text-align: left;
}

.story-left h2 {
    font-size: 4.5rem; 
    line-height: 1; 
    margin: 0;
    text-transform: uppercase;
}

.story-right {
    flex: 1.2; 
    min-width: 300px;
    text-align: left; 
    font-family: 'Poppins', sans-serif; 
}

.story-right h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--neon-cyan); 
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}

.story-right p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #cccccc; 
}

.story-right strong {
    color: #ffffff; 
}

/* --- RESPONSIVE MOBILE SETTINGS (Max-width 768px) --- */
.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101; 
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--neon-cyan);
    transition: all 0.3s ease;
    border-radius: 3px;
}

@media (max-width: 768px) {
    /* Navbar & Menu */
    .logo img { height: 20px; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.95);
        flex-direction: column; 
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    }
    .nav-links.active {
        max-height: 300px; 
        padding: 20px 0;
    }
    .nav-links li { margin: 15px 0; }
    
    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--neon-purple);
    }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--neon-purple);
    }

    /* Story Section Mobile Fix */
    .story-container {
        flex-direction: column; 
        gap: 20px;
    }
    .story-left h2 { font-size: 3.5rem; }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background: #000;
    border-top: 1px solid var(--neon-cyan);
}

footer p {
    color: var(--text-muted);
}

/* --- Powered By Section --- */
.section-powered {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-dark); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Garis pemisah tipis yang elegan */
}

.powered-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.powered-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; /* Jarak antara logo kiri dan kanan */
    flex-wrap: wrap;
}

.community-logo {
    height: 50px; /* Tinggi dasar logo, bisa Anda atur jika kekecilan/kebesaran */
    width: auto;
    object-fit: contain;
    /* Efek elegan: Logo dibuat abu-abu dan agak transparan di awal */
    filter: grayscale(100%) opacity(60%); 
    transition: all 0.3s ease;
}

.community-logo:hover {
    /* Saat disorot: Logo kembali ke warna asli dan tidak transparan */
    filter: grayscale(0%) opacity(100%); 
    transform: scale(1.05); /* Sedikit membesar */
}

/* Responsif khusus HP untuk Powered By */
@media (max-width: 768px) {
    .community-logo {
        height: 40px; /* Logo sedikit dikecilkan agar pas di layar HP */
    }
    .powered-logos {
        gap: 30px; /* Jarak dirapatkan di layar HP */
    }
}

/* =========================================
   MERCHANDISE SECTION & LIGHTBOX GALLERY
   ========================================= */

.merch-section {
    padding: 50px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.merch-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- Kartu Produk --- */
.merch-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.merch-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.15);
}

/* --- Area Gambar Produk --- */
.merch-img-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding-bottom: 100%; /* Membuat rasio gambar 1:1 (Kotak) */
    background: #000;
}

.merch-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.merch-img-wrapper:hover img {
    transform: scale(1.1); /* Gambar sedikit membesar saat disorot */
}

.merch-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.merch-img-wrapper:hover .merch-overlay {
    opacity: 1; /* Munculkan ikon kaca pembesar saat disorot */
}

.merch-overlay span {
    color: var(--neon-cyan);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* --- Area Teks & Tombol --- */
.merch-info {
    padding: 25px;
    text-align: left;
}

.merch-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.merch-info h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--neon-purple); /* Harga pakai warna ungu neon */
}

.merch-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-wa {
    display: block;
    text-align: center;
    background: transparent;
    border: 2px solid #25D366; /* Warna khas WhatsApp */
    color: #25D366;
    padding: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-wa:hover {
    background: #25D366;
    color: #000;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

/* --- Pop-up Galeri (Lightbox) --- */
.lightbox {
    display: none; /* Disembunyikan secara default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 12, 16, 0.95); /* Background gelap transparan */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100vw;
    max-height: 80vh;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    border-radius: 5px;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.close-lightbox:hover {
    color: var(--neon-purple);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    text-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-btn.left { left: 5%; }
.lightbox-btn.right { right: 5%; }

@media (max-width: 768px) {
    .lightbox-btn { font-size: 2rem; padding: 10px; }
    .lightbox-btn.left { left: 0; }
    .lightbox-btn.right { right: 0; }
    .close-lightbox { top: 10px; right: 20px; font-size: 2.5rem; }
}

/* --- Active Menu Glow --- */
.nav-links li a.active {
    color: var(--neon-cyan); /* Warna teks berubah neon */
    text-shadow: 0 0 15px var(--neon-cyan); /* Efek cahaya menyala */
    border-bottom: 2px solid var(--neon-cyan); /* Garis bawah tipis sebagai penegas */
    padding-bottom: 5px;
    transition: all 0.3s ease;
}