       },
              },
            });
          }

          // Wait for video to load before initializing particles
          fireVideo.addEventListener("loadeddata", function () {
            console.log("Fire video loaded, initializing particles...");
            initializeParticles();
          });

          // Fallback if video is already loaded
          if (fireVideo.readyState >= 2) {
            initializeParticles();
          }
        }

        function initLenis() {
          if (!lenisI