"use client";

import React, { useState, useEffect, useRef } from 'react';
import {
    Menu,
    X,
    ChevronRight,
    Leaf,
    Globe,
    Award,
    TrendingUp,
    Mail,
    Phone,
    MapPin,
    ArrowRight,
    Star,
    CheckCircle2,
    Play,
    Quote
} from 'lucide-react';

// --- Types ---

type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost';

interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
    children: React.ReactNode;
    variant?: ButtonVariant;
    className?: string;
}

// --- Components ---

const Button = ({
    children,
    variant = "primary",
    className = "",
    ...props
}: ButtonProps) => {
    const baseStyle =
        "inline-flex items-center justify-center px-6 py-3 border text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 transition-all duration-300";

    const variants: Record<ButtonVariant, string> = {
        primary:
            "border-transparent text-white bg-red-700 hover:bg-red-800 focus:ring-red-500 shadow-lg hover:shadow-red-900/20",
        secondary:
            "border-red-700 text-red-700 bg-transparent hover:bg-red-50 focus:ring-red-500",
        outline:
            "border-white text-white hover:bg-white/10 focus:ring-white",
        ghost:
            "border-transparent text-gray-600 hover:bg-gray-100 hover:text-gray-900",
    };

    return (
        <button
            className={`${baseStyle} ${variants[variant]} ${className}`}
            {...props}
        >
            {children}
        </button>
    );
};

// Animation Wrapper Component
type FadeInProps = {
    children: React.ReactNode;
    delay?: number;
    className?: string;
};

const FadeIn = ({ children, delay = 0, className = "" }: FadeInProps) => {
    const [isVisible, setIsVisible] = useState<boolean>(false);
    const domRef = useRef<HTMLDivElement | null>(null);

    useEffect(() => {
        const observer = new IntersectionObserver(
            (entries: IntersectionObserverEntry[]) => {
                entries.forEach((entry) => {
                    if (entry.isIntersecting) {
                        setIsVisible(true);
                        observer.unobserve(entry.target);
                    }
                });
            },
            { threshold: 0.1 }
        );

        const currentElement = domRef.current;
        if (currentElement) {
            observer.observe(currentElement);
        }

        return () => {
            if (currentElement) {
                observer.unobserve(currentElement);
            }
        };
    }, []);

    return (
        <div
            ref={domRef}
            className={`transition-all duration-1000 ease-out transform ${isVisible
                ? "opacity-100 translate-y-0"
                : "opacity-0 translate-y-12"
                } ${className}`}
            style={{ transitionDelay: `${delay}ms` }}
        >
            {children}
        </div>
    );
};

type SectionHeadingProps = {
    subtitle: string;
    title: string;
    align?: "left" | "center";
};

const SectionHeading = ({
    subtitle,
    title,
    align = "center",
}: SectionHeadingProps) => (
    <FadeIn>
        <div className={`mb-12 ${align === "left" ? "text-left" : "text-center"}`}>
            <span className="text-red-600 font-semibold tracking-wider uppercase text-sm">
                {subtitle}
            </span>

            <h2 className="mt-2 text-3xl md:text-4xl font-bold text-gray-900 tracking-tight">
                {title}
            </h2>

            <div
                className={`mt-4 h-1 w-20 bg-red-600 rounded-full ${align === "center" ? "mx-auto" : ""
                    }`}
            />
        </div>
    </FadeIn>
);


// ================= TYPES =================
type ProductCardProps = {
    title: string;
    category: string;
    description: string;
    image: string;
    delay?: number;
};

