nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .2s ease;
}

nav.scrolled {
    background: #222;
    color: white;
    padding: .2rem 4rem;
    border-bottom: 1px solid rgb(29, 255, 104);
}

nav.scrolled ul small {
    background: white;
}

nav ul {
    list-style-type: none;
    display: flex;
    column-gap: 1.5rem;
    font-size: 1rem;
    font-family: Roboto, sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

nav ul a {
    text-decoration: none;
    color: inherit;
}

nav ul small {
    height: 3px;
    width: 0;
    margin-top: 2px;
    display: block;
    background: black;
    transition: .5s ease;
}

nav .menu-btn {
    background: none;
    border: none;
    font-size: 2rem;
    display: none;
    align-items: center;
    color: inherit;
}

.fa-xmark {
    font-size: 2.5rem;
}

.mobile-nav {
    position: fixed;
    z-index: 100;
    height: 100vh;
    width: 0;
    margin-top: 0;
    padding: 6rem 0 0;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    flex-direction: column;
    list-style-type: none;
    top: 0;
    right: 0;
    background: #222;
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-family: Roboto, sans-serif;
    transition: .5s ease;
}

.dark-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 100%;
    height: 100%;
    background: #000a;
    touch-action: none;
}

.mobile-nav.active {
    width: 50vw;
    display: flex;
    right: 0;
    padding: 6rem 0 0 2rem;
}

.mobile-nav a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 1.5rem 0;
}

.mobile-nav .contact {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    row-gap: .8rem;
}

.mobile-nav .contact a {
    padding: 0;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    user-select: none;
    cursor: pointer;
    transition: .2s ease;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    transform: scale(110%);
}

nav .links {
    display: flex;
    align-items: center;
    column-gap: 2rem;
}

nav .links ul:first-child {
    position: relative;
    top: 4px;
}

nav .contact, .mobile-nav .contact {
    text-transform: none;
    display: flex;
    column-gap: .8rem;
    padding: 0;
}

nav .contact a  {
    width: 2.9rem;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav .contact li {
    width: fit-content;
}

.mobile-nav .contact a {
    padding: .5rem .8rem;
    display: flex;
    column-gap: .5rem;
    font-size: 1rem;
}

nav .contact i, .mobile-nav .contact i {
    font-size: 1.2rem;
}

.mobile-nav .contact i {
    position: relative;
    top: 2px;
}

nav .contact li, .mobile-nav .contact li {
    background: #fff;
    color: black;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 50rem;
    border: 1px solid #888;
    transition: .2s ease;
}

nav .contact li:hover, .mobile-nav .contact li:hover {
    transform: scale(110%);
}

@media screen and (max-width: 1300px) {
    nav {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media screen and (max-width: 1000px) {
    nav {
        padding: 1.5rem 2rem;
    }

    nav.scrolled {
        padding: .2rem 2rem;
    }
}

@media screen and (max-width: 880px) {
    nav .desktop {
        display: none;
    }

    nav .menu-btn {
        display: flex;
    }

    nav.scrolled {
        padding: .8rem 2rem;
    }
}

@media screen and (max-width: 700px) {
    .mobile-nav.active {
        width: 70vw;
    }
}

@media screen and (max-width: 410px) {
    .mobile-nav.active {
        width: 100vw;
    }
}
