/* ============================================================
   FLOATING WHATSAPP
=============================================================== */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.wa-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 99999;
}

.wa-float {
    width: 55px;
    height: 55px;
    background: #eaefec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.wa-float img {
    width: 30px;
    height: 30px;
}

.wa-text {
    background: #25d366;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: .35s ease;
    pointer-events: none;
}

.wa-wrapper.show-text .wa-text {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HEADER & NAVBAR (DESKTOP)
=============================================================== */
header {
    width: 100%;
    height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(4, 89, 180, 0.35);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Poppins', sans-serif;
}

header img {
    height: 80px; /* Ukuran logo diatur agar pas dengan header */
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

nav a, .dropbtn {
    background: transparent;
    border: none;
    color: #080404;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap; /* Kunci agar Tentang Kami tidak turun */
}

nav a:hover, .dropbtn:hover {
    background: rgba(77, 163, 255, 0.25);
}

/* ============================================================
   HAMBURGER BUTTON (HIDDEN ON DESKTOP)
=============================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle div {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ============================================================
   DROPDOWN
=============================================================== */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: rgba(4, 89, 180, 0.95);
    border-radius: 8px;
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dropdown-content a {
    color: #fff !important;
    font-size: 14px;
}

.dropdown-content.active { display: flex; }

/* ============================================================
   MOBILE RESPONSIVE (MAX 768px)
=============================================================== */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: 60px;
    }

    header img {
        height: 70px; /* Logo mengecil di mobile */
    }

    /* Munculkan Hamburger */
    .menu-toggle {
        display: flex; /* Munculkan hanya di mobile */
        z-index: 1100; /* Harus lebih tinggi dari nav */
    }

    /* Navigasi berubah jadi Sidebar */
    nav {
        /* Mengubah navigasi menjadi sidebar */
        position: fixed;
        top: 0;
        right: -100%; /* Ini akan melempar menu ke luar layar kanan */
        
        width: 250px; /* Lebar sidebar putihnya */
        height: 100vh;
        background: #ffffff;
        
        display: flex;
        flex-direction: column;
        padding: 80px 20px;
        gap: 15px;
        
        /* Transisi biar halus pas muncul */
        transition: 0.3s ease-in-out; 
        z-index: 1000;
        
        /* Pastikan tidak ada bayangan saat menu tertutup */
        box-shadow: none; 
    }

    /* Saat tombol hamburger diklik (JS jalan), class ini aktif */
    nav.mobile-panel {
        right: 0; /* Menu muncul ke posisi normal */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    nav a, .dropdown, .dropbtn {
        width: 100%;
        text-align: left;
        font-size: 18px;
    }

    /* Dropdown di mobile */
    .dropdown-content {
        position: static;
        background: #f1f1f1;
        box-shadow: none;
        width: 100%;
    }
    
    .dropdown-content a {
        color: #333 !important;
    }

    /* Animasi Hamburger jadi X */
    .menu-toggle.active .bar1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.active .bar2 { opacity: 0; }
    .menu-toggle.active .bar3 { transform: rotate(45deg) translate(-5px, -8px); }

    /* Overlay */
    #overlay.active {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
}