"use client"; import { useState, useEffect } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { Menu, X, Github, Linkedin, Mail } from 'lucide-react'; import Link from 'next/link'; const Header = () => { const [isOpen, setIsOpen] = useState(false); const [scrolled, setScrolled] = useState(false); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); useEffect(() => { const handleScroll = () => { setScrolled(window.scrollY > 50); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const navItems = [ { name: 'Home', href: '/' }, { name: 'Projects', href: '/projects' }, { name: 'About', href: '#about' }, { name: 'Contact', href: '#contact' }, ]; const socialLinks = [ { icon: Github, href: 'https://github.com/Denshooter', label: 'GitHub' }, { icon: Linkedin, href: 'https://linkedin.com/in/dkonkol', label: 'LinkedIn' }, { icon: Mail, href: 'mailto:contact@dki.one', label: 'Email' }, ]; if (!mounted) { return null; } return ( <>