"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitDoubleCarousel from '@/components/sections/hero/HeroSplitDoubleCarousel';
import TextAbout from '@/components/sections/about/TextAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FeatureCardTen from '@/components/sections/feature/FeatureCardTen';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Flame, Heart, Pizza, CheckCircle, Leaf, Truck, Shield, Award, Clock, Users, Music, Phone } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="medium"
      background="circleGradient"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Reviews", id: "testimonial" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Order Now", href: "contact" }}
          brandName="Carmine's Parkside"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDoubleCarousel
          tag="Wood-Fired Perfection"
          tagIcon={Flame}
          tagAnimation="slide-up"
          title="Authentic Pizza from Carmine's Parkside"
          description="Experience the true taste of Italy in Downingtown. Handcrafted pizzas made with the finest ingredients and traditional techniques. Serving our community since 2005."
          background={{ variant: "plain" }}
          leftCarouselItems={[
            { imageSrc: "http://img.b2bpic.net/free-photo/delicious-vegan-pizza-social-post_23-2151895448.jpg?_wi=1", imageAlt: "Wood-fired pizza with fresh toppings" },
            { imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-with-vegetables_23-2148601650.jpg?_wi=1", imageAlt: "Gourmet pizza with premium ingredients" },
            { imageSrc: "http://img.b2bpic.net/free-photo/dinner-set-with-margherita-pizza-salad-pasta-wine_140725-7828.jpg?_wi=1", imageAlt: "Classic Carmine's signature pizza" },
            { imageSrc: "http://img.b2bpic.net/free-photo/experienced-chef-is-putting-his-pizza-oven-using-special-giant-spatula_613910-14109.jpg?_wi=1", imageAlt: "Pizza cooking in traditional oven" }
          ]}
          rightCarouselItems={[
            { imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-with-vegetables_23-2148601650.jpg?_wi=2", imageAlt: "Fresh mozzarella and basil pizza" },
            { imageSrc: "http://img.b2bpic.net/free-photo/dinner-set-with-margherita-pizza-salad-pasta-wine_140725-7828.jpg?_wi=2", imageAlt: "Crispy crust wood-fired pizza" },
            { imageSrc: "http://img.b2bpic.net/free-photo/experienced-chef-is-putting-his-pizza-oven-using-special-giant-spatula_613910-14109.jpg?_wi=2", imageAlt: "Chef preparing authentic pizza" },
            { imageSrc: "http://img.b2bpic.net/free-photo/delicious-vegan-pizza-social-post_23-2151895448.jpg?_wi=2", imageAlt: "Delicious homemade pizza slice" }
          ]}
          carouselPosition="right"
          buttons={[
            { text: "View Menu", href: "products" },
            { text: "Order Online", href: "contact" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="Our Story"
          tagIcon={Heart}
          tagAnimation="slide-up"
          title="Carmine's Parkside: Where Tradition Meets Passion. For nearly two decades, we've been crafting authentic Italian pizza for the Downingtown community. Our commitment to quality ingredients and time-honored recipes makes every bite memorable."
          useInvertedBackground={false}
          buttons={[
            { text: "Learn More", href: "#" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          products={[
            {
              id: "1",              name: "Margherita Classico",              price: "$14.99",              variant: "Fresh Mozzarella, Basil, Tomato",              imageSrc: "http://img.b2bpic.net/free-photo/close-up-vegetable-vegetarian-pizza-top-view_169016-21794.jpg",              imageAlt: "Margherita Classico pizza"
            },
            {
              id: "2",              name: "Carmine's Supreme",              price: "$18.99",              variant: "Pepperoni, Sausage, Peppers, Onions",              imageSrc: "http://img.b2bpic.net/free-photo/salami-pizza-topped-with-dried-herbs_140725-2837.jpg",              imageAlt: "Carmine's Supreme pizza"
            },
            {
              id: "3",              name: "Garden Fresh",              price: "$16.99",              variant: "Spinach, Mushrooms, Tomatoes, Olives",              imageSrc: "http://img.b2bpic.net/free-photo/delicious-pizza-wooden-table-with-ingredients_23-2147926041.jpg",              imageAlt: "Garden Fresh vegetarian pizza"
            }
          ]}
          title="Featured Pizzas"
          description="Discover our most beloved signature pizzas, each crafted with premium ingredients and baked to perfection in our traditional wood-fired oven."
          tag="Menu Favorites"
          tagIcon={Pizza}
          tagAnimation="slide-up"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTen
          title="Why Choose Carmine's Parkside"
          description="Excellence in every slice. From sourcing to serving, we maintain the highest standards."
          tag="Our Promise"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          features={[
            {
              id: "1",              title: "Premium Fresh Ingredients",              description: "We source the finest ingredients from local suppliers and trusted partners. Every component of our pizzas—from our San Marzano tomatoes to our fresh mozzarella—is selected for quality and authenticity.",              media: { imageSrc: "http://img.b2bpic.net/free-photo/organic-foods-fresh-organic-food-local-farmers-market-farmers-markets-are-traditional-way-selling-agricultural-products_1391-373.jpg" },
              items: [
                { icon: Leaf, text: "Locally sourced produce" },
                { icon: Truck, text: "Fresh daily deliveries" },
                { icon: Shield, text: "Quality guaranteed" }
              ],
              reverse: false
            },
            {
              id: "2",              title: "Traditional Craftsmanship",              description: "Our pizzaiolos train extensively in traditional Italian pizza-making techniques. Each pizza is hand-tossed, topped with care, and baked in our authentic wood-fired oven to achieve the perfect crust and flavor.",              media: { imageSrc: "http://img.b2bpic.net/free-photo/chef-white-uniform-prepare-pizzaa_1157-27021.jpg" },
              items: [
                { icon: Flame, text: "Wood-fired perfection" },
                { icon: Award, text: "Expert craftsmanship" },
                { icon: Clock, text: "Time-honored methods" }
              ],
              reverse: true
            },
            {
              id: "3",              title: "Community-Focused Dining",              description: "Carmine's Parkside is more than a restaurant—it's a gathering place for our Downingtown community. Whether it's a family dinner, date night, or celebration, we create memorable experiences and lasting memories.",              media: { imageSrc: "http://img.b2bpic.net/free-photo/high-angle-friends-having-cocktails_23-2150244992.jpg" },
              items: [
                { icon: Users, text: "Family-friendly atmosphere" },
                { icon: Heart, text: "Community involvement" },
                { icon: Music, text: "Welcoming ambiance" }
              ],
              reverse: false
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonial" data-section="testimonial">
        <TestimonialCardFifteen
          testimonial="Carmine's Parkside has been our favorite pizza place for years. The pizza is absolutely delicious, the atmosphere is warm and inviting, and the team always makes us feel welcome. Every visit is a highlight!"
          rating={5}
          author="Michael Chen, Local Resident"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg", alt: "Michael Chen" },
            { src: "http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg", alt: "Sarah Johnson" },
            { src: "http://img.b2bpic.net/free-photo/smiling-business-leader-looking-through-window_1262-5623.jpg", alt: "David Rodriguez" },
            { src: "http://img.b2bpic.net/free-photo/woman-showing-ok-sign_23-2148990150.jpg", alt: "Emily Martinez" }
          ]}
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Ready to Indulge?"
          tagIcon={Phone}
          tagAnimation="slide-up"
          title="Order Your Perfect Pizza Today"
          description="Visit us in Downingtown or order online for delivery. Experience authentic Italian pizza that brings people together. We're open for lunch and dinner, seven days a week."
          buttons={[
            { text: "Order Online", href: "https://www.example.com" },
            { text: "Call Us", href: "tel:+16105551234" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Restaurant",              items: [
                { label: "Menu", href: "products" },
                { label: "Hours", href: "#" },
                { label: "Location", href: "#" },
                { label: "Catering", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact", href: "contact" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Reviews", href: "testimonial" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Accessibility", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2024 Carmine's Parkside Pizza. All rights reserved. Authentic Italian pizza in Downingtown, PA."
        />
      </div>
    </ThemeProvider>
  );
}
