import { useState } from "react" import { Link } from "react-router-dom" import { motion, AnimatePresence } from "framer-motion" import { ShoppingBag, Smartphone, Shirt, Laptop, Home, Zap, Plane, Gamepad2, Bike, Sparkles, TrendingUp, Star, Crown, Gem, } from "lucide-react" import "./MenuBar.css" function MenuBar() { const [hoveredItem, setHoveredItem] = useState(null) const [activeCategory, setActiveCategory] = useState(null) const menuItems = [ { icon: ShoppingBag, label: "Grocery", color: "#FF6B6B", gradient: "linear-gradient(135deg, #FF6B6B, #FF8E53)", description: "Fresh & Organic", badge: "New", particles: 8, }, { icon: Smartphone, label: "Mobiles", color: "#4ECDC4", gradient: "linear-gradient(135deg, #4ECDC4, #44A08D)", description: "Latest Tech", badge: "Hot", particles: 10, }, { icon: Shirt, label: "Fashion", color: "#45B7D1", gradient: "linear-gradient(135deg, #45B7D1, #96C93D)", description: "Trendy Styles", badge: "Sale", particles: 12, }, { icon: Laptop, label: "Laptops", color: "#96CEB4", gradient: "linear-gradient(135deg, #96CEB4, #FFECD2)", description: "High Performance", badge: "Pro", particles: 9, }, { icon: Home, label: "Home", color: "#FFEAA7", gradient: "linear-gradient(135deg, #FFEAA7, #DDA0DD)", description: "Smart Living", badge: "Smart", particles: 7, }, { icon: Zap, label: "Electronic", color: "#DDA0DD", gradient: "linear-gradient(135deg, #DDA0DD, #98D8C8)", description: "Cutting Edge", badge: "Tech", particles: 11, }, { icon: Gamepad2, label: "Gaming", color: "#F7DC6F", gradient: "linear-gradient(135deg, #F7DC6F, #BB8FCE)", description: "Epic Gaming", badge: "Play", particles: 15, }, { icon: Bike, label: "Sports", color: "#BB8FCE", gradient: "linear-gradient(135deg, #BB8FCE, #85C1E9)", description: "Active Lifestyle", badge: "Fit", particles: 8, }, ] const containerVariants = { hidden: { opacity: 0, y: 50 }, visible: { opacity: 1, y: 0, transition: { duration: 0.8, staggerChildren: 0.1, delayChildren: 0.2, }, }, } const itemVariants = { hidden: { y: 30, opacity: 0, scale: 0.8 }, visible: { y: 0, opacity: 1, scale: 1, transition: { type: "spring", stiffness: 200, damping: 20, }, }, } return (
Discover our curated collection of Premium products