/* =========================
   HEADER
========================= */
.header {
    position: relative;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 74px;
    background: var(--secondary);
}
.header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; 
}
.logo {
    position: relative;
    z-index: 1600;
    width: 166px;
}

/* NAVIGATION WRAPPER */
.nav-main {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav ul {
    display: flex;
    gap: 48px;
    list-style: none;
}

/* NAV LINKS */
.nav a {
    position: relative;

    display: flex;
    padding-left: 16px;

    font-family: var(--font-menlo);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: 1.2px;

    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s ease;
}

.nav a::before {
    content: "//";
    position: absolute;
    left: -5px;

    opacity: 0;
    color: var(--primary);
    transition: 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover::before {
    opacity: 1;
}

/* RIGHT SECTION */
.right {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* RESUME BUTTON */
.resume {
    padding: 8px 16px;
    border: 1px solid #1c1a19;
    font-family: var(--font-menlo);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.2px;

    color: var(--white);
    transition: 0.3s ease;
}

.resume:hover {
    border-color: #e61e25;
    color: #e61e25;
}

/* LANGUAGE SWITCHER */
.lang-box {
    display: flex;
    border: 1px solid #1c1a19;
}

.lang {
    padding: 8px 18px;
    font-family: var(--font-menlo);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.2px;
    color: #5c5c55;
    cursor: pointer;
    transition: 0.3s ease;
}

.lang.active {
    background: #e40a17;
    color: var(--white);
}

/* HAMBURGER TOGGLE */
.toggle {
    position: relative;
    z-index: 2000;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: none;
}

.toggle span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s ease;
}

.toggle span:nth-child(1) { top: 14px; }
.toggle span:nth-child(2) { top: 21px; }
.toggle span:nth-child(3) { top: 28px; }

/* OPEN STATE */
.toggle.open span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.toggle.open span:nth-child(2) {
    opacity: 0;
}

.toggle.open span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* =========================
   MOBILE MENU
========================= */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 90vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1),
                opacity 0.4s ease;

    z-index: 1400;
}

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

.menu ul {
    list-style: none;
    text-align: center;
}

.menu li {
    margin: 26px 0;
}

/* MOBILE LINKS */
.menu ul li a {
    position: relative;
    padding: 0 40px;
    font-size: 40px;
    color: var(--gray);
    letter-spacing: 6px;
    transition: 0.3s ease;
}

.menu ul li a::before {
    content: "//";
    position: absolute;
    left: -12px;

    opacity: 0;
    color: var(--primary);
    transition: 0.3s ease;
}

.menu a:hover {
    color: var(--primary);
    -webkit-text-stroke: 0;
}

.menu a:hover::before {
    opacity: 1;
}

/* MENU FOOTER */
.menu-footer {
    position: absolute;
    bottom: 60px;
}

.menu-footer a {
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    font-size: 20px;
    letter-spacing: 5px;
    color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .header {
        padding: 26px 32px;
    }

    .logo {
        width: 130px;
    }

    .nav,
    .resume,
    .lang-box {
        display: none;
    }

    .toggle {
        display: block;
    }
}

@media (max-width: 500px) {

    .header {
        padding: 24px;
    }
    .logo {
        width: 120px;
    }

    .menu ul li a {
        font-size: 24px;
    }
}