/* ======== NAVBAR =========*/

#logo {
    color: var(--second-color);
    font-size: var(--h1-heigth-sm);
    font-weight: 700;
    letter-spacing: 1px;
}

span {
    color: var(--contrast-color);
}

#btn-mobile {
    cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
    width: 35px;
    height: 2.5px;
    background-color: var(--text-color);
    margin: 8px 0;
    transition: 0.4s;
}

#btn-mobile.clicked .bar1 {
    transform: translate(0, 10px) rotate(-225deg);
}

#btn-mobile.clicked .bar2 {
    opacity: 0;
}

#btn-mobile.clicked .bar3 {
    transform: translate(0, -11px) rotate(225deg);
}

#nav {
    z-index: 10;
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: var(--bg-color);
}

#menu-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#menu {
    display: none;
}

#menu a:hover {
    color: var(--contrast-color);
}

#menu.active {
    position: absolute;
    top: var(--menu-heigth);
    left: 0;
    font-size: var(--h3-heigth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    width: 100vw;
    min-height: calc(100vh - var(--menu-heigth));
    gap: 1.5rem;
    overflow: default;
}


@media(min-width: 800px) {

    #btn-mobile {
        display: none;
    }

    #nav {
        transition: 0.4s;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        background-color: transparent;
    }

    #nav.scrolling {
        background-color: var(--bg-color);
    }

    #menu,
    #menu.active {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
}