/* ====================================================== */
/* TEMA UTAMA - HITAM & EMAS (BLACK & GOLD)           */
/* ====================================================== */

/* --- Warna Utama --- */
:root {
    --color-black-dark: #0a0a0a;  /* Background paling gelap (Body) */
    --color-black-light: #1a1a1a; /* Background section */
    --color-black-card: #2a2a2a;  /* Background kartu/form */
    --color-text-light: #f0f0f0; /* Teks putih */
    --color-text-muted: #ccc;    /* Teks abu-abu */
    --color-border: #333;        /* Garis pemisah */

    /* Variabel untuk 4 Gradiasi Gold */
    --color-gold-1: #FAF9D0;    /* Gold paling terang */
    --color-gold-2: #F1E3A4;    /* Gold terang */
    --color-gold-3: #E7CD78;    /* Gold medium */
    --color-gold-4: #DEB64B;    /* Gold paling gelap */
    
    /* Gradiasi dengan 4 warna gold */
    --gradient-gold: linear-gradient(135deg, var(--color-gold-1), var(--color-gold-2), var(--color-gold-3), var(--color-gold-4));
    --gradient-gold-hover: linear-gradient(135deg, var(--color-gold-4), var(--color-gold-3), var(--color-gold-2), var(--color-gold-1));
    --gradient-gold-vertical: linear-gradient(to bottom, var(--color-gold-1), var(--color-gold-2), var(--color-gold-3), var(--color-gold-4));
    --gradient-gold-horizontal: linear-gradient(to right, var(--color-gold-1), var(--color-gold-2), var(--color-gold-3), var(--color-gold-4));
    
    /* Warna gold solid */
    --color-gold-solid: var(--color-gold-3);
    --color-gold-solid-hover: var(--color-gold-2);
}

/* --- Global Reset & Pengaturan Font --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-black-dark);
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--color-gold-solid);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold-solid-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====================================================== */
/* HEADER & NAVIGASI                                  */
/* ====================================================== */

.top-nav {
    background-color: var(--color-black-light);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}
.top-nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.top-nav a {
    color: var(--color-text-light);
    margin-right: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}
.top-nav a:hover {
    color: var(--color-gold-2);
}

.main-header {
    background-color: var(--color-black-dark);
    padding: 20px 0;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img {
    max-height: 60px; /* Sesuaikan tinggi logo lo */
}

/* --- Navigasi Game (Desktop) --- */
.game-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}
.game-nav a {
    display: flex;
    align-items: center;
    background-color: var(--color-black-card);
    color: var(--color-text-light);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.game-nav a:hover {
    background: var(--gradient-gold);
    color: var(--color-black-dark);
}
.game-nav a i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* ====================================================== */
/* HERO BANNER CAROUSEL (FULL FUNCTIONAL)              */
/* ====================================================== */
.hero-banner-carousel {
    position: relative;
    width: 100%;
    min-height: 400px; /* Samakan dengan tinggi banner */
    background: #0a0a0a;
    overflow: hidden; /* Ini penting */
    border-bottom: 2px solid var(--color-gold-3);
}
.hero-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 400px; /* Samakan dengan min-height banner */
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Biar gambarnya pas */
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    transition: all 0.3s ease;
}
.hero-arrow:hover { 
    background: var(--gradient-gold); 
    color: var(--color-black-dark); 
}
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
.hero-dot.active,
.hero-dot:hover { 
    background: var(--color-gold-2); 
}

/* ====================================================== */
/* KONTEN HALAMAN UTAMA (INDEX.HTML)                  */
/* ====================================================== */

