/* --- 1. PEMBUNGKUS UTAMA (Fixed Position) --- */
#navbar-container {
    position: fixed; 
    top: 20px;       
    left: 0;
    width: 100%;
    z-index: 9999;
    
    /* Flexbox untuk menengahkan .navbar dengan sangat akurat */
    display: flex;
    justify-content: center; 
    
    /* pointer-events dihapus agar tidak mengganggu rendering saat scroll */
}

/* --- 2. KOTAK NAVBAR MELAYANG --- */
.navbar {
    width: 90%;
    max-width: 1200px;
    
    /* Efek Glassmorphism yang Dipertajam */
    background: rgba(255, 255, 255, 0.15); /* Diturunkan ke 15% agar sangat tembus pandang */
    backdrop-filter: blur(25px);           /* Blur dinaikkan drastis agar warna di belakangnya melebur halus */
    -webkit-backdrop-filter: blur(25px); 
    
    /* Trik Pantulan Kaca: Border atas dibuat sedikit lebih terang dari sisi lainnya */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-top: 1px solid rgba(255, 255, 255, 0.5); 
    
    border-radius: 30px;
    padding: 0.5rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15); /* Shadow sedikit dipertajam untuk memisahkan kaca dengan air */
    
    /* Layout untuk isi di dalam navbar (TIDAK DIUBAH SAMA SEKALI) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto; 
}

/* --- 3. PENGUNCI MENU TEKS (Tetap Absolut di Tengah) --- */
.nav-logo, .nav-spacer {
    flex: 1; 
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
}

.logo-img {
    max-height: 50px; 
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #007bff;
}

/* --- FOOTER STYLES --- */
#footer-container {
    background-color: #212529;
    color: #ffffff;
    padding: 3rem 5%;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* =========================================
   FOOTER STYLES (BACKGROUND PUTIH, TEKS HITAM)
   ========================================= */
#footer-container {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 5% 30px;
    border-top: 1px solid #eaeaea; 
    position: relative; 
    z-index: 50; /* Kunci: Memastikan footer menimpa semua layer di atasnya */
}

/* --- Layout Grid 4 Kolom --- */
.footer-top {
    display: grid;
    grid-template-columns: 3.5fr 1fr 1fr 1.2fr; /* Kolom pertama lebih lebar untuk deskripsi */
    gap: 3rem;
    margin-bottom: 60px;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* --- Kolom 1: Brand --- */
.footer-brand .footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 25px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    max-width: 90%;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* --- Kolom 2, 3, 4: Menu & Teks --- */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 18px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #007bff;
}

.footer-col p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

/* --- Detail Kontak Khusus --- */
.contact-item {
    margin-bottom: 25px;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.contact-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* --- Bagian Bawah Footer (Copyright) --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    max-width: 1250px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}

/* --- 4. HAMBURGER MENU STYLES (Sembunyi di Layar Besar) --- */
.hamburger {
    display: none; /* Tersembunyi di Desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 100; /* Pastikan selalu berada di atas menu layar sentuh */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- 5. FOOTER --- */
@media screen and (max-width: 430px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    /* Hilangkan spacer desktop dan munculkan hamburger */
    .nav-spacer {
        display: none; 
    }
    .hamburger {
        display: flex; 
    }

    /* Modifikasi Menu menjadi model Dropdown/Slide Layar Penuh */
    .nav-links {
        position: fixed;
        top: -100vh; /* Sembunyikan jauh di atas layar saat tidak aktif */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95); /* Kaca putih tebal */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 90px 0 40px; /* Ruang untuk navbar di bagian atas */
        gap: 30px;
        transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Animasi memantul lembut */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 25px;
        z-index: 99; /* Berada tepat di bawah tombol hamburger */
    }

    /* Kelas active yang dipicu oleh Javascript */
    .nav-links.active {
        top: 0; /* Meluncur turun saat diklik */
    }
    
    .nav-links li a {
        font-size: 1.2rem; /* Ukuran teks diperbesar agar mudah ditap jari */
    }

    /* Animasi Hamburger berubah menjadi tanda Silang (X) */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* Garis tengah menghilang */
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- FOOTER MOBILE (DIPADATKAN) --- */
    #footer-container {
        padding: 40px 5% 20px; /* Padding atas-bawah dikurangi setengahnya */
    }

    .footer-top {
        grid-template-columns: 1fr; 
        gap: 25px; /* Jarak antar bagian (Brand, Menu, Kontak) diperkecil */
        text-align: center; /* Mempertahankan teks tetap rata tengah */
    }

    .footer-brand {
        align-items: center; 
    }

    .footer-brand p {
        margin-bottom: 15px; 
        text-align: center;  /* Memaksa tulisan rata tengah */
        margin-left: auto;   /* Menjaga blok 90% tetap berada di tengah layar */
        margin-right: auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-col h4 {
        margin-bottom: 10px; /* Jarak dari judul (MENU/KONTAK) ke isinya dirapatkan */
    }

    .footer-col ul li {
        margin-bottom: 8px; /* Jarak antar teks menu (Beranda, Paket, dll) dirapatkan */
    }

    .contact-item {
        margin-bottom: 12px; /* Jarak antar info kontak (WA, IG, Web) dirapatkan */
    }

    .footer-bottom {
        flex-direction: column; 
        text-align: center;
        gap: 10px; /* Jarak teks copyright didekatkan */
        padding-top: 20px; /* Jarak garis pembatas ke teks copyright dikurangi */
    }
}