"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureProcessSteps from '@/components/sections/feature/FeatureProcessSteps';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Clock, Globe, Award, Star, CheckCircle } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="small"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="TIMEPIECES"
          navItems={[
            { name: "Collection", id: "products" },
            { name: "About", id: "about" },
            { name: "Process", id: "process" },
            { name: "Contact", id: "contact" },
            { name: "Madrid", id: "hero" }
          ]}
          button={{
            text: "Inquire Now",            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="TIMEPIECES"
          description="Discover exceptional luxury watches curated for the discerning collector. Handpicked timepieces from the world's finest watchmakers, now in Madrid."
          buttons={[
            { text: "Explore Collection", href: "products" },
            { text: "Learn More", href: "about" }
          ]}
          slides={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/businessman-looking-his-watch-closeup_53876-176905.jpg",              imageAlt: "Luxury watch collection hero"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-seller-s-hand-gloves-shows-exclusive-men-s-watch-from-new-collection-luxury-jewelry-store_613910-20420.jpg",              imageAlt: "Premium timepiece showcase"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-shot-man-wearing-suit-more-precisely-his-hands-ring-wristwatch_181624-23031.jpg",              imageAlt: "Elegant watch display"
            }
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
          logoLineHeight={1.05}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Featured Timepieces"
          description="A carefully curated selection of premium watches from renowned international manufacturers, each piece representing the pinnacle of horological excellence."
          products={[
            {
              id: "1",              name: "Classic Elegance",              price: "€8,500",              imageSrc: "https://img.b2bpic.net/free-photo/businessman-looking-his-watch-closeup_53876-176905.jpg",              imageAlt: "Classic dress watch"
            },
            {
              id: "2",              name: "Sport Precision",              price: "€12,200",              imageSrc: "https://img.b2bpic.net/free-photo/fashion-portrait-young-businessman-handsome-model-man-casual-cloth-suit-with-accessories-hands_158538-9455.jpg",              imageAlt: "Premium sport watch"
            },
            {
              id: "3",              name: "Vintage Heritage",              price: "€9,800",              imageSrc: "https://img.b2bpic.net/free-photo/elegance-gold-luxury-watch-success-generated-by-ai_188544-14010.jpg",              imageAlt: "Vintage luxury timepiece"
            },
            {
              id: "4",              name: "Modern Vision",              price: "€10,500",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-sleeve-man-s-suit-hands-with-stylish-watch_8353-10511.jpg",              imageAlt: "Contemporary luxury watch"
            }
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Curating Excellence Since Day One. Premium watches deserve premium care, expertise, and appreciation."
          metrics={[
            {
              icon: Clock,
              label: "Years of Expertise",              value: "15+"
            },
            {
              icon: Globe,
              label: "International Brands",              value: "25+"
            },
            {
              icon: Award,
              label: "Satisfied Collectors",              value: "500+"
            },
            {
              icon: Star,
              label: "Average Rating",              value: "4.9/5"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="process" data-section="process">
        <FeatureProcessSteps
          title="How We Work"
          description="Our meticulous process ensures every timepiece meets our rigorous standards for authenticity, condition, and value before reaching your collection."
          tag="Our Process"
          tagIcon={CheckCircle}
          steps={[
            {
              number: "01",              title: "Authentication",              tag: "Expert Review",              description: "Each watch undergoes comprehensive authentication by certified specialists, verifying provenance, serial numbers, and original components."
            },
            {
              number: "02",              title: "Service & Restoration",              tag: "Technical Care",              description: "Professional watchmakers perform complete servicing, cleaning, and any necessary restoration to ensure perfect mechanical performance."
            },
            {
              number: "03",              title: "Documentation",              tag: "Certification",              description: "Complete documentation is prepared including authenticity certificates, service records, and detailed condition reports for your records."
            },
            {
              number: "04",              title: "Personal Consultation",              tag: "Expert Guidance",              description: "Direct consultation with our specialists to find the perfect timepiece that matches your collecting goals and preferences."
            }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Ready to Begin Your Collection?"
          description="Contact our specialists in Madrid to schedule a private viewing, inquire about specific timepieces, or discuss your collecting interests."
          inputs={[
            {
              name: "fullName",              type: "text",              placeholder: "Full Name",              required: true
            },
            {
              name: "email",              type: "email",              placeholder: "Email Address",              required: true
            },
            {
              name: "phone",              type: "tel",              placeholder: "Phone Number",              required: false
            }
          ]}
          textarea={{
            name: "inquiry",            placeholder: "Tell us about your watch collecting interests or inquire about specific timepieces...",            rows: 5,
            required: true
          }}
          buttonText="Send Inquiry"
          imageSrc="https://img.b2bpic.net/free-photo/abstract-blur-defocused-shopping-mall-deparment-store-interior_1203-9604.jpg"
          imageAlt="Madrid luxury watch boutique"
          mediaPosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="TIMEPIECES"
          copyrightText="© 2025 Timepieces Madrid | Luxury Watch Collection"
          columns={[
            {
              title: "Collection",              items: [
                { label: "Featured Watches", href: "products" },
                { label: "New Arrivals", href: "products" },
                { label: "Our Process", href: "process" }
              ]
            },
            {
              title: "About",              items: [
                { label: "Our Story", href: "about" },
                { label: "Authentication", href: "process" },
                { label: "Contact Us", href: "contact" }
              ]
            },
            {
              title: "Location",              items: [
                { label: "Madrid, Spain", href: "#" },
                { label: "By Appointment", href: "contact" },
                { label: "Secure Shipping", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}