"use client" import { useState, useEffect } from "react" import Link from "next/link" import { Button } from "@/components/ui/button" import { Menu, X } from "lucide-react" export function Navigation() { const [isOpen, setIsOpen] = useState(false) const [isScrolled, setIsScrolled] = useState(false) const [activeSection, setActiveSection] = useState("home") useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 50) const sections = ["home", "artists", "services", "contact"] const scrollPosition = window.scrollY + 100 for (const section of sections) { const element = document.getElementById(section) if (element) { const { offsetTop, offsetHeight } = element if (scrollPosition >= offsetTop && scrollPosition < offsetTop + offsetHeight) { setActiveSection(section) break } } } } window.addEventListener("scroll", handleScroll) return () => window.removeEventListener("scroll", handleScroll) }, []) const navItems = [ { href: "#home", label: "Home", id: "home" }, { href: "#artists", label: "Artists", id: "artists" }, { href: "#services", label: "Services", id: "services" }, { href: "#contact", label: "Contact", id: "contact" }, ] return ( ) }