"use client";

import { Heart } from 'lucide-react';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ContactText from '@/components/sections/contact/ContactText';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="glass-depth"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          navItems={[
            { name: 'About Us', id: 'about' },
            { name: 'Products', id: 'products' },
            { name: 'Testimonials', id: 'testimonials' },
            { name: 'FAQ', id: 'faq' },
            { name: 'Contact', id: 'contact' },
          ]}
          brandName="Смачна Випічка"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          title="Смачна Випічка: Taste the Heart of Ukraine"
          description="Experience the authentic flavors of Ukraine with our freshly baked bread, pastries, and traditional desserts, made with love and time-honored recipes."
          background={{ variant: 'plain' }}
          tag="Your Local Ukrainian Bakery"
          buttons={[
            { text: 'Explore Our Menu', href: '#products' },
            { text: 'Order Now', href: '#contact' },
          ]}
          mediaItems={[
            {
              imageSrc: 'https://img.b2bpic.net/free-photo/closeup-fresh-pita-bread-sale_181624-58514.jpg',
              imageAlt: 'A beautiful display of Ukrainian baked goods, including paska and korovai.',
            },
            {
              imageSrc: 'https://img.b2bpic.net/free-photo/closeup-fresh-pita-bread-sale_181624-58514.jpg',
              imageAlt: 'A beautiful display of Ukrainian baked goods, including paska and korovai.',
            },
          ]}
          rating={5}
          ratingText="Loved by Our Community"
          mediaAnimation="blur-reveal"
          tagAnimation="slide-up"
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="Our Story"
          title="Bringing a piece of Ukraine to Your Table"
          description="At Смачна Випічка, we believe in preserving the rich culinary heritage of Ukraine. Our journey began with a passion for traditional baking, using recipes passed down through generations."
          subdescription="Every loaf and pastry tells a story of warmth, community, and home."
          icon={Heart}
          imageSrc="https://img.b2bpic.net/free-photo/man-baker-with-fresh-bread-baker-house_1303-32273.jpg"
          imageAlt="A friendly Ukrainian baker smiling amidst fresh bread."
          mediaAnimation="blur-reveal"
          tagAnimation="opacity"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          products={[
            {
              id: '1',
              brand: 'Смачна Випічка',
              name: 'Korovai',
              price: 'From $45.00',
              rating: 5,
              reviewCount: '120',
              imageSrc: 'https://img.b2bpic.net/free-photo/side-close-up-view-cupcakes-cake-appetizing-cupcakes-cake-cutting-board_140725-122889.jpg',
              imageAlt: 'Traditional Ukrainian Korovai bread',
            },
            {
              id: '2',
              brand: 'Смачна Випічка',
              name: 'Paska',
              price: 'From $25.00',
              rating: 5,
              reviewCount: '95',
              imageSrc: 'https://img.b2bpic.net/free-photo/sultana-pie-slices-blue-checked-towel_114579-61932.jpg',
              imageAlt: 'Festive Ukrainian Paska bread',
            },
            {
              id: '3',
              brand: 'Смачна Випічка',
              name: 'Varenyky (Sweet)',
              price: '$18.00/dozen',
              rating: 4,
              reviewCount: '70',
              imageSrc: 'https://img.b2bpic.net/free-photo/delicious-dumplings-with-cherries-jam_2829-8659.jpg',
              imageAlt: 'Sweet Ukrainian Varenyky with fruit filling',
            },
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          title="Our Beloved Offerings"
          description="Discover a delectable selection of traditional Ukrainian baked goods, made fresh daily."
          tag="Menu Highlights"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwelve
          features={[
            {
              id: 'fresh-ingredients',
              label: 'Fresh',
              title: 'Only the Finest, Locally Sourced Ingredients',
              items: ['High-quality flour', 'Farm-fresh eggs', 'Real butter', 'Natural sweeteners'],
              buttons: [],
            },
            {
              id: 'handmade-craftsmanship',
              label: 'Handmade',
              title: 'Baked with Passion, Following Old Traditions',
              items: ['Generational recipes', 'Artisanal techniques', 'Attention to detail', 'Slow fermentation'],
              buttons: [],
            },
            {
              id: 'community-love',
              label: 'Community',
              title: 'More Than Just a Bakery, It\'s a Gathering Place',
              items: ['Warm, welcoming atmosphere', 'Family-friendly', 'Support local businesses', 'Taste of home'],
              buttons: [],
            },
          ]}
          animationType="slide-up"
          title="Why Choose Смачна Випічка?"
          description="Our commitment to quality, tradition, and community sets us apart."
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSixteen
          testimonials={[
            {
              id: '1',
              name: 'Olena K.',
              role: 'Regular Customer',
              company: 'Kyiv Resident',
              rating: 5,
              imageSrc: 'https://img.b2bpic.net/free-photo/dessert-with-my-best-friend-tastes-doubly-well_329181-2937.jpg',
              imageAlt: 'Smiling woman holding a pastry',
            },
            {
              id: '2',
              name: 'Dmytro H.',
              role: 'Food Blogger',
              company: 'Taste of Ukraine',
              rating: 5,
              imageSrc: 'https://img.b2bpic.net/free-photo/man-baker-kitchen-by-pastry-cart_1303-32295.jpg',
              imageAlt: 'Man enjoying a fresh bread roll',
            },
            {
              id: '3',
              name: 'Irina M.',
              role: 'Local Business Owner',
              company: 'Flower Shop',
              rating: 5,
              imageSrc: 'https://img.b2bpic.net/free-photo/young-happy-woman-preparing-meal-seasoning-food-kitchen_637285-3116.jpg',
              imageAlt: 'Woman with coffee and a croissant',
            },
            {
              id: '4',
              name: 'Vasyl P.',
              role: 'Grandfather',
              company: 'Local Family',
              rating: 5,
              imageSrc: 'https://img.b2bpic.net/free-photo/be-my-valentine_1098-15263.jpg',
              imageAlt: 'Older man smiling proudly',
            },
          ]}
          kpiItems={[
            { value: '50+', label: 'Traditional Recipes' },
            { value: '10 Years', label: 'Serving the Community' },
            { value: '100%', label: 'Homemade Goodness' },
          ]}
          animationType="slide-up"
          title="What Our Customers Say"
          description="Hear directly from our wonderful community about their favorite Смачна Випічка treats."
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          faqs={[
            {
              id: '1',
              title: 'Do you offer custom orders for events?',
              content: 'Yes, we\'d be delighted to discuss custom orders for weddings, birthdays, and other special occasions. Please contact us in advance to plan your unique request.',
            },
            {
              id: '2',
              title: 'Are there any gluten-free or vegan options?',
              content: 'We currently offer a selection of traditional baked goods. While we don\'t have dedicated gluten-free or vegan facilities, please inquire about specific ingredient lists for any allergies.',
            },
            {
              id: '3',
              title: 'What are your most popular items?',
              content: 'Our Korovai and Paska are very popular, especially during holidays. Everyday favorites include our freshly baked bread and a variety of sweet pastries.',
            },
            {
              id: '4',
              title: 'Do you deliver?',
              content: 'Yes, we offer local delivery within a certain radius. Please check our contact section for delivery zone details or call us directly.',
            },
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/man-baker-with-fresh-bread-baker-house_1303-32273.jpg"
          imageAlt="A baker preparing dough."
          mediaAnimation="blur-reveal"
          mediaPosition="left"
          title="Frequently Asked Questions"
          description="Find answers to common inquiries about Смачна Випічка."
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to taste a piece of Ukraine? Visit us or place your order today!"
          animationType="reveal-blur"
          buttons={[
            { text: 'Get Directions', href: 'https://maps.google.com' },
            { text: 'Call Us Now', href: 'tel:+380000000000' },
          ]}
          background={{ variant: 'plain' }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: 'Menu',
              items: [
                { label: 'Breads', href: '#products' },
                { label: 'Pastries', href: '#products' },
                { label: 'Special Orders', href: '#contact' },
              ],
            },
            {
              title: 'Bakery',
              items: [
                { label: 'Our Story', href: '#about' },
                { label: 'FAQ', href: '#faq' },
                { label: 'Contact', href: '#contact' },
              ],
            },
          ]}
          copyrightText="© 2024 Смачна Випічка. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
