 {
            if (
              Math.abs(fireVideo.currentTime - backgroundVideo.currentTime) >
              0.1
            ) {
              fireVideo.currentTime = backgroundVideo.currentTime;
            }
          }

          backgroundVideo.addEventListener("play", () => {
            fireVideo.play();
            setInterval(syncVideos, 200);
          });

          // Function to initialize particles (prevents duplicate initialization)
          function initializeParticles() {
            if 