.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(0.25rem);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
}

.menu-content {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(25rem, 50vw, 37.5rem);
  height: 100vh;
  background-color: var(--black);
  box-shadow: -0.625rem 0 1.875rem rgba(0, 0, 0, 0.5);
  transform: translateX(110%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow-y: scroll;
}

.menu_container {
  padding: 6rem clamp(1.5rem, 5vw, 3rem);
}

.menu-close-btn {
  position: absolute;
  top: 0.9375rem;
  left: 0.9375rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  padding: 0.3125rem 0.625rem;
  line-height: 1;
  opacity: 0.85;
}

.menu-close-btn:hover {
  opacity: 1;
}

.menu_container {
  position: relative; /* Add this to establish positioning context */
}

.menu-content h2 {
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-transform: uppercase;
}

.menu-content p {
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-transform: none;
  text-wrap: balance;
}

.menu-content a {
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-transform: none;
  text-wrap: balance;
  text-decoration: underline;
}

.menu-content a:hover {
  opacity: 0.7;
}

/* States */
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

/* ─── Mobile overrides ─── */
@media (max-width: 43.75rem) {
  .menu-content {
    width: clamp(18.75rem, 80vw, 25rem);
  }

  .menu-content p,
  .menu-content a {
    font-size: 0.875rem;
  }
}
