.navbar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 1002;
    transition: background-color 0.5s ease;
    background-color: transparent;
    font-family: var(--font-body);
    padding: 0 20px;
}

.logo img {
    height: 50px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Button */
.nav-button {
    padding: 14px 20px;
    border-radius: 10px;
    background-color: none;
    color: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color);
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

/* Hover Effect */
.nav-button:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color) !important;
}



/* Links with Underline Hover Effect */
.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    font-size: 19px;
}

/* Underline - starts invisible */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

/* Hover - underline grows in */
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Active link - underline always visible */
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Exclude button (phone link) from underline effect */
.nav-links .nav-button::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: relative;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    border-radius: 10px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.hamburger.open .bar:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 0;
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 0;
}

.navbar.scrolled {
    background-color: var(--dark-color);
}


/* Hide nav-links and show hamburger*/
@media screen and (max-width: 650px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-gradient);
        text-align: center;
        padding: 20px 0;
        justify-content: center; /* Center vertically */
        align-items: center; /* Center horizontally */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }
}

