const current = window.location.pathname.split("/").pop() || "index.html";
const links = document.querySelectorAll(".nav a");
links.forEach((link) => {
  const href = link.getAttribute("href");
  if (href === current) {
    link.classList.add("active");
  }
});