.action-grid {
    background-color: var(--color-black-light);
    padding: 25px 0;
}
.action-grid .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.action-button {
    background-color: var(--color-black-card);
    color: var(--color-text-light);
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 1px solid transparent; 
    position: relative;
    overflow: hidden;
}
.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold-horizontal);
    transition: left 0.5s ease;
    z-index: 0;
}
.action-button:hover::before {
    left: 0;
}
.action-button:hover {
    color: var(--color-black-dark);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(222, 182, 75, 0.4); 
    border-color: var(--color-gold-3); 
}
.action-button > * {
    position: relative;
    z-index: 1;
}
.action-button i {
    display: block;
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* --- Carousel Provider --- */
.provider-carousel {
    background-color: var(--color-black-dark);
    padding: 40px 0;
    border-bottom: 1px solid var(--color-gold-4);
}
.provider-carousel .container {
    position: relative;
    display: flex;
    align-items: center;
}
.carousel-arrow {
    background: var(--gradient-gold); 
    color: var(--color-black-dark); 
    border: none; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); 
}
.carousel-arrow:hover {
    background: var(--gradient-gold-hover); 
    transform: scale(1.1); 
}
.carousel-arrow.prev {
    margin-right: 15px;
}
.carousel-arrow.next {
    margin-left: 15px;
}
.carousel-viewport {
    flex-grow: 1;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}
.provider-card {
    background: var(--color-black-light);
    border: 1px solid var(--color-border);
    padding: 10px;
    border-radius: 8px;
    flex-shrink: 0;
    width: 200px; 
    transition: all 0.3s ease;
}
.provider-card:hover {
    border-color: var(--color-gold-3);
    box-shadow: 0 5px 15px rgba(222, 182, 75, 0.3);
}
.provider-card img {
    width: 100%;
    border-radius: 5px;
}

/* --- Konten SEO --- */
.seo-content {
    background-color: var(--color-black-dark);
    padding: 40px 0;
}
.seo-content h1, 
.seo-content h2 {
    background: var(--color-text-muted); 
    -webkit-background-clip: text; 
    background-clip: text;
    color: transparent; 
    margin-bottom: 15px;
}
.seo-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* ====================================================== */
/* FOOTER                                             */
/* ====================================================== */
.main-footer {
    background: var(color-black-ligh);
    padding: 25px 0;
    text-align: center;
    color: var(--color-text-muted);
    font-weight: bold;
    margin-top: 20px;
}

/* ====================================================== */
/* CSS HAMBURGER & MEGA MENU                           */
/* ====================================================== */

/* --- CSS HAMBURGER --- */
.hamburger-toggle { 
    display: none; 
    background: none; 
    border: 2px solid var(--color-gold-3); 
    color: var(--color-gold-3); 
    font-size: 24px; 
    padding: 5px 10px; 
    border-radius: 5px; 
    cursor: pointer; 
    z-index: 1000; 
}
.mobile-menu-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    z-index: 998; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}
.mobile-menu { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: -100%; 
    width: 300px; 
    max-width: 80%; 
    height: 100%; 
    background: var(--color-black-light); 
    z-index: 999; 
    padding: 20px; 
    box-shadow: 5px 0 15px rgba(0,0,0,0.5); 
    transition: left 0.3s ease; 
    overflow-y: auto; 
    border-right: 3px solid var(--color-gold-3);
}
.mobile-menu .close-btn { 
    background: none; 
    border: none; 
    color: var(--color-gold-2); 
    font-size: 30px; 
    position: absolute; 
    top: 10px; 
    right: 20px; 
    cursor: pointer; 
}
.mobile-menu h3 { 
    color: var(--color-gold-2); 
    border-bottom: 1px solid var(--color-gold-4); 
    padding-bottom: 10px; 
    margin-top: 20px; 
}
.mobile-menu a { 
    display: block; 
    color: #fff; 
    text-decoration: none; 
    padding: 15px 10px; 
    border-bottom: 1px solid #333; 
    font-size: 16px; 
    transition: all 0.3s ease;
}
.mobile-menu a:hover { 
    background: var(--color-gold-2); 
    color: var(--color-black-card);
    padding-left: 15px;
}
.mobile-menu a i { 
    margin-right: 10px; 
    width: 20px; 
    text-align: center; 
}
body.mobile-menu-open .mobile-menu-overlay { 
    opacity: 1; 
}
body.mobile-menu-open .mobile-menu { 
    left: 0; 
}

/* ====================================================== */
/* CSS MEGA MENU (FULL WIDTH - FIX POSITION)           */
/* ====================================================== */

.game-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    position: relative;
}

.game-nav li.has-mega-menu {
    position: static; /* INI PENTING BUAT FULL WIDTH */
}

