/* Hamburger Menu Styles */
.nav-overlay {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 10002;
  pointer-events: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay.active {
  pointer-events: auto;
}

.nav-overlay.active .nav-item {
  pointer-events: auto;
}

.nav-overlay:not(.active) .nav-item {
  pointer-events: none !important;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* MENU */
.radial-menu {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ITEMS */
.radial-menu .nav-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  margin: 0;
  white-space: nowrap;
  padding: 18px 44px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
  min-width: 120px; /* Increased from 100px */
  border: 2.5px solid rgba(248, 250, 252, 0.7);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(30, 41, 59, 0.15) 50%,
    rgba(15, 23, 42, 0.1) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition:
    filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.radial-menu .nav-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.95) 0%,
    rgba(192, 192, 192, 0.85) 50%,
    rgba(248, 250, 252, 0.95) 100%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.radial-menu .nav-item::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(248, 250, 252, 0.6) 0%,
      rgba(192, 192, 192, 0.4) 30%,
      transparent 70%
    );
  opacity: 0;
  filter: blur(25px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Luxury hover effects */
.radial-menu .nav-item:hover,
.radial-menu .nav-item.active-section {
  border-color: rgba(248, 250, 252, 1);
  color: #ffffff;
  transform: scale(1.08);
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.95) 0%,
    rgba(51, 65, 85, 1) 50%,
    rgba(30, 41, 59, 0.95) 100%
  );
  box-shadow: 
    0 0 30px rgba(248, 250, 252, 0.5),
    0 0 60px rgba(192, 192, 192, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.radial-menu .nav-item:hover::before,
.radial-menu .nav-item.active-section::before {
  opacity: 0.15;
  animation: shimmer 2s ease-in-out infinite;
}

.radial-menu .nav-item:hover::after,
.radial-menu .nav-item.active-section::after {
  opacity: 1;
  filter: blur(30px);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.radial-menu .nav-item .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.radial-menu .nav-item:active {
  transform: scale(1.02);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.radial-menu .nav-item.clicking {
  background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 1) 0%,
    rgba(71, 85, 105, 1) 50%,
    rgba(51, 65, 85, 1) 100%
  );
}


/* Hamburger sparkle particles */
.hamburger-sparkle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(248, 250, 252, 1) 0%,
    rgba(192, 192, 192, 0.8) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
  animation: sparkle-float 1s ease-out forwards;
  box-shadow: 0 0 8px rgba(248, 250, 252, 0.8);
}

@keyframes sparkle-float {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) translateY(-20px);
  }
}
