header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: 80px; /* 🔥 FIXED HEIGHT */
  padding: 0 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);

  z-index: 9999;
}


/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 150px;
  height: auto;
  max-width: none;
  display: block;
}

/* NAV LINKS (DESKTOP) */
.nav {
  display: flex;
}

.nav a {
  margin-left: 35px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: 0.3s ease;
}

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

/* =========================
   HAMBURGER ICON
========================= */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  position: relative;
  z-index: 1003;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text-main);
  border-radius: 4px;
  transition: all 0.35s ease;
}

/* Animate hamburger into X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   MOBILE HEADER
========================= */

@media (max-width: 768px) {

  .header {
    position: fixed;
    z-index: 10000;
    padding: 18px 24px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;

    /* 🔥 IMPORTANT FIX */
    background: transparent;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;

    transition: 0.4s ease;

    /* 🔥 ABOVE OVERLAY */
    z-index: 1002;
  }

  .nav a {
    margin: 0;
    font-size: 1.4rem;
  }

  .hamburger {
    display: flex;
  }

  .nav.active {
    right: 0;
  }
}

/* =========================
   BACKGROUND BLUR OVERLAY
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;

  /* 🔥 BELOW NAV */
  z-index: 1001;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* 🔥 CRITICAL FIX: never blur menu */
body.menu-open .nav,
body.menu-open .nav * {
  filter: none !important;
  opacity: 1 !important;
}

.nav {
  isolation: isolate;
}

@media (max-width: 768px) {
  .nav {
    z-index: 9999;
  }

  .menu-overlay {
    z-index: 9998;
  }

  .hamburger {
    z-index: 10000;
  }

  .nav a {
    color: #fff;
  }
}
/* =========================
   MOBILE CONTENT OFFSET FIX
========================= */

@media (max-width: 768px) {
  body {
    padding-top: 80px; /* must match header height */
  }
}
