#navbar {
    transition: 0.4s;
}

html,
body,
#fasilitas {
    scroll-behavior: smooth;
}

/* --- STICKY NAVBAR DEFAULT --- */
#main-navbar {
    position: sticky;
    top: 0;
    z-index: 51;
    border-bottom: 1px solid #f1f5f9; /* Warna abu-abu sangat muda */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- FIXED NAVBAR WHEN SCROLL --- */
.navbar-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid #f1f5f9;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 16px 0 rgba(30, 41, 59, 0.09);
    backdrop-filter: blur(8px);
    animation: navbarSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ANIMATION EFFECT --- */
@keyframes navbarSlideDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* navbar */

.main-navbar,
.navbar-fixed {
    position: sticky;
    top: 0;
    z-index: 51;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        border 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    height: 70px; /* Sesuaikan dengan tinggi navbar utama (logo+padding) */
    padding: 0;
}
.navbar-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 18px 0 rgba(30, 41, 59, 0.09);
    background: #fff;
    border-bottom: 1px solid #e1e5ee;
}
@media (max-width: 768px) {
    .main-navbar,
    .navbar-fixed {
        height: 60px;
    }
}
