#navbar-main-container {
    top: 0;
    left: 0;
    right: 0;
    /* width: 100%; */
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

#logo {
    max-width: 250px;
    min-width: 250px;
    height: auto;
    cursor: pointer;
}

#navbar-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1; /* Added to allow the links container to grow */
}

.navbar-link {
    margin: 0 15px;
    color: var(--primary-black);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.navbar-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.services-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    margin-top: 3px;
    background-color: white;
    min-width: 160px;
    z-index: 1;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.1s ease, visibility 0.1s ease;
    pointer-events: none; /* Prevent hover from expanding the hoverable area */
}

.services-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Re-enable pointer events when dropdown is visible */
}

.dropdown-content div {
    color: var(--primary-black);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    /* transition-delay: 0.1s; */
}

.services-dropdown:hover .dropdown-content div {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content div:hover {
    background-color: #f1f1f1;
}

@media(max-width: 1024px) {
    #logo {
        max-width: 150px;
        min-width: 150px;
    }
    .navbar-link {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    #navbar-main-container {
        padding: 15px;
    }

    #logo {
        max-width: 140px;
        min-width: 140px;
    }

    #navbar-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1002;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    #navbar-links.show {
        opacity: 1;
        visibility: visible;
    }

    .navbar-link {
        margin: 10px 0;
        padding: 10px 0;
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #navbar-links.show .navbar-link {
        opacity: 1;
        transform: translateY(0);
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1003;
    }

    .burger-menu div {
        width: 100%;
        height: 2px;
        background-color: currentColor;
        transition: all 0.3s ;
    }

    .burger-menu.open div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.open div:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.open div:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .mobile-service-options {
        padding-top: 50%;
        box-sizing: border-box;
    }
}

.mobile-service-options {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%; /* Adjust as needed */
    height: 100%;
    background-color: white;
    z-index: 1003;
    padding: 20px;
    padding-top: 50%;
    overflow-y: auto;
}

.mobile-service-options.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.mobile-service-options.slide-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.back-button {
    font-weight: bold;
    margin-bottom: 10px;
}
