/* Mobile Menu Animations */
[data-mobile-menu] {
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

[data-mobile-menu].active {
  transform: translateX(0);
}

[data-mobile-menu-overlay].active {
  opacity: 1;
  visibility: visible;
}

[data-menu-item] {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-menu-item].animate-in {
  transform: translateX(0);
  opacity: 1;
}

/* Mobile Menu Button Animation */
[data-mobile-menu-button] span {
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-mobile-menu-button].active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

[data-mobile-menu-button].active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

[data-mobile-menu-button].active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu backdrop blur enhancement */
@supports (backdrop-filter: blur(10px)) {
  [data-mobile-menu-overlay] {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Prevent horizontal scroll on mobile when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Mobile menu close button styling */
[data-mobile-menu-close]:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

[data-mobile-menu-close]:active {
  transform: scale(0.95);
}
