"use client";

import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitAvatars from '@/components/sections/hero/HeroSplitAvatars';
import TagAbout from '@/components/sections/about/TagAbout';
import FeatureCardTwenty from '@/components/sections/feature/FeatureCardTwenty';
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardNine from '@/components/sections/testimonial/TestimonialCardNine';
import ContactInline from '@/components/sections/contact/ContactInline';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Crown, Droplets, Gauge, Sparkles, Star, TrendingUp, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="mediumSizeLargeTitles"
      background="circleGradient"
      cardStyle="neon-glow"
      primaryButtonStyle="outline"
      secondaryButtonStyle="outline"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="AUDI"
          navItems={[
            { name: "Models", id: "product" },
            { name: "Features", id: "feature" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Test Drive",
            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitAvatars
          title="Introducing AUDI A10"
          description="Experience the future of automotive excellence. The all-new A10 redefines performance, luxury, and innovation for the modern driver."
          tag="Premium Innovation"
          tagIcon={Zap}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507382209-vmocpnfc.jpg"
          imageAlt="AUDI A10 luxury sedan"
          imagePosition="right"
          avatars={[
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766504480835-8xmeyz3k.jpg", alt: "Customer 1" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766414402772-ruzjnlgd.jpg", alt: "Customer 2" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507389329-xpn9l1hz.jpg", alt: "Customer 3" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507390312-7uh03hb3.jpg", alt: "Customer 4" },
            { src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766414401529-6db20epg.jpg", alt: "Customer 5" }
          ]}
          avatarText="Join thousands of satisfied A10 drivers"
          buttons={[
            { text: "Explore Now", href: "product" },
            { text: "Learn More", href: "feature" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TagAbout
          tag="Why A10"
          description="The AUDI A10 represents decades of engineering excellence combined with cutting-edge technology. Crafted for those who demand the finest in performance, comfort, and design. Every detail has been meticulously refined to deliver an unparalleled driving experience that transcends expectations."
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="feature" data-section="feature">
        <FeatureCardTwenty
          title="Premium Features"
          description="Engineered to perfection. The A10 combines advanced technology with timeless elegance, delivering innovation at every turn."
          tag="Innovation"
          tagIcon={Sparkles}
          images={[
            { id: 1, imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507383197-f10wtv51.jpg", imageAlt: "AUDI A10 side profile" },
            { id: 2, imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507384431-4qc5pz5y.jpg", imageAlt: "AUDI A10 luxury interior" },
            { id: 3, imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507385348-h08ys5lv.jpg", imageAlt: "AUDI A10 headlight design" },
            { id: 4, imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507386084-fimpt5k0.jpg", imageAlt: "AUDI A10 wheel design" }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          buttons={[{ text: "View Specifications" }]}
        />
      </div>

      <div id="product" data-section="product">
        <ProductCardSeven
          title="A10 Models"
          description="Choose your perfect A10. Available in multiple trim levels to match your lifestyle and preferences."
          tag="Premium Selection"
          tagIcon={Crown}
          products={[
            {
              id: "1",
              name: "A10 Standard",
              price: "From $55,000",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507383197-f10wtv51.jpg",
              imageAlt: "AUDI A10 Standard"
            },
            {
              id: "2",
              name: "A10 Sport",
              price: "From $65,000",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507384431-4qc5pz5y.jpg",
              imageAlt: "AUDI A10 Sport"
            },
            {
              id: "3",
              name: "A10 Premium",
              price: "From $75,000",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507385348-h08ys5lv.jpg",
              imageAlt: "AUDI A10 Premium"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metric" data-section="metric">
        <MetricCardOne
          title="A10 Performance Metrics"
          description="Industry-leading specifications that set new standards"
          tag="Performance"
          tagIcon={Zap}
          metrics={[
            {
              id: "1",
              value: "382",
              title: "HP",
              description: "Peak horsepower output",
              icon: Zap
            },
            {
              id: "2",
              value: "3.8",
              title: "seconds",
              description: "0-60 acceleration",
              icon: Gauge
            },
            {
              id: "3",
              value: "186",
              title: "mph",
              description: "Top speed",
              icon: TrendingUp
            },
            {
              id: "4",
              value: "32",
              title: "mpg",
              description: "Combined fuel economy",
              icon: Droplets
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonial" data-section="testimonial">
        <TestimonialCardNine
          title="Trusted by Drivers Worldwide"
          description="Hear what AUDI A10 owners have to say about their driving experience"
          tag="Customer Testimonials"
          tagIcon={Star}
          testimonials={[
            {
              id: "1",
              quote: "The A10 transformed my daily commute into pure enjoyment. The engineering is flawless and the comfort is unmatched.",
              name: "Michael Johnson",
              role: "Executive",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766504480835-8xmeyz3k.jpg",
              imageAlt: "Michael Johnson"
            },
            {
              id: "2",
              quote: "Absolute perfection in every detail. The A10 is worth every penny and more. I recommend it without hesitation.",
              name: "Sarah Anderson",
              role: "Business Owner",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766414402772-ruzjnlgd.jpg",
              imageAlt: "Sarah Anderson"
            },
            {
              id: "3",
              quote: "The performance and luxury combined make the A10 the best car I have ever owned. Simply exceptional.",
              name: "James Wilson",
              role: "Automotive Enthusiast",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507389329-xpn9l1hz.jpg",
              imageAlt: "James Wilson"
            },
            {
              id: "4",
              quote: "A10 owners are part of an exclusive club. The quality and innovation speak for themselves every time I drive.",
              name: "Emma Davis",
              role: "Professional Driver",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507390312-7uh03hb3.jpg",
              imageAlt: "Emma Davis"
            },
            {
              id: "5",
              quote: "Choosing the A10 was the best decision. It delivered beyond expectations in performance and reliability.",
              name: "Robert Martinez",
              role: "Tech Executive",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766414401529-6db20epg.jpg",
              imageAlt: "Robert Martinez"
            },
            {
              id: "6",
              quote: "The A10 is a masterpiece. Every drive feels like a celebration of German engineering excellence.",
              name: "Lisa Thompson",
              role: "Creative Director",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507391527-mvixgtbc.jpg",
              imageAlt: "Lisa Thompson"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactInline
          text="Ready to experience the A10?"
          inputPlaceholder="Enter your email"
          buttonText="Get Updates"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="productCardTwo" data-section="productCardTwo">
        <ProductCardTwo
          title="A10 Featured Selection"
          description="Explore our most popular A10 variants with customer reviews and ratings."
          tag="Customer Favorites"
          tagIcon={Star}
          products={[
            {
              id: "1",
              brand: "AUDI",
              name: "A10 Standard",
              price: "$55,000",
              rating: 5,
              reviewCount: "2.3k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507383197-f10wtv51.jpg",
              imageAlt: "AUDI A10 Standard",
              onProductClick: () => console.log("A10 Standard clicked")
            },
            {
              id: "2",
              brand: "AUDI",
              name: "A10 Sport",
              price: "$65,000",
              rating: 5,
              reviewCount: "1.8k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507384431-4qc5pz5y.jpg",
              imageAlt: "AUDI A10 Sport",
              onProductClick: () => console.log("A10 Sport clicked")
            },
            {
              id: "3",
              brand: "AUDI",
              name: "A10 Premium",
              price: "$75,000",
              rating: 5,
              reviewCount: "1.5k",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766507385348-h08ys5lv.jpg",
              imageAlt: "AUDI A10 Premium",
              onProductClick: () => console.log("A10 Premium clicked")
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="AUDI"
          columns={[
            {
              title: "Models",
              items: [
                { label: "A10 Standard", href: "#" },
                { label: "A10 Sport", href: "#" },
                { label: "A10 Premium", href: "#" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "#" },
                { label: "News", href: "#" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Support",
              items: [
                { label: "Contact Us", href: "#" },
                { label: "Service Centers", href: "#" },
                { label: "Owner Portal", href: "#" }
              ]
            },
            {
              title: "Legal",
              items: [
                { label: "Terms of Service", href: "#" },
                { label: "Warranty", href: "#" },
                { label: "Recalls", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 AUDI. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}