/* =========================================================
   NAVBAR BASE
=========================================================*/
.navbar {
    width: 100%;
    background: #0d0d0f;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 14px 0;
}

.nav-container {
    max-width: 1260px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

/* =========================================================
   LEFT SIDE (Logo + Menu)
=========================================================*/
.nav-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 26px;
}

.nav-menu a {
    color: #ccc;
    font-size: 15px;
    text-decoration: none;
    transition: .2s;
}

.nav-menu a:hover {
    color: #fff;
}

/* =========================================================
   RIGHT SIDE (Login)
=========================================================*/
.nav-right .nav-login-btn {
    padding: 8px 16px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s;
    margin-left: 20%;
}

.nav-right .nav-login-btn:hover {
    background: #eaeaea;
}

/* =========================================================
   MOBILE MENU + HAMBURGER
=========================================================*/
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    margin-left: 10%;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: .3s;
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu a {
    color: #ccc;
    padding: 12px 0;
    text-decoration: none;
    font-size: 16px;
}


/* Default: hidden */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: #0e0e10;
    padding: 20px;
    border-top: 1px solid #222;
}

/* Saat menuBtn ditekan */
.mobile-menu.show {
    display: flex;
}


/* =========================================================
   RESPONSIVE
=========================================================*/
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu.show {
        display: flex;
    }

    .nav-right {
        display: none;
    }
}

/* Navbar Scroll Shadow */
.navbar.scrolled {
    backdrop-filter: blur(12px);
    background: rgba(13,13,15,0.85);
}


.menu-btn {
    font-size: 22px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}


/* ============================================
   MOBILE MENU BUTTON (HAMBURGER → CLOSE)
   Premium Glass Style
============================================ */

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    position: relative;
    z-index: 1100;

    transition: 0.3s ease;
}

/* Hover effect */
.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

/* Hamburger lines */
.mobile-menu-btn::before,
.mobile-menu-btn::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Top line */
.mobile-menu-btn::before {
    transform: translateY(-5px);
}

/* Bottom line */
.mobile-menu-btn::after {
    transform: translateY(5px);
}

/* ============================================
   ACTIVE STATE → transforms into “X”
   when drawer opens
============================================ */
.mobile-menu-btn.active {
    background: rgba(255,255,255,0.25);
}

.mobile-menu-btn.active::before {
    transform: rotate(45deg);
}

.mobile-menu-btn.active::after {
    transform: rotate(-45deg);
}


.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: rgba(20,20,25,0.88);
    backdrop-filter: blur(14px);
    transition: 0.3s ease;
    z-index: 1000;
    padding: 80px 24px;
}

/* When open */
.mobile-drawer.open {
    right: 0;
}



@media (max-width: 900px) {
    .menu-btn {
        display: block;
    }
    .navbar-links {
        display: none;
    }
}

@media (max-width: 900px) {
    .navbar {
        z-index: 10000;
    }
    .sidebar {
        z-index: 99999; /* pastikan di atas navbar */
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding-left: 10%;
        margin: initial;
    }
}