.trigger-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
    z-index: 2;
    padding: 12px 3.5rem;
    background-color: transparent;
    font-family: 'Josefin Sans', sans-serif;
    color: #fff;
    transform: translateY(0);
    /* Initially no translation */
    transition: transform 0.3s;
    /* Smoothly transition the translation */
    box-shadow: rgba(0, 0, 0, 0.1) 0px 25px 25px -25px;
    z-index: 10;
    width: 100%;
}

.alternate {
    background-color: #232323;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    z-index: 99;
    width: 100%;

}

.scroll-down .trigger-menu-wrapper {
    transform: translateY(-100%);
    /* Slide up and out of the viewport on scroll down */
}

.scroll-up .trigger-menu-wrapper {
    transform: translateY(0);
    /* Slide back in on scroll up */
}



.homepage {
    width: calc(54px + 1.25vw);
    order: 3;
}

.hamburger {
    order: 2;
    display: flex;
    height: 18px;
    width: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}

.hamburger__icon {
    display: inline-block;
    height: 2px;
    width: 24px;
    background: #fff;
    border-radius: 2px;
}

.sidebar {
    height: 100vh;
    width: 320px;
    background: #393939;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    transform: translatex(-100%);
    transition: transform 0.4s ease-in-out;
}

.sidebar hr {
    border: 0;
    clear: both;
    display: block;
    width: 35%;
    background-color: #fff;
    height: 3px;
    transform: translatex(-80%);
    transition: transform 0.4s ease-in-out;
}

.sidebar h1 {
    border-bottom: 4px solid #fff;
}

.sidebar__close {
    position: absolute;
    top: 50%;
    right: -30px;
    background: #fff;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translatex(-100%);
    cursor: pointer;
    transition: transform 0.4s ease-in-out 0.2s;
}

.sidebar__close::before, .sidebar__close::after {
    content: "";
    height: 2px;
    background: #898989;
    width: 24px;
    display: block;
    position: absolute;
}

.sidebar__close::after {
    transform: rotate(90deg);
}

.sidebar__menu {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-around;
    font-size: 36px;
    margin-top: 80px;
    margin-bottom: 80px;
    color: #fff;
}

.sidebar__menu a {
    color: currentcolor;
    text-decoration: none;
    transform: translatex(-80%);
    transition: transform 0.4s ease-in-out;
}

.sidebar__menu a::before {
    content: "";
    height: 2px;
    background: #fff;
    width: 175px;
    position: absolute;
    bottom: -2px;
    left: 0;
    transform: translatex(-50%);
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s linear;
}

.sidebar__menu a:hover::before {
    transform: translatex(0);
    opacity: 1;
}

.sidebar__menu a:nth-of-type(1) {
    transition-delay: 0.075s;
}

.sidebar__menu a:nth-of-type(2) {
    transition-delay: 0.15s;
}

.sidebar__menu hr {
    transition-delay: 0.1s;
}

.sidebar__menu a:nth-of-type(3) {
    transition-delay: 0.225s;
}

.sidebar__menu a:nth-of-type(4) {
    transition-delay: 0.3s;
}



.sidebar__social {
    display: flex;
    list-style: none;
    padding: 0;
}

.sidebar__social li {
    margin: 4px;
}

.sidebar__social a, .sidebar__social svg {
    display: inline-block;
    height: 18px;
    width: 18px;
}

.menu-control {
    display: none;
}

.menu-control:checked+.sidebar {
    transform: translatex(0);
}

.menu-control:checked+.sidebar .sidebar__close {
    transform: translatex(0) rotate(45deg);
}

.menu-control:checked+.sidebar .sidebar__menu a {
    transform: translatex(0);
}

.menu-control:checked+.sidebar .sidebar__menu hr {
    transform: translatex(0);
}