/* ---------------- NAVBAR ---------------- */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 16px 34px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 100;
}

/* ---------------- LOGO ---------------- */

.logo {
    font-family: 'Space Grotesk';
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 18px;

    background: linear-gradient(90deg, #7c8cff, #4de3ff);
    -webkit-background-clip: text;
    color: transparent;
}

/* ---------------- MENU BUTTON ---------------- */

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: black;
    transition: 0.3s;
}

.menu-toggle.active span {
    background: white;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------------- OVERLAY ---------------- */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}

/* expanding circle */

.menu-bg {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #0b0c12;
    border-radius: 50%;

    top: 30px;
    right: 34px;

    transform: scale(0);
    transform-origin: center;
    z-index: 1;
}

/* ---------------- CONTENT LAYOUT ---------------- */
.menu-content {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 80px;

    z-index: 2;

    /* FIX */
    height: 100vh;
}

/* ---------------- MENU ITEMS ---------------- */

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;

    /* FIX */
    justify-content: center;
}

.menu-items li {
    list-style: none;
    overflow: hidden;
    height: 80px;
    /* IMPORTANT */
}

/* TEXT REVEAL EFFECT */

.menu-items span {
    display: inline-block;
    font-family: 'Space Grotesk';
    font-size: 64px;
    line-height: 1.2;
    /* FIX */
    cursor: pointer;

    transform: translateY(120%);

    color: white;

    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1),
        color 0.3s,
        transform 0.3s;
}

/* ACTIVE STATE */

.menu-overlay.active .menu-items span {
    transform: translateY(0%);
}

/* HOVER EFFECT */

.menu-items span:hover {
    transform: translateY(0%) translateX(20px);
    color: #7c8cff;
    text-shadow: 0 0 20px rgba(124, 140, 255, 0.4);
}

/* ---------------- SOCIAL SECTION ---------------- */

.menu-socials {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: right;
    opacity: 0;
}

.menu-socials p {
    font-size: 12px;
    letter-spacing: 2px;
    color: white;
    opacity: 0.5;
}

.menu-socials a {
    text-decoration: none;
    font-family: 'Space Grotesk';
    font-size: 16px;
    color: white;
    position: relative;
    transition: 0.3s;
}

/* underline animation */

.menu-socials a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: white;
    transition: 0.4s ease;
}

.menu-socials a:hover::after {
    width: 100%;
    left: 0;
}

.menu-socials a:hover {
    opacity: 0.7;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1024px) {
    .menu-items span {
        font-size: 52px;
    }
}

@media (max-width: 768px) {

    .menu-content {
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 60px;
        text-align: center;
        padding: 40px;
    }

    .menu-items li {
        height: 55px;
    }

    .menu-items {
        align-items: center;
    }

    .menu-items span {
        font-size: 42px;
    }

    .menu-socials {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .menu-items span {
        font-size: 32px;
    }
}