y = "hidden";
        scrollToTopBtn.style.opacity = "0";
      }
    }

    scrollToTopBtn.addEventListener("click", function () {
      // Smooth scroll back to top
      window.scrollTo({ top: 0, behavior: "smooth" });
    });
  </script>
    
    <script>
            window.addEventListener('scroll', function() {
            const winScroll = document.body.scrollTop || document.documentElement.scrollTop;
            const height = document.documentElement.scrollHeight - document.documentEl