/*************************** Nav *******************************/


#nav {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    padding: 20px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 3;
}

#navLogo {
    margin-right: auto;
}

#navLogoImage {
    max-width: 100px;
}

#navList {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navListItem {
    text-transform: capitalize;
    font-size: 18px;
    position: relative;
}

.navListItem:last-child {
    background-color: var(--primary);
    color: white;
    padding: 9px 30px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 27px;
    font-size: 17px;
}

.navListItem:not(:last-child):before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    top: 100%;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: 0.3s;
}

.navListItem.active:not(:last-child):before,
.navListItem:hover:not(:last-child):before {
    transform: scaleX(1);
}

#navToggle {
    display: none;
}

@media (max-width: 800px) {
    #nav {
        padding: 10px 20px;
    }

    #navLogoImage {
        max-width: 80px;
    }

    #navList {
        position: absolute;
        visibility: hidden;
        height: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        top: 100%;
        background-color: white;
        flex-direction: column;
        padding: 0 20px;
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
        gap: 15px;
        transition: 0.3s;
    }

    #navList.active {
        visibility: visible;
        border-top: 1px solid var(--black);
    }

    .navListItem:first-child {
        margin-top: 20px;
    }

    .navListItem:last-child {
        margin-bottom: 20px;
    }

    #navToggle {
        display: flex;
    }

    #navToggle svg {
        width: 20px;
        height: auto;
    }
}