
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}


.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #ff6b6b, #ffa726);
    background-size: 300% 100%;
    animation: navbar-glow 6s ease infinite;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes navbar-glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.navbar .nav-link,
.navbar .navbar-brand {
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #f4e004ff !important;
    font-weight: 700;
}

.logo-img {
    max-width: 50px;
    height: auto;
    border-radius: 50%;
    margin-right: 10px;
}

.custom-navbar {
    background: linear-gradient(135deg, #d6d5c4, #2e4d39, #092f10, #c14d00);
    background-size: 400% 400%;
    animation: gradientSlide 15s ease infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    position: relative;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f9f9f9 !important;
}


.nav-pills .nav-link.active,
.navbar .nav-pills .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #14d4ff !important;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.5em;
    height: 1.5em;
}

.force-black {
    color: #000 !important;
}


.dropdown-menu {
    background: rgba(46, 77, 57, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.dropdown-item {
    color: #ffffff !important;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #f4e004ff !important;
}


.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;       
    left: auto;
    margin-right: 0.1rem;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-toggle::after {
    float: left;
    margin-right: 6px;
    transform: rotate(-90deg);
}


#scrollspyHeading1,
#scrollspyHeading2,
#scrollspyHeading3,
#scrollspyHeading4,
#scrollspyHeading5,
#scrollspyHeading6 {
    scroll-margin-top: 120px;
}

@media (max-width: 1199.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .logo-img {
        max-width: 40px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
}


@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .logo-img {
        max-width: 35px;
        margin-right: 8px;
    }
    
    .navbar-collapse {
        max-height: 80vh !important;
        overflow-y: auto;
        margin-top: 1rem;
        background: rgba(46, 77, 57, 0.95);
        border-radius: 10px;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }

    .nav-pills {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 10px 15px;
        border-radius: 6px;
        width: 100%;
        text-align: left;
    }
    
    .dropdown-menu {
        background: rgba(30, 50, 35, 0.95);
        border: none;
        box-shadow: none;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .dropdown-item {
        padding: 8px 15px;
        border-radius: 6px;
    }
    
   
    .dropdown-submenu > .dropdown-menu {
        position: static;
        width: 100%;
        margin-left: 0;
        padding-left: 15px;
        background: rgba(167, 167, 167, 0.95);
        margin-top: 0.5rem;
        border-radius: 6px;
        display: none;
    }
    
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > .dropdown-toggle::after {
        float: right;
        margin-right: 0;
        margin-left: auto;
        transform: rotate(0deg);
    }
    
    .dropdown-submenu.show > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}


@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 0.85rem;
    }
    
    .logo-img {
        max-width: 30px;
        margin-right: 6px;
    }
    
    .navbar-toggler {
        padding: 0.4rem;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .dropdown-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    #scrollspyHeading1,
    #scrollspyHeading2,
    #scrollspyHeading3,
    #scrollspyHeading4,
    #scrollspyHeading5,
    #scrollspyHeading6 {
        scroll-margin-top: 100px;
    }
}


@media (max-width: 374.98px) {
    .navbar-brand {
        font-size: 0.75rem;
    }
    
    .logo-img {
        max-width: 25px;
    }
    
    .nav-link,
    .dropdown-item {
        font-size: 0.85rem;
    }
}

