/* Modern Navbar Styles */
#main-nav {
    background: linear-gradient(135deg, #0070c9 0%, #0ea5e9 50%, #06b6d4 100%);
    box-shadow: 0 4px 30px rgba(0, 112, 201, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

#main-nav.scrolled {
    background: linear-gradient(135deg, #005a9e 0%, #0284c7 50%, #0891b2 100%);
    box-shadow: 0 8px 40px rgba(0, 112, 201, 0.4);
}

.nav-logo-glow {
    position: relative;
}

.nav-logo-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #06b6d4, #0ea5e9, #06b6d4);
    border-radius: 12px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-logo-glow:hover::before {
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.nav-link {
    position: relative;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-cta {
    background: white;
    color: #0070c9;
    font-weight: 700;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #06b6d4, #0ea5e9);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-cta:hover::before {
    opacity: 1;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: white;
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

.nav-cta.active {
    background: rgba(255, 255, 255, 0.95);
    color: #0070c9;
}

/* Mobile Menu - Vertical Design */
.mobile-menu-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Vertical Mobile Navigation */
#mobile-menu {
    overflow: hidden;
    position: relative;
    padding-bottom: 1rem;
}

#mobile-menu .mobile-menu-glass {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    width: auto;
}

/* Mobile Menu Links - Vertical */
#mobile-menu a {
    white-space: nowrap;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#mobile-menu a svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Mobile Search - Vertical */
#mobile-menu .mb-2 {
    margin-bottom: 0.5rem;
    width: 100%;
}

#mobile-menu .mb-2 .flex {
    padding: 0.75rem 1rem;
    width: 100%;
}

#mobile-menu .mb-2 input {
    font-size: 0.875rem;
    width: 100%;
}

/* Active state for mobile */
#mobile-menu a.active,
#mobile-menu a[href*="contact"] {
    background: rgba(255, 255, 255, 0.95);
    color: #0070c9;
}

/* Hover state for mobile */
#mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.search-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-bar:hover,
.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 150px;
    transition: width 0.3s ease;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar:focus-within input {
    width: 200px;
}

.nav-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.375rem;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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