// ================= COMPONENT =================
const ProductCard = ({
    title,
    category,
    description,
    image,
    delay = 0,
}: ProductCardProps) => (
    <FadeIn delay={delay}>
        <div className="group relative bg-white rounded-xl shadow-sm hover:shadow-2xl transition-all duration-500 overflow-hidden border border-gray-100 flex flex-col h-full transform hover:-translate-y-2">
            <div className="h-64 relative overflow-hidden">
                <div className="absolute inset-0 bg-gray-900/10 group-hover:bg-gray-900/0 transition-colors duration-500 z-10" />

                <img
                    src={image}
                    alt={title}
                    className="w-full h-full object-cover transform group-hover:scale-110 transition-transform duration-700"
                />

                <div className="absolute top-4 right-4 z-20 bg-white/90 backdrop-blur-sm px-3 py-1 rounded-full text-xs font-bold text-gray-800 shadow-sm">
                    Export Grade
                </div>
            </div>

            <div className="p-6 flex-1 flex flex-col">
                <span className="text-xs font-semibold text-red-600 uppercase tracking-wide">
                    {category}
                </span>

                <h3 className="text-2xl font-bold text-gray-900 mb-3 group-hover:text-red-700 transition-colors">
                    {title}
                </h3>

                <p className="text-gray-600 text-sm leading-relaxed mb-6 flex-1 border-l-2 border-gray-100 pl-4">
                    {description}
                </p>

                <div className="flex items-center justify-between border-t border-gray-100 pt-4 mt-auto">
                    <div className="flex items-center gap-1 text-yellow-500">
                        <Star size={14} fill="currentColor" />
                        <span className="text-sm font-medium text-gray-600">
                            4.9/5 Quality
                        </span>
                    </div>

                    <button className="text-red-600 hover:text-red-800 text-sm font-semibold flex items-center gap-1 group/btn">
                        View Specs
                        <ChevronRight
                            size={16}
                            className="group-hover/btn:translate-x-1 transition-transform"
                        />
                    </button>
                </div>
            </div>
        </div>
    </FadeIn>
);

// ================= TYPES =================
type FeatureItemProps = {
    icon: React.ElementType;
    title: string;
    description: string;
    delay?: number;
};

// ================= COMPONENT =================
const FeatureItem = ({
    icon: Icon,
    title,
    description,
    delay = 0,
}: FeatureItemProps) => (
    <FadeIn delay={delay}>
        <div className="flex gap-4 items-start group hover:bg-gray-50 p-4 rounded-lg transition-colors duration-300">
            <div className="flex-shrink-0 w-12 h-12 bg-red-50 rounded-lg flex items-center justify-center text-red-700 group-hover:bg-red-600 group-hover:text-white transition-colors duration-300">
                <Icon size={24} />
            </div>

            <div>
                <h4 className="text-lg font-semibold text-gray-900 mb-2">
                    {title}
                </h4>
                <p className="text-gray-600 text-sm leading-relaxed">
                    {description}
                </p>
            </div>
        </div>
    </FadeIn>
);


// ================= TYPES =================
type TestimonialCardProps = {
    quote: string;
    author: string;
    role: string;
    company: string;
    delay?: number;
};

// ================= COMPONENT =================
const TestimonialCard = ({
    quote,
    author,
    role,
    company,
    delay = 0,
}: TestimonialCardProps) => (
    <FadeIn delay={delay}>
        <div className="bg-white p-8 rounded-2xl shadow-sm border border-gray-100 h-full flex flex-col relative">
            <Quote size={40} className="text-red-100 absolute top-6 right-6" />

            <p className="text-gray-600 italic mb-6 relative z-10 text-lg leading-relaxed">
                "{quote}"
            </p>

            <div className="mt-auto flex items-center gap-4">
                <div className="w-12 h-12 bg-gray-200 rounded-full flex items-center justify-center text-gray-500 font-bold text-xl">
                    {author.charAt(0)}
                </div>

                <div>
                    <p className="text-gray-900 font-bold text-sm">{author}</p>
                    <p className="text-red-600 text-xs font-medium">
                        {role}, {company}
                    </p>
                </div>
            </div>
        </div>
    </FadeIn>
);


// --- Main Application ---

