/**********************
Navigation
*********************/

#header {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    transition: 0.3s background-color;
    z-index: 999999;
    border-bottom: 2px solid white;
    background-color: #070606;
}

#header.scrolled {
    background-color: white;
    color: black;
    border-bottom-color: black;
}

#header.scrolled #headerNav {
    color: black;
}

#headerNav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 20px;
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto;
    height: var(--nav-height);
    color: white;
    gap: 20px;
}

#headerNavLogo {
    margin-right: auto;
    text-transform: uppercase;
    font-weight: 700;
}

#headerNavLogo span {
    color: var(--orange);
}

#headerNav a {
    position: relative;
}

#headerNav a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--orange);
    transform: scaleX(0);
    transition: 0.3s;
}

#headerNav a:hover:before {
    transform: scaleX(1);
}

#headerNavToggle {
    display: none;
}

#headerNavToggle.open {
    transform: rotate(180deg);
}

#headerNavMobile {
    overflow: hidden;
    height: 0;
    transition: 0.5s;
}

#headerNavMobile a {
    display: block;
    width: 100%;
    padding: 10px 20px;
}

#headerNavMobile a:first-child {
    margin-top: 10px
}

#headerNavMobile a:last-child {
    margin-bottom: 10px;
}

@media (max-width: 670px) {
    #headerNav {
        border-bottom: 1px solid black;
    }

    #headerNav > a:not([href="#home"]) {
        display: none;
    }

    #headerNavToggle {
        cursor: pointer;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        color: #212112;
        background-color: transparent;
        border: none;
        display: flex;
        padding: 0;
    }

    #headerNavToggle svg {
        width: 25px;
        height: auto;
    }

}
