/* ===== NAVBAR GLASSMORPHISM & EFFECTS ===== */
.navbar-glass {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(248, 250, 252, 0.9) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Enhanced Scroll Progress Bar */
.scroll-progress-enhanced {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg,
            #2563eb 0%,
            #06b6d4 25%,
            #10d9c4 50%,
            #06b6d4 75%,
            #2563eb 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow:
        0 0 20px rgba(37, 99, 235, 0.6),
        0 0 40px rgba(6, 182, 212, 0.4);
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating particles removed for simplified corporate style */
.navbar-particles {
    height: 100%;
}

/* Logo Effects */
.logo-container {
    position: relative;
    padding: 8px;
}

.logo-shine {
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

/* Enhanced Navigation Links */
.nav-link-enhanced {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link-enhanced:hover .nav-indicator {
    width: 80%;
}

/* Desktop: simplify hover/active to a subtle text color change (corporate) */
@media (min-width: 1025px) {

    .nav-link-enhanced .nav-bg,
    .nav-link-enhanced .nav-shine,
    .nav-link-enhanced .nav-indicator {
        display: none !important;
        opacity: 0 !important;
    }

    .nav-link-enhanced:hover,
    .nav-link-enhanced:focus {
        background: transparent !important;
        color: #1e40af !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .nav-link-enhanced:hover span,
    .nav-link-enhanced:focus span {
        color: #1e40af !important;
        font-weight: 600;
    }

    .nav-link-enhanced.active {
        background: transparent !important;
        color: #1e40af !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .nav-link-enhanced.active span {
        color: #1e40af !important;
        font-weight: 600;
    }
}

.nav-link-enhanced.active {
    color: white !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.nav-link-enhanced.active .nav-bg {
    opacity: 1;
    scale: 1;
}

.nav-link-enhanced.active .nav-indicator {
    width: 80%;
    background: linear-gradient(90deg, #ffffff, #f0f9ff);
}

.nav-link-enhanced.active span {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
}

.mobile-menu-btn:focus {
    outline: 2px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

/* Enhanced Language Selector */
.language-selector-enhanced select {
    background-image: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.language-selector-enhanced:hover select {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* Social Media Icons */
.social-icon {
    position: relative;
}

.social-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover::before {
    opacity: 1;
    bottom: -35px;
}

/* Mobile Social Icons */
.social-icon-mobile {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.social-icon-mobile:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Enhanced Navbar Scroll Behavior */
.navbar-scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px 0 rgba(31, 38, 135, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.navbar-scrolled .logo-container img {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .scroll-progress-enhanced {
        height: 3px;
    }

    .particle {
        display: none;
    }

    .nav-link-enhanced {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 8px;
    }

    .nav-link-enhanced:hover {
        background: linear-gradient(135deg, #2563eb, #06b6d4);
        color: white;
    }

    .nav-link-enhanced.active {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #333 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    #mobile-menu>div {
        padding: 16px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .social-icon {
        display: none;
    }

    header .lg\\:hidden .absolute {
        z-index: 100;
    }
}

/* Mobile menu (overlay + panel) */
#mobile-menu {
    display: none;
    /* toggled via JS */
}

#mobile-menu:not(.hidden) {
    display: block;
}

#mobile-menu [data-mobile-overlay] {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.nav-link-mobile {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    /* gray-800 */
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-link-mobile:hover {
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

/* Animation for appearing navbar */
.navbar-appear {
    animation: navbar-slide-down 0.6s ease-out;
}

@keyframes navbar-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Shimmer effect for logo */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

.animate-shimmer {
    animation: shimmer 1.5s ease-in-out;
}