    setTimeout(() => {
          clearInterval(textInterval); // stop changing text
          loadingScreen.classList.add("hidden");

          //changed: Mark that user has seen loading
          localStorage.setItem("hasSeenLoading", "true");
          //Added typewriter effect in heading
          if (target) {
            const text = target.textContent;
            target.textContent = "";
            let i = 0;

            function typeWriter() {
              if (i < text.length) {
                t