lStorage.setItem("theme", "dark");
          } else {
            localStorage.setItem("theme", "light");
          }
        });
      });
      </script>

<script>
    document.addEventListener("DOMContentLoaded", () => {
      setTimeout(() => {
        const loader = document.getElementById("loader");
        if (loader) {
          loader.style.display = "none";
        } else {
          console.error("Element with ID 'loader' not found.");
        }
      }, 500);

      // Update the date dynamicall