"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Sparkles, Leaf, Heart, Shield } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeLargeTitles"
      background="aurora"
      cardStyle="gradient-mesh"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          navItems={[
            { name: "Home", id: "/" },
            { name: "Arrangements", id: "/arrangements" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="Lavanda"
          button={{
            text: "Order Now",            href: "#"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="LAVANDA"
          description="Handcrafted floral arrangements for every moment. From elegant celebrations to intimate gatherings, our bespoke bouquets bring nature's beauty to life."
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "Explore Collection", href: "/arrangements" },
            { text: "Learn More", href: "/about" }
          ]}
          layoutOrder="default"
          imageSrc="https://img.b2bpic.net/free-photo/beautiful-arrangement-flowers-birthday-girl_23-2149077362.jpg"
          imageAlt="Premium lavender flower arrangement"
          frameStyle="card"
          logoLineHeight={1.2}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="About Lavanda Studio"
          description="Discover the art and passion behind every arrangement"
          tabs={[
            {
              id: "mission",              label: "Our Mission",              description: "At Lavanda, we believe flowers are more than decoration—they're a language of emotion. We craft each arrangement with intention, selecting the finest blooms and combining them into stunning compositions that tell your story."
            },
            {
              id: "craft",              label: "Our Craft",              description: "With over a decade of experience, our master florists blend traditional techniques with contemporary design. Every stem is chosen, every color considered, and every arrangement is a masterpiece created just for you."
            },
            {
              id: "sustainability",              label: "Sustainability",              description: "We source flowers from local and ethical growers whenever possible. Our commitment to sustainability means beautiful arrangements that don't compromise the environment."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/white-basket-with-lavander-greenery_8353-12.jpg"
          imageAlt="Lavanda flower studio workspace"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="arrangements" data-section="arrangements">
        <ProductCardThree
          products={[
            {
              id: "1",              name: "Deluxe Premium Arrangement",              price: "$185",              imageSrc: "https://img.b2bpic.net/free-photo/girl-holding-flower-arrangement-pumpkin_169016-5458.jpg",              imageAlt: "Deluxe premium flower arrangement",              initialQuantity: 1
            },
            {
              id: "2",              name: "Romantic Red Roses Bouquet",              price: "$145",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-closeup-shot-luxurious-bouquet-orange-brown-roses-black-background_181624-24211.jpg",              imageAlt: "Romantic red roses bouquet",              initialQuantity: 1
            },
            {
              id: "3",              name: "Spring Mixed Garden Collection",              price: "$165",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-beautiful-bunch-roses_23-2148387910.jpg",              imageAlt: "Spring mixed flower arrangement",              initialQuantity: 1
            }
          ]}
          title="Featured Arrangements"
          description="Explore our signature collections, each crafted with premium blooms and artistic vision"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow
          features={[
            {
              icon: Sparkles,
              title: "Handcrafted Excellence",              description: "Every arrangement is individually designed by our master florists, ensuring unique beauty tailored to your occasion."
            },
            {
              icon: Leaf,
              title: "Premium Blooms",              description: "We source the freshest, highest-quality flowers from trusted growers, guaranteeing longevity and radiance."
            },
            {
              icon: Heart,
              title: "Personalized Service",              description: "From consultation to delivery, we work closely with you to create arrangements that capture your vision."
            },
            {
              icon: Shield,
              title: "Same-Day Delivery",              description: "Need flowers today? Our local delivery service ensures your arrangement arrives fresh and on time."
            }
          ]}
          title="Why Choose Lavanda"
          description="Experience the difference that expertise, passion, and premium quality make"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell, Bride",              date: "Date: 15 June 2024",              title: "Absolutely stunning arrangements!",              quote: "Lavanda transformed my wedding vision into reality. The bouquets were not just beautiful, but they arrived perfectly fresh and the team was incredibly supportive throughout the planning process.",              tag: "Wedding",              avatarSrc: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg",              avatarAlt: "Sarah Mitchell",              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-bouquet-flowers-vase-table_23-2148075414.jpg",              imageAlt: "Wedding flower arrangement"
            },
            {
              id: "2",              name: "Jessica Romano, Corporate Events",              date: "Date: 22 May 2024",              title: "Exceeded all expectations",              quote: "We've been ordering arrangements from Lavanda for our corporate events for two years now. Their professionalism, creativity, and attention to detail make them our go-to choice every single time.",              tag: "Corporate",              avatarSrc: "https://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg",              avatarAlt: "Jessica Romano",              imageSrc: "https://img.b2bpic.net/free-photo/flower-composition-bucket-roses-orchid-lithianthus-side-view_141793-4427.jpg",              imageAlt: "Corporate event flowers"
            },
            {
              id: "3",              name: "Emma Thompson, Special Occasions",              date: "Date: 10 April 2024",              title: "The freshest flowers in town",              quote: "I've tried many florists, but Lavanda's arrangements last twice as long as others. The quality is evident from the moment you see them, and they brighten any space they're in.",              tag: "Personal",              avatarSrc: "https://img.b2bpic.net/free-photo/front-view-professional-business-woman-suit_23-2148603020.jpg",              avatarAlt: "Emma Thompson",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-beautiful-bunch-roses_23-2148387910.jpg",              imageAlt: "Spring flower arrangement"
            },
            {
              id: "4",              name: "Michael Chang, Event Planner",              date: "Date: 28 March 2024",              title: "Reliable and innovative",              quote: "Working with Lavanda has elevated every event I plan. Their willingness to custom create arrangements and their reliable delivery service make them an essential partner in my business.",              tag: "Professional",              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-young-smiling-pretty-girl-plaid-shirt-posing_114579-70643.jpg",              avatarAlt: "Michael Chang",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-closeup-shot-luxurious-bouquet-orange-brown-roses-black-background_181624-24211.jpg",              imageAlt: "Premium rose arrangement"
            }
          ]}
          title="What Our Clients Say"
          description="Real stories from people who've celebrated special moments with Lavanda"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to bring beauty into your life? Get in touch with Lavanda today to discuss your floral vision."
          animationType="entrance-slide"
          buttons={[
            { text: "Schedule Consultation", href: "#" },
            { text: "View Portfolio", href: "#" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Lavanda"
          copyrightText="© 2025 Lavanda Flowers Studio. Crafting beauty, one bloom at a time."
          columns={[
            {
              title: "Shop",              items: [
                { label: "Arrangements", href: "arrangements" },
                { label: "Seasonal Collections", href: "#" },
                { label: "Custom Orders", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Contact", href: "contact" },
                { label: "Delivery Info", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Pinterest", href: "https://pinterest.com" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}