diff --git a/src/components/layout/header.tsx b/src/components/layout/header.tsx index 101269c..896036d 100644 --- a/src/components/layout/header.tsx +++ b/src/components/layout/header.tsx @@ -2,6 +2,7 @@ import { useState, useEffect, useCallback } from 'react'; import { Menu, X } from 'lucide-react'; +import { motion, AnimatePresence } from 'framer-motion'; import { Button } from '@/components/ui/button'; import { ThemeToggle } from '@/components/ui/theme-toggle'; import { COMPANY_INFO, NAVIGATION } from '@/lib/constants'; @@ -63,7 +64,7 @@ export function Header() { fixed top-0 left-0 right-0 z-50 transition-all duration-300 ease-out ${isScrolled - ? 'bg-white/95 dark:bg-[#171717]/95 backdrop-blur-sm border-b border-[#E5E5E5] dark:border-[#333333]' + ? 'bg-[var(--color-bg-primary)]/95 backdrop-blur-md border-b border-gray-800 shadow-lg shadow-black/20' : 'bg-transparent' } `} @@ -90,16 +91,20 @@ export function Header() { onClick={(e) => handleNavClick(e, item.href)} className={` relative px-3 py-1.5 text-sm font-medium - transition-colors duration-200 + transition-all duration-300 ${activeSection === item.id.replace('#', '') - ? 'text-[#C41E3A]' - : 'text-[#525252] dark:text-[#D4D4D4] hover:text-[#C41E3A]' + ? 'text-[var(--color-tech-blue)]' + : 'text-gray-400 hover:text-[var(--color-tech-blue)]' } `} > {item.label} {activeSection === item.id.replace('#', '') && ( - + )} ))} @@ -133,7 +138,7 @@ export function Header() { - - - - - - )} + + + + )} + ); }