/* navbar */
.nav {
    width: 100%;
    height: 120px;
    display: flex;
    padding: 0 45px;
    flex-direction: row;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    justify-content: space-between;
    background-color: transparent;
    z-index: 9;
    transition: 0.4s;
}

.nav.scroll {
    position: fixed;
    background-color: var(--third-background);
    box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
    -webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
}

.nav ul {
    display: flex;
    flex-direction: row;
    gap: 30px;
    z-index: 10;
}

.nav ul li {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.nav ul li a {
    color: var(--main-white);
    transition: 0.4s;
}

.nav ul li a.selected {
    color: var(--main-red);
}

.nav ul li a:hover {
    opacity: 70%;
}

/* navbar logo */
.nav-logo {
    width: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--main-white);
    cursor: pointer;
    transition: 0.4s linear;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
}

.nav-logo img {
    width: 46.67px;
    height: 31.11px;
}

/* navbar menu icon */
.nav-mobile {
    display: none;
    font-size: 50px;
    color: var(--main-white);
    z-index: 11;
    cursor: pointer;
}

/* navbar mobile */
@media (max-width: 980px) {
    .nav {
        padding: 0 20px;
        transition: 0.4s;
    }

    .nav.active {
        width: 100%;
        height: 100%;
        display: flex;
        padding: 40px 20px;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        justify-content: flex-start;
        background-color: var(--third-background);
        z-index: 9;
        gap: 50px;
    }
    
    .nav ul {
        display: none;
    }

    .nav.active ul {
        display: flex;
        flex-direction: column;
    }

    .nav.active ul li a {
        font-size: 25px;
    }

    .nav-mobile {
        position: absolute;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}