vedTheme = localStorage.getItem("theme");

      // Default to dark theme as requested
      if (savedTheme === "light") {
        setTheme(false);
      } else {
        setTheme(true); // Default to dark theme
      }

      // Theme toggle button
      themeToggle.addEventListener("click", () => {
        const isDark = htmlElement.classList.contains("dark");
        setTheme(!isDark);

        // Add a subtle animation effect
        themeToggle.classList.add("rotate-180");
        setTimeout(() => {
  