"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import TagMediaSplitAbout from '@/components/sections/about/TagMediaSplitAbout';
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
import TestimonialCardNine from '@/components/sections/testimonial/TestimonialCardNine';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Award, Calendar, Heart, Sparkles, Star } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="mediumLargeSizeLargeTitles"
      background="grid"
      cardStyle="glass-elevated"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Trattoria"
          button={{
            text: "Reserve Table",
            href: "#contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Experience Authentic Italian Cuisine"
          description="Welcome to Trattoria, where tradition meets flavor. Discover the heart of Italy through our carefully curated dishes, warm hospitality, and unforgettable dining moments."
          tag="Fine Dining"
          tagIcon={Sparkles}
          buttons={[
            {
              text: "Reserve Now",
              href: "#contact"
            },
            {
              text: "View Menu",
              href: "#features"
            }
          ]}
          carouselItems={[
            {
              id: "1",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766760339172-wtq2r8qq.jpg",
              imageAlt: "Signature pasta dish at Trattoria"
            },
            {
              id: "2",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766760340157-xnafc0cw.jpg",
              imageAlt: "Creamy risotto preparation"
            },
            {
              id: "3",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766760340957-0222m1sm.jpg",
              imageAlt: "Fresh seafood specialties"
            },
            {
              id: "4",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766760341776-od1mgbjg.jpg",
              imageAlt: "Homemade desserts and tiramisu"
            },
            {
              id: "5",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766760342753-3muw0pvy.jpg",
              imageAlt: "Premium Italian wine selection"
            },
            {
              id: "6",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766416780858-eeoell34.jpg",
              imageAlt: "Elegant dining atmosphere"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <TagMediaSplitAbout
          title="Our Story"
          description="Trattoria was born from a passion for authentic Italian cuisine and the art of bringing people together around exceptional food. Since our opening, we've been dedicated to recreating the warmth and flavors of Italy in every dish."
          textboxLayout="default"
          contentTag="TRADITION"
          contentTagIcon={Heart}
          contentTitle="Where Heritage Meets Modern Excellence"
          contentDescription="Every recipe in our kitchen honors time-tested Italian traditions while celebrating fresh, locally-sourced ingredients. Our chefs combine passion with precision, creating dishes that transport you to the countryside of Tuscany with every bite."
          contentButtons={[
            {
              text: "Learn More",
              href: "#features"
            }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766760343844-saadrs9m.jpg"
          imageAlt="Warm and inviting Trattoria dining room"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwelve
          features={[
            {
              id: "quality",
              label: "Quality",
              title: "Finest Ingredients, Greatest Care",
              items: [
                "Fresh daily sourcing from trusted suppliers",
                "Organic vegetables and heritage grains",
                "Hand-selected meats and fresh seafood",
                "Premium imported Italian products"
              ]
            },
            {
              id: "ambiance",
              label: "Ambiance",
              title: "A Warm Embrace of Italian Elegance",
              items: [
                "Intimate lighting for romantic evenings",
                "Thoughtfully curated decor and music",
                "Private dining spaces available",
                "Outdoor terrace with garden views"
              ]
            }
          ]}
          animationType="slide-up"
          title="Why Choose Trattoria"
          description="Discover what makes our restaurant a beloved destination for food lovers and those seeking authentic Italian hospitality."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          tag="Dining Excellence"
          tagIcon={Award}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardNine
          testimonials={[
            {
              id: "1",
              quote: "An absolutely unforgettable evening. The pasta was divine, the service impeccable, and the atmosphere transported us straight to Italy. We've been back three times already.",
              name: "Sarah Mitchell",
              role: "Food Critic",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766414401529-6db20epg.jpg",
              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",
              quote: "My husband proposed here last month, and Trattoria made it extra special. The chef even created a custom dessert with our initials. Pure magic.",
              name: "Emma Johnson",
              role: "Wedding Planning Professional",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766492697041-9adqfrju.jpg",
              imageAlt: "Emma Johnson"
            },
            {
              id: "3",
              quote: "As someone who lived in Italy for five years, I can confidently say this is the most authentic Italian food I've found in the city. Exceptional quality.",
              name: "Marco Benedetti",
              role: "Travel Consultant",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766502911819-f5rnce5q.jpg",
              imageAlt: "Marco Benedetti"
            },
            {
              id: "4",
              quote: "We host our monthly team dinners here. The private room, the wine selection, and the incredible food make every gathering memorable. Highly recommended.",
              name: "Jennifer Chen",
              role: "Business Owner",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766502912600-84fr3x4z.jpg",
              imageAlt: "Jennifer Chen"
            }
          ]}
          title="Loved by Our Guests"
          description="Experience what our diners have discovered about Trattoria's commitment to excellence and authentic Italian hospitality."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          tag="Guest Reviews"
          tagIcon={Star}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          faqs={[
            {
              id: "1",
              title: "How do I make a reservation?",
              content: "You can reserve a table through our website reservation system or by calling us directly at (555) 123-4567. We accept reservations up to 60 days in advance. Walk-ins are welcome based on availability."
            },
            {
              id: "2",
              title: "What are your hours of operation?",
              content: "Trattoria is open Tuesday through Sunday from 5:00 PM to 10:00 PM. We are closed Mondays. Holiday hours may vary, and special event bookings are available by request."
            },
            {
              id: "3",
              title: "Do you accommodate dietary restrictions?",
              content: "Absolutely. We're happy to accommodate vegetarian, vegan, gluten-free, and other dietary needs. Please mention any restrictions when making your reservation or inform your server upon arrival."
            },
            {
              id: "4",
              title: "Can we host private events?",
              content: "Yes, we offer private dining spaces for special occasions, corporate events, and celebrations. Our team works with you to create a memorable experience. Contact us at events@trattoria.com for inquiries."
            },
            {
              id: "5",
              title: "What is your dress code?",
              content: "We recommend smart casual attire. Jeans are acceptable, but please avoid athletic wear. We want all our guests to feel comfortable while maintaining an elegant dining atmosphere."
            },
            {
              id: "6",
              title: "Do you have a wine list?",
              content: "We feature a curated selection of Italian wines, as well as international wines carefully chosen by our sommelier. We also offer wine pairing recommendations with our tasting menus."
            }
          ]}
          ctaTitle="Ready to Dine With Us?"
          ctaDescription="Reserve your table today and experience authentic Italian cuisine in an unforgettable setting."
          ctaButton={{
            text: "Make a Reservation",
            href: "https://reservations.example.com"
          }}
          ctaIcon={Calendar}
          useInvertedBackground="noInvert"
          animationType="slide-up"
          accordionAnimationType="smooth"
          showCard={true}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Trattoria"
        />
      </div>
    </ThemeProvider>
  );
}
