/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f9f9f9;
    color: #111;
}

/* ================= NAVBAR ================= */
.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;
}

/* ===== DROPDOWN ===== */
.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;
}

/* INI KODE YANG DITAMBAHKAN UNTUK MEMPERBAIKI DROPDOWN PC */

.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;
}

/* ================= HERO ================= */
.hero-store {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
}

.hero-left-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: #fff;
    z-index: 2;
}

.hero-overlay-store {
    position: absolute;
    bottom: 30%;
    left: 10%;
    max-width: 420px;
    z-index: 3;
}

.hero-overlay-store h1 {
    font-size: 56px;
    font-weight: 900;
    color: #111;
    margin-bottom: 15px;
}

.hero-overlay-store p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
}

.btn-shop {
    display: inline-block;
    padding: 14px 30px;
    background: #000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-shop:hover {
    background: #28a745;
}

/* ================= STORE TITLE & GRID ================= */
.news-title {
    padding: 100px 8px 50px;
    text-align: center;
}

.news-title h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 2px;
}

.news-title p {
    font-size: 18px;
    color: #666;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 8%;
}

/* ================= CARDS ================= */
.card {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 400px; 
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    color: #111;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.card-content small {
    font-size: 13px;
    color: #777;
    display: block;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content .see-more {
    align-self: flex-start;
    display: inline-block;
    width: fit-content;
    margin-top: auto;
    padding: 8px 18px;
    background-color: #28a745;
    color: #fff;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-content .see-more:hover {
    background: #00ff99;
    color: #000;
    transform: scale(1.05);
}

.status {
    margin: 8px 0;
}

.status-ready {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-notready {
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

@keyframes fadeBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUp {
    from {
        transform: scale(0.85) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 750px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    animation: popUp 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.modal-content h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #fff;
}

.modal-content small {
    display: inline-block;
    margin-bottom: 12px;
    color: #00ff99;
    font-weight: bold;
    font-size: 14px;
}

.modal-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #ddd;
}

.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}

.buy-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(90deg, #28a745, #00ff99);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
}

.buy-btn.ready {
    background: #28a745;
}

.buy-btn.disabled {
    background: #dc3545;
    cursor: not-allowed;
    opacity: 0.6;
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,255,153,0.3);
}

/* ================= MOBILE NAVBAR (SIDEBAR) ================= */
/* Sembunyikan tombol hamburger di layar besar (Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001; /* Harus di atas sidebar */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* ================= FOOTER ================= */
.footer {
    background: #111;
    padding: 20px;
    text-align: center;
}

.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;
    transition: 0.3s;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: #bbb;
    margin: 10px 0 20px;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-left .privacy {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
}

.footer-left .privacy:hover {
    color: #fff;
}

.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;
}

.footer-center ul li a:hover {
    color: #fff;
}

.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%;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.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;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .subscribe-box {
        flex-direction: column;
    }
    .subscribe-box input {
        width: 100%;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .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: 1;           /* 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); }

    .hero-left-panel {
        width: 100%;
        background: rgba(255,255,255,0.95);
    }
     
    .hero-img {
        width: 100%;
        opacity: 0.4;
    }

    .hero-overlay-store {
        left: 5%;
        bottom: 20%;
    }

    .hero-overlay-store h1 {
        font-size: 36px;
    }

    .hero-overlay-store p {
        font-size: 16px;
    }

    .news-title h1 {
        font-size: 40px;
    }

    .card-image {
        height: 260px;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 18px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content img {
        max-height: 250px;
    }

    html {
    scroll-behavior: smooth;
}
}