"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import FooterCard from '@/components/sections/footer/FooterCard';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import SplitAbout from '@/components/sections/about/SplitAbout';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="icon-arrow"
        defaultTextAnimation="entrance-slide"
        borderRadius="soft"
        contentWidth="mediumLarge"
        sizing="mediumLarge"
        background="circleGradient"
        cardStyle="gradient-bordered"
        primaryButtonStyle="double-inset"
        secondaryButtonStyle="layered"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        {
          name: "Home",
          id: "hero",
        },
        {
          name: "Shop",
          id: "products",
        },
        {
          name: "About",
          id: "about",
        },
        {
          name: "Contact",
          id: "contact",
        },
      ]}
      brandName="FreshFarm Market"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboard
      background={{
        variant: "gradient-bars",
      }}
      title="Fresh From Farm to Your Home"
      description="Connecting you directly with local farmers for the freshest organic produce. Experience farm-to-table quality delivered daily."
      buttons={[
        {
          text: "Shop Fresh Produce",
          href: "#products",
        },
        {
          text: "Our Farmers",
          href: "#about",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/basket-with-radishes-unripe-tomatoes_23-2148332216.jpg?_wi=1"
      imageAlt="fresh organic produce farm basket"
      mediaAnimation="blur-reveal"
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/medium-shot-man-living-countryside_23-2150642378.jpg",
          alt: "Medium shot man living at countryside",
        },
        {
          src: "http://img.b2bpic.net/free-photo/middle-aged-bearded-caucasian-botanist-biologist-wearing-panama-hat_273609-6319.jpg",
          alt: "Middle aged bearded Caucasian botanist or biologist wearing panama hat",
        },
        {
          src: "http://img.b2bpic.net/free-photo/young-caucasian-man-wearing-beach-hat-keeping-hands-waist-isolated-green-wall_141793-80205.jpg",
          alt: "Young caucasian man wearing beach hat keeping hands on waist  isolated on green wall",
        },
        {
          src: "http://img.b2bpic.net/free-photo/senior-man-working-field-with-vegetables_329181-12415.jpg",
          alt: "Senior man working in the field with vegetables",
        },
        {
          src: "http://img.b2bpic.net/free-photo/young-beautiful-florist-posing-smiling-flowers_176420-2071.jpg",
          alt: "Young beautiful florist posing, smiling among flowers.",
        },
      ]}
      avatarText="Join 500+ happy community members"
      marqueeItems={[
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/half-basket-with-pumpkins-carrots-radishes_23-2148332199.jpg",
          alt: "Half of a basket with pumpkins carrots and radishes",
        },
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/fresh-variety-vegetable-basket-ready-be-cooked-kitchen_1150-14537.jpg",
          alt: "Fresh variety vegetable basket ready to be cooked in the kitchen ",
        },
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/half-basket-with-radishes_23-2148332224.jpg",
          alt: "Half of a basket with radishes",
        },
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/raw-zucchinis-eggplant-wooden-box-high-quality-photo_114579-26823.jpg",
          alt: "Raw zucchinis and eggplant in wooden box. High quality photo",
        },
        {
          type: "text",
          text: "100% Organic Delivery",
        },
      ]}
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardTwo
      animationType="slide-up"
      textboxLayout="split-description"
      gridVariant="four-items-2x2-equal-grid"
      useInvertedBackground={true}
      products={[
        {
          id: "p1",
          brand: "Local Harvest",
          name: "Organic Red Apples",
          price: "$4.50/kg",
          rating: 5,
          reviewCount: "128",
          imageSrc: "http://img.b2bpic.net/free-photo/red-apple-basket_74190-6133.jpg?_wi=1",
        },
        {
          id: "p2",
          brand: "Green Field",
          name: "Fresh Garden Lettuce",
          price: "$2.20/ea",
          rating: 5,
          reviewCount: "96",
          imageSrc: "http://img.b2bpic.net/free-photo/composition-fresh-vegetables-blurred-vegetable-garden-background_169016-39500.jpg",
        },
        {
          id: "p3",
          brand: "Dairy Haven",
          name: "Artisan Goat Cheese",
          price: "$8.00/200g",
          rating: 4,
          reviewCount: "84",
          imageSrc: "http://img.b2bpic.net/free-photo/delicious-food-cottagecore-inspiration-high-angle_23-2149434091.jpg",
        },
        {
          id: "p4",
          brand: "Golden Fields",
          name: "Raw Wildflower Honey",
          price: "$12.00/jar",
          rating: 5,
          reviewCount: "210",
          imageSrc: "http://img.b2bpic.net/free-photo/composition-different-delicious-ingredients_23-2149028612.jpg",
        },
        {
          id: "p5",
          brand: "Berry Farm",
          name: "Organic Strawberries",
          price: "$6.00/box",
          rating: 5,
          reviewCount: "152",
          imageSrc: "http://img.b2bpic.net/free-photo/worn-out-tray-white-fabric-with-pile-strawberries-marble-background_114579-24121.jpg",
        },
        {
          id: "p6",
          brand: "Pure Milk Co",
          name: "Fresh Organic Milk",
          price: "$3.50/lt",
          rating: 4,
          reviewCount: "72",
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-fresh-milk-glass-bottle-chocolate-cookies-golden-spoon-peanuts-walnuts-black-surface_140725-154462.jpg",
        },
      ]}
      title="Today's Fresh Deals"
      description="Browse our hand-picked selection of daily farm-fresh harvests."
    />
  </div>

  <div id="about" data-section="about">
      <SplitAbout
      textboxLayout="split"
      useInvertedBackground={false}
      title="Why Choose Us"
      description="FreshFarm Market is more than just a store. We are a bridge between hard-working local farmers and families who care about what they put on their plates. By cutting out middlemen, we ensure farmers get fair prices while you get the freshest food."
      bulletPoints={[
        {
          title: "100% Organic",
          description: "Strict quality control on all organic farming standards.",
        },
        {
          title: "Fair Trade",
          description: "Farmers receive fair wages directly for their hard work.",
        },
        {
          title: "Farm to Table",
          description: "Delivered within 24 hours of harvest to your doorstep.",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/mesmerizing-shot-attractive-female-red-dress-posing-wheat-field_181624-39553.jpg"
      imageAlt="fresh organic produce farm basket"
      mediaAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardMedia
      animationType="slide-up"
      textboxLayout="split-description"
      useInvertedBackground={true}
      features={[
        {
          id: "f1",
          title: "Order Tracking",
          description: "Know exactly where your farm fresh order is in real time.",
          tag: "Convenience",
          imageSrc: "http://img.b2bpic.net/free-photo/fresh-tasty-red-apples-wooden-basket-green-grass_1220-1642.jpg",
          imageAlt: "Fresh Tasty Red Apples in Wooden Basket on Green Grass",
        },
        {
          id: "f2",
          title: "Secure Payments",
          description: "Your transactions are encrypted and safe with us.",
          tag: "Safety",
          imageSrc: "http://img.b2bpic.net/free-photo/basket-with-radishes-unripe-tomatoes_23-2148332216.jpg?_wi=2",
          imageAlt: "Fresh Tasty Red Apples in Wooden Basket on Green Grass",
        },
        {
          id: "f3",
          title: "Fast Delivery",
          description: "Optimized delivery routes for fresher produce delivery.",
          tag: "Speed",
          imageSrc: "http://img.b2bpic.net/free-photo/red-apple-basket_74190-6133.jpg?_wi=2",
          imageAlt: "Fresh Tasty Red Apples in Wooden Basket on Green Grass",
        },
      ]}
      title="Our Promise"
      description="We ensure every item on our platform meets our stringent quality and safety standards."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSixteen
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t1",
          name: "Sarah Miller",
          role: "Homemaker",
          company: "Customer",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/smiling-handsome-blonde-man-with-beach-hat-puts-hand-face-isolated-orange-wall_141793-66449.jpg",
        },
        {
          id: "t2",
          name: "John Doe",
          role: "Chef",
          company: "Foodie",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-florist-taking-care-flowers_176420-2076.jpg",
        },
        {
          id: "t3",
          name: "Jane Wilson",
          role: "Teacher",
          company: "Customer",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/vendor-checking-quality-organic-items_482257-90439.jpg",
        },
        {
          id: "t4",
          name: "Robert Stone",
          role: "Entrepreneur",
          company: "User",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/woman-harvesting-vegetables_23-2148568627.jpg",
        },
        {
          id: "t5",
          name: "Emma Brown",
          role: "Parent",
          company: "Customer",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-reaching-out-his-hand-camera_23-2148231904.jpg",
        },
      ]}
      kpiItems={[
        {
          value: "500+",
          label: "Farmers",
        },
        {
          value: "10k+",
          label: "Orders",
        },
        {
          value: "4.9",
          label: "Rating",
        },
      ]}
      title="Customer Reviews"
      description="See why our local community trusts FreshFarm Market."
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplitForm
      useInvertedBackground={true}
      title="Contact Us"
      description="Have questions about our local farm partners or delivery availability? Get in touch."
      inputs={[
        {
          name: "name",
          type: "text",
          placeholder: "Your Name",
          required: true,
        },
        {
          name: "email",
          type: "email",
          placeholder: "Email Address",
          required: true,
        },
        {
          name: "subject",
          type: "text",
          placeholder: "Subject",
        },
      ]}
      textarea={{
        name: "message",
        placeholder: "Your message here...",
        rows: 4,
        required: true,
      }}
      imageSrc="http://img.b2bpic.net/free-photo/aerial-shot-trees-beautiful-grass-covered-field-sunlight_181624-11641.jpg"
      mediaPosition="right"
      imageAlt="scenic green farm landscape rolling hills"
    />
  </div>

  <div id="newsletter" data-section="newsletter">
      <ContactSplitForm
      useInvertedBackground={false}
      title="Join Our Newsletter"
      description="Get updates on new seasonal harvests and special local deals."
      inputs={[
        {
          name: "email",
          type: "email",
          placeholder: "Enter your email",
          required: true,
        },
      ]}
      buttonText="Subscribe"
      imageSrc="http://img.b2bpic.net/free-photo/natural-landscape_181624-8006.jpg"
      imageAlt="natural landscape"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterCard
      logoText="FreshFarm Market"
      copyrightText="© 2025 FreshFarm Market. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
