arget.textContent += text.charAt(i);
                i++;
                setTimeout(typeWriter, 80);
              }
            }
            typeWriter();
          }
          //after that added sideLeft and slide right animation
          document.querySelector(".hero-content").classList.add("animate");
          document.querySelector(".hero-image").classList.add("animate");

          // Add exit preparation with scale and rotation
          loadingScreen.style.transform = "scale(1.08) rotate(1deg)";