:root{
    --primary1: #00bbff;
    --primary2: #0074c1;
    --primary3: #00719c;
    --primary4: #19650a
;
    --back-color: #f9fcff;
}

header{
    background: var(--primary4);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

header h1{
    color: white;
    font-weight: 500;
    font-size: 1.5rem;
}

header h1 span{
    color: var(--primary1);
}

.header-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7em 1em;
}

nav{
    position: absolute;
    top: 110%;
    right: 3%;
    z-index: 999;
    width: 50%;
    background: var(--primary4);
    border-radius: .5em;
    transition: .4s ease-out;
    transform: translateX(80px) translateY(-200px) scale(0);
}

.open-nav{
    transform: unset;
}

nav ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5em;
    height: 100%;
    list-style-type: none;
    padding: 2em 0; 
    text-align: center;
}

nav ul li a{
    text-decoration: none;
    color: white;
}

.dim{
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.73);
    z-index: 901;
    opacity: 0;
    transition: .2s;
    pointer-events: none;
}

.show-dim{
    opacity: 1;
    pointer-events: all;
}

.burger{
    display: flex;
    flex-direction: column;
    gap: .4em;
    padding: .7em;
    border-radius: .2em;
    z-index: 999;
}

.line1, .line2, .line3{
    background: #fff;
    width: 2em;
    height: 2px;
    border-radius: .5em;
    transition: .3s;
}

.line1{
    width: 1.2em;
    align-self: end;
}

.line3{
    width: 1.2em;
}

.toggle .line1{
    width: 1.7em;
    transform: translateY(8px) rotate(135deg);
    align-self: unset;
}

.toggle .line2{
    transform: translateX(20px);
    opacity: 0;
}

.toggle .line3{
    width: 1.7em;
    transform: translateY(-8px) rotate(-135deg);
}

@media screen and (min-width: 768px){
    .header-container{
        max-width: 768px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 1024px) {

    header{
        background: white;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.422);
    }

    .header-container{
        max-width: 1200px;
        padding: 1.1em 2em;
    }

    header h1{
        color: var(--primary4);
        font-size: 1.8rem;
    }

    nav{
        position: unset;
        transform: unset;
        background: none;
        border-radius: unset;
        width: unset;
    }

    nav ul{
        flex-direction: row;
        padding: 0;
        gap: 4em;
    }

    nav ul li a{
        color: black;
        font-size: .9rem;
        position: relative;
        transition: .3s;
    }

    nav ul li a::after{
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background: var(--primary1);
        bottom: -10%;
        left: 0;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .3s;
    }

    nav ul li a:hover{
        color: var(--primary1);
    }

    nav ul li a:hover::after{
        transform: scaleX(1);
        transform-origin: left;
    }

    .track a{
        padding: .8em 3em;
        background: var(--primary4);
        color: white;
        border-radius: .1em;
    }

    .track a:hover{
        background: var(--primary1);
        color: white;
    }

    .track a::after{
        display: none;
    }

    .burger{
        display: none;
    }
}