ut;
              return function executedFunction(...args) {
                  const later = () => {
                      clearTimeout(timeout);
                      func(...args);
                  };
                  clearTimeout(timeout);
                  timeout = setTimeout(later, wait);
              };
          }

          // Enhanced ripple effect with performance optimization
          function createRipple(event) {
              const button = event.currentTarget;
              const rect =