/* =========================================================
   NAVBAR BERANDA – NJA EXPRESS
   File: css/beranda-navbar.css
========================================================= */

/* =========================
   WRAPPER NAVBAR
========================= */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.08);

    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* saat scroll */
.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

/* =========================
   CONTAINER DALAM
========================= */
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 20px;
}

/* =========================
   LOGO
========================= */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;

    border-radius: 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* =========================
   MENU DESKTOP
========================= */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    padding: 6px 0;

    transition: color 0.2s ease;
}

/* garis bawah hover */
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;

    width: 0;
    height: 2px;
    background: var(--primary-dark, #003b99);
    border-radius: 999px;

    transition: width 0.25s ease;
}

.nav-menu a:hover {
    color: var(--primary-dark, #003b99);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* =========================
   HAMBURGER BUTTON (MOBILE)
========================= */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;

    font-size: 22px;
    color: #0f172a;

    padding: 6px 8px;
    border-radius: 999px;

    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* =========================
   MOBILE MENU
========================= */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;

        display: none;
        flex-direction: column;
        gap: 10px;

        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.92);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        border-radius: 18px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);

        z-index: 99;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 8px 0;
    }

    .nav-menu a::after {
        bottom: -2px;
    }
}

/* =========================
   NAVBAR OFFSET UNTUK HERO
========================= */
.hero-section {
    scroll-margin-top: 80px;
}
