/* ============================================================
   ASILIFORGE — Fullscreen Overlay Menu
   Inspired by poppr.be & clikd.co
   ============================================================ */

/* ── SVG Wipe Overlay ── */
.menu-wipe {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.menu-wipe svg {
  width: 100%;
  height: 100%;
}
.menu-wipe__path {
  fill: var(--bg-primary);
}

/* ── Menu Overlay Container ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.menu-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

/* ── Menu Header (logo + close) ── */
.menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.menu-close-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.5rem;
  transition: color 0.3s;
}

.menu-close-btn:hover {
  color: var(--accent-orange);
}

.menu-close-btn .close-x {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close-btn .close-x span {
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s;
}

.menu-close-btn .close-x span:first-child {
  transform: rotate(45deg);
}
.menu-close-btn .close-x span:last-child {
  transform: rotate(-45deg);
}

/* ── Menu Content Layout ── */
.menu-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100vh;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ── Menu Links — Large Bold Typography ── */
.menu-nav-link {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  letter-spacing: -0.03em;
}

.menu-nav-link:hover {
  color: var(--accent-orange);
}

/* Underline effect on hover */
.menu-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-orange);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-nav-link:hover::after {
  width: 100%;
}

/* Character wrapper for GSAP SplitText */
.menu-nav-link .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ── Menu Footer (contact info) ── */
.menu-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 5% 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 10;
}

.menu-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-footer-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.menu-footer-left a,
.menu-footer-left p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.5;
}

.menu-footer-left a:hover {
  color: var(--accent-orange);
}

.menu-footer-location {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.5rem;
}

.menu-footer-right {
  display: flex;
  gap: 1rem;
}

.menu-social-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.menu-social-link:hover {
  color: var(--accent-orange);
}

.menu-social-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-orange);
  transition: width 0.3s;
}

.menu-social-link:hover::after {
  width: 100%;
}

/* ── Active Page Indicator ── */
.menu-nav-link.active {
  color: var(--accent-orange);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .menu-content {
    padding: 0 5%;
    justify-content: flex-start;
    align-items: center;
  }

  .menu-nav-link {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .menu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .menu-footer-right {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .menu-nav-link {
    font-size: 2rem;
  }
  
  .menu-footer-left a,
  .menu-footer-left p {
    font-size: 0.95rem;
  }
}

/* ── Hamburger as fullscreen trigger ── */
.menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.menu-trigger__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.menu-trigger__bars span {
  display: block;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-trigger__bars span:nth-child(1) { width: 100%; }
.menu-trigger__bars span:nth-child(2) { width: 70%; }
.menu-trigger__bars span:nth-child(3) { width: 100%; }

.menu-trigger:hover .menu-trigger__bars span:nth-child(2) {
  width: 100%;
}

.menu-trigger__label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .menu-trigger__label {
    display: none;
  }
}
