 : 'light');
        root.setAttribute("data-theme", theme);

        toggle.addEventListener("click", () => {
            const current = root.getAttribute("data-theme");
            const newTheme = current === "dark" ? "light" : "dark";
            root.setAttribute("data-theme", newTheme);
            localStorage.setItem("theme", newTheme);
        });

        // Dynamic Year
        document.getElementById("year").textContent = new Date().getFullYear();
    </script>
</body>

</html>
