    // Function to show or hide the button based on scroll position
    function toggleScrollButton() {
        if (window.scrollY > 100) {
            scrollToTopBtn.classList.add("show");
        } else {
            scrollToTopBtn.classList.remove("show");
        }
    }

    // Function to set the scroll progress on the button ring
    function setProgress(percent) {
        const offset = circumference - (percent / 100) * circumference;
        progressCircle.style.strokeDashoffset = offset;
    }

  