/* NAVBAR STYLING */
.navbar {
    background: linear-gradient(135deg, #007bff, #0047ab);
    padding: 15px 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Efek saat discroll */
.navbar.scrolled {
    background: linear-gradient(135deg, #0047ab, #002f6c);
    padding: 10px 20px;
    border-bottom: 3px solid rgba(241, 189, 189, 0.5);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
}

/* BRAND STYLING */
.navbar .navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #fff !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* MENU ITEM */
.navbar-nav > li > a {
    color: #fff !important;
    font-size: 16px;
    padding: 12px 18px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Efek hover */
.navbar-nav > li > a:hover {
    background: rgba(177, 182, 246, 0.2);
    border-radius: 5px;
    transform: scale(1.05);
}

/* Efek garis bawah animasi */
.navbar-nav > li > a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    background: #ffdd57;
    left: 50%;
    bottom: -5px;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar-nav > li > a:hover::after {
    width: 80%;
}

/* Efek tombol menu responsive */
.navbar-toggle {
    border: none;
    background: transparent !important;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* Efek menu saat di mobile */
@media (max-width: 768px) {
    .navbar {
        background: #007bff;
    }
    .navbar-nav {
        text-align: center;
    }
    .navbar-nav > li {
        display: block;
        margin: 10px 0;
    }
    .navbar-nav > li > a {
        display: inline-block;
        padding: 10px 20px;
        border-radius: 5px;
    }
}
/* Warna teks menu aktif */
.navbar-nav > .active > a {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important; /* Pastikan tetap kontras */
    font-weight: bold;
    border-radius: 5px;
}

/* Warna teks saat hover */
.navbar-nav > li > a:hover {
    color: #ffdd57 !important; /* Warna kuning terang untuk efek stylish */
}
