.close-menu,
.open-menu {
    position: absolute;
    cursor: pointer;
    display: none;
}

.open-menu {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.close-menu {
    top: 20px;
    right: 20px;
}

#check {
    display: none;
}

.menu li a {
    position: relative;
    color: #000;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: #dc2626;
}

.menu li a.active {
    color: #dc2626;
}

.menu li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

@media (max-width: 800px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 73%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        background-color: #000;
        color: #fff;
        transition: all 0.5s ease-in-out;
        text-transform: uppercase;
        font-size: 24px;
    }

    .menu li {
        margin-top: 40px;
    }

    .menu li a {
        padding: 10px;
        color: #fff;
    }

    .menu li a:hover,
    .menu li a.active {
        color: #dc2626;
    }

    .close-menu,
    .open-menu {
        display: block;
    }

    .open-menu {
        font-size: 0;
        width: 30px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    #check:checked ~ .menu {
        right: 0;
    }
}
