/* ==========================================
   BRAND NEW MOBILE MENU - CLEAN & SIMPLE
   ========================================== */

/* Mobile Menu Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 10002;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay - Must be outside header, above sticky header */
.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  z-index: 99998 !important; /* Very high z-index to be above everything */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu-overlay.active {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;
}

/* Mobile Menu Panel - Must be outside header, above sticky header */
.mobile-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999 !important; /* Highest z-index to be above everything */
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.mobile-menu.active {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
  display: block !important;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: fixed !important;
  top: 25px !important;
  right: 25px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 32px !important;
  line-height: 1 !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100000 !important; /* Even higher than menu */
  padding: 0 !important;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.mobile-menu-close-icon {
  display: block;
  font-weight: 300;
  font-family: Arial, sans-serif;
  line-height: 1;
  margin-top: -2px;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 85px 0 20px 0; /* Add top padding to account for header height */
}

.mobile-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list {
  position: relative;
  z-index: 1;
}

.mobile-menu-list a {
  display: block;
  padding: 18px 30px;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-list a:hover,
.mobile-menu-list a:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Desktop Menu - Hidden on Mobile */
.desktop-menu {
  display: flex !important;
}

/* Responsive - Show Mobile Menu on Small Screens */
@media (max-width: 1024px) {
  /* Show hamburger */
  .nav-toggle {
    display: inline-block !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Hide desktop menu */
  .desktop-menu {
    display: none !important;
  }
  
  /* Hamburger animation when open */
  .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

