/* --- Premium Header Styles --- */

/* Navbar Container */
.navbar {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
    /* Slightly transparent for depth */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent) 1;
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.navbar-brand .text-secondary {
    color: var(--secondary-color) !important;
}

/* Nav Link Styling */
.navbar-nav .nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #555 !important;
    font-size: 1rem;
    padding: 10px 18px !important;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50px;
    /* Fully rounded pill */
    overflow: hidden;
    z-index: 1;
}

/* Pill Background Animation */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 121, 139, 0.1), rgba(174, 150, 90, 0.1));
    transform: scaleX(0);
    /* Hidden by default */
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
    border-radius: 50px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    transform: scaleX(1);
    /* Slide in */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Icon Animation - Spin & Pop */
.nav-link i {
    color: var(--secondary-color);
    margin-right: 8px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.nav-link:hover i {
    color: var(--primary-color);
    transform: rotate(15deg) scale(1.2);
}

/* Dropdown Menu - Glass & Float */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 10px;
    margin-top: 20px !important;
    animation: fadeFloat 0.4s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes fadeFloat {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
    color: #444;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(43, 121, 139, 0.08), transparent);
    color: var(--primary-color);
    padding-left: 25px;
    /* Slide text right */
}

.dropdown-item i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* Navbar Buttons (Premium + Shimmer) */
.navbar .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #236876);
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(43, 121, 139, 0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    z-index: 1;
}

/* Shimmer Effect */
.navbar .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.navbar .btn-primary:hover::after {
    left: 100%;
}

.navbar .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(43, 121, 139, 0.5);
}

.navbar .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 28px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(43, 121, 139, 0.2);
}

/* User Profile & Language */
.navbar .btn-outline-secondary {
    border: 2px solid #eee;
    color: #666;
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.navbar .btn-outline-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler-icon {
    /* Ensure icon is visible against white */
    filter: invert(0.4) sepia(0) saturate(1) hue-rotate(0deg) brightness(0.9);
}