.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(60, 60, 60, 0.33);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    transition: background-color 0.8s ease-out, box-shadow 1.5s ease-out;
}

.navbar.shrink {
    background-color: var(--nav-bg, #3c3c3c);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}

.navbar-content {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Button */
.hamburger {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Higher than mobile menu */
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    margin: 0;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    margin: 0;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger.active {
    transform: scale(1);
}

/* Navigation Links (Desktop) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links a:hover {
    color: var(--gray-200, #e0e0e0);
}


/* Phone Number */
.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.phone img {
    width: 20px;
    height: 20px;
}


/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .nav-links {
        display: none; /* Hide desktop links on mobile */
    }
    .logo {
        width: 10rem;
        border-radius: 10px
    }

    .nav-links {
        display: none;
        flex-direction: row;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(60, 60, 60, 0.33);
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .nav-links.shrink {
        background-color: var(--nav-bg, #3c3c3c);
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
    }
}

/* Rest of your CSS (logo, phone, etc.) remains unchanged */
.logo {
    width: 15rem;
    border-radius: 10px;
}

.phone-desktop {
    display: flex;
    align-items: center;
}

.phone {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.5s ease;
}

.phone:hover {
    transform: scale(1.05);
}

.phone img {
    height: 20px;
    margin-right: 8px;
}