"use client";

import Link from 'next/link';
import { Palette, Star, User, Mail } from 'lucide-react';
import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TextAbout from '@/components/sections/about/TextAbout';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterSimple from '@/components/sections/footer/FooterSimple';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="compact"
      sizing="largeSmallSizeLargeTitles"
      background="circleGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          navItems={[
            { name: "Home", id: "/" },
            { name: "Portfolio", id: "/portfolio" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="Artistry"
          button={{
            text: "View Collections",
            href: "/portfolio"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Discover Artistic Vision"
          description="Explore a curated collection of contemporary artworks blending tradition with innovation. Each piece tells a unique story of creative exploration and artistic passion."
          tag="Portfolio 2025"
          tagIcon={Palette}
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-photo/male-artist-showing-his-painting-female-client-interested-buying-some-artwork-from-exihibiton-art-gallery_662251-355.jpg"
          imageAlt="art gallery artwork creative portfolio"
          buttons={[
            { text: "Explore Gallery", href: "/portfolio" },
            { text: "Learn My Story", href: "/about" }
          ]}
        />
      </div>

      <div id="featured-works" data-section="featured-works">
        <ProductCardFour
          title="Featured Artworks"
          description="A selection of my most acclaimed pieces showcasing diverse styles and mediums"
          tag="Highlighted"
          tagIcon={Star}
          products={[
            {
              id: "1",
              name: "Ethereal Landscapes",
              price: "Canvas",
              variant: "Oil on Canvas 48x36",
              imageSrc: "https://img.b2bpic.net/free-vector/mixed-color-pastel-watercolor-background_1409-2808.jpg",
              imageAlt: "oil painting contemporary art canvas artistic"
            },
            {
              id: "2",
              name: "Abstract Dreams",
              price: "Mixed",
              variant: "Mixed Media 36x36",
              imageSrc: "https://img.b2bpic.net/free-photo/paint-texture-background-wallpaper-abstract-art-acrylic-paint_53876-134367.jpg",
              imageAlt: "abstract art modern painting colorful creative work"
            },
            {
              id: "3",
              name: "Nature's Palette",
              price: "Watercolor",
              variant: "Watercolor 24x32",
              imageSrc: "https://img.b2bpic.net/free-photo/abstract-wallpaper-background-mixed-color-acrylic-paint-textured_53876-134374.jpg",
              imageAlt: "landscape painting nature art watercolor artistic"
            }
          ]}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="about-artist" data-section="about-artist">
        <TextAbout
          tag="About the Artist"
          tagIcon={User}
          title="Creating art that inspires, moves, and transforms the way we perceive the world around us"
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "View Full Bio", href: "/about" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="The artwork speaks volumes about the artist's dedication and vision. Each piece is a masterclass in composition and emotional depth. I'm honored to own these works."
          rating={5}
          author="Elena Martinez, Art Collector"
          avatars={[
            {
              src: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Elena Martinez"
            },
            {
              src: "https://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg",
              alt: "Michael Chen"
            },
            {
              src: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg",
              alt: "Sarah Williams"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",
              alt: "James Anderson"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact-cta" data-section="contact-cta">
        <ContactCTA
          tag="Get Connected"
          tagIcon={Mail}
          title="Ready to Bring Art Into Your Space?"
          description="Whether you're interested in commissioning a piece, purchasing original artwork, or collaborating on a project, I'd love to hear from you. Let's create something beautiful together."
          buttons={[
            { text: "Contact Me", href: "/contact" },
            { text: "Commission Work", href: "/contact" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground="invertDefault"
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Navigate",
            items: [
              { label: "Home", href: "/" },
              { label: "Portfolio", href: "/portfolio" },
              { label: "About", href: "/about" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Instagram", href: "https://instagram.com" },
              { label: "Twitter", href: "https://twitter.com" },
              { label: "LinkedIn", href: "https://linkedin.com" },
              { label: "Email", href: "mailto:contact@artistry.com" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "/privacy" },
              { label: "Terms of Service", href: "/terms" },
              { label: "Copyright Info", href: "/copyright" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Artistry. All artwork rights reserved."
        bottomRightText="Crafted with creative passion"
      />
    </ThemeProvider>
  );
}