get) && !menuButton && !menu.classList.contains('hidden')) {
      toggleMobileMenu();
    }
  });

  // Enhanced megamenu interaction
  document.addEventListener('DOMContentLoaded', function () {
    const megaMenuTrigger = document.querySelector('.group');
    const megaMenuDropdown = megaMenuTrigger?.querySelector('.absolute');

    if (megaMenuTrigger && megaMenuDropdown) {
      let timeout;

      megaMenuTrigger.addEventListener('mouseenter', function () {
        clearTimeout(timeout);
      });

  