"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FaqBase from '@/components/sections/faq/FaqBase';
import FeatureCardTwentyThree from '@/components/sections/feature/FeatureCardTwentyThree';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import { Droplet, Leaf, Star, Users } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="entrance-slide"
        borderRadius="soft"
        contentWidth="medium"
        sizing="largeSmall"
        background="circleGradient"
        cardStyle="inset"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="radial-glow"
        headingFontWeight="medium"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        {
          name: "Home",          id: "#hero"},
        {
          name: "About",          id: "#about"},
        {
          name: "Varieties",          id: "#features"},
        {
          name: "Products",          id: "#products"},
        {
          name: "Facts",          id: "#metrics"},
        {
          name: "Testimonials",          id: "#testimonials"},
        {
          name: "FAQ",          id: "#faq"},
        {
          name: "Contact",          id: "#contact"},
      ]}
      brandName="Apple Orchard"
      button={{
        text: "Shop Now",        href: "#products"}}
      animateOnLoad={true}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroLogo
      logoText="Apple Orchard"
      description="Experience the crisp taste of nature's finest. Grown with care, delivered with love. Your journey to perfect apples starts here."
      buttons={[
        {
          text: "Explore Varieties",          href: "#features"},
        {
          text: "Shop Now",          href: "#products"},
      ]}
      buttonAnimation="slide-up"
      imageSrc="http://img.b2bpic.net/free-photo/fresh-red-apple-hanging-from-tree-branch-orchard_84443-84257.jpg"
      imageAlt="Sunny apple orchard with ripe red apples on trees"
      showDimOverlay={false}
    />
  </div>

  <div id="about" data-section="about">
      <MetricSplitMediaAbout
      useInvertedBackground={true}
      title="Our Heritage of Freshness"
      description="At Apple Orchard, we believe in sustainable farming and nurturing our land to produce the healthiest, most flavorful apples. Our family has been cultivating these grounds for generations, preserving traditions while embracing innovative, eco-friendly practices."
      metrics={[
        {
          value: "3+",          title: "Generations"},
        {
          value: "50+",          title: "Acres Harvested"},
        {
          value: "12+",          title: "Varieties Grown"},
      ]}
      tag="Our Story"
      imageSrc="http://img.b2bpic.net/free-photo/aerial-drone-view-nature-romania-carpathian-mountains-village-valley-hills-covered_1268-19285.jpg"
      imageAlt="Panoramic view of a vibrant green apple orchard"
      mediaAnimation="slide-up"
      metricsAnimation="blur-reveal"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwentyThree
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          id: "gala",          title: "Gala Apple",          tags: [
            "Sweet",            "Crisp"],
          imageSrc: "http://img.b2bpic.net/free-photo/red-apples-isolated-concrete_114579-61846.jpg",          imageAlt: "Close up of a vibrant red and yellow Gala apple"},
        {
          id: "granny-smith",          title: "Granny Smith",          tags: [
            "Tart",            "Juicy"],
          imageSrc: "http://img.b2bpic.net/free-photo/front-view-green-tomatoes-inside-basket-dark-background_140725-132612.jpg",          imageAlt: "Bright green Granny Smith apple"},
        {
          id: "fuji",          title: "Fuji Apple",          tags: [
            "Sweet",            "Crunchy"],
          imageSrc: "http://img.b2bpic.net/free-photo/top-view-fresh-green-delicious-apples-bowl-with-peaches-bucket-grey-wood_141793-17350.jpg",          imageAlt: "Red and pink Fuji apple with a smooth skin"},
      ]}
      title="Discover Our Delicious Varieties"
      description="From crisp and sweet to tart and juicy, our orchard offers a diverse range of apple varieties, each with its own unique flavor profile. Perfect for snacking, baking, or juicing."
      tag="Our Apples"
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardFour
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="four-items-2x2-equal-grid"
      useInvertedBackground={true}
      products={[
        {
          id: "p1",          name: "Seasonal Fresh Apples (5lb bag)",          price: "$15.00",          variant: "Mixed Varieties",          imageSrc: "http://img.b2bpic.net/free-photo/apples-basket-wooden-placemat-side-view_176474-9537.jpg",          imageAlt: "Basket full of freshly picked apples"},
        {
          id: "p2",          name: "Pure Apple Juice (32oz)",          price: "$8.00",          variant: "No Added Sugar",          imageSrc: "http://img.b2bpic.net/free-photo/apples-with-drink-mini-bucket-wooden-background-high-angle-view_176474-9595.jpg",          imageAlt: "Bottle of clear apple juice"},
        {
          id: "p3",          name: "Homestyle Apple Pie",          price: "$25.00",          variant: "Ready to Bake",          imageSrc: "http://img.b2bpic.net/free-photo/homemade-apple-pie-cake-galette_114579-13574.jpg",          imageAlt: "Golden brown apple pie with lattice crust"},
        {
          id: "p4",          name: "Artisan Apple Butter (16oz)",          price: "$12.00",          variant: "Spiced",          imageSrc: "http://img.b2bpic.net/free-photo/vertical-overhead-shot-apple-pancakes-with-apples-coffee-cinnamon-butter-side_181624-14685.jpg",          imageAlt: "Jar of apple butter with a rustic label"},
        {
          id: "p5",          name: "Apple Cider Donuts (Half Dozen)",          price: "$10.00",          variant: "Cinnamon Sugar",          imageSrc: "http://img.b2bpic.net/free-photo/donuts-with-chocolate-topping_140725-3596.jpg",          imageAlt: "Stack of apple cider donuts"},
        {
          id: "p6",          name: "Gourmet Caramel Apples",          price: "$7.00",          variant: "Dark Chocolate Drizzle",          imageSrc: "http://img.b2bpic.net/free-photo/plate-with-treats-table_23-2148603658.jpg",          imageAlt: "Caramel apple with chocolate drizzle"},
      ]}
      title="Fresh from Our Orchard to Your Home"
      description="Beyond fresh apples, we craft a delightful selection of products, all made with our hand-picked fruit. Taste the difference quality makes!"
      tag="Shop Now"
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardThree
      textboxLayout="default"
      useInvertedBackground={false}
      animationType="slide-up"
      metrics={[
        {
          id: "m1",          icon: Leaf,
          title: "Organic Certified",          value: "100%"},
        {
          id: "m2",          icon: Droplet,
          title: "Water Saved",          value: "30% Annually"},
        {
          id: "m3",          icon: Star,
          title: "Trees Planted",          value: "500+"},
        {
          id: "m4",          icon: Users,
          title: "Local Jobs",          value: "20+ Created"},
      ]}
      title="Our Commitment to Sustainability"
      description="We are dedicated to responsible farming, ensuring a healthy environment for future generations. See how our efforts impact the planet and our community."
      tag="Impact"
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardFifteen
      useInvertedBackground={true}
      testimonial="The apples from Apple Orchard are simply the best I've ever tasted! So fresh, crisp, and full of flavor. Their apple pie is also a family favorite."
      rating={5}
      author="Sarah M."
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/young-woman-smiling-confident-standing-park_839833-8957.jpg",          alt: "Sarah M. avatar"},
        {
          src: "http://img.b2bpic.net/free-photo/positive-shaved-head-male-dressed-grey-suit-dark-grey-background_613910-11352.jpg",          alt: "John D. avatar"},
        {
          src: "http://img.b2bpic.net/free-photo/beautiful-young-woman-outdoor_624325-1457.jpg",          alt: "Emily R. avatar"},
        {
          src: "http://img.b2bpic.net/free-photo/close-up-portrait-smiling-handsome-man-with-blond-hair-wearing-burgunde-casual-t-shirt-standing_176532-9610.jpg",          alt: "Michael C. avatar"},
        {
          src: "http://img.b2bpic.net/free-photo/sexy-business-woman-wearing-blue-suit-sitting-summer-cafe_285396-7923.jpg",          alt: "Olivia L. avatar"},
      ]}
      ratingAnimation="slide-up"
      avatarsAnimation="blur-reveal"
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqBase
      textboxLayout="default"
      useInvertedBackground={false}
      faqs={[
        {
          id: "q1",          title: "Are your apples organic?",          content: "Yes, all our apples are certified organic and grown without synthetic pesticides or fertilizers. We believe in natural, healthy farming."},
        {
          id: "q2",          title: "How long do the fresh apples last?",          content: "When stored properly in a cool, dark place (like a refrigerator), our fresh apples can last anywhere from 3-6 weeks, depending on the variety."},
        {
          id: "q3",          title: "Do you offer farm tours?",          content: "Currently, we do not offer public farm tours, but we occasionally host special events. Please subscribe to our newsletter for updates!"},
      ]}
      title="Frequently Asked Questions"
      description="Have questions about our apples, farming practices, or products? Find answers to common inquiries below."
      tag="Support"
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCenter
      useInvertedBackground={true}
      background={{
        variant: "radial-gradient"}}
      tag="Get in Touch"
      title="Contact Us for More Information"
      description="Whether you have a question about our harvest, products, or just want to share your apple recipes, we'd love to hear from you!"
      inputPlaceholder="Enter your email"
      buttonText="Send Message"
      termsText="By clicking Send Message you agree to our Privacy Policy and Terms of Service."
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterSimple
      columns={[
        {
          title: "Our Orchard",          items: [
            {
              label: "About Us",              href: "#about"},
            {
              label: "Our Varieties",              href: "#features"},
            {
              label: "Sustainability",              href: "#metrics"},
          ],
        },
        {
          title: "Shop",          items: [
            {
              label: "All Products",              href: "#products"},
            {
              label: "Fresh Apples",              href: "#products"},
            {
              label: "Juices & Pies",              href: "#products"},
          ],
        },
        {
          title: "Support",          items: [
            {
              label: "FAQ",              href: "#faq"},
            {
              label: "Contact Us",              href: "#contact"},
            {
              label: "Privacy Policy",              href: "#"},
          ],
        },
      ]}
      bottomLeftText="© 2023 Apple Orchard. All rights reserved."
      bottomRightText="Crafted with Nature's Best"
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
