header {
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background-color: var(--card-color);
    border-bottom: 1px inset var(--line-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation {
    display: flex;
    justify-content: space-between;
    box-shadow: 0 5px 5px #100025;
    width: 100%;
}

.logo img {
    height: 70px;
    aspect-ratio: 145 / 80;
    padding-left: 15px;
    cursor: pointer;
}

.main-menu {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0 30px 0 0;
}


.menu-item {
    font-weight: 500;
    font-size: 1.3125rem;
    padding: 10px;
    margin: auto 10px;
    color: white;
    text-align: center;
}

.menu-item:hover {
    border-bottom: 3px solid #1EEBB8;
}

.menu-item a, .menu-item a:active {
    text-decoration: none;
    color: white;
    width: 100%;
    display: block;
    text-align: center;
}

.menu-item.aside {
    display: none;
}

.hamburger-menu {
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 10px;
    display: none;
    place-items: center;
    height: 55px;
    width: 55px;
    cursor: pointer;
    overflow:hidden;
}

.hamburger-menu > span {
  width: 50px;
  height: 3px;
  display: block;
  background-color: white;
  transition: all 0.3s ease-in-out;
  justify-self: end;
}

.hamburger-menu > span:nth-child(1) {
  width: 42px;
}

.hamburger-menu > span:nth-child(2) {
  width: 35px;
}

.hamburger-menu:hover > span:nth-child(1) {
  width: 30px;
}

.hamburger-menu:hover > span:nth-child(2) {
  width: 40px;
}

.hamburger-menu.active span:nth-child(1) {
    transform-origin: center center;
    transform: rotate(-45deg) translate(-20%, 500%);
    width: 55px;
}

.hamburger-menu.active span:nth-child(2) {
    transform: translateX(40px);
}

.hamburger-menu.active span:nth-child(3) {
    transform-origin: center center;
    transform: rotate(45deg) translate(-20%, -500%);
    width: 55px;
}

@media (max-width: 1280px) {
    .menu-item {
        font-size: 1.1875rem;
    }
}

@media (max-width: 1023px) {
    .main-menu {
        flex-direction: column;
        position: absolute;
        margin-top: 5px;
        top: 100%;
        left: 0;
        right: 0;
        background: #0e0c28;
        width: 100%;
        z-index: 1003;
        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 15px 15px;
        overflow: hidden;
    }

    .menu-item {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #2a274a;
        transition: background-color 0.2s, padding-left 0.2s;
        text-align: left;
        font-size: 1.125rem;
        color: #ffffff;
    }

    .menu-item.aside {
        display: block;
    }

    .menu-item a, .menu-item a:active, .menu-item a:visited {
        text-decoration: none;
        color: inherit;
        width: 100%;
        display: block;
        text-align: left;
        transition: color 0.2s;
        padding: 15px 20px;
    }

    .menu-item:hover {
        background-color: #1a173a;
        padding-left: 25px;
        border-bottom: 1px solid #1EEBB8;
    }

    .menu-item:hover a {
        color: #1EEBB8;
    }

    .menu-item:active {
        background-color: #1EEBB8;
    }
    .menu-item:active a {
        color: #0e0c28;
    }

    .navigation {
        position: relative;
    }

    .hamburger-menu {
        display: grid;
    }

    .main-menu.show {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    .logo img {
        height: 70px;
    }

}

@media (max-width: 600px) {
    header {
        height: 70px;
    }
    .logo img, .logo {
        height: 60px;
    }
    .menu-item {
        font-size: 1rem;
    }

    .menu-item a, .menu-item a:active, .menu-item a:visited {
        padding: 15px 15px;
    }
    .menu-item:hover {
        padding-left: 20px;
    }
}