/* HEADER  */
header {
    width: 100%;
    border-bottom: 0.1px solid var(--bw-blue-dark);
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--bw-blue-dark);
    background-color: #ffffff;
    z-index: 3;
    transition: all 3s ease;
}

.nav-container {
    margin: auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

#logo a {
    display: flex;
    place-items: center;
}

#logo a img {
    width: 6rem;
    padding: 0.1rem;
}

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

.nav-section ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav-section ul li {
    font-size: 1rem;
    color: var(--bw-blue-dark);
    font-weight: 400;
    transition: all 0.1s ease-in-out;

    &:hover {
        cursor: pointer;
        transform: scale(1.1);
    }
}

/* MOBILE NAV MENU SECTION */

.hamburger-menu {
    position: relative;
}

.hamburger-icon div {
    display: flex;
    place-items: center;
    gap: 0.1rem;
    transition: all 0.2s ease-in-out;
}

.hamburger-icon span {
    height: 0.3rem;
    width: 1.5rem;
    background-color: var(--bw-blue);
    border-radius: 0.5rem;
    transition: all 0.5s ease-in-out;
}

.hamburger-icon div span:nth-child(2) {
    width: 0.3rem;
    border-radius: 50%;
}

.hamburger-icon div:nth-child(2) {
    margin: 0.15rem 0rem;
}

.responsive-nav-section {
    border-top: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    width: 15rem;
    margin-top: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8%);
    transition: all 60ms ease-in-out;
}

.responsive-nav-section ul li {
    list-style: none;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
    background-color: var(--bw-blue-dark);
    font-weight: 400;
    padding: 0.8rem 0.5rem;
    border-top: 1px solid #ffffff;
    transition: all 200ms ease-in-out;
}

.responsive-nav-section.open {
    opacity: 0.9;
    visibility: visible;
    transform: translateX(0%);
}

.hamburger-icon.open div span:last-child {
    opacity: 0;
}

.hamburger-icon.open div:first-child {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.hamburger-icon.open div:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-icon div:first-child {
    transform: none;
}

.hamburger-icon div:nth-child(2) {
    opacity: 1;
}

.hamburger-icon div:last-child {
    transform: none;
}

.nav-section-mobile {
    display: none;
}

@media screen and (max-width: 1024px) {
    .nav-section-mobile {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
    }

    .nav-section {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 640px) {
    #logo a p {
        font-size: 1.25rem;
    }
}