"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import MediaAbout from '@/components/sections/about/MediaAbout';
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterCard from '@/components/sections/footer/FooterCard';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="solid"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Trattoria"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "menu" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="TRATTORIA"
          description="Authentic Italian cuisine served with passion. Experience traditional flavors in an elegant setting."
          buttons={[
            { text: "Reserve Now", href: "contact" },
            { text: "View Menu", href: "menu" }
          ]}
          slides={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454017658-iwghn75t.jpg",
              imageAlt: "Italian restaurant ambiance with traditional decor"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454018072-sytztcut.jpg",
              imageAlt: "Fresh pizzas and Italian dishes"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454018511-wgah8lmn.jpg",
              imageAlt: "Elegant table setting with wine"
            }
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
          logoLineHeight={1.2}
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Our Story"
          description="For over 25 years, Trattoria has been the heart of Italian dining in our community. Our family brings generations of culinary tradition to every plate, using only the finest imported ingredients and time-honored recipes."
          tag="Heritage"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454018760-kli6y3jo.jpg"
          imageAlt="Warm interior of our traditional Italian restaurant"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="menu" data-section="menu">
        <ProductCardSeven
          title="Featured Dishes"
          description="Discover our most beloved creations, crafted with passion and the finest ingredients"
          tag="Menu"
          products={[
            {
              id: "1",
              name: "Pasta Carbonara",
              price: "$16",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454019886-baqr1a1n.jpg",
              imageAlt: "Classic carbonara pasta with creamy sauce"
            },
            {
              id: "2",
              name: "Risotto ai Funghi",
              price: "$18",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454020313-ilnhe8eq.jpg",
              imageAlt: "Creamy mushroom risotto"
            },
            {
              id: "3",
              name: "Tiramisu",
              price: "$8",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454020825-ugfqj2de.jpg",
              imageAlt: "Traditional Italian tiramisu dessert"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="What Our Guests Say"
          description="Real experiences from our valued customers"
          tag="Reviews"
          testimonials={[
            {
              id: "1",
              name: "Maria Rossi",
              handle: "@maria_foodlover",
              testimonial: "The most authentic Italian food I've found outside of Italy. Every bite transported me back to my family's kitchen in Tuscany. Absolutely magnificent!",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454021430-yihqz7ql.jpg",
              imageAlt: "Maria Rossi"
            },
            {
              id: "2",
              name: "Marco Benedetti",
              handle: "@marco_chef",
              testimonial: "Professional service, incredible flavors, and atmosphere that makes you feel like family. This is Italian dining done right.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454022160-d1i1f55c.jpg",
              imageAlt: "Marco Benedetti"
            },
            {
              id: "3",
              name: "Elena Conti",
              handle: "@elena_travels",
              testimonial: "Celebrated our anniversary here and it was unforgettable. The owner personally recommended wine pairings. Warmly recommended!",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454022494-onrzh03v.jpg",
              imageAlt: "Elena Conti"
            },
            {
              id: "4",
              name: "Giovanni Moretti",
              handle: "@gio_foodie",
              testimonial: "Fresh pasta made daily, traditional recipes, and a team that truly cares. This place is a gem for anyone seeking authentic Italian cuisine.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454022835-zwcwhn1j.jpg",
              imageAlt: "Giovanni Moretti"
            },
            {
              id: "5",
              name: "Lucia Ferreira",
              handle: "@lucia_dines",
              testimonial: "Went twice this month! The risotto is exceptional, and the service is impeccable. Can't recommend enough to fellow food enthusiasts.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454023214-w9lx0ze2.jpg",
              imageAlt: "Lucia Ferreira"
            },
            {
              id: "6",
              name: "Paolo Rizzo",
              handle: "@paolo_enjoys",
              testimonial: "A culinary journey through Italy with every course. The staff's knowledge and passion make the experience truly special.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454023750-2y6ulmzc.jpg",
              imageAlt: "Paolo Rizzo"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          speed={35}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Make a Reservation"
          description="Reserve your table at Trattoria. We look forward to welcoming you for an unforgettable Italian dining experience."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: true },
            { name: "date", type: "date", placeholder: "Preferred Date", required: true }
          ]}
          textarea={{
            name: "specialRequests",
            placeholder: "Special requests or dietary restrictions",
            rows: 4,
            required: false
          }}
          useInvertedBackground="noInvert"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1767454019174-tohuj0qc.jpg"
          imageAlt="Elegant dining setting at Trattoria"
          mediaPosition="right"
          buttonText="Reserve Table"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="TRATTORIA"
          copyrightText="© 2025 Trattoria | Authentic Italian Cuisine. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}