"use client";
import { Button } from "@/components/ui/button";
import { motion, type Variants } from "framer-motion";
import { ArrowRight, Play, Sparkles } from "lucide-react";
export function NewHeroSection() {
const containerVariants: Variants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.2,
delayChildren: 0.3,
},
},
};
const itemVariants: Variants = {
hidden: { opacity: 0, y: 30 },
visible: {
opacity: 1,
y: 0,
transition: { duration: 0.6, ease: "easeOut" },
},
};
const floatingVariants: Variants = {
animate: {
y: [0, -10, 0],
transition: {
duration: 3,
repeat: Infinity,
ease: "easeInOut",
},
},
};
return (
<section className="relative overflow-hidden bg-gradient-to-br from-background via-background to-primary/5 px-4 py-20 md:py-32 w-full">
<div className="mx-auto max-w-7xl">
<motion.div
variants={containerVariants}
initial="hidden"
animate="visible"
className="relative z-10 text-center"
>
<motion.div variants={itemVariants} className="mb-6">
<span className="inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/10 px-4 py-2 text-sm font-medium text-primary">
<Sparkles className="h-4 w-4" />
Welcome to the Future
</span>
</motion.div>
<motion.h1
variants={itemVariants}
className="mb-6 text-4xl font-bold tracking-tight md:text-6xl lg:text-7xl"
>
Transform Your Business
<br />
<span className="bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent">
With Innovation
</span>
</motion.h1>
<motion.p
variants={itemVariants}
className="mx-auto mb-10 max-w-2xl text-lg text-muted-foreground md:text-xl"
>
We help businesses grow faster with cutting-edge solutions and
exceptional service. Join thousands of satisfied customers.
</motion.p>
<motion.div
variants={itemVariants}
className="flex flex-col items-center justify-center gap-4 sm:flex-row"
>
<Button size="lg" className="group gap-2">
Get Started
<ArrowRight className="h-4 w-4 transition-transform group-hover:translate-x-1" />
</Button>
<Button size="lg" variant="outline" className="group gap-2">
<Play className="h-4 w-4" />
Watch Demo
</Button>
</motion.div>
<motion.div
variants={floatingVariants}
animate="animate"
className="mt-16 flex items-center justify-center gap-8 text-sm text-muted-foreground"
>
<div className="text-center">
<div className="text-2xl font-bold text-foreground">10K+</div>
<div>Happy Customers</div>
</div>
<div className="h-8 w-px bg-border" />
<div className="text-center">
<div className="text-2xl font-bold text-foreground">500+</div>
<div>Projects Completed</div>
</div>
<div className="h-8 w-px bg-border" />
<div className="text-center">
<div className="text-2xl font-bold text-foreground">99%</div>
<div>Satisfaction Rate</div>
</div>
</motion.div>
</motion.div>
</div>
</section>
);
}