---
import Icon from "./Icon.astro";
import { SITE } from "../lib/blog-data.js";
const nav = [
{ to: "/", label: "Home" },
{ to: "/blog", label: "Writing" },
{ to: "/about", label: "About" },
{ to: "/services", label: "Services" },
{ to: "/contact", label: "Contact" },
];
const current = Astro.url.pathname.replace(/\/$/, "") || "/";
const isHome = current === "/";
const activeClass = isHome ? "home-header-link is-active" : "text-foreground";
const inactiveClass = isHome
? "home-header-link"
: "text-muted-foreground transition-colors hover:text-foreground";
const headerClass = isHome
? "sticky top-0 z-40 border-b border-transparent bg-transparent text-white"
: "sticky top-0 z-40 border-b border-border/60 bg-background/80 backdrop-blur-md";
const iconClass = isHome
? "home-header-action inline-flex h-9 w-9 items-center justify-center rounded-full transition-colors"
: "inline-flex h-9 w-9 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground";
---