nav {
    margin: 0;
    overflow: hidden;
    background: #111111;
    transition: 0.3s;
    position: fixed;
    width: 100%;
    z-index: 1;
}

.nav-content {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.nav-content a {
    display: block;
    font-size: 1em;
    line-height: 44px;
    text-decoration: none;
    transition: all 0.3s;
    color: var(--secondary-white);
    font-family: 'Poppins-Medium';
    letter-spacing: 0.5px;
}

.nav-content a:hover,
.nav-icon:hover,
.search-icon:hover {
    opacity: 0.7;
}

.nav-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-transform: uppercase;
}

.nav-icon {
    display: none;
    grid-gap: 5px;
    grid-template-columns: auto;
    padding: 17px 0;
    height: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.bar {
    height: 1px;
    width: 18px;
    background: white;
    transition: 0.5s;
}

@media (max-width: 768px) {
    .show {
        background-color: black;
    }
    nav {
        background: black;
        position: fixed;
        width: 768px;
    }
    .nav-content {
        max-width: 1024px;
    }
    /* background */
    .nav-links {
        position: fixed;
        top: 44px;
        right: 0;
        height: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        justify-content: flex-start;
        transition: height 2s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.1s;
    }
    .show .nav-links {
        height: 100%;
        background-color: black;
    }
    .nav-links a {
        font-size: 1em;
        height: 0;
        width: 0;
        opacity: 0;
        overflow: hidden;
        margin-right: 50px;
        margin-left: 50px;
        transition: opacity 1.5s, height 2s;
        border-bottom: solid 1px rgba(255, 255, 255, 0.322);
    }
    .show .nav-links a {
        opacity: 1;
        width: auto;
        height: auto;
    }
    .nav-icon {
        order: 1;
        display: grid;
    }
    nav.scrolled {
        background: rgba(0, 0, 0, 0.800);
    }
}

.show .one {
    transform: rotate(45deg) translateY(5.5px);
}

.show .two {
    transform: rotate(-45deg) translateY(-5.5px);
}