nav{
    margin: 0 auto;
    font-weight: 300;
    position: fixed;
    text-transform: uppercase;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all .3s ease;
    border-bottom: .15rem solid white;
}

.scrolled {
    height: 8vh;
    background: rgba(17, 17, 17, 0.363);
    border-bottom: none;
}

.nav-logo img{
    height: 3rem;
    margin: .5rem;
    transition: all .3s ease;
}

.scrolled .nav-logo img{
    height: 2.2rem;
}

.nav-links{
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    height: 100%;
}

.nav-links > div {
    flex-wrap: nowrap;
    justify-content: space-around;
    display: flex;
    align-items: center;
}

.nav-links >div:first-child{
    justify-content: flex-start;
}

.nav-links >div:last-child{
    justify-content: flex-end;
}

.nav-links li{
    list-style: none;
    margin: 0 1.3rem;
}

.nav-links a{
    /* color: rgb(0, 42, 104); */
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all .3s ease;
}

#contact-item {
    cursor: pointer;
    color: white;
    border: 2px solid white;
    border-radius: 2rem;
    padding: .1rem .6rem;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s ease;
}

#contact-item:hover {
    background-color: rgba(255, 255, 255, 0.288);
    transform: scale(1.05);
}

.nav-links a:hover{
    /* color: rgb(0, 174, 255); */
    -webkit-transform: translateY(-.3rem);
    transform: translateY(-.3rem);
}

.nav-link::after {
    content: '';
    display: block;
    background: white;
    width: 0;
    height: 2px;
    transform: translateY(4px);
    transition: .5s all ease;
}
.nav-item {
    transition: all .3s ease;
}
.nav-item:hover {
    -webkit-transform: translateY(-.2rem);
    transform: translateY(-.2rem);
}

.burger{
    display: none;
    cursor: pointer;
}
.burger div{
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all .3s ease;
}

.active-section::after {
     width: 100%;
}

@media screen and (max-width: 960px){

    nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 8vh;
        border: unset;
    }
    .nav-links{
        position: absolute;
        right: 0px;
        height: 93vh;
        top: 8vh;
        background-color: rgba(0, 0, 0, .85);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-left: .5rem;

        width: 50%;
        transform: translateX(100%);
        transition: transform .5s ease-in;
        z-index: 100;
    }
    .nav-links li{
        opacity: 0;
        width: 80%;
    }
    .nav-links > div:nth-child(1){
        order: 2;
        flex-direction: column;
    }
    .nav-links > div:nth-child(2){
        order: 1;
        margin: 0 auto;
    }
    .nav-links > div:nth-child(3){
        order: 3;
        flex-direction: column;
    }
    .nav-links li a{
        display: block;
        padding: 1.5rem 0;
        width: 100%;
        height: 100%;
        font-size: .8rem;
    }
    #contact-item {
        padding: 0;
    }
    #contact-item > a {
        padding: .3rem .8rem;
    }
    .burger{
        display: block;
        margin-right: 1rem;
    }
    
}
.nav-top-active{
    background: rgba(0, 0, 0, .85);
}
.nav-active{
    transform: translateX(0%);
}

.toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px);
}
.toggle .line2{
    opacity: 0;
}
.toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px);
}

@keyframes navLinkFade{
    from{
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
