ogress = 100;
      }

      gsap.to("#progressBar", {
        width: progress + "%",
        duration: 0.8,
        ease: "power2.out"
      });

      // Success animation for completed steps
      if (type === 'success') {
        gsap.to("#logo", {
          scale: 1.15,
          duration: 0.3,
          ease: "back.out(1.7)",
          yoyo: true,
          repeat: 1
        });
      }
    }

    // Listen for main window ready
    ipcRenderer.on('main-window-ready', () => {
      fadeOut().then(() =