/* ========================================
   NAVBAR & HAMBURGER MENU
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    height: 5rem;
}

.menu {
    max-width: 72rem;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    z-index: 20;
}

.menu.active {
    transform: translateX(0);
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img,
.logo .logo-img {
    height: 200px;
    width: auto;
    display: block;
    transform: translateY(6px);
}

.logo span {
    font-weight: bold;
    font-size: 1.5rem;
}

.logo span {
    font-size: 1.8rem;
    margin-left: 5px;
    color: #160ca5fb;
}

.hamburger-menu {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    top: 0;
    flex-direction: column;
    transform: translateY(-2px);
    height: 40px;
    z-index: 20000;
}

.bar {
    width: 1.9rem;
    height: 1.5px;
    border-radius: 2px;
    background-color: #eee;
    transition: 0.5s;
    position: relative;
}

.bar::before,
.bar::after {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    background-color: #eee;
    transition: 0.5s;
}

.bar::before {
    transform: translateY(-9px);
}

.bar::after {
    transform: translateY(9px);
}

.container.active .bar {
    transform: rotate(360deg);
    background-color: transparent;
}

.container.active .bar::before {
    transform: translateY(0) rotate(45deg);
}

.container.active .bar::after {
    transform: translateY(0) rotate(-45deg);
}

.container.active .main {
    animation: main-animation 0.5s ease;
    cursor: pointer;
    transform: perspective(1300px) rotateY(20deg) translateY(10px)
        translateZ(310px) scale(0.5);
    pointer-events: none;
}

.container.active .main,
.container.active .shadow {
    pointer-events: none;
}

@keyframes main-animation {
    from {
        transform: translate(0);
    }
    to {
        transform: perspective(1300px) rotateY(20deg) translateY(10px)
            translateZ(310px) scale(0.5);
    }
}

.shadow {
    display: none;
}

.shadow.one {
    z-index: -1;
    opacity: 0.15;
}

.shadow.two {
    z-index: -2;
    opacity: 0.1;
}

.container.active .shadow.one {
    animation: shadow-one 0.6s ease-out;
    transform: perspective(1300px) rotateY(20deg) translateY(10px)
        translateZ(215px) scale(0.5);
}

@keyframes shadow-one {
    0% {
        transform: translate(0);
    }
    5% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px)
            translateZ(310px) scale(0.5);
    }
    100% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px)
            translateZ(215px) scale(0.5);
    }
}

@keyframes shadow-two {
    0% {
        transform: translate(0);
    }
    20% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px)
            translateZ(310px) scale(0.5);
    }
    100% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px)
            translateZ(120px) scale(0.5);
    }
}

.container.active .main:hover + .shadow.one {
    transform: perspective(1300px) rotateY(20deg) translateY(10px)
        translateZ(230px) scale(0.5);
}

.container.active .main:hover {
    transform: perspective(1300px) rotateY(20deg) translateY(10px)
        translateZ(340px) scale(0.5);
}

.no-js .links {
    display: none;
}

.js .links {
    display: none;
}

.container.active .links {
    display: flex;
}
