.custom-navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 2rem);
    min-height: 75px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    z-index: 2000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

@media (min-width: 576px) {
    .custom-navbar {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .custom-navbar {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .custom-navbar {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .custom-navbar {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .custom-navbar {
        max-width: 1320px;
    }
}

@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 15px 20px;
    }

    .navbar-collapse {
        flex-basis: 100%;
        margin-top: 15px;
    }

    .custom-navbar .nav-link {
        flex-basis: 100%;
        display: block;
        margin: 10px 0;
        text-align: center;
        border-radius: 15px;
    }
}

.custom-navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    position: relative;
    margin: 5px 0;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.custom-navbar .nav-link:hover {
    color: var(--maroon5) !important;
    background-color: rgba(93, 42, 119, 0.05);
    transform: translateY(-2px);
}

.custom-navbar .nav-link.active {
    color: white !important;
    background-color: var(--maroon5);
    box-shadow: 0 4px 15px rgba(93, 42, 119, 0.35);
    font-weight: 600;
    padding: 10px 20px;
    transform: scale(0.9);
}

@keyframes softFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.custom-navbar .navbar-brand img {
    height: 40px;
    width: auto;
    animation: softFloat 4s ease-in-out infinite;
}

.navbar-scroll {
    background-color: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.custom-navbar .nav-link.profile-btn {
    background-color: var(--high-ungu);
    color: white !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    font-weight: 600;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-navbar .nav-link.profile-btn:hover {
    background-color: #4A225E;
    color: white !important;
    transform: translateY(-2px);
}

.logout-menu-item {
    color: #dc3545;
}

.logout-menu-item:hover {
    background-color: #dc3545;
    color: white;
}

@media (max-width: 767.98px) {
    .custom-navbar {
        top: 10px;
        width: calc(100% - 1rem);
        padding: 10px 15px;
    }
}

@media (max-width: 575.98px) {
    .custom-navbar {
        top: 5px;
    }
}

.btn-contact-us {
    background: linear-gradient(135deg, var(--high-oren), var(--semi-high-oren));
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.4);
    transition: all 0.3s ease;
}

.btn-contact-us:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.6);
    background: linear-gradient(135deg, var(--semi-high-oren), var(--high-oren));
    color: white !important;
}