document.addEventListener("DOMContentLoaded", function () { console.log("✅ main.js loaded"); const heading = document.querySelector("h1"); if (heading) { heading.style.cursor = "pointer"; heading.addEventListener("click", () => { alert("You clicked the heading!"); }); } });