function scrollToTarget() { const target = document.getElementById("target"); target.scrollIntoView({ behavior: "smooth" }); // اسکرول نرم }