import { motion } from "framer-motion"; import { Github, ExternalLink, Code2, X } from "lucide-react"; import { PROJECTS } from "../constants"; import { useState } from "react"; const Projects = () => { const [selectedVideo, setSelectedVideo] = useState(null); // Filter out Dodge AI and Mantis projects (they appear in Freelancing section) const displayedProjects = PROJECTS.filter( project => !project.title.includes("Dodge") && !project.title.includes("Mantis") ); return (
{/* Background Elements */}

Featured Projects

Innovative solutions and cutting-edge applications across AI, Web, and Enterprise domains

{displayedProjects.map((project, index) => ( {/* Glow Effect */}
{/* Top Badge */}
{project.category}
{project.category}
{/* Image/Video Section */} {project.image ? (
{project.title}
) : project.video ? (
) : (
)} {/* Title */}

{project.title}

{/* Description */}

{project.description}

{/* Tech Stack */}
{project.techStack.slice(0, 2).map((tech, i) => ( {tech} ))} {project.techStack.length > 2 && ( +{project.techStack.length - 2} )}
{/* Buttons */}
Code {project.video ? ( ) : ( Demo )}
))}
{/* Video Modal */} {selectedVideo && (
setSelectedVideo(null)}>
e.stopPropagation()}>
)}
); }; export default Projects;