"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqBase from '@/components/sections/faq/FaqBase';
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroCentered from '@/components/sections/hero/HeroCentered';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import PricingCardThree from '@/components/sections/pricing/PricingCardThree';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import { DollarSign, Heart, HelpCircle, IceCream, Sparkles } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="reveal-blur"
        borderRadius="soft"
        contentWidth="mediumSmall"
        sizing="mediumSizeLargeTitles"
        background="grid"
        cardStyle="gradient-bordered"
        primaryButtonStyle="diagonal-gradient"
        secondaryButtonStyle="solid"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleCentered
      navItems={[
        {
          name: "Home",
          id: "#hero",
        },
        {
          name: "About",
          id: "#about",
        },
        {
          name: "Flavors",
          id: "#products",
        },
        {
          name: "Menu",
          id: "#pricing",
        },
        {
          name: "Testimonials",
          id: "#testimonials",
        },
        {
          name: "FAQ",
          id: "#faq",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      logoSrc="http://img.b2bpic.net/free-vector/linear-flat-ice-cream-label-collection_23-2148989704.jpg"
      logoAlt="Soft Swirls Ice Cream Logo"
      brandName="Soft Swirls"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroCentered
      background={{
        variant: "radial-gradient",
      }}
      title="Experience the Creamy Bliss of Soft Swirls"
      description="Indulge in our delightful, handcrafted soft serve ice cream, made with the finest ingredients and a swirl of passion. Pure joy in every scoop!"
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/young-woman-with-croissant-cup-coffee-against-black-brick-wall_169016-23040.jpg",
          alt: "Happy customer 1",
        },
        {
          src: "http://img.b2bpic.net/free-photo/rendering-summer-digital-art-illustration_23-2151242813.jpg",
          alt: "Happy customer 2",
        },
        {
          src: "http://img.b2bpic.net/free-photo/front-view-man-holding-delicious-ice-cream_23-2150696622.jpg",
          alt: "Happy customer 3",
        },
        {
          src: "http://img.b2bpic.net/free-photo/medium-shot-kid-holding-delicious-ice-cream_23-2150696765.jpg",
          alt: "Happy customer 4",
        },
        {
          src: "http://img.b2bpic.net/free-photo/teenager-girl-having-fun-summer_23-2149032272.jpg",
          alt: "Happy customer 5",
        },
      ]}
      avatarText="Loved by thousands of happy customers!"
      buttons={[
        {
          text: "Explore Flavors",
          href: "#products",
        },
        {
          text: "Find Us",
          href: "#contact",
        },
      ]}
      buttonAnimation="slide-up"
      marqueeItems={[
        {
          type: "text",
          text: "Freshly Churned Daily",
        },
        {
          type: "text",
          text: "Locally Sourced Ingredients",
        },
        {
          type: "text",
          text: "Endless Topping Combinations",
        },
        {
          type: "text",
          text: "Family Owned & Operated",
        },
        {
          type: "text",
          text: "Taste the Difference!",
        },
      ]}
    />
  </div>

  <div id="about" data-section="about">
      <InlineImageSplitTextAbout
      useInvertedBackground={false}
      heading={[
        {
          type: "text",
          content: "Our Story: Crafting Sweet Moments",
        },
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/front-view-coffee-bowl-wooden-table_23-2148761659.jpg",
          alt: "Ice cream being swirled into a cone",
        },
      ]}
      buttons={[
        {
          text: "Learn More",
        },
      ]}
      buttonAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwelve
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      features={[
        {
          id: "f1",
          label: "Premium Ingredients",
          title: "Finest Quality Milk & Cream",
          items: [
            "Locally sourced dairy",
            "No artificial flavors or colors",
            "Freshness guaranteed",
          ],
        },
        {
          id: "f2",
          label: "Handcrafted Perfection",
          title: "Artisanal Swirls Every Time",
          items: [
            "Masterful swirling technique",
            "Smooth, velvety texture",
            "Perfectly balanced flavor",
          ],
        },
        {
          id: "f3",
          label: "Creative Flavors",
          title: "Unique & Seasonal Creations",
          items: [
            "Classic favorites always available",
            "Exciting seasonal specials",
            "Customizable toppings galore",
          ],
        },
        {
          id: "f4",
          label: "Joyful Experience",
          title: "A Smile in Every Scoop",
          items: [
            "Friendly, welcoming staff",
            "Cozy, vibrant atmosphere",
            "Memorable moments for all ages",
          ],
        },
      ]}
      title="Why Soft Swirls Tastes So Good"
      description="Discover what makes our ice cream a cut above the rest, from our premium ingredients to our unique swirling technique and commitment to quality."
      tag="Our Promise"
      tagIcon={Sparkles}
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardFour
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      products={[
        {
          id: "p1",
          name: "Classic Vanilla",
          price: "$4.50",
          variant: "Soft Serve Cone",
          imageSrc: "http://img.b2bpic.net/free-photo/delicious-ice-cream-cones-plate-wooden-table_23-2148134904.jpg",
          imageAlt: "Classic Vanilla Soft Serve Cone",
        },
        {
          id: "p2",
          name: "Rich Chocolate Fudge",
          price: "$5.00",
          variant: "Soft Serve Cone",
          imageSrc: "http://img.b2bpic.net/free-photo/chocolate-ice-cream-scoop-ball-with-chocolate-chips-white-background-ai-generative_123827-24163.jpg",
          imageAlt: "Rich Chocolate Fudge Soft Serve Cone",
        },
        {
          id: "p3",
          name: "Strawberry Dream",
          price: "$5.25",
          variant: "Soft Serve Cup",
          imageSrc: "http://img.b2bpic.net/free-photo/wafer-cup-with-orange-bloom-petals_23-2147990873.jpg",
          imageAlt: "Strawberry Dream Soft Serve Cup",
        },
        {
          id: "p4",
          name: "Mint Chip Delight",
          price: "$5.50",
          variant: "Soft Serve Cone",
          imageSrc: "http://img.b2bpic.net/free-photo/top-view-xmas-candies-ice-cream-grey-surface-free-place_140725-62959.jpg",
          imageAlt: "Mint Chip Delight Soft Serve Cone",
        },
        {
          id: "p5",
          name: "Caramel Crunch",
          price: "$6.00",
          variant: "Soft Serve Sundae",
          imageSrc: "http://img.b2bpic.net/free-photo/yummy-little-cake-with-pillow-formed-biscuits-blue_140725-31939.jpg",
          imageAlt: "Caramel Crunch Soft Serve Sundae",
        },
        {
          id: "p6",
          name: "Cookie Dough Bliss",
          price: "$6.25",
          variant: "Soft Serve Sundae",
          imageSrc: "http://img.b2bpic.net/free-photo/delicious-ice-cream-with-biscuits-high-angle_23-2149836050.jpg",
          imageAlt: "Cookie Dough Bliss Soft Serve Sundae",
        },
      ]}
      title="Our Delicious Creations"
      description="Dive into our selection of classic and seasonal soft serve flavors, sundaes, and shakes. There's a perfect treat for everyone!"
      tag="Sweet Selection"
      tagIcon={IceCream}
    />
  </div>

  <div id="pricing" data-section="pricing">
      <PricingCardThree
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      plans={[
        {
          id: "plan-small",
          badge: "Taste",
          price: "$4.00",
          name: "Small Swirl",
          buttons: [
            {
              text: "Order Small",
            },
          ],
          features: [
            "1 Flavor Choice",
            "Standard Cone/Cup",
            "Perfect Quick Treat",
          ],
        },
        {
          id: "plan-medium",
          badge: "Popular",
          price: "$6.50",
          name: "Medium Delight",
          buttons: [
            {
              text: "Order Medium",
            },
          ],
          features: [
            "Up to 2 Flavors",
            "Optional Waffle Cone",
            "Choice of 1 Topping",
          ],
        },
        {
          id: "plan-large",
          badge: "Value",
          price: "$9.00",
          name: "Large Bliss",
          buttons: [
            {
              text: "Order Large",
            },
          ],
          features: [
            "Up to 3 Flavors",
            "Gourmet Waffle Cone",
            "Choice of 3 Toppings",
          ],
        },
      ]}
      title="Sweet Deals for Every Craving"
      description="Choose your perfect size and add-ons from our flexible menu options. More swirls, more smiles!"
      tag="Value & Variety"
      tagIcon={DollarSign}
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardFive
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t1",
          name: "Sarah J.",
          date: "May 22, 2024",
          title: "Best Ice Cream in Town!",
          quote: "Soft Swirls is my go-to for a sweet treat. The vanilla is incredibly creamy, and the staff is always so friendly!",
          tag: "Delighted Customer",
          avatarSrc: "http://img.b2bpic.net/free-photo/retro-looking-non-binary-person-smiling_23-2148757528.jpg",
          avatarAlt: "Sarah J.",
          imageSrc: "http://img.b2bpic.net/free-photo/chocolate-soft-serve-ice-cream-cone_23-2151991303.jpg",
          imageAlt: "Vanilla soft serve",
        },
        {
          id: "t2",
          name: "Michael D.",
          date: "May 18, 2024",
          title: "A Flavor Explosion!",
          quote: "I tried the chocolate and vanilla swirl, and it was a match made in heaven. So smooth and rich!",
          tag: "Happy Regular",
          avatarSrc: "http://img.b2bpic.net/free-photo/user-sign-icon-front-side_187299-47522.jpg",
          avatarAlt: "Michael D.",
          imageSrc: "http://img.b2bpic.net/free-photo/ice-cream-bowl-with-cherry_23-2148107907.jpg",
          imageAlt: "Chocolate and vanilla swirl",
        },
        {
          id: "t3",
          name: "Emily R.",
          date: "May 10, 2024",
          title: "Perfect Summer Indulgence",
          quote: "The strawberry soft serve with fresh berries is divine. It's the perfect treat on a hot summer day. Highly recommend!",
          tag: "Summer Lover",
          avatarSrc: "http://img.b2bpic.net/free-photo/young-hispanic-man-student-smiling-confident-standing-library-university_839833-29769.jpg",
          avatarAlt: "Emily R.",
          imageSrc: "http://img.b2bpic.net/free-photo/refreshing-fruit-popsicles-ice_23-2151991279.jpg",
          imageAlt: "Strawberry soft serve",
        },
        {
          id: "t4",
          name: "David K.",
          date: "April 29, 2024",
          title: "Consistently Delicious",
          quote: "I've been coming to Soft Swirls for years, and they never disappoint. The quality and taste are always top-notch.",
          tag: "Loyal Fan",
          avatarSrc: "http://img.b2bpic.net/free-photo/close-up-male-executive-with-glasses_1098-731.jpg",
          avatarAlt: "David K.",
          imageSrc: "http://img.b2bpic.net/free-photo/top-view-dark-white-chocolate-bars-wooden-cutting-board-with-various-dried-sliced-fruits-black-background_141793-7620.jpg",
          imageAlt: "Chocolate soft serve",
        },
        {
          id: "t5",
          name: "Jessica L.",
          date: "April 20, 2024",
          title: "My Kids' Favorite Place!",
          quote: "My children absolutely adore Soft Swirls. The customizable toppings make it a fun experience for the whole family!",
          tag: "Family Favorite",
          avatarSrc: "http://img.b2bpic.net/free-photo/stylish-woman-wearing-yellow-bandana_273609-13320.jpg",
          avatarAlt: "Jessica L.",
          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-having-fun-pop-party_23-2149299585.jpg",
          imageAlt: "Soft serve with sprinkles",
        },
      ]}
      title="What Our Fans Say"
      description="Hear from our happy customers who can't get enough of Soft Swirls!"
      tag="Customer Love"
      tagIcon={Heart}
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqBase
      textboxLayout="default"
      useInvertedBackground={true}
      faqs={[
        {
          id: "faq1",
          title: "What kind of dairy do you use?",
          content: "We use premium, locally sourced dairy from happy cows to ensure the freshest and creamiest soft serve possible.",
        },
        {
          id: "faq2",
          title: "Do you offer vegan or dairy-free options?",
          content: "Yes, we are proud to offer a rotating selection of delicious vegan and dairy-free soft serve options. Please ask our staff for today's special!",
        },
        {
          id: "faq3",
          title: "Are your toppings allergen-friendly?",
          content: "We have a variety of toppings, and while we take precautions, cross-contamination is possible. Please inform our staff of any allergies so we can guide you to safe options.",
        },
        {
          id: "faq4",
          title: "Do you offer catering for events?",
          content: "Absolutely! Soft Swirls can bring the sweet experience to your event. Please contact us for more information on our catering packages.",
        },
      ]}
      title="Got Questions? We've Got Answers!"
      description="Find quick answers to the most common questions about Soft Swirls, our ingredients, and more."
      faqsAnimation="slide-up"
      tag="Quick Answers"
      tagIcon={HelpCircle}
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplitForm
      useInvertedBackground={false}
      title="Reach Out & Say Hello"
      description="Have a question, feedback, or a special request? We'd love to hear from you! Fill out the form below or stop by our shop."
      inputs={[
        {
          name: "name",
          type: "text",
          placeholder: "Your Name",
          required: true,
        },
        {
          name: "email",
          type: "email",
          placeholder: "Your Email",
          required: true,
        },
        {
          name: "subject",
          type: "text",
          placeholder: "Subject",
          required: false,
        },
      ]}
      textarea={{
        name: "message",
        placeholder: "Your Message",
        rows: 4,
        required: true,
      }}
      imageSrc="http://img.b2bpic.net/free-photo/talking-barista-manager-coffee-shop_1098-20939.jpg"
      imageAlt="Ice cream shop interior"
      mediaAnimation="slide-up"
      mediaPosition="right"
      buttonText="Send Message"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoSrc="http://img.b2bpic.net/free-vector/linear-flat-ice-cream-label-collection_23-2148989704.jpg"
      logoAlt="Soft Swirls Logo"
      logoText="Soft Swirls"
      columns={[
        {
          title: "Flavors",
          items: [
            {
              label: "Vanilla",
              href: "#products",
            },
            {
              label: "Chocolate",
              href: "#products",
            },
            {
              label: "Strawberry",
              href: "#products",
            },
            {
              label: "Seasonal Specials",
              href: "#products",
            },
          ],
        },
        {
          title: "Company",
          items: [
            {
              label: "Our Story",
              href: "#about",
            },
            {
              label: "Careers",
              href: "#",
            },
            {
              label: "Press",
              href: "#",
            },
          ],
        },
        {
          title: "Support",
          items: [
            {
              label: "FAQ",
              href: "#faq",
            },
            {
              label: "Contact Us",
              href: "#contact",
            },
            {
              label: "Privacy Policy",
              href: "#",
            },
            {
              label: "Terms of Service",
              href: "#",
            },
          ],
        },
      ]}
      copyrightText="© 2024 Soft Swirls. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
