.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--navbar-gradient);
    padding: var(--navbar-padding) 0;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: none;
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}


.navbar.scrolled .nav-link {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.navbar.scrolled .logo-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
}


.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    transition: height 0.3s ease;
}

.scrolled .logo-img {
    height: 35px;
}

.logo-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar:not(.scrolled) .logo-text {
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin: 0 2rem;
}

.nav-link {
    position: relative;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled) .nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.phone-link {
    display: block;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 91, 170, 0.2);
}

.navbar:not(.scrolled) .phone-link {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar:not(.scrolled) .phone-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.phone-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 170, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: transform 0.3s ease;
}


/* Dropdown base */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: inherit;
    text-decoration: none;
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    z-index: 1000;
}

.dropdown-menu .dropdown-item {
    padding: 12px 16px;
    display: block;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f2f2f2;
    color: #003366;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}


/* Mobile menu styles */
@media (max-width: 1037px) {
    .navbar {
        height: var(--navbar-height-mobile);
    }

    .navbar.scrolled {
        height: var(--navbar-height-scrolled-mobile);
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height-mobile));
        background: var(--navbar-gradient);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 2rem 0;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        display: none !important;
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .nav-cta {
        width: 100%;
        padding: 1rem;
    }

    .phone-link {
        justify-content: center;
    }
}