export default function App() {
    const [isScrolled, setIsScrolled] = useState(false);
    const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);

    useEffect(() => {
        const handleScroll = () => {
            setIsScrolled(window.scrollY > 20);
        };
        window.addEventListener('scroll', handleScroll);
        return () => window.removeEventListener('scroll', handleScroll);
    }, []);

    const navLinks = [
        { name: 'Home', href: '#' },
        { name: 'About', href: '#about' },
        { name: 'Products', href: '#products' },
        { name: 'Export', href: '#export' },
        { name: 'Contact', href: '#contact' },
    ];

    return (
        <div className="font-sans text-gray-900 antialiased bg-gray-50 overflow-x-hidden">
            {/* Custom Animations Styles */}
            <style>{`
                @keyframes fade-in {
                    from { opacity: 0; }
                    to { opacity: 1; }
                }
                @keyframes slide-down {
                    from { transform: translateY(-100%); opacity: 0; }
                    to { transform: translateY(0); opacity: 1; }
                }
                @keyframes slow-zoom {
                    0% { transform: scale(1); }
                    100% { transform: scale(1.1); }
                }
                @keyframes float {
                    0%, 100% { transform: translateY(0); }
                    50% { transform: translateY(-10px); }
                }
                .animate-fade-in { animation: fade-in 0.5s ease-out forwards; }
                .animate-slide-down { animation: slide-down 0.3s ease-out forwards; }
                .animate-slow-zoom { animation: slow-zoom 20s linear infinite alternate; }
                .animate-float { animation: float 3s ease-in-out infinite; }
            `}</style>

            {/* Hero Section */}
            <div className="relative bg-gray-50 min-h-screen flex items-center overflow-hidden">
                {/* Background Image/Overlay */}
                <div className="absolute inset-0 z-0">
                    <div className="absolute inset-0 bg-gradient-to-r from-black/90 via-black/70 to-black/30 z-10" />
                    {/* High quality hero image */}
                    <div className="w-full h-full bg-[url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?q=80&w=2940&auto=format&fit=crop')] bg-cover bg-center opacity-60 transform scale-105 animate-slow-zoom" />
                </div>

                <div className="relative z-20 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-20">
                    <div className="max-w-3xl">
                        <FadeIn delay={200}>
                            <div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-red-900/40 border border-red-700/50 backdrop-blur-sm mb-6 hover:bg-red-900/60 transition-colors cursor-default">
                                <span className="flex h-2 w-2 rounded-full bg-red-500 animate-pulse"></span>
                                <span className="text-red-200 text-xs font-semibold tracking-wide uppercase">Leading Exporter 2024</span>
                            </div>
                        </FadeIn>

                        <FadeIn delay={400}>
                            <h1 className="text-5xl md:text-7xl font-extrabold text-white leading-tight mb-6 drop-shadow-lg">
                                The Essence of <br />
                                <span className="text-transparent bg-clip-text bg-gradient-to-r from-red-400 via-orange-500 to-yellow-500">
                                    Pure Authenticity
                                </span>
                            </h1>
                        </FadeIn>

                        <FadeIn delay={600}>
                            <p className="text-lg md:text-xl text-gray-300 mb-8 leading-relaxed max-w-lg border-l-4 border-red-600 pl-6">
                                Suhagini Spices bridges the gap between traditional Indian farms and global kitchens. We deliver ISO-certified, premium-grade spices tailored for B2B and industrial needs.
                            </p>
                        </FadeIn>

                        <FadeIn delay={800}>
                            <div className="flex flex-col sm:flex-row gap-4">
                                <Button className="group">
                                    Explore Products
                                    <ArrowRight className="ml-2 group-hover:translate-x-1 transition-transform" size={18} />
                                </Button>
                                <Button variant="outline" className="group">
                                    <Play size={16} className="mr-2 fill-current" /> Watch Our Process
                                </Button>
                            </div>
                        </FadeIn>
                    </div>
                </div>

                {/* Hero Stats */}
                <FadeIn delay={1000} className="absolute bottom-0 left-0 right-0 z-20">
                    <div className="bg-white/5 border-t border-white/10 backdrop-blur-md hidden md:block">
                        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
                            <div className="grid grid-cols-4 gap-8 divide-x divide-white/10">
                                {[
                                    { label: 'Export Countries', value: '25+' },
                                    { label: 'Farmers Partnered', value: '1,200+' },
                                    { label: 'Daily Production', value: '50 Tons' },
                                    { label: 'Quality Score', value: '99.9%' },
                                ].map((stat, index) => (
                                    <div key={index} className="pl-8 first:pl-0">
                                        <p className="text-3xl font-bold text-white">{stat.value}</p>
                                        <p className="text-sm text-gray-400 uppercase tracking-wider mt-1">{stat.label}</p>
                                    </div>
                                ))}
                            </div>
                        </div>
                    </div>
                </FadeIn>
            </div>

            {/* About / Corporate Section */}
            <section id="about" className="py-24 bg-white relative overflow-hidden">
                {/* Decorative background element */}
                <div className="absolute top-20 -left-20 w-96 h-96 bg-gray-50 rounded-full opacity-50 blur-3xl z-0"></div>

                <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                    <div className="grid lg:grid-cols-2 gap-16 items-center">
                        <FadeIn className="relative">
                            <div className="relative rounded-2xl overflow-hidden shadow-2xl group">
                                <img
                                    src="https://images.unsplash.com/photo-1556910103-1c02745a30bf?q=80&w=2940&auto=format&fit=crop"
                                    alt="Quality Control Lab"
                                    className="w-full h-auto object-cover transform group-hover:scale-105 transition-transform duration-1000"
                                />
                                <div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>
                                <div className="absolute bottom-8 left-8 text-white max-w-sm">
                                    <p className="text-sm font-semibold uppercase tracking-wider text-red-400 mb-1">Since 1985</p>
                                    <p className="text-2xl font-bold mb-2">Heritage of Quality</p>
                                    <p className="text-sm text-gray-300 opacity-0 group-hover:opacity-100 transition-opacity duration-500">
                                        From the fertile lands of Guntur to your warehouse, we maintain the cold chain of trust.
                                    </p>
                                </div>
                            </div>
                            {/* Floating Card */}
                            <div className="absolute -bottom-10 -right-10 bg-white p-6 rounded-xl shadow-xl max-w-xs hidden md:block border border-gray-100 animate-float">
                                <div className="flex items-center gap-4 mb-3">
                                    <div className="p-3 bg-green-100 text-green-700 rounded-full">
                                        <CheckCircle2 size={24} />
                                    </div>
                                    <div>
                                        <p className="text-gray-900 font-bold">ISO 22000</p>
                                        <p className="text-xs text-gray-500">Certified Facility</p>
                                    </div>
                                </div>
                                <p className="text-sm text-gray-600">Meeting strict international food safety standards for every batch.</p>
                            </div>
                        </FadeIn>

                        <div>
                            <SectionHeading align="left" subtitle="Who We Are" title="Standardizing Global Spice Trade" />
                            <FadeIn delay={200}>
                                <p className="text-gray-600 text-lg leading-relaxed mb-6">
                                    Suhagini Spices is not just a manufacturer; we are a strategic partner for food processing industries, retail chains, and spice blends manufacturers worldwide.
                                </p>
                            </FadeIn>
                            <FadeIn delay={300}>
                                <p className="text-gray-600 leading-relaxed mb-8">
                                    Our state-of-the-art cryogenic grinding technology ensures that the volatile oils—the soul of the spice—are preserved, delivering consistent aroma and pungency in every shipment. We believe that true quality comes from a perfect blend of nature's bounty and technological precision.
                                </p>
                            </FadeIn>

                            <div className="space-y-6">
                                <FeatureItem
                                    icon={Globe}
                                    delay={400}
                                    title="Global Logistics Network"
                                    description="Seamless shipping to Europe, North America, and the Middle East with complete documentation handling."
                                />
                                <FeatureItem
                                    icon={Leaf}
                                    delay={500}
                                    title="Sustainable Sourcing"
                                    description="Direct farm engagement programs promoting organic practices and fair pricing for growers."
                                />
                            </div>

                            <FadeIn delay={600} className="mt-10">
                                <Button variant="secondary">Download Corporate Brochure</Button>
                            </FadeIn>
                        </div>
                    </div>
                </div>
            </section>

            {/* Products Showcase */}
            <section id="products" className="py-24 bg-gray-50 relative overflow-hidden">
                {/* Background Decor */}
                <div className="absolute top-0 right-0 -mr-20 -mt-20 w-96 h-96 bg-red-100 rounded-full opacity-50 blur-3xl"></div>
                <div className="absolute bottom-0 left-0 -ml-20 -mb-20 w-80 h-80 bg-orange-100 rounded-full opacity-50 blur-3xl"></div>

                <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                    <SectionHeading subtitle="Our Portfolio" title="Premium Spice Collection" />

                    <div className="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
                        <ProductCard
                            title="Royal Red Chili"
                            category="Whole & Ground"
                            description="High-color value (ASTA) Guntur and Byadgi varieties. Perfect for extraction and vibrant culinary applications."
                            image="https://images.unsplash.com/photo-1588602672528-7e3f848b6343?q=80&w=800&auto=format&fit=crop"
                            delay={0}
                        />
                        <ProductCard
                            title="Salem Turmeric"
                            category="Roots & Powder"
                            description="High curcumin content (>4%) guaranteed. Sourced from Salem, ensuring a bright golden yellow hue and medicinal potency."
                            image="https://images.unsplash.com/photo-1615485290382-441e4d049cb5?q=80&w=800&auto=format&fit=crop"
                            delay={100}
                        />
                        <ProductCard
                            title="Malabar Black Pepper"
                            category="Whole & Coarse"
                            description="The 'King of Spices' directly from Kerala estates. High piperine content with a bold, biting heat profile."
                            image="https://images.unsplash.com/photo-1563200983-05b1e6268019?q=80&w=800&auto=format&fit=crop"
                            delay={200}
                        />
                        <ProductCard
                            title="Green Cardamom"
                            category="Whole Pods"
                            description="Extra bold (8mm+) pods hand-picked from the Idukki district. Intensely aromatic and free from artificial dyes."
                            image="https://images.unsplash.com/photo-1510626388481-2287950c4c23?q=80&w=800&auto=format&fit=crop"
                            delay={300}
                        />
                        <ProductCard
                            title="Kashmiri Saffron"
                            category="Premium Threads"
                            description="Grade A1 Mogra saffron. Lab-tested for crocin content ensuring the finest color and aroma for luxury blends."
                            image="https://images.unsplash.com/photo-1541831835334-972cf1921319?q=80&w=800&auto=format&fit=crop"
                            delay={400}
                        />
                        <ProductCard
                            title="Custom Masala Blends"
                            category="B2B Formulations"
                            description="Proprietary blends developed in our food labs to match your specific flavor profile requirements."
                            image="https://images.unsplash.com/photo-1509358271058-acd22cc93898?q=80&w=800&auto=format&fit=crop"
                            delay={500}
                        />
                    </div>

                    <FadeIn delay={600} className="mt-16 text-center">
                        <Button variant="secondary" className="mr-4">View All Products</Button>
                        <Button variant="ghost">Download Catalog PDF</Button>
                    </FadeIn>
                </div>
            </section>

            {/* Why Choose Us / Features Grid */}
            <section className="py-24 bg-gray-900 text-white relative overflow-hidden">
                {/* Abstract pattern */}
                <div className="absolute inset-0 opacity-10 bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]"></div>

                <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative">
                    <SectionHeading subtitle="Why Us" title="Global Brands Trust Suhagini" />

                    <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
                        {[
                            { icon: Award, title: 'Certified Quality', text: 'ISO 22000, HACCP, and Halal certified facilities ensuring 100% compliance.' },
                            { icon: TrendingUp, title: 'Scalable Supply', text: 'Capacity to process over 100 tons monthly without compromising consistency.' },
                            { icon: Globe, title: 'Export Expertise', text: 'Proficient in navigating global customs, phytosanitary requirements, and logistics.' },
                            { icon: Leaf, title: 'Ethical Trade', text: 'Commitment to zero-child labor and fair compensation for our farming partners.' },
                        ].map((feature, idx) => (
                            <FadeIn key={idx} delay={idx * 150} className="h-full">
                                <div className="bg-white/5 p-8 rounded-2xl border border-white/10 hover:bg-white/10 transition-colors h-full flex flex-col">
                                    <div className="w-14 h-14 bg-red-900/30 rounded-full flex items-center justify-center mb-6 text-red-400">
                                        <feature.icon className="w-8 h-8" />
                                    </div>
                                    <h3 className="text-xl font-semibold mb-3">{feature.title}</h3>
                                    <p className="text-gray-400 text-sm leading-relaxed flex-1">{feature.text}</p>
                                </div>
                            </FadeIn>
                        ))}
                    </div>
                </div>
            </section>

            {/* Client Stories / Testimonials Section (New) */}
            <section className="py-24 bg-white relative">
                <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                    <SectionHeading subtitle="Client Success" title="Voices from the Industry" />

                    <div className="grid md:grid-cols-3 gap-8">
                        <TestimonialCard
                            quote="Suhagini's consistency in color value for their Red Chili powder has revolutionized our spice mix line. They are a partner, not just a vendor."
                            author="Michael Chen"
                            role="Procurement Director"
                            company="Global Foods Ltd, Singapore"
                            delay={0}
                        />
                        <TestimonialCard
                            quote="We switched to Suhagini for their transparent supply chain. Knowing exactly where our turmeric comes from adds immense value to our organic label."
                            author="Sarah Johnson"
                            role="Head of Sustainability"
                            company="Nature's Best, UK"
                            delay={200}
                        />
                        <TestimonialCard
                            quote="Their ability to customize masala blends to our specific taste profiles for the Middle Eastern market is unmatched. Truly professional service."
                            author="Ahmed Al-Fayed"
                            role="Operations Manager"
                            company="Arabian Delights, UAE"
                            delay={400}
                        />
                    </div>
                </div>
            </section>

            {/* CTA / Contact Section */}
            <section id="contact" className="py-24 bg-red-50 relative overflow-hidden">
                <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                    <div className="bg-white rounded-3xl overflow-hidden shadow-xl border border-gray-100">
                        <div className="grid lg:grid-cols-2">
                            <div className="p-12 lg:p-16 bg-gray-900 text-white relative overflow-hidden">
                                <div className="absolute inset-0 bg-red-900/20"></div>
                                <div className="relative z-10">
                                    <FadeIn>
                                        <h2 className="text-3xl font-bold mb-6">Ready to elevate your supply chain?</h2>
                                        <p className="text-gray-300 mb-8 text-lg">
                                            Get a custom quote for your bulk requirements. Our sales team typically responds within 4 business hours.
                                        </p>
                                    </FadeIn>

                                    <div className="space-y-8 mb-10">
                                        <FadeIn delay={200}>
                                            <div className="flex items-center gap-5">
                                                <div className="w-12 h-12 bg-white/10 rounded-full flex items-center justify-center text-red-400">
                                                    <Phone size={22} />
                                                </div>
                                                <div>
                                                    <p className="text-xs font-semibold uppercase text-gray-400 tracking-wider">Call Us</p>
                                                    <p className="font-medium text-lg">+91 98765 43210</p>
                                                </div>
                                            </div>
                                        </FadeIn>
                                        <FadeIn delay={300}>
                                            <div className="flex items-center gap-5">
                                                <div className="w-12 h-12 bg-white/10 rounded-full flex items-center justify-center text-red-400">
                                                    <Mail size={22} />
                                                </div>
                                                <div>
                                                    <p className="text-xs font-semibold uppercase text-gray-400 tracking-wider">Email Us</p>
                                                    <p className="font-medium text-lg">exports@suhaginispices.com</p>
                                                </div>
                                            </div>
                                        </FadeIn>
                                        <FadeIn delay={400}>
                                            <div className="flex items-center gap-5">
                                                <div className="w-12 h-12 bg-white/10 rounded-full flex items-center justify-center text-red-400">
                                                    <MapPin size={22} />
                                                </div>
                                                <div>
                                                    <p className="text-xs font-semibold uppercase text-gray-400 tracking-wider">Headquarters</p>
                                                    <p className="font-medium text-lg">Guntur Spice Park, Andhra Pradesh, India</p>
                                                </div>
                                            </div>
                                        </FadeIn>
                                    </div>
                                </div>
                            </div>

                            <div className="bg-white p-12 lg:p-16">
                                <form className="space-y-6">
                                    <FadeIn delay={100}>
                                        <div className="grid grid-cols-2 gap-6">
                                            <div>
                                                <label className="block text-sm font-medium text-gray-700 mb-2">First Name</label>
                                                <input type="text" className="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-red-500 focus:border-transparent outline-none transition-shadow bg-gray-50" placeholder="John" />
                                            </div>
                                            <div>
                                                <label className="block text-sm font-medium text-gray-700 mb-2">Last Name</label>
                                                <input type="text" className="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-red-500 focus:border-transparent outline-none transition-shadow bg-gray-50" placeholder="Doe" />
                                            </div>
                                        </div>
                                    </FadeIn>
                                    <FadeIn delay={200}>
                                        <div>
                                            <label className="block text-sm font-medium text-gray-700 mb-2">Company Name</label>
                                            <input type="text" className="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-red-500 focus:border-transparent outline-none transition-shadow bg-gray-50" placeholder="Your Company Ltd." />
                                        </div>
                                    </FadeIn>
                                    <FadeIn delay={300}>
                                        <div>
                                            <label className="block text-sm font-medium text-gray-700 mb-2">Requirements</label>
                                            <textarea rows={4} className="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-red-500 focus:border-transparent outline-none transition-shadow bg-gray-50" placeholder="Tell us about the spices and quantities you need..." />
                                        </div>
                                    </FadeIn>
                                    <FadeIn delay={400}>
                                        <Button className="w-full">Send Inquiry</Button>
                                    </FadeIn>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

        </div>
    );
}