/* FORCE NAVBAR TO ALWAYS BE VISIBLE - OVERRIDE EVERYTHING */
.navbar,
.navbar.scrolled,
.navbar.scrolled-top,
.navbar.scroll-up,
.navbar.scroll-down,
.navbar:hover,
.navbar:focus,
.navbar[data-*] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    height: auto !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important; /* Only animate background */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Initial state - modern deep navy */
.navbar.scrolled-top {
    background: linear-gradient(135deg, 
        rgba(31, 45, 61, 0.95) 0%, 
        rgba(31, 45, 61, 0.9) 100%) !important;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Scrolled state - enhanced deep navy */
.navbar.scrolled {
    background: rgba(31, 45, 61, 0.9) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(0) !important; /* Always visible */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
}

/* COMPLETELY DISABLE ALL SCROLL ANIMATIONS */
.navbar.scroll-down,
.navbar.scroll-up,
.navbar[class*="scroll"] {
    transform: translateY(0) !important; /* Force always visible */
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important; /* Disable ALL transitions */
    animation: none !important; /* Disable ALL animations */
}

/* Body padding to account for fixed navbar */
body {
    padding-top: 64px; /* Adjust based on navbar height */
}

/* Refined navbar link styles */
.navbar a {
    transition: all 0.2s ease-in-out;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled a {
    color: rgba(255, 255, 255, 0.95);
}

.navbar a:hover {
    color: rgb(79, 142, 247);
    transform: translateY(-1px);
}

/* Subtle underline effect on hover */
.navbar a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(90deg, rgb(79, 142, 247), rgb(99, 102, 241));
    transition: all 0.2s ease-in-out;
    transform: translateX(-50%);
}

.navbar a:not(.btn):hover::after {
    width: 100%;
}

/* Professional logo styling */
.navbar .btn-ghost {
    transition: all 0.2s ease-in-out;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.navbar.scrolled .btn-ghost {
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
}

.navbar .btn-ghost:hover {
    color: rgb(79, 142, 247);
    transform: translateY(-1px);
    background-color: rgba(79, 142, 247, 0.1);
}

/* Mobile menu button - refined */
.navbar .btn-ghost.lg\:hidden {
    transition: all 0.2s ease-in-out;
}

.navbar .btn-ghost.lg\:hidden:hover {
    background-color: rgba(79, 142, 247, 0.1);
    transform: scale(1.05);
}

.navbar.scrolled .btn-ghost.lg\:hidden svg {
    transform: scale(1.02);
}

/* Dropdown menu adjustments for fixed navbar */
.dropdown-content {
    margin-top: 0.5rem !important;
    background: rgba(31, 45, 61, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Language selector - professional styling */
.navbar .dropdown .btn-ghost.btn-sm {
    transition: all 0.2s ease-in-out;
    color: rgba(255, 255, 255, 0.8);
}

.navbar .dropdown .btn-ghost.btn-sm:hover {
    background-color: rgba(79, 142, 247, 0.1);
    color: rgb(79, 142, 247);
    transform: translateY(-1px);
}

.navbar.scrolled .dropdown .btn-ghost.btn-sm {
    color: rgba(255, 255, 255, 0.9);
}

/* Modern CTA button styling */
.navbar .btn-primary {
    transition: all 0.2s ease-in-out;
    background: linear-gradient(135deg, rgb(79, 142, 247), rgb(99, 102, 241));
    border: none;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.navbar .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.navbar .btn-primary:hover::before {
    left: 100%;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 142, 247, 0.4);
}

.navbar.scrolled .btn-primary {
    box-shadow: 0 4px 15px rgba(79, 142, 247, 0.25);
}

/* Smooth scroll behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Remove flashy pulse animation - replace with subtle glow */
.navbar.scrolled.subtle-glow {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(31, 45, 61, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

/* Dark theme support */
[data-theme="dark"] .navbar.scrolled-top {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.7) 0%, 
        rgba(30, 41, 59, 0.6) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .navbar.scrolled {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.85) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(148, 163, 184, 0.2),
        0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .navbar a {
    color: rgba(203, 213, 225, 0.9);
}

[data-theme="dark"] .navbar.scrolled a {
    color: rgba(248, 250, 252, 0.95);
}

[data-theme="dark"] .navbar a:hover {
    color: rgb(96, 165, 250);
}

[data-theme="dark"] .navbar .btn-ghost {
    color: rgba(203, 213, 225, 0.9);
}

[data-theme="dark"] .navbar.scrolled .btn-ghost {
    color: rgba(248, 250, 252, 1);
}

[data-theme="dark"] .navbar .btn-ghost:hover {
    color: rgb(96, 165, 250);
    background-color: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .navbar .dropdown .btn-ghost.btn-sm {
    color: rgba(203, 213, 225, 0.8);
}

[data-theme="dark"] .navbar .dropdown .btn-ghost.btn-sm:hover {
    background-color: rgba(96, 165, 250, 0.15);
    color: rgb(96, 165, 250);
}

[data-theme="dark"] .dropdown-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 56px; /* Smaller padding for mobile */
    }
    
    .navbar.scrolled {
        padding: 0.5rem 1rem;
    }
    
    .navbar a:not(.btn)::after {
        display: none; /* Remove underline effect on mobile for better UX */
    }
}