"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactText from '@/components/sections/contact/ContactText';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import { Apple, BookOpen, Globe, Leaf, Truck, Users, Wheat, Seed, HeartHandshake, Warehouse } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-stagger"
        defaultTextAnimation="reveal-blur"
        borderRadius="soft"
        contentWidth="compact"
        sizing="largeSmall"
        background="aurora"
        cardStyle="soft-shadow"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="glass"
        headingFontWeight="bold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        {
          name: "Home",          id: "#home"},
        {
          name: "About",          id: "#about"},
        {
          name: "Features",          id: "#features"},
        {
          name: "Products",          id: "#products"},
        {
          name: "Testimonials",          id: "#testimonials"},
        {
          name: "FAQs",          id: "#faq"},
        {
          name: "Contact",          id: "#contact"},
      ]}
      logoSrc="http://img.b2bpic.net/free-photo/100-nature-organic-freshly-picked-healthy-eating_53876-13898.jpg"
      logoAlt="Lakkis Farm Logo"
      brandName="Lakkis Farm"
      button={{
        text: "Shop Now",        href: "#products"}}
    />
  </div>

  <div id="home" data-section="home">
      <HeroSplitDualMedia
      background={{
        variant: "radial-gradient"}}
      title="From Our Fields to Your Table"
      description="Lakkis Farm is dedicated to cultivating the freshest organic produce and delivering it straight to your home. Experience the difference of truly local, sustainable farming."
      tag="Taste the Freshness"
      buttons={[
        {
          text: "Explore Products",          href: "#products"},
        {
          text: "Learn More",          href: "#about"},
      ]}
      mediaItems={[
        {
          imageSrc: "http://img.b2bpic.net/free-photo/field-night_1204-82.jpg",          imageAlt: "Sunny farm field with rows of green vegetables"},
        {
          imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-food-frame-with-picnic-basket_23-2148234228.jpg",          imageAlt: "Basket filled with freshly harvested organic vegetables"}
      ]}
      mediaAnimation="slide-up"
      rating={5}
      ratingText="Over 1000 Happy Customers"
    />
  </div>

  <div id="about" data-section="about">
      <TestimonialAboutCard
      useInvertedBackground={false}
      tag="Our Story"
      title="Growing with Passion, Harvesting with Care"
      description="At Lakkis Farm, we believe in nurturing the land to bring you the best. Our family has been farming these rich soils for generations, upholding traditional methods while embracing sustainable innovations."
      subdescription="We are committed to organic practices, ensuring every fruit and vegetable is grown without harmful chemicals, delivering pure, wholesome goodness to your family."
      icon={Wheat}
      imageSrc="http://img.b2bpic.net/free-photo/cheerful-farmer-with-organic-vegetables-garden-mixed-organic-vegetable-wicker-basket_1157-41465.jpg"
      imageAlt="Proud farmer standing in a bountiful field"
      mediaAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          title: "Certified Organic",          description: "Our commitment to organic farming ensures produce grown without synthetic pesticides or fertilizers, for your health and the planet.",          media: {
            imageSrc: "http://img.b2bpic.net/free-photo/gardening-concept-with-hands-soil_23-2147673245.jpg",            imageAlt: "Hands working with rich organic soil"},
          items: [
            {
              icon: Leaf,
              text: "No pesticides"},
            {
              icon: Seed,
              text: "Non-GMO seeds"},
            {
              icon: HeartHandshake,
              text: "Eco-friendly"},
          ],
          reverse: false,
        },
        {
          title: "Local & Sustainable",          description: "We practice sustainable farming to minimize our ecological footprint and support local biodiversity, ensuring a thriving farm for future generations.",          media: {
            imageSrc: "http://img.b2bpic.net/free-photo/person-helping-their-neighbors-with-food_23-2149139738.jpg",            imageAlt: "Local delivery van with farm produce"},
          items: [
            {
              icon: Truck,
              text: "Direct delivery"},
            {
              icon: Globe,
              text: "Reduced carbon"},
            {
              icon: Warehouse,
              text: "Fresh from farm"},
          ],
          reverse: true,
        },
        {
          title: "Community Supported",          description: "Join our community programs, farm tours, and workshops to connect with your food source and learn about sustainable living firsthand.",          media: {
            imageSrc: "http://img.b2bpic.net/free-photo/country-music-band-singing-outdoors_23-2149498424.jpg",            imageAlt: "People gathering at a community farm"},
          items: [
            {
              icon: Users,
              text: "Farm tours"},
            {
              icon: BookOpen,
              text: "Workshops"},
            {
              icon: Apple,
              text: "U-Pick events"},
          ],
          reverse: false,
        },
      ]}
      title="Freshness You Can Trust, Value You'll Love"
      description="Discover the core principles that make Lakkis Farm your trusted source for premium, farm-fresh produce and community-focused services."
      tag="What We Offer"
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardThree
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      products={[
        {
          id: "p1",          name: "Heirloom Tomatoes",          price: "$4.99 / lb",          imageSrc: "http://img.b2bpic.net/free-photo/tomatoes-stall-market-sanarysurmer_268835-3810.jpg",          imageAlt: "Heirloom Tomatoes"},
        {
          id: "p2",          name: "Organic Carrots",          price: "$3.49 / bunch",          imageSrc: "http://img.b2bpic.net/free-photo/top-view-radishes-with-veggies_23-2148622426.jpg",          imageAlt: "Organic Carrots"},
        {
          id: "p3",          name: "Crisp Lettuce Mix",          price: "$2.99 / head",          imageSrc: "http://img.b2bpic.net/free-photo/vegetable-salad_1388-683.jpg",          imageAlt: "Crisp Lettuce Mix"},
        {
          id: "p4",          name: "Sweet Bell Peppers",          price: "$5.79 / lb",          imageSrc: "http://img.b2bpic.net/free-photo/top-view-bell-pepper-pepper-with-copy-space-white-horizontal_176474-1165.jpg",          imageAlt: "Sweet Bell Peppers"},
        {
          id: "p5",          name: "Farm Fresh Eggs",          price: "$6.00 / dozen",          imageSrc: "http://img.b2bpic.net/free-photo/vertical-shot-fresh-chicken-quail-eggs-basket-kitchen-table_181624-59603.jpg",          imageAlt: "Farm Fresh Eggs"},
        {
          id: "p6",          name: "Seasonal Berries",          price: "$6.99 / pint",          imageSrc: "http://img.b2bpic.net/free-photo/various-fresh-summer-berries-blueberries-red-currant-strawberries-blackberries-top-view_114579-11621.jpg",          imageAlt: "Seasonal Berries"},
      ]}
      title="Seasonal Delights, Always Fresh"
      description="Explore our wide selection of freshly harvested fruits, vegetables, and farm products. Grown with care and delivered with pride, taste the real difference."
      tag="Our Harvest"
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardEleven
      textboxLayout="default"
      useInvertedBackground={false}
      animationType="slide-up"
      metrics={[
        {
          id: "m1",          value: "150+",          title: "Acres Cultivated",          description: "Sustainably managed land ensuring abundant harvests.",          imageSrc: "http://img.b2bpic.net/free-photo/aerial-shot-beautiful-green-farmland_181624-33012.jpg",          imageAlt: "Aerial view of cultivated farm fields"},
        {
          id: "m2",          value: "30+",          title: "Years of Experience",          description: "Generations of farming knowledge passed down with passion.",          imageSrc: "http://img.b2bpic.net/free-photo/beautiful-view-lush-nature-its-reflection-water-maksimir-park-zagreb-croatia_181624-12323.jpg",          imageAlt: "Orchard with fruit trees"},
        {
          id: "m3",          value: "2K+",          title: "Happy Customers",          description: "Families enjoying fresh, healthy produce delivered to their homes.",          imageSrc: "http://img.b2bpic.net/free-photo/woman-buying-fresh-organic-vegetables-street-market-young-woman-buying-vegetables-green-market_1391-569.jpg",          imageAlt: "Happy family enjoying fresh vegetables"},
      ]}
      title="Nurturing Nature, Growing Community"
      description="Our commitment extends beyond just growing food. We are dedicated to sustainable practices that enrich our land and strengthen our community."
      tag="Our Impact"
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSixteen
      animationType="depth-3d"
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t1",          name: "Sarah Johnson",          role: "Home Cook",          company: "Local Resident",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-smiling-holding-cauliflower_1303-24890.jpg",          imageAlt: "Sarah Johnson"},
        {
          id: "t2",          name: "Michael Chen",          role: "Restaurant Owner",          company: "The Green Spoon",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/bottom-close-view-healthy-life-written-notebook-cut-green-tomatoes-cut-red-cabbage-cut-pumpkin-cauliflower-cut-bell-peppers-bowls-wooden-surface-free-space_140725-102500.jpg",          imageAlt: "Michael Chen"},
        {
          id: "t3",          name: "Emily Rodriguez",          role: "Wellness Blogger",          company: "Healthy Living Hub",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/female-farmer-holding-some-tomatoes_23-2149072058.jpg",          imageAlt: "Emily Rodriguez"},
        {
          id: "t4",          name: "David Kim",          role: "CSA Member",          company: "Community Supporter",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/brunette-woman-with-paper-bag-full-healthy-food_23-2148173305.jpg",          imageAlt: "David Kim"},
        {
          id: "t5",          name: "Maria Garcia",          role: "Retired Educator",          company: "Avid Gardener",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-friends-laughing_23-2149028256.jpg",          imageAlt: "Maria Garcia"},
      ]}
      kpiItems={[
        {
          value: "5/5",          label: "Taste Score"},
        {
          value: "99%",          label: "Freshness Rating"},
        {
          value: "100%",          label: "Organic Certified"},
      ]}
      title="Delivering Freshness, Earning Trust"
      description="Hear directly from our community about the quality and care they experience with Lakkis Farm."
      tag="What Our Customers Say"
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqDouble
      textboxLayout="default"
      useInvertedBackground={false}
      faqs={[
        {
          id: "faq1",          title: "What makes Lakkis Farm produce organic?",          content: "Our farm adheres strictly to certified organic farming standards, meaning we use no synthetic pesticides, herbicides, GMOs, or chemical fertilizers. We focus on natural soil health and sustainable pest control."},
        {
          id: "faq2",          title: "Do you offer delivery services?",          content: "Yes, we offer local delivery services to ensure you receive the freshest produce right at your doorstep. Check our delivery zone on the 'Contact Us' section or during checkout."},
        {
          id: "faq3",          title: "Can I visit the farm?",          content: "We welcome visitors for farm tours and special events during designated times. Please check our events calendar or contact us to schedule a visit."},
        {
          id: "faq4",          title: "What payment methods do you accept?",          content: "We accept major credit cards, debit cards, and secure online payment options for your convenience."},
        {
          id: "faq5",          title: "How do you ensure freshness?",          content: "Our produce is harvested at peak ripeness and immediately prepared for delivery or pickup, minimizing transit time and maximizing freshness. We practice direct-to-consumer methods."},
        {
          id: "faq6",          title: "Are your products seasonal?",          content: "Yes, we are committed to providing seasonal produce, which means our offerings change throughout the year. This ensures you get the freshest and most flavorful items available."},
      ]}
      title="Your Guide to Lakkis Farm"
      description="Find quick answers to common questions about our farm, products, and services."
      tag="Questions & Answers"
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactText
      useInvertedBackground={false}
      background={{
        variant: "downward-rays-static"}}
      text="Have a question or want to order? Reach out to us!"
      buttons={[
        {
          text: "Email Us",          href: "mailto:info@lakkisfarm.com"},
        {
          text: "Call Us",          href: "tel:+1234567890"},
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoSrc="http://img.b2bpic.net/free-photo/100-nature-organic-freshly-picked-healthy-eating_53876-13898.jpg"
      logoAlt="Lakkis Farm Logo"
      logoText="Lakkis Farm"
      columns={[
        {
          title: "Farm",          items: [
            {
              label: "About Us",              href: "#about"},
            {
              label: "Our Products",              href: "#products"},
            {
              label: "Sustainability",              href: "#features"},
          ],
        },
        {
          title: "Support",          items: [
            {
              label: "FAQs",              href: "#faq"},
            {
              label: "Contact Us",              href: "#contact"},
            {
              label: "Delivery Info",              href: "#"},
          ],
        },
        {
          title: "Connect",          items: [
            {
              label: "Facebook",              href: "https://facebook.com/lakkisfarm"},
            {
              label: "Instagram",              href: "https://instagram.com/lakkisfarm"},
            {
              label: "Newsletter",              href: "#"},
          ],
        },
      ]}
      copyrightText="© 2024 Lakkis Farm. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
