"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Sparkles, Star } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Arrangements", id: "/arrangements" },
            { name: "Services", id: "/services" },
            { name: "Gallery", id: "/gallery" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="Rose"
          bottomLeftText="Premium Floral Design"
          bottomRightText="hello@rosestudio.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Elevate Every Moment with Exquisite Florals"
          description="Handcrafted floral arrangements that celebrate life's most beautiful moments. Premium roses, exotic blooms, and timeless designs."
          tag="Welcome to Rose"
          tagIcon={Sparkles}
          imageSrc="https://img.b2bpic.net/free-photo/bouquet-fresh-roses-glass-vase-close-up_169016-8804.jpg"
          imageAlt="Luxury floral arrangement with roses"
          textPosition="bottom-left"
          showBlur={true}
          showDimOverlay={false}
          buttons={[
            { text: "Explore Arrangements", href: "/arrangements" },
            { text: "Book a Design Consultation", href: "/contact" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Crafting beauty through" },
            { type: "image", src: "https://img.b2bpic.net/free-photo/florist_23-2148013627.jpg", alt: "Rose Studio florist at work" },
            { type: "text", content: "passion and expertise" }
          ]}
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Learn Our Story", href: "#about" },
            { text: "View Services", href: "/services" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Signature Arrangements"
          description="Explore our most beloved floral collections, carefully designed for every occasion and emotion."
          tag="Featured Collections"
          tagIcon={Star}
          products={[
            {
              id: "1",
              brand: "Rose Studio",
              name: "Romantic Red Rose Bouquet",
              price: "$89.00",
              rating: 5,
              reviewCount: "342",
              imageSrc: "https://img.b2bpic.net/free-photo/side-view-pink-color-roses-flower-bouquet_140725-12180.jpg",
              imageAlt: "Red rose wedding bouquet"
            },
            {
              id: "2",
              brand: "Rose Studio",
              name: "Spring Celebration Arrangement",
              price: "$75.00",
              rating: 5,
              reviewCount: "218",
              imageSrc: "https://img.b2bpic.net/free-photo/bouquet-florish-vase-standing_114579-2320.jpg",
              imageAlt: "Colorful spring flower arrangement"
            },
            {
              id: "3",
              brand: "Rose Studio",
              name: "Everyday Elegance Vase",
              price: "$65.00",
              rating: 5,
              reviewCount: "156",
              imageSrc: "https://img.b2bpic.net/free-photo/flat-lay-beautifully-bloomed-colorful-rose-flowers_23-2149005540.jpg",
              imageAlt: "Beautiful everyday flower arrangement"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "View All Collections", href: "/arrangements" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyOne
          title="Our Floral Expertise"
          description="Discover what makes Rose Studio the premier choice for floral design and delivery."
          tag="Why Choose Rose"
          imageSrc="https://img.b2bpic.net/free-photo/decoration-artificial-flower_1232-2043.jpg"
          imageAlt="Florist designing custom arrangement"
          mediaPosition="left"
          useInvertedBackground="noInvert"
          accordionItems={[
            {
              id: "1",
              title: "Custom Design Services",
              content: "Work directly with our master florists to create bespoke arrangements tailored to your vision, color preferences, and occasion."
            },
            {
              id: "2",
              title: "Premium Fresh Flowers",
              content: "We source only the finest fresh blooms from sustainable growers, ensuring your arrangements remain vibrant and beautiful."
            },
            {
              id: "3",
              title: "Same-Day Delivery",
              content: "Need flowers today? Our efficient delivery service ensures your arrangements arrive fresh and on time, anywhere in the city."
            },
            {
              id: "4",
              title: "Expert Care Guidance",
              content: "Each arrangement comes with professional care instructions to maximize the lifespan and beauty of your flowers."
            }
          ]}
          buttons={[
            { text: "Schedule Consultation", href: "/contact" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              imageSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",
              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",
              name: "Emily Chen",
              imageSrc: "https://img.b2bpic.net/free-photo/studio-portrait-successful-young-businesswoman_1262-5844.jpg",
              imageAlt: "Emily Chen"
            },
            {
              id: "3",
              name: "James Patel",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-business-woman-standing-outside-office-buildings-business-success-concept_58466-12274.jpg",
              imageAlt: "James Patel"
            },
            {
              id: "4",
              name: "Lisa Rodriguez",
              imageSrc: "https://img.b2bpic.net/free-photo/businesswoman-glasses-portrait_1262-1461.jpg",
              imageAlt: "Lisa Rodriguez"
            },
            {
              id: "5",
              name: "David Kim",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-cheerful-teenage-girl-sitting-cafe_1262-3048.jpg",
              imageAlt: "David Kim"
            },
            {
              id: "6",
              name: "Jessica Thompson",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-young-woman-typing-her-laptop_231208-13559.jpg",
              imageAlt: "Jessica Thompson"
            }
          ]}
          cardTitle="Trusted by over 2,500 satisfied customers who celebrate life's moments with Rose Studio"
          cardTag="See what our customers say"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to bring natural beauty into your space? Let's create something extraordinary together."
          animationType="entrance-slide"
          buttons={[
            { text: "Get in Touch", href: "/contact" },
            { text: "View Gallery", href: "/gallery" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Rose"
          columns={[
            {
              title: "Collections",
              items: [
                { label: "Wedding Flowers", href: "/arrangements" },
                { label: "Event Design", href: "/arrangements" },
                { label: "Everyday Arrangements", href: "/arrangements" },
                { label: "Seasonal Specials", href: "/arrangements" }
              ]
            },
            {
              title: "Services",
              items: [
                { label: "Custom Design", href: "/services" },
                { label: "Delivery", href: "/services" },
                { label: "Subscriptions", href: "/services" },
                { label: "Corporate Events", href: "/services" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/" },
                { label: "Gallery", href: "/gallery" },
                { label: "Blog", href: "/" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Pinterest", href: "https://pinterest.com" },
                { label: "TikTok", href: "https://tiktok.com" }
              ]
            }
          ]}
          copyrightText="© 2025 Rose Flowers Studio. Crafting beauty with passion."
        />
      </div>
    </ThemeProvider>
  );
}