/* ==========================
   NAVBAR BASE
========================== */

* {
    box-sizing: border-box;
}


/* ==========================
   NAVBAR BASE
========================== */

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .35s ease;
    z-index: 9999;
    background: transparent;
}

/* when scrolling */
.navbar.scrolled {
    background: black;
}

/* ==========================
   LOGO
========================== */

.logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

/* ==========================
   MENU
========================== */

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

/* underline hover */

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -6px;
    background: #00e0ff;
    transition: .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================
   HAMBURGER
========================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: .3s;
}

/* ==========================
   MOBILE MENU
========================== */

@media(max-width:768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
    }

    .nav-links.open {
        max-height: 300px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

}