*, ::after, ::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0
}

.navbar input[type="checkbox"], .navbar .hamburger-lines {
    display: none;
}

.position__button__menu {
    display: none;
}

.navbar {
    box-shadow: 0 5px 10px 0 #00000014;
    position: fixed;
    width: 100%;
    background: #020a1a;
    color: #fff;
    opacity: 1;
    height: 3.7rem;
    top: 0;
    backdrop-filter: blur(25px);
    z-index: 12;
}

.navbar-container {
    position: fixed;
    display: flex;
    justify-content: space-between;
    height: 4rem;
    align-items: center
}

.menu-items {
    order: 2;
    display: flex;
}

.menu-items li {
    letter-spacing: .068rem;
    list-style: none;
    margin-left: 2.3rem;
    margin-bottom: .5rem;
    font-size: 1rem;
    position: relative;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    transition: color .4s ease-in-out;
}

.menu-items li::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6B9369;
    transform: scaleX(0);
    transition: transform .4s ease-in-out;
}

.menu-items li:hover::after {
    transform: scaleX(1)
}

.logo {
    padding: 0.3%;
    margin-left: 12% !important;
    width: 125px;
    top: .3rem;
    position: fixed;
}

@media (max-width: 1780px) {
    .menu-items {
        margin-right: 18rem
    }
}

@media (max-width: 1580px) {

    .menu-items {
        margin-right: 18rem
    }

    #logo {
        left: 0;
    }
}

@media (max-width: 1280px) {
    #back-to-top {
        bottom: 4.5rem;
        margin-left: 4rem;
    }

    .menu-items {
        margin-right: 0;
    }

    #logo {
        left: 2rem;
    }
}

@media (max-width: 860px) {
    .position__button {
        display: none
    }

    .position__button__menu {
        display: flex;
        padding-top: 1rem;
        margin-left: 2rem
    }

    .navbar {
        left: 0;
        box-shadow: 0 5px 10px 0 #00000014;
        position: fixed;
        width: 100vw;
        background: #1b1b1be5;
        color: #fff;
        opacity: 1;
        height: 3.5rem;
        top: 0;
        backdrop-filter: blur(25px);
        z-index: 12
    }

    .navbar-container input[type="checkbox"], .navbar-container .hamburger-lines {
        display: block
    }

    .navbar-container {
        position: fixed;
        z-index: 12;
        width: 100%;
        display: block;
        position: relative;
        height: 62px;
        left: 0
    }

    .hamburger-lines {
        padding-left: .8rem
    }

    .navbar-container input[type="checkbox"] {
        position: absolute;
        display: block;
        height: 38px;
        width: 8%;
        top: 18px;
        z-index: 999;
        opacity: 0
    }

    .navbar-container .hamburger-lines {
        display: block;
        height: 1.3rem;
        width: 2.8rem;
        position: absolute;
        top: 16px;
        z-index: 15;
        display: flex;
        flex-direction: column;
        justify-content: space-between
    }

    .navbar-container .hamburger-lines .line {
        display: block;
        height: 3.5px;
        width: 100%;
        border-radius: 10px;
        background: #6B9369;
    }

    .navbar-container .hamburger-lines .line1 {
        transform-origin: 0 0;
        transition: transform .2s ease-in-out
    }

    .navbar-container .hamburger-lines .line2 {
        transition: transform .2s ease-in-out
    }

    .navbar-container .hamburger-lines .line3 {
        transform-origin: 0 100%;
        transition: transform .4s ease-in-out
    }

    .navbar .menu-items {
        left: 0 !important;
        padding-top: 100px;
        background: #1b1b1b;
        opacity: 1;
        backdrop-filter: blur(234px);
        height: 100vh;
        width: 26rem;
        max-width: 50%;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        padding-bottom: 8%;
        transition: transform .5s ease-in-out;
        box-shadow: 5px 0 10px 0 #24242480;
        z-index: 9
    }

    .navbar .menu-items li {
        margin-bottom: 2rem;
        font-size: 1.3rem;
        font-weight: 500
    }

    .logo {
        position: fixed;
        top: .4rem;
        width: 7rem;
    }

    .navbar-container input[type="checkbox"]:checked~.menu-items {
        transform: translateX(0)
    }

    .navbar-container input[type="checkbox"]:checked~.hamburger-lines .line1 {
        transform: rotate(35deg)
    }

    .navbar-container input[type="checkbox"]:checked~.hamburger-lines .line2 {
        transform: scaleY(0)
    }

    .navbar-container input[type="checkbox"]:checked~.hamburger-lines .line3 {
        transform: rotate(-35deg)
    }
}

#about {
    padding-top: 6rem
}

#skills {
    padding-top: 6%
}

#projects {
    padding-top: 6%
}

#contact {
    margin-top: 6%
}

@media only screen and (max-width: 800px) {
    #skills {
        padding-top: 16%
    }

    #projects {
        padding-top: 16%
    }

    #contact {
        padding-top: 15%
    }

    #back-to-top {
        position: fixed;
        bottom: 3.5rem;
        right: 1.4rem;
    }
}