/* =============================================================
   1. GLOBAL STYLES & VARIABLES
   ============================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0e0e0e;
    color: #ffffff;
    overflow-x: hidden; /* Mencegah scroll horizontal pada mobile */
}

:root {
    --primary-green: #28a745;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0e0e0e;
    --bg-light: #f4f4f4;
    --shadow: rgba(0, 0, 0, 0.35);
}

/* =============================================================
   2. NAVBAR & NAVIGATION
   ============================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
}

.navbar-logo {
    height: 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.navbar-logo img {
    height: 60px;
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 0;
    font-weight: 500;
}

.navbar p {
    font-size: 40px;
    position : left;
    opacity: 0.95;
}



/* =============================================================
   3. DROPDOWN (ABOUT)
   ============================================================= */
.dropdown {
    position: relative;
}

.dropbtn {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.dropbtn::after {
    content: "▾";
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(12px);
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6),
                inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.35s ease;
    z-index: 999;
}

.dropdown-content.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-content a:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, #28a745, #00ff99);
    color: #000;
    padding-left: 26px;
}

/* =============================================================
   4. MENU TOGGLE (HAMBURGER)
   ============================================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* =============================================================
   5. HERO SLIDER
   ============================================================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #0e0e0e;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.2));
}

.hero-content {
    position: absolute;
    bottom: 30%;
    left: 10%;
    max-width: 500px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    font-size: 28px;
    padding: 15px;
    cursor: pointer;
    z-index: 5;
}

.prev { left: 20px; }
.next { right: 20px; }

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(251,251,251,0.6), rgba(255,255,255,1));
    z-index: 5;
    pointer-events: none;
}

/* =============================================================
   6. PAGE TITLE (SECTION GAME)
   ============================================================= */
.page-title {
    text-align: center;
    padding: 60px 20px 30px;
    background: #ffffff;
}

.page-title h1 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #111;
}

.page-title p {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
}

/* =============================================================
   7. CONTENT & DESC CARD
   ============================================================= */
.content {
    padding: 10px 10% 10px;
    background: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desc-card {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #2e7d32;
    margin: 20px 0 40px;
    max-width: 1000px;
    width: 100%;
    transition: 0.3s ease;
}

.desc-card p {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
}

/* =============================================================
   8. SPEC RECOMMENDATION
   ============================================================= */
.spec-title {
    text-align: center;
    padding: 60px 20px 30px;
    background: #ffffff;
    margin-top: 0;
}

.spec-title h2 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #111;
}

.specs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    margin: 50px auto;
    max-width: 1000px;
    width: 90%;
}

.spec-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spec-box h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #28a745;
}

.spec-box ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.spec-box li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.btn-spec-download {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    background-color: #28a745;
    color: #fff;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.divider {
    width: 1px;
    background: #000000;
    opacity: 0.3;
}

/* =============================================================
   9. GALLERY SHOWCASE
   ============================================================= */
.gallery-showcase {
    padding: 80px 10%;
    background: linear-gradient(to bottom, #f4f4f4, #ffffff);
}

.gallery-title {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-title h2 {
    font-size: 56px;
    font-weight: 900;
    color: #111;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.gallery-preview {
    position: relative;
    flex: 1;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.35);
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: transparent;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    z-index: 5;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumb {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb.active, .thumb:hover {
    opacity: 1;
}

/* =============================================================
   10. FOOTER MODERN
   ============================================================= */
.footer-modern {
    background: #3c3f41;
    color: #ddd;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 8%;
    flex-wrap: wrap;
}

.footer-left h4, .footer-center h4, .footer-right h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.logo-img {
    width: 120px;
    margin-bottom: 10px;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: #bbb;
    margin: 10px 0 20px;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 8px;
}

.footer-center ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
    text-decoration: none;
    border: none;
}

.social-icons a:hover {
    background: #28a745;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #aaa;
}

/* Responsif untuk Mobile & Tablet */
@media (max-width: 768px) {
    /* Tampilkan tombol hamburger */
    .menu-toggle {
        display: flex;
    }

    @media (max-width: 768px) {
    /* Tampilkan tombol hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Ubah navigasi menjadi sidebar */
    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 260px; /* Sedikit lebih lebar agar nyaman */
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        
        /* Merapatkan jarak: mulai dari atas, bukan center */
        justify-content: flex-start; 
        padding-top: 100px; /* Jarak dari atas agar tidak tertutup tombol */
        
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .navbar nav.active {
        right: 0; 
    }

    /* Tulisan lebih besar dan jarak rapat */
    .navbar nav a, 
    .navbar nav .dropdown {
        margin: 8px 0; /* Jarak antar menu lebih rapat */
        width: 100%;
        text-align: center;
    }

    .navbar nav a, 
    .navbar nav .dropbtn {
        font-size: 20px; /* Ukuran tulisan lebih besar */
        font-weight: 600;
        letter-spacing: 1px;
        display: block;
        padding: 10px 0;
        color: #ffffff;
    }

    /* Mengatasi About 'ngiri' karena panah */
    .navbar nav .dropbtn {
        padding-left: 20px; /* Memberi kompensasi agar teks About terlihat di tengah */
    }

    /* Isi Dropdown saat terbuka di mobile */
    .navbar nav .dropdown-content {
        position: static;     /* Tetap di dalam aliran dokumen */
        opacity: 0;           /* Awalnya transparan */
        max-height: 0;        /* Awalnya tidak punya tinggi */
        overflow: hidden;     /* Sembunyikan konten yang meluap */
        transform: translateY(-10px); /* Efek sedikit naik saat sembunyi */
        background: rgba(255, 255, 255, 0.05);
        width: 100%;
        transition: all 0.4s ease; /* Durasi animasi */
        pointer-events: none;
    }

    .navbar nav .dropdown-content.active {
        opacity: 1;           /* Muncul perlahan */
        max-height: 200px;    /* Beri tinggi maksimal yang cukup untuk isi */
        transform: translateY(0);    /* Kembali ke posisi asli */
        pointer-events: auto;
        margin: 10px 0;       /* Jarak saat terbuka */
    }

    .navbar nav .dropdown-content a {
        font-size: 18px;      /* Ukuran submenu sedikit lebih kecil dari menu utama */
        padding: 10px 0;
        color: #bbb;
    }

    /* Animasi Hamburger */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }



    /* Layout Page Game Mobile Fix */
    .hero-content {
        left: 5%;
        right: 5%;
        bottom: 15%;
    }
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }

    .page-title, .spec-title { padding: 40px 5%; }
    .page-title h1, .spec-title h2, .gallery-title h2 { 
        font-size: 32px; 
        letter-spacing: 1px; 
    }

    .content { padding: 0 5%; }
    .desc-card { padding: 20px; margin: 10px 0 30px; }
    .desc-card p { font-size: 16px; }

    .specs {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
    .divider { width: 100%; height: 1px; margin: 10px 0; }

    .gallery-showcase { padding: 60px 5%; }
    .gallery-wrapper { flex-direction: column; }
    .gallery-preview { height: 350px; width: 100%; border-radius: 15px; }
    .gallery-thumbs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .thumb { width: 80px; height: 50px; }

    .footer-container { flex-direction: column; gap: 30px; }
}