import React, { useState, useEffect } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { Card, CardContent } from '@/components/ui/card'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { ChevronLeft, ChevronRight, Star, Award, ShoppingBag, Users, ThumbsUp, Check, Calendar } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Link } from 'react-router-dom'; const testimonials = [ { name: "Deepa Patel", title: "Professional Chef, Mumbai", image: "https://images.pexels.com/photos/3764014/pexels-photo-3764014.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", quote: "After switching to Taste Rider's Premium Garam Masala, customer satisfaction at my restaurant increased by 27%. The depth of flavor is unmatched in the market - I've tried 8 different brands and nothing compares.", rating: 5, product: "Premium Garam Masala", verified: true, purchaseCount: 12, date: "2 months ago" }, { name: "Vikram Singh", title: "Culinary Instructor, Delhi", image: "https://images.pexels.com/photos/775032/pexels-photo-775032.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", quote: "I recommend Taste Rider's Organic Kashmiri Saffron to all 200+ students in my cooking classes. The vibrant color and authentic aroma elevate every dish. My students report 90% better results compared to supermarket alternatives.", rating: 5, product: "Organic Kashmiri Saffron", verified: true, purchaseCount: 24, date: "1 month ago" }, { name: "Sunita Rao", title: "Award-Winning Home Chef, Bangalore", image: "https://images.pexels.com/photos/5947033/pexels-photo-5947033.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", quote: "I've been cooking for 35+ years, and Taste Rider's Sambar Masala is the closest I've found to my mother's recipe. The freshness is evident - my family can taste the difference immediately. I'm now a loyal monthly subscriber.", rating: 5, product: "Authentic Sambar Masala", verified: true, purchaseCount: 18, date: "2 weeks ago" }, { name: "Rajiv Mehta", title: "Food Blogger & Influencer, Chennai", image: "https://images.pexels.com/photos/2379005/pexels-photo-2379005.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", quote: "My followers constantly ask about the secret to my vibrant curries. The answer is simple: Taste Rider's spices. The freshness and purity make an incredible difference that even my viewers can see through their screens!", rating: 5, product: "Signature Curry Blend", verified: true, purchaseCount: 30, date: "3 days ago" }, ]; // Testimonial stats for social proof const testimonialStats = { totalReviews: 10842, averageRating: 4.8, fiveStarPercentage: 92, repeatCustomers: 78 }; const TestimonialsSection = () => { const [currentIndex, setCurrentIndex] = useState(0); const [autoplay, setAutoplay] = useState(true); const handlePrev = () => { setCurrentIndex((prevIndex) => (prevIndex - 1 + testimonials.length) % testimonials.length); setAutoplay(false); // Pause autoplay when user interacts }; const handleNext = () => { setCurrentIndex((prevIndex) => (prevIndex + 1) % testimonials.length); setAutoplay(false); // Pause autoplay when user interacts }; useEffect(() => { let timer; if (autoplay) { timer = setTimeout(handleNext, 7000); } return () => clearTimeout(timer); }, [currentIndex, autoplay]); return (

Trusted by 2000 Culinary Enthusiasts

See why professional chefs and home cooks alike choose our premium spices for their most important dishes

{/* Review Stats Bar */}
{testimonialStats.totalReviews.toLocaleString()}+
Verified Reviews
{testimonialStats.averageRating}
Average Rating
{testimonialStats.fiveStarPercentage}%
5-Star Reviews
{testimonialStats.repeatCustomers}%
Repeat Customers
Verified Purchase {testimonials[currentIndex].date}
{testimonials[currentIndex].name.split(" ").map(n => n[0]).join("")}

"{testimonials[currentIndex].quote}"

{[...Array(testimonials[currentIndex].rating)].map((_, i) => ( ))} {[...Array(5 - testimonials[currentIndex].rating)].map((_, i) => ( ))}

{testimonials[currentIndex].name}

{testimonials[currentIndex].title}

Purchased {testimonials[currentIndex].product} {testimonials[currentIndex].purchaseCount}+ times
{/* Product Link */} Shop {testimonials[currentIndex].product} Now
{testimonials.map((_, index) => (
{/* Social Proof and CTA */}

Join thousands of satisfied customers who've transformed their cooking

Premium Quality Authentic Flavors 30-Day Guarantee {/* Removed free shipping badge */}
); }; export default TestimonialsSection;