    document.addEventListener("DOMContentLoaded", () => {
      const darkModeToggle = document.getElementById("darkModeToggle");
      const icon = darkModeToggle.querySelector("i");

      // Check for saved dark mode preference
      if (localStorage.getItem("darkMode") === "enabled") {
        document.body.classList.add("dark-mode");
        if (document.body.classList.contains("dark-mode")) {
          document.querySelector('.nav-links').style.backgroundColor = "black";
        } else {
          doc