"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import MediaSplitAbout from '@/components/sections/about/MediaSplitAbout';
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Heart } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeLargeTitles"
      background="radialGradient"
      cardStyle="solid"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered 
          brandName="CoffeeFlow"
          navItems={[
            { name: "Home", id: "home" },
            { name: "About", id: "about" },
            { name: "Menu", id: "menu" },
            { name: "Contact", id: "contact" },
            { name: "Locations", id: "locations" }
          ]}
          button={{ text: "Order Now", href: "menu" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="CoffeeFlow"
          description="Discover the perfect brew. Fresh, locally-roasted coffee crafted for every moment of your day."
          buttons={[
            { text: "Explore Menu", href: "menu" },
            { text: "Visit Us", href: "contact" }
          ]}
          slides={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758395555-7mv6t2q9.jpg",
              imageAlt: "Premium specialty latte with latte art"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758396928-lp7hxsr0.jpg",
              imageAlt: "Fresh espresso shot being poured"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758398063-ipre35cv.jpg",
              imageAlt: "Cozy coffee shop interior atmosphere"
            }
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitAbout
          title="Our Coffee Story"
          description="Since 2010, CoffeeFlow has been dedicated to bringing exceptional coffee to our community. We partner with fair-trade farmers and specialty roasters to deliver the freshest, most flavorful coffee experience. Every cup tells a story of passion, craftsmanship, and commitment to quality."
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758399249-5ptbosia.jpg"
          imageAlt="Coffee beans and roasting process"
          imagePosition="right"
          buttons={[{ text: "Learn More", href: "#" }]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="menu" data-section="menu">
        <ProductCardSeven
          title="Our Menu"
          description="Handcrafted beverages made with care and premium ingredients"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",
              name: "Classic Espresso",
              price: "$3.50",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766757626429-ve9tnr36.jpg",
              imageAlt: "Classic espresso shot"
            },
            {
              id: "2",
              name: "Signature Latte",
              price: "$5.00",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758400797-4e6y3l0g.jpg",
              imageAlt: "Latte with latte art"
            },
            {
              id: "3",
              name: "Cold Brew Iced",
              price: "$4.50",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758402088-wj4zl5un.jpg",
              imageAlt: "Refreshing iced cold brew"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="Join thousands of coffee lovers who trust CoffeeFlow for their daily dose of excellence"
          cardTag="Loved by our community"
          cardTagIcon={Heart}
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758403855-43mgv6tq.jpg",
              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",
              name: "James Rodriguez",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758404950-o6m20jnh.jpg",
              imageAlt: "James Rodriguez"
            },
            {
              id: "3",
              name: "Emma Chen",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758405904-aktvo27y.jpg",
              imageAlt: "Emma Chen"
            },
            {
              id: "4",
              name: "Michael Thompson",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766758407286-habq6wfk.jpg",
              imageAlt: "Michael Thompson"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to experience the perfect cup? Visit our cafe today or order online for pickup."
          animationType="entrance-slide"
          buttons={[
            { text: "Get in Touch", href: "#" },
            { text: "Find Our Location", href: "#" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Menu",
              items: [
                { label: "Coffee Drinks", href: "#" },
                { label: "Pastries", href: "#" },
                { label: "Breakfast", href: "#" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "about" },
                { label: "Locations", href: "#" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Contact", href: "contact" },
                { label: "Instagram", href: "#" },
                { label: "Facebook", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 CoffeeFlow. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}