"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroLogoCarousel from '@/components/sections/hero/HeroLogoCarousel';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import ProductCardFive from '@/components/sections/product/ProductCardFive';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactInline from '@/components/sections/contact/ContactInline';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Sparkles } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="small"
      sizing="mediumSizeExtraSmallSpacing"
      background="animatedAurora"
      cardStyle="elevated-accent"
      primaryButtonStyle="layered-depth"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "home" },
            { name: "Vehicles", id: "vehicles" },
            { name: "About", id: "about" },
            { name: "Financing", id: "pricing" },
            { name: "Contact", id: "contact" }
          ]}
          logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151875825-ctbvsamm.jpg"
          logoAlt="Auto Dealer Logo"
          brandName="AutoHub"
          bottomLeftText="Premium Vehicle Selection"
          bottomRightText="sales@autohub.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoCarousel
          logoText="AutoHub"
          description="Premium vehicles handpicked for discerning drivers. Find your perfect car from our curated collection."
          mediaItems={[
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146477653-77nt4hip.jpg",
              imageAlt: "Luxury sports car"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146481032-ajtv6s20.jpg",
              imageAlt: "Modern sedan"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151877861-xgwavgqt.jpg",
              imageAlt: "Premium SUV"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151879188-atj7orvd.jpg",
              imageAlt: "Electric vehicle"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151880823-cpxlkghe.png",
              imageAlt: "Luxury crossover"
            },
            {
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151884325-wxkikttq.jpg",
              imageAlt: "Sports coupe"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Why Choose AutoHub"
          description="Experience premium automotive excellence"
          tabs={[
            {
              id: "expertise",
              label: "Expertise",
              description: "Over 15 years of experience in premium vehicle sales. Our team knows every detail of quality automobiles."
            },
            {
              id: "selection",
              label: "Selection",
              description: "Hand-picked inventory from trusted sources. Every vehicle meets our rigorous quality standards."
            },
            {
              id: "service",
              label: "Service",
              description: "Dedicated support before and after purchase. We ensure complete customer satisfaction on your journey."
            }
          ]}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151887141-qpe0mi82.jpg"
          imageAlt="Professional dealership showroom"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="vehicles" data-section="vehicles">
        <ProductCardFive
          title="Available Vehicles"
          description="Browse our premium selection of carefully curated automobiles"
          products={[
            {
              id: "1",
              button: { text: "View Details" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146481032-ajtv6s20.jpg",
              imageAlt: "2024 Luxury Sedan"
            },
            {
              id: "2",
              button: { text: "View Details" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151877861-xgwavgqt.jpg",
              imageAlt: "2024 Premium SUV"
            },
            {
              id: "3",
              button: { text: "View Details" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151879188-atj7orvd.jpg",
              imageAlt: "2024 Electric Vehicle"
            },
            {
              id: "4",
              button: { text: "View Details" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151880823-cpxlkghe.png",
              imageAlt: "2024 Luxury Crossover"
            },
            {
              id: "5",
              button: { text: "View Details" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151884325-wxkikttq.jpg",
              imageAlt: "2024 Sports Coupe"
            },
            {
              id: "6",
              button: { text: "View Details" },
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151885468-zts7dhej.jpg",
              imageAlt: "2024 Estate Wagon"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          containerStyle="default"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne
          title="Financing Options"
          description="Flexible payment plans tailored to your budget"
          plans={[
            {
              id: "basic",
              badge: "Popular",
              badgeIcon: Sparkles,
              price: "Starting $15,999",
              subtitle: "Entry-level vehicles",
              features: [
                "Low mileage inventory",
                "Standard warranty",
                "Free maintenance year 1",
                "Roadside assistance"
              ]
            },
            {
              id: "pro",
              badge: "Best Value",
              badgeIcon: Sparkles,
              price: "Starting $35,999",
              subtitle: "Premium selections",
              features: [
                "Extended warranty",
                "Premium details included",
                "Free maintenance 2 years",
                "Priority support",
                "Trade-in assistance"
              ]
            },
            {
              id: "enterprise",
              badge: "Luxury",
              badgeIcon: Sparkles,
              price: "Starting $65,999",
              subtitle: "Exclusive collection",
              features: [
                "Comprehensive warranty",
                "Concierge service",
                "Free maintenance 3 years",
                "Premium customization",
                "VIP treatment"
              ]
            }
          ]}
          animationType="slide-up"
          containerStyle="default"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Real reviews from satisfied buyers who found their perfect vehicle"
          testimonials={[
            {
              id: "1",
              name: "David Martinez",
              handle: "@davidm_cars",
              testimonial: "Found my dream car at AutoHub. The team was professional and made the entire process seamless. Highly recommend!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151888393-0qnpkt2e.jpg"
            },
            {
              id: "2",
              name: "Sarah Thompson",
              handle: "@sarah_wheels",
              testimonial: "Exceptional service and fantastic selection. They really understand customer needs. Will definitely return.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146074825-w2o47rzf.jpg"
            },
            {
              id: "3",
              name: "Michael Chen",
              handle: "@mchen_auto",
              testimonial: "Best dealership experience I've had. Great prices and honest advice. Five stars all the way!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766151889444-jxby50te.jpg"
            },
            {
              id: "4",
              name: "Emily Rodriguez",
              handle: "@emily_drives",
              testimonial: "Amazing inventory and staff. They helped me find the perfect vehicle within my budget. Very satisfied!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146077304-mehv1c5l.jpg"
            },
            {
              id: "5",
              name: "James Wilson",
              handle: "@james_autos",
              testimonial: "Transparent pricing, excellent customer service. This is how a dealership should operate. Outstanding experience!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146075940-orm5kjp9.jpg"
            },
            {
              id: "6",
              name: "Lisa Park",
              handle: "@lisakpark",
              testimonial: "Professional team, quality vehicles, fair pricing. Couldn't ask for better. Highly recommended to all friends!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146500582-fa5sq319.jpg"
            }
          ]}
          showRating={true}
          animationType="slide-up"
          containerStyle="default"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactInline
          text="Ready to find your perfect vehicle?"
          inputPlaceholder="Enter your email address"
          buttonText="Get Started"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766146477653-77nt4hip.jpg"
          imageAlt="Premium automotive collection"
          logoText="AutoHub"
          copyrightText="© 2025 AutoHub. All rights reserved."
          columns={[
            {
              title: "Browse",
              items: [
                { label: "All Vehicles", href: "vehicles" },
                { label: "New Arrivals", href: "vehicles" },
                { label: "Special Offers", href: "pricing" },
                { label: "Financing", href: "pricing" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "about" },
                { label: "Our Team", href: "about" },
                { label: "Blog", href: "blog" },
                { label: "Careers", href: "careers" }
              ]
            },
            {
              title: "Support",
              items: [
                { label: "Contact Us", href: "contact" },
                { label: "FAQ", href: "faq" },
                { label: "Warranty Info", href: "warranty" },
                { label: "Privacy Policy", href: "privacy" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}