.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 50%; 
    transform: translateX(-50%); 
    width: 100vw; 
    max-width: 100%; 
    background: var(--color-black-card);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
    border-top: 1px solid var(--color-gold-3);
    border-bottom: 3px solid var(--color-gold-3);
    z-index: 1000;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mega-menu-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu-panel .container {
    padding: 30px 20px;
    max-width: 1200px; 
    margin: 0 auto;
}

/* GRID LEBAR FULL - BANYAK ITEM SEBARIS */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    align-items: center;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #333;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 100px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mega-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.mega-menu-item img {
    width: 70px; 
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.mega-menu-item .mega-menu-title {
    font-size: 0.9em;
    font-weight: bold;
    display: block;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

.mega-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(222, 182, 75, 0.3);
    border-color: var(--color-gold-3);
}

.mega-menu-item:hover::before {
    opacity: 1;
}

.mega-menu-item:hover .mega-menu-title {
    color: var(--color-black-dark);
    font-weight: bold;
}

/* ====================================================== */
/* RESPONSIVE (Media Query)                           */
/* ====================================================== */
@media (max-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    /* Sembunyikan menu desktop di mobile */
    .top-nav, .game-nav { 
        display: none; 
    }
    .main-header .container { 
        justify-content: space-between; 
        align-items: center; 
        flex-wrap: wrap; 
    }
    /* Tampilkan tombol hamburger */
    .hamburger-toggle, .mobile-menu, .mobile-menu-overlay { 
        display: block; 
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .action-grid .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .action-button span {
        font-size: 0.9em;
    }
    .action-button i {
        font-size: 2em;
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================================== */
/* CSS FORM (UNTUK HALAMAN LAIN)                       */
/* ====================================================== */

.form-section { 
    padding: 40px 0; 
    background-color: var(--color-black-light); 
}
.form-container { 
    max-width: 700px; 
    margin: 0 auto; 
    background: var(--color-black-card); 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(222, 182, 75, 0.2); 
    border: 1px solid var(--color-gold-4);
}
.form-container h2 { 
    background: var(--gradient-gold); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    text-align: center; 
    margin-bottom: 25px; 
    font-size: 2em; 
}
.form-group { 
    margin-bottom: 20px; 
}
.form-group label { 
    display: block; 
    color: var(--color-gold-2); 
    margin-bottom: 8px; 
    font-weight: bold; 
}
.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group input[type="tel"], 
.form-group select {
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid var(--color-border); 
    background-color: #333; 
    color: #fff; 
    border-radius: 5px; 
    box-sizing: border-box; 
    font-size: 1em; 
    height: 48px; 
    transition: all 0.3s ease;
}
.form-group input:focus, 
.form-group select:focus {
    border-color: var(--color-gold-3);
    box-shadow: 0 0 0 2px rgba(222, 182, 75, 0.2);
    outline: none;
}
.form-group input::placeholder { 
    color: #888; 
}
.form-button { 
    width: 100%; 
    padding: 15px; 
    background: var(--gradient-gold); 
    color: var(--color-text-muted); 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 1.2em; 
    font-weight: bold; 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold-hover);
    transition: left 0.5s ease;
    z-index: 0;
}
.form-button:hover::before {
    left: 0;
}
.form-button:hover { 
    box-shadow: 0 4px 10px rgba(222, 182, 75, 0.3);
    transform: translateY(-2px);
}
.form-button span {
    position: relative;
    z-index: 1;
}
.form-button:disabled { 
    background-color: #777; 
}
#form-status { 
    text-align: center; 
    margin-top: 15px; 
    font-weight: bold; 
    color: var(--color-gold-2); 
}

/* ====================================================== */
/* EFEK TAMBAHAN DENGAN GRADASI GOLD                   */
/* ====================================================== */

/* Efek highlight dengan gradasi gold */
.highlight-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* Border dengan gradasi gold */
.border-gold {
    border: 2px solid;
    border-image: var(--gradient-gold) 1;
}

/* Shadow dengan warna gold */
.shadow-gold {
    box-shadow: 0 5px 15px rgba(222, 182, 75, 0.3);
}