"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureProcessSteps from '@/components/sections/feature/FeatureProcessSteps';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="mediumSmall"
      sizing="mediumSizeLargeTitles"
      background="none"
      cardStyle="inset"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Classic Motors"
          button={{
            text: "Schedule Viewing",            href: "#contact"
          }}
          className="bg-background"
          buttonClassName="px-6 py-2"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="CLASSIC MOTORS"
          description="Discover the finest collection of 1990s luxury vehicles. From iconic Mustangs to rare Supras, experience automotive excellence and timeless design."
          buttons={[
            {
              text: "Explore Collection",              href: "#vehicles"
            },
            {
              text: "Schedule Viewing",              href: "#contact"
            }
          ]}
          layoutOrder="default"
          imageSrc="https://img.b2bpic.net/free-photo/sedan-parked-deserted-area-cloudy-sky_181624-24377.jpg"
          imageAlt="Stunning 1990s Mustang in showroom"
          frameStyle="browser"
          logoLineHeight={1.1}
          containerClassName="w-full"
          logoClassName="text-6xl md:text-8xl font-fraunces font-normal"
        />
      </div>

      <div id="featured-vehicles" data-section="featured-vehicles">
        <ProductCardTwo
          title="Featured Collection"
          description="Premium 1990s vehicles handpicked from around the world. Each car represents a perfect blend of performance, luxury, and timeless design."
          tag="Featured"
          products={[
            {
              id: "1",              brand: "Ford",              name: "1993 Mustang Cobra",              price: "$45,000",              rating: 5,
              reviewCount: "12 collectors",              imageSrc: "https://img.b2bpic.net/free-photo/sedan-parked-deserted-area-cloudy-sky_181624-24377.jpg",              imageAlt: "1993 Ford Mustang Cobra"
            },
            {
              id: "2",              brand: "BMW",              name: "1995 M3 Coupe",              price: "$52,000",              rating: 5,
              reviewCount: "18 collectors",              imageSrc: "https://img.b2bpic.net/free-photo/view-car-running-high-speed_23-2150635403.jpg",              imageAlt: "1995 BMW M3 Coupe"
            },
            {
              id: "3",              brand: "Dodge",              name: "1994 Viper RT/10",              price: "$68,000",              rating: 5,
              reviewCount: "8 collectors",              imageSrc: "https://img.b2bpic.net/free-photo/old-red-american-car-stands-street-evening_1304-3192.jpg",              imageAlt: "1994 Dodge Viper RT/10"
            },
            {
              id: "4",              brand: "Toyota",              name: "1997 Supra RZ",              price: "$55,000",              rating: 5,
              reviewCount: "25 collectors",              imageSrc: "https://img.b2bpic.net/free-psd/classic-red-sports-coupe_530521-1817.jpg",              imageAlt: "1997 Toyota Supra RZ"
            }
          ]}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          containerClassName="w-full"
        />
      </div>

      <div id="about-showroom" data-section="about-showroom">
        <MediaAbout
          title="About Classic Motors"
          description="For over two decades, we've been dedicated to preserving and celebrating automotive history. Our showroom houses an exclusive collection of the most sought-after 1990s vehicles, each meticulously maintained and inspected by our expert technicians."
          tag="Legacy"
          buttons={[
            {
              text: "Learn More",              href: "#features"
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/car-headlight-couple-making-deal-with-car-dealer_651396-1187.jpg"
          imageAlt="Classic Motors luxury showroom interior"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="why-choose-us" data-section="why-choose-us">
        <FeatureProcessSteps
          title="Why Choose Classic Motors"
          description="We deliver an unparalleled experience in classic car ownership through expertise, authenticity, and comprehensive support."
          tag="Excellence"
          steps={[
            {
              number: "01",              title: "Expert Authentication",              description: "Every vehicle undergoes rigorous verification to ensure authenticity, original condition, and historical accuracy.",              tag: "Verified"
            },
            {
              number: "02",              title: "Professional Maintenance",              description: "Our certified technicians maintain each car to factory specifications using period-correct parts and techniques.",              tag: "Certified"
            },
            {
              number: "03",              title: "Lifetime Support",              description: "We provide ongoing assistance with parts sourcing, maintenance guidance, and technical advice for all our clients.",              tag: "Lifetime"
            }
          ]}
          useInvertedBackground="noInvert"
          buttons={[
            {
              text: "View Inventory",              href: "#vehicles"
            }
          ]}
          containerClassName="w-full"
        />
      </div>

      <div id="all-vehicles" data-section="all-vehicles">
        <ProductCardTwo
          title="Complete Vehicle Inventory"
          description="Browse our full collection of premium 1990s classic vehicles. Each vehicle comes with detailed service history and documentation."
          products={[
            {
              id: "5",              brand: "Ford",              name: "1996 Mustang GT",              price: "$38,000",              rating: 5,
              reviewCount: "9 collectors",              imageSrc: "https://img.b2bpic.net/free-photo/sunset-cruise_23-2151948136.jpg",              imageAlt: "1996 Ford Mustang GT"
            },
            {
              id: "6",              brand: "BMW",              name: "1998 Z3 Roadster",              price: "$32,000",              rating: 5,
              reviewCount: "14 collectors",              imageSrc: "https://img.b2bpic.net/free-photo/classic-convertible-car-with-monument-cuban-flag-background_23-2148226498.jpg",              imageAlt: "1998 BMW Z3 Roadster"
            },
            {
              id: "7",              brand: "Dodge",              name: "1992 Stealth R/T",              price: "$28,000",              rating: 5,
              reviewCount: "7 collectors",              imageSrc: "https://img.b2bpic.net/free-photo/view-car-running-high-speed_23-2150635423.jpg",              imageAlt: "1992 Dodge Stealth R/T"
            },
            {
              id: "8",              brand: "Toyota",              name: "1994 Supra",              price: "$48,000",              rating: 5,
              reviewCount: "22 collectors",              imageSrc: "https://img.b2bpic.net/free-photo/view-car-running-high-speed_23-2150635390.jpg",              imageAlt: "1994 Toyota Supra"
            }
          ]}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          containerClassName="w-full"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Customer Stories"
          description="Hear from our satisfied collectors and enthusiasts who have found their dream vehicles with Classic Motors."
          tag="Testimonials"
          testimonials={[
            {
              id: "1",              name: "Michael Johnson",              role: "Collector",              company: "New York",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "Michael Johnson"
            },
            {
              id: "2",              name: "Sarah Chen",              role: "Enthusiast",              company: "California",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1633.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "3",              name: "David Martinez",              role: "Collector",              company: "Texas",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-businessman-sitting-sofa-waiting-area_107420-95816.jpg",              imageAlt: "David Martinez"
            },
            {
              id: "4",              name: "Emma Wilson",              role: "Enthusiast",              company: "Florida",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/crazy-businessman-worried-expression_1194-3826.jpg",              imageAlt: "Emma Wilson"
            },
            {
              id: "5",              name: "James Park",              role: "Collector",              company: "Illinois",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-mature-businessman-showing-thumb-up_1262-3024.jpg",              imageAlt: "James Park"
            },
            {
              id: "6",              name: "Victoria Rodriguez",              role: "Enthusiast",              company: "Arizona",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-businessman-standing-airport-terminal_107420-85070.jpg",              imageAlt: "Victoria Rodriguez"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          containerClassName="w-full"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to find your dream classic car? Contact our team today to schedule a personal viewing or inquire about our latest acquisitions."
          animationType="entrance-slide"
          buttons={[
            {
              text: "Schedule Viewing",              href: "mailto:info@classicmotors.com"
            },
            {
              text: "Call Us",              href: "tel:+1-800-CLASSIC"
            }
          ]}
          useInvertedBackground="noInvert"
          containerClassName="w-full"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Classic Motors"
          columns={[
            {
              title: "Company",              items: [
                {
                  label: "About Us",                  href: "#about"
                },
                {
                  label: "Our Collection",                  href: "#vehicles"
                },
                {
                  label: "Services",                  href: "#features"
                }
              ]
            },
            {
              title: "Support",              items: [
                {
                  label: "Contact",                  href: "#contact"
                },
                {
                  label: "FAQs",                  href: "#faq"
                },
                {
                  label: "Testimonials",                  href: "#testimonials"
                }
              ]
            },
            {
              title: "Legal",              items: [
                {
                  label: "Privacy Policy",                  href: "/privacy"
                },
                {
                  label: "Terms of Service",                  href: "/terms"
                },
                {
                  label: "Warranty",                  href: "/warranty"
                }
              ]
            }
          ]}
          copyrightText="© 2024 Classic Motors. All rights reserved. Preserving automotive excellence since 2000."
        />
      </div>
    </ThemeProvider>
  );
}