/* PREMIUM NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    /* 🔥 bukan padding-top */
    transition: all 0.3s ease;
    background: transparent;
}

.nav-box {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 30px;
    padding: 10px 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
    gap: 12px;

    max-width: 1200px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    /* 🔥 magic anti overflow */
}

/* NAV MENU HOVER */
.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* saat scroll */
.navbar.scrolled .nav-box {
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* SEARCH EXPAND EFFECT */
.search-box {
    width: 180px;
    max-width: 100%;
    min-width: 0;
    transition: all 0.35s ease;
}

.search-box:hover,
.search-box:focus-within {
    width: 320px;
}

.search-input {
    width: 100%;
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* MOBILE MENU PANEL */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    /* lebih jauh */
    width: 260px;
    height: 100vh;
    background: #111;
    color: white;
    padding: 80px 20px;
    transition: all 0.35s ease;
    z-index: 2000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* OVERLAY */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}
