#navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    transition: all .3s ease;
}

#navbar::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: .2rem;

    background: #002fff;
}

#navbar.scrolled{
    background: rgba(8,17,29,.95);
    backdrop-filter: blur(1rem);
    box-shadow: 0 .5rem 2rem rgba(0,0,0,.3);
}

#navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.5rem 6%;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: clamp(3.5rem, 5vw, 5rem);
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.5rem);

    list-style: none;
}

nav a {
    position: relative;

    color: rgba(255,255,255,.85);
    text-decoration: none;

    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;

    transition: .3s;
}

nav a:hover {
    color: white;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -.4rem;

    width: 0;
    height: .12rem;

    background: #0084ff;

    transition: .3s;
}

nav a:hover::after {
    width: 100%;
}

button {
    border: none;

    padding: .9rem 1.6rem;

    background: #003cff;
    color: white;

    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;

    cursor: pointer;

    transition: .3s;
}

button:hover {
    transform: translateY(-.1rem);
}

body {
    background: #08111d;
}

/* Hamburger */

.menu-toggle{
    display: none;

    flex-direction: column;
    gap: .4rem;

    cursor: pointer;
}

.menu-toggle span{
    width: 1.8rem;
    height: .15rem;

    background: white;

    transition: .3s;
}

/* Tablet */

@media (max-width: 62rem){

    #navbar nav{
        padding: 1rem 6%;
    }

    .logo img{
        height: 3.5rem;
    }

    .menu-toggle{
        display: flex;
    }

    nav ul{
        position: fixed;

        top: 100%;
        left: -100%;

        width: 100%;
        height: calc(100vh - 6rem);

        background: #08111d;

        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        padding-top: 4rem;

        transition: .4s ease;
    }

    nav ul.active{
        left: 0;
    }

    nav ul li{
        width: 100%;
        text-align: center;
    }

    nav a{
        font-size: 1rem;
    }

    button{
        margin-top: 1rem;
    }

}

/* Smartphones */

@media (max-width: 40rem){

    .logo img{
        height: 3rem;
    }

    nav ul{
        padding-top: 3rem;
    }

}