/* =========================================
   1. DESKTOP VIEW (Default > 768px)
   ========================================= */
.navbar {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 999;
    background: transparent;
    transition: 0.3s;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo Desktop --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    z-index: 900; /* Layer paling atas */
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05); /* Membesar 5% */
}

.logo-icon { height: 40px; }
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}

/* --- Menu Desktop --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px; /* Jarak garis dari teks */
    left: 0;
    background-color: var(--primary-color); /* Garis warna Oranye */
    transition: width 0.3s ease; /* Animasi memanjang */
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Ikon Hamburger (Hidden di Desktop) */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

/* =========================================
   2. TABLET VIEW (Max-width: 768px)
   ========================================= */
/* Range ini mencakup iPad & Tablet Portrait umumnya */
@media screen and (max-width: 768px) {
    
    /* Munculkan Ikon Hamburger */
    .menu-toggle {
        display: block;
    }

    /* Layout Menu jadi Sidebar/Drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyi di kanan */
        
        /* TABLET: Lebar cuma 60% biar gak nge-blok semua layar */
        width: 60%; 
        
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.95); /* Gelap transparan dikit */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animasi smooth */
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 35px;
        margin-bottom: 40px;
    }

    .nav-links a {
        font-size: 1.1rem; /* Ukuran font sedang */
    }
}

/* =========================================
   3. MOBILE VIEW (Max-width: 480px)
   ========================================= */
/* Range ini untuk HP (Smartphone) */
@media screen and (max-width: 480px) {

    /* Layout Menu jadi Full Screen */
    .nav-menu {
        width: 100%; /* MOBILE: Full layar 100% */
        background-color: #000; /* Hitam pekat solid biar fokus */
    }

    /* Logo Text dikecilkan biar muat di layar sempit */
    .logo-text {
        font-size: 18px; 
    }
    
    .logo-icon {
        height: 30px;
    }

    /* Link diperbesar biar gampang ditap jempol */
    .nav-links a {
        font-size: 1.3rem; 
    }

    .nav-links {
        gap: 40px; /* Jarak antar menu lebih lega */
    }

    /* Tombol Konsultasi diperlebar */
    .btn-nav {
        width: 80%;
        text-align: center;
        padding: 15px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .btn-nav:hover {
        background-color: white; /* Ganti background jadi Putih */
        color: var(--primary-color); /* Teks jadi Oranye */
        transform: translateY(-3px); /* Tombol naik ke atas */
        box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4); /* Ada bayangan oranye glowing */
    }
}