"use client";

import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroSplitKpi from "@/components/sections/hero/HeroSplitKpi";
import AboutMetric from "@/components/sections/about/AboutMetric";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import FeatureCardNine from "@/components/sections/feature/FeatureCardNine";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import { Leaf, ShoppingCart, CheckCircle, Badge, Star, Phone } from "lucide-react";

const HomePage = () => {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Products", id: "/products" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" },
            { name: "Shop", id: "/shop" },
          ]}
          brandName="Raja Auto Store"
          bottomLeftText="Premium Agriculture Equipment"
          bottomRightText="info@rajaautostore.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Premium Agriculture Equipment & Solutions"
          description="Your trusted partner for quality farming machinery, equipment, and supplies. We deliver reliable agricultural solutions to farmers and businesses across the region."
          background={{ variant: "plain" }}
          kpis={[
            { value: "15+", label: "Years in Business" },
            { value: "5000+", label: "Satisfied Customers" },
            { value: "100%", label: "Quality Guaranteed" },
          ]}
          enableKpiAnimation={true}
          tag="Agriculture Excellence"
          tagIcon={Leaf}
          tagAnimation="slide-up"
          buttons={[
            { text: "Shop Now", href: "/products" },
            { text: "Learn More", href: "/about" },
          ]}
          buttonAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/aerial-overhead-shot-combine-harvesters-farming-field-daytime_181624-27900.jpg?_wi=1"
          imageAlt="Premium agriculture equipment"
          mediaAnimation="slide-up"
          imagePosition="right"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Raja Auto Store - Serving Agriculture Since 2009. We are committed to providing premium quality farming equipment, exceptional customer service, and reliable support to farmers and agricultural businesses."
          metrics={[
            { icon: Leaf, label: "Equipment Options", value: "500+" },
            { icon: ShoppingCart, label: "Trusted Customers", value: "5000+" },
            { icon: Badge, label: "Industry Recognition", value: "8+" },
            { icon: CheckCircle, label: "Service Coverage", value: "Region-Wide" },
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Our Products"
          description="Browse our comprehensive selection of quality agriculture equipment and supplies"
          tag="Premium Selection"
          tagIcon={ShoppingCart}
          tagAnimation="slide-up"
          buttons={[{ text: "View All Products", href: "/products" }]}
          buttonAnimation="slide-up"
          products={[
            {
              id: "1",              name: "Power Tractor 500",              price: "$85,000",              imageSrc: "http://img.b2bpic.net/free-photo/young-farmer-taking-care-his-business_329181-15999.jpg?_wi=1",              imageAlt: "Power Tractor 500"},
            {
              id: "2",              name: "Agricultural Sprayer Pro",              price: "$12,500",              imageSrc: "http://img.b2bpic.net/free-photo/municipal-tractor-clears-snow-near-homes-snow-removal_169016-71221.jpg?_wi=1",              imageAlt: "Agricultural Sprayer Pro"},
            {
              id: "3",              name: "Heavy Duty Plow",              price: "$8,900",              imageSrc: "http://img.b2bpic.net/free-photo/tractor-meddle-cultivation-field_657883-549.jpg?_wi=1",              imageAlt: "Heavy Duty Plow"},
            {
              id: "4",              name: "Soil Harrow System",              price: "$6,500",              imageSrc: "http://img.b2bpic.net/free-vector/heavy-machinery-airplane-freight-ship_107791-4425.jpg?_wi=1",              imageAlt: "Soil Harrow System"},
          ]}
          gridVariant="bento-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNine
          title="Why Choose Raja Auto Store"
          description="Experience unmatched quality and service in agriculture equipment"
          tag="Our Advantages"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "Certified Quality Equipment",              description: "All our products meet international quality standards. We source only the best equipment from trusted manufacturers.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/young-farmer-taking-care-his-business_329181-15983.jpg?_wi=1"},
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/young-farmer-taking-care-his-business_329181-15983.jpg?_wi=2"},
            },
            {
              id: 2,
              title: "Expert Support & Service",              description: "Our dedicated support team provides technical assistance, maintenance, and spare parts. We're here to keep your equipment running smoothly.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/smiling-call-center-manager-providing-guidance-intern-addressing-questions_482257-125804.jpg?_wi=1"},
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/smiling-call-center-manager-providing-guidance-intern-addressing-questions_482257-125804.jpg?_wi=2"},
            },
          ]}
          showStepNumbers={true}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Trusted by Leading Agricultural Organizations"
          description="Partners and clients who rely on Raja Auto Store for premium equipment and service"
          tag="Trusted Partners"
          tagIcon={Badge}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "GreenFarm Cooperative",            "State Agriculture Board",            "Farmers Union Alliance",            "Agricultural Development Corp",            "Regional Farm Federation",            "Sustainable Farming Initiative",            "AgriTech Solutions"]}
          logos={[
            "http://img.b2bpic.net/free-vector/flat-farm-logo-collection_23-2148180940.jpg",            "http://img.b2bpic.net/free-vector/flat-design-farmers-market-logo_23-2149331839.jpg",            "http://img.b2bpic.net/free-vector/flat-farm-logo-collection_23-2148174902.jpg",            "http://img.b2bpic.net/free-vector/hand-drawn-flat-design-farmers-market-logo_23-2149337491.jpg",            "http://img.b2bpic.net/free-photo/farm-man-working-his-organic-lettuce-garden_1150-17434.jpg",            "http://img.b2bpic.net/free-vector/hand-drawn-agriculture-company-labels_23-2149702322.jpg",            "http://img.b2bpic.net/free-psd/landscaping-service-facebook-template_23-2151076507.jpg"]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Real stories from farmers and agricultural businesses who trust Raja Auto Store"
          tag="Customer Reviews"
          tagIcon={Star}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",              name: "Rajesh Kumar",              handle: "@rajesh_farming",              testimonial: "Raja Auto Store provided exceptional equipment and support. The tractors are reliable and the customer service is outstanding. Highly recommended!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-handsome-man-grey-shirt-summer-hat-looking-front-smiling-with-happy-face-showing-thumbs-up-standing-green-wall_141793-52827.jpg",              imageAlt: "Rajesh Kumar"},
            {
              id: "2",              name: "Priya Sharma",              handle: "@priya_agri",              testimonial: "Best agricultural equipment supplier in the region. Their after-sales service is impeccable and they truly care about customer satisfaction.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-female-gardener-greenhouse_23-2147918840.jpg",              imageAlt: "Priya Sharma"},
            {
              id: "3",              name: "Vikram Singh",              handle: "@vikram_farm",              testimonial: "For over 10 years, I've been using equipment from Raja Auto Store. Quality, reliability, and fair pricing - everything you need.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/farmer-examines-field-agronomist-farmer-examines-growth-wheat_1157-39748.jpg",              imageAlt: "Vikram Singh"},
            {
              id: "4",              name: "Anjali Patel",              handle: "@anjali_farming",              testimonial: "Their team understands farming needs perfectly. They helped me choose the right equipment for my farm size and budget.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/happy-young-lady-standing-greenhouse-holding-clipboard_171337-6897.jpg",              imageAlt: "Anjali Patel"},
            {
              id: "5",              name: "Suresh Desai",              handle: "@suresh_agro",              testimonial: "Professional, knowledgeable, and customer-focused. Raja Auto Store sets the standard for agricultural equipment retailers.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-farmer-taking-care-his-business_329181-15995.jpg",              imageAlt: "Suresh Desai"},
            {
              id: "6",              name: "Meena Verma",              handle: "@meena_farm",              testimonial: "Excellent quality products and reliable delivery. Their technical support team is always available when I need assistance.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-farmer-taking-care-his-business_329181-15987.jpg",              imageAlt: "Meena Verma"},
          ]}
          showRating={true}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          carouselMode="buttons"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Started"
          title="Ready to Upgrade Your Farm?"
          description="Join thousands of farmers who trust Raja Auto Store for premium equipment and expert support. Subscribe to receive exclusive offers, product updates, and agricultural insights delivered directly to your inbox."
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/aerial-overhead-shot-combine-harvesters-farming-field-daytime_181624-27900.jpg?_wi=1"
          imageAlt="Premium agriculture equipment"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Sign Up for Updates"
          termsText="We respect your privacy. Your information helps us provide better support and exclusive offers for agricultural professionals."
          onSubmit={(email) => console.log("Contact signup:", email)}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Raja Auto Store"
          columns={[
            {
              items: [
                { label: "Home", href: "/" },
                { label: "Products", href: "/products" },
                { label: "About Us", href: "/about" },
                { label: "Contact", href: "/contact" },
              ],
            },
            {
              items: [
                { label: "Equipment Guide", href: "#" },
                { label: "Maintenance Tips", href: "#" },
                { label: "Technical Support", href: "#" },
                { label: "Warranty Info", href: "#" },
              ],
            },
            {
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Return Policy", href: "#" },
                { label: "Shipping Info", href: "#" },
              ],
            },
            {
              items: [
                { label: "Email Support", href: "mailto:info@rajaautostore.com" },
                { label: "Phone Support", href: "tel:+1234567890" },
                { label: "Visit Store", href: "#" },
                { label: "Schedule Demo", href: "#" },
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
};

export default HomePage;
