"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Hammer, Sparkles } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Brand A", id: "/brand-a" },
    { name: "Brand B", id: "/brand-b" },
    { name: "Brand C", id: "/brand-c" },
    { name: "About Us", id: "/about" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="largeSmall"
      background="aurora"
      cardStyle="gradient-radial"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Italian Luxury Brands"
          navItems={navItems.map(item => ({
            name: item.name,
            id: item.id,
            href: item.id // Ensure href is passed for Link component
          }))}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Experience Unrivaled Italian Luxury"
          description="Discover a curated collection of Italy's most prestigious brands, where heritage meets innovation and elegance is redefined."
          background={{"variant":"downward-rays-animated-grid"}}
          buttons={[
            {"text":"Explore Brands","href":"/brand-a"},
            {"text":"Our Heritage","href":"/about"}
          ]}
          mediaAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/abstract-gold-chain-jewellery-presentation_23-2149599084.jpg"
          imageAlt="luxurious italian villa interior"
          useInvertedBackground={false}
          imagePosition="right"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBento
          title="The Pillars of Italian Excellence"
          description="Our brands embody a commitment to meticulous craftsmanship, timeless design, and unparalleled quality, passed down through generations."
          features={[
            {"title":"Artisanal Craftsmanship","description":"Each piece is a testament to generations of skill, crafted by hand with precision and passion.","bentoComponent":"reveal-icon","icon":Hammer},
            {"title":"Iconic Design","description":"Timeless aesthetics that transcend trends, creating pieces of enduring beauty and desirability.","bentoComponent":"reveal-icon","icon":Sparkles},
            {"title":"Uncompromised Quality","description":"Sourcing the finest materials and employing rigorous standards ensures every creation is impeccable.","bentoComponent":"media-stack","items":[
              {"imageSrc":"http://img.b2bpic.net/free-photo/medium-shot-jeweler-making-jewellery_23-2150931446.jpg","imageAlt":"italian artisan handcrafting leather"},
              {"imageSrc":"http://img.b2bpic.net/free-photo/indoor-design-luxury-resort_23-2150497252.jpg","imageAlt":"interior of luxury yacht"},
              {"imageSrc":"http://img.b2bpic.net/free-photo/side-view-senior-man-standing-near-showcase-with-jewerly_651396-1483.jpg","imageAlt":"fashion runway show haute couture"}
            ]}
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Signature Collections"
          description="A glimpse into the diverse world of Italian luxury, from exquisite fashion to high-performance automotive."
          products={[
            {"id":"1","name":"The Milano Handbag","price":"€5,200","imageSrc":"http://img.b2bpic.net/free-photo/woman-making-her-baggage-vacation_23-2149064214.jpg","imageAlt":"elegant leather handbag studio shot"},
            {"id":"2","name":"Verona Chronograph","price":"€18,500","imageSrc":"http://img.b2bpic.net/free-photo/portrait-handsome-fashion-stylish-hipster-businessman-model-dressed-elegant-brown-suit-sunglasses_158538-11335.jpg","imageAlt":"men's luxury watch close-up"},
            {"id":"3","name":"Capri Silk Scarf","price":"€750","imageSrc":"http://img.b2bpic.net/free-photo/top-view-wrapped-present-citrus-slice_23-2148370118.jpg","imageAlt":"italian silk scarf colorful pattern"},
            {"id":"4","name":"Sartorial Suit","price":"€7,800","imageSrc":"http://img.b2bpic.net/free-photo/front-view-stylish-man-wearing-nice-hat_23-2148634045.jpg","imageAlt":"bespoke italian suit mannequin"},
            {"id":"5","name":"Eternal Diamond Ring","price":"€25,000","imageSrc":"http://img.b2bpic.net/free-photo/beautiful-engagement-ring-with-diamonds_23-2149509254.jpg","imageAlt":"diamond engagement ring velvet box"},
            {"id":"6","name":"Heritage Roadster","price":"€1,200,000","imageSrc":"http://img.b2bpic.net/free-photo/couple-holding-their-skateboards_23-2148774592.jpg","imageAlt":"vintage italian sports car sunset"}
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Voices of Distinction"
          description="Our clients share their experiences with Italian luxury, a testament to our dedication and passion."
          testimonials={[
            {"id":"1","name":"Isabella Rossi","handle":"@isabella.r","testimonial":"The elegance and quality are simply unmatched. Every piece feels like a work of art.","imageSrc":"http://img.b2bpic.net/free-photo/curly-woman-eyeglasses-black-jacket-writting-outdoors-beautiful-woman-with-red-lipstick-brunette-hair-sitting-stairs_197531-19326.jpg","imageAlt":"elegant woman smiling confident"},
            {"id":"2","name":"Giovanni Bianchi","handle":"@giovanni.b","testimonial":"Investing in these brands is investing in a legacy of excellence. Truly magnificent.","imageSrc":"http://img.b2bpic.net/free-photo/handsome-man-gray-checkered-suit_158538-4231.jpg","imageAlt":"stylish man business attire confident"},
            {"id":"3","name":"Francesca Conti","handle":"@francesca.c","testimonial":"From the moment you acquire a piece, the experience is pure luxury. Flawless attention to detail.","imageSrc":"http://img.b2bpic.net/free-photo/cheerful-woman-brown-top-denim-shorts-smiles-street-cafe_197531-18169.jpg","imageAlt":"fashionable woman posing city"},
            {"id":"4","name":"Marco Ricci","handle":"@marco.r","testimonial":"The craftsmanship is breathtaking. A true connoisseur appreciates this level of dedication.","imageSrc":"http://img.b2bpic.net/free-photo/smiley-business-man-outdoor_23-2148479594.jpg","imageAlt":"executive man looking thoughtful"},
            {"id":"5","name":"Sofia Gallo","handle":"@sofia.g","testimonial":"Every interaction reflects the prestige of the brand. An exceptional journey from start to finish.","imageSrc":"http://img.b2bpic.net/free-photo/man-woman-hug-smile-sitting-old-bus_1304-5367.jpg","imageAlt":"couple enjoying luxury experience"},
            {"id":"6","name":"Alessio Moretti","handle":"@alessio.m","testimonial":"Owning a piece from these collections is not just luxury; it's an heirloom in the making.","imageSrc":"http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-typing_23-2148765395.jpg","imageAlt":"senior woman elegant pose"}
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne
          title="Prestigious Partnerships"
          description="Collaborating with the world's leading luxury entities, our brands set the benchmark for global excellence."
          names={["Leading Hotels","Fine Dining Group","Private Wealth","Elite Travel","Haute Horlogerie","Concierge Services","Art Foundations"]}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Italian Luxury Brands"
          logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=99p3ul"
          logoAlt="italian luxury brand elegant logo"
        />
      </div>
    </ThemeProvider>
  );
}
