* {
    font-family: 'Quicksand';
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.header {
    display: flex;
    position: fixed;
    overflow: hidden;
    width: 100%;
    height: 100px;
    transition: 500ms;
    z-index: 999;
    transition: 1000ms cubic-bezier(0.37, 0.68, 0.28, 0.91);
}

.header-menu {
    height: 100vh;
    backdrop-filter: blur(4px);
}

.title {
    top: 40px;
    left: 40px;
    position: absolute;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    letter-spacing: normal;
    transition: 500ms;
}

.title:hover {
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    margin-left: auto;
    margin-right: 50px;
    height: 100%;
    overflow: visible;
}

.nav-item {
    display: inline-block;
    cursor: pointer;
    color: #000;
    height: 100px;  
    background-color: #1f1f1f;
    background: linear-gradient(to left, rgba(0, 0, 0, 0) 50%, #3cc7ad 50%) right;
    background-size: 200%;
    transition: 0.5s ease-out;
    overflow: visible;
}

.nav-item:hover {
    background-position: left;
    color: #fff;
}

.nav-item p {
    position: relative;
    margin: 4vh 5vw;  
    color: inherit;
    text-align: center;
}

.burger-links{
    overflow: hidden;
    display: none;
    position: absolute;
    width: 100vw;
    height: 100vh;
    left: 50%;
    top: 15vh;
    transform: translateX(-50%);
}

.burger-li{
    margin-top: 6vh;
    width: 100%;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.burger-li p {
    text-decoration: none;
    list-style: none;
    font-size: 24px;
    line-height: 100px;
    color: #000;
}

@media (max-width: 720px) {
    .title {
        font-size: 18px;
        left: 20px;
    }
}

@media (max-width: 1080px) {
    .nav-item {
        display: none;
    }

    .nav-links {
        position: absolute;
        width: 40px;
        height: 40px;
        right: 40px;
        top: 35px;
        transform: translateX(60px);
        cursor: pointer;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10px;
        width: 40px;
        height: 2px;
        border-radius: 20px;
        background-color: #000;
        box-shadow: 0px 10px 0px 0px #000, 0px 20px 0px 0px #000;
        transition: 500ms;
    }

    .header-menu .nav-links::before {
        box-shadow: none;
        transform: translateY(10px) rotate(45deg);
    }

    .nav-links::after {
        content: '';
        opacity: 0;
        transition: 500ms;
    }

    .header-menu .nav-links::after {
        content: '';
        position: absolute;
        left: 0;
        top: 10px;
        width: 40px;
        height: 2px;
        border-radius: 20px;
        background-color: #000;
        transform: translateY(10px) rotate(-45deg);
        opacity: 1;
    }

    .header-menu .burger-links{
        display: block;
    }
}
