"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardTwentyNine from '@/components/sections/feature/featureCardTwentyNine/FeatureCardTwentyNine';
import FooterCard from '@/components/sections/footer/FooterCard';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import { MessageCircle } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="medium"
        sizing="largeSizeMediumTitles"
        background="none"
        cardStyle="soft-shadow"
        primaryButtonStyle="radial-glow"
        secondaryButtonStyle="glass"
        headingFontWeight="bold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleApple
      navItems={[
        {
          name: "Services",
          id: "#services",
        },
        {
          name: "Cars",
          id: "#gallery",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      brandName="YMG Autosales"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboardGallery
      background={{
        variant: "gradient-bars",
      }}
      title="Drive Luxury Today"
      description="🇳🇬 Trusted Auto Dealer in Nigeria. Discover our curated selection of new & pre-owned luxury vehicles with flexible payment plans tailored for you."
      buttons={[
        {
          text: "Get Your Dream Car",
          href: "#contact",
        },
      ]}
      mediaItems={[
        {
          imageSrc: "http://img.b2bpic.net/free-photo/futuristic-store-with-abstract-concept-architecture_23-2150861916.jpg",
          imageAlt: "luxury car dealership interior dark",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/elegant-couple-car-salon_1157-20495.jpg",
          imageAlt: "silver luxury car showroom",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-car-showroom-choosing-car_1303-19796.jpg",
          imageAlt: "sporty black suv showroom",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/exterior-modern-white-luxury-car_181624-23559.jpg",
          imageAlt: "white sports car showroom",
        },
        {
          imageSrc: "http://img.b2bpic.net/free-photo/stunning-young-woman-waring-dress-posing-front-her-car-outdoors-ownership-driver_158595-6800.jpg",
          imageAlt: "blue exotic car dealership",
        },
      ]}
      mediaAnimation="slide-up"
    />
  </div>

  <div id="services" data-section="services">
      <FeatureCardTwentyNine
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="four-items-2x2-equal-grid"
      useInvertedBackground={false}
      features={[
        {
          title: "New & Pre-Owned",
          description: "High-quality vehicles vetted for excellence.",
          imageSrc: "http://img.b2bpic.net/free-photo/woman-enjoying-her-financially-independence-while-buying-car_23-2149434358.jpg",
          titleImageSrc: "http://img.b2bpic.net/free-photo/neo-brutalism-inspired-building_23-2151004654.jpg",
          buttonText: "Browse",
        },
        {
          title: "Flexible Payment",
          description: "Custom financing options designed to suit your budget.",
          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-choosing-car-car-showroom_1303-17456.jpg",
          titleImageSrc: "http://img.b2bpic.net/free-photo/greyscale-shot-dark-tunnel-room-with-window_181624-20284.jpg",
          buttonText: "Inquire",
        },
        {
          title: "Fast Delivery",
          description: "We ensure your car reaches you as quickly as possible.",
          imageSrc: "http://img.b2bpic.net/free-photo/modern-empty-room_23-2150528573.jpg",
          titleImageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-black-white-background_23-2150498630.jpg",
          buttonText: "Get Started",
        },
        {
          title: "Auto Pimping",
          description: "Professional upgrades to make your car truly yours.",
          imageSrc: "http://img.b2bpic.net/free-photo/portrait-salesman-car-dealership_23-2148130100.jpg",
          titleImageSrc: "http://img.b2bpic.net/free-photo/headlight-lamp-car_1203-2246.jpg",
          buttonText: "Explore",
        },
      ]}
      title="Our Services"
      description="We offer more than just cars; we provide a complete luxury experience."
    />
  </div>

  <div id="gallery" data-section="gallery">
      <ProductCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      products={[
        {
          id: "p1",
          name: "Luxe Sedan",
          price: "Call for price",
          imageSrc: "http://img.b2bpic.net/free-photo/modern-empty-room_23-2150528592.jpg",
        },
        {
          id: "p2",
          name: "Executive SUV",
          price: "Call for price",
          imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-33509.jpg",
        },
        {
          id: "p3",
          name: "Sporty Coupe",
          price: "Call for price",
          imageSrc: "http://img.b2bpic.net/free-photo/low-angle-trunk-door-black-car_23-2148321844.jpg",
        },
        {
          id: "p4",
          name: "Blue Roadster",
          price: "Call for price",
          imageSrc: "http://img.b2bpic.net/free-photo/salesman-car-showroom-with-business-flyers_1303-14578.jpg",
        },
        {
          id: "p5",
          name: "Racing Edition",
          price: "Call for price",
          imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-32023.jpg",
        },
        {
          id: "p6",
          name: "Grey Cruiser",
          price: "Call for price",
          imageSrc: "http://img.b2bpic.net/free-photo/luxury-car-inner-accessories_181624-61771.jpg",
        },
      ]}
      title="Available Cars"
      description="Explore our premium inventory ready for immediate delivery."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardSeven
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      metrics={[
        {
          id: "m1",
          value: "1000+",
          title: "Cars Sold",
          items: [
            "Happy clients",
            "Certified vehicles",
            "Trusted service",
          ],
        },
        {
          id: "m2",
          value: "24/7",
          title: "Support",
          items: [
            "Always available",
            "Expert advice",
            "Flexible contact",
          ],
        },
        {
          id: "m3",
          value: "100%",
          title: "Quality",
          items: [
            "Premium selection",
            "Safety checked",
            "Verified history",
          ],
        },
      ]}
      title="Why Choose YMG"
      description="The numbers speak for themselves in our commitment to quality."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardTen
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t1",
          title: "Smooth Deal",
          quote: "Smooth deal, very legit and customer friendly!",
          name: "Sarah Ade",
          role: "Entrepreneur",
          imageSrc: "http://img.b2bpic.net/free-photo/successful-businesswoman-smiling-looking-confident-happy-standing-suit-street-leans-her_1258-193996.jpg",
        },
        {
          id: "t2",
          title: "Efficient",
          quote: "Got my car within the same week, impressive service.",
          name: "Michael Okafor",
          role: "Professional",
          imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-pajamas-while-sitting-bed_273609-13213.jpg",
        },
        {
          id: "t3",
          title: "Great Value",
          quote: "Best prices in Lagos, honestly worth every penny.",
          name: "Chioma Eze",
          role: "Architect",
          imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-smiling-woman_93675-133805.jpg",
        },
        {
          id: "t4",
          title: "Reliable",
          quote: "Reliable dealership, will definitely return again.",
          name: "David Musa",
          role: "Consultant",
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-positive-executive-work_1098-519.jpg",
        },
        {
          id: "t5",
          title: "Luxury Standard",
          quote: "The car quality is unmatched in the market.",
          name: "Tunde Bakare",
          role: "CEO",
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-business-caucasian-man-black-suit-office-background_609648-1007.jpg",
        },
      ]}
      title="Client Reviews"
      description="Trusted by our partners and customers across Nigeria."
    />
  </div>

  <div id="why-us" data-section="why-us">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={false}
      names={[
        "Mercedes-Benz",
        "Toyota",
        "Lexus",
        "Range Rover",
        "Ford",
        "Honda",
        "Hyundai",
      ]}
      title="Our Trusted Brands"
      description="We partner with the world's leading automotive brands."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={false}
      faqs={[
        {
          id: "f1",
          title: "Do you offer installment?",
          content: "Yes, we offer flexible payment plans for eligible buyers.",
        },
        {
          id: "f2",
          title: "Where is your location?",
          content: "Our showroom is located at 280 Ikorodu Road, Lagos.",
        },
        {
          id: "f3",
          title: "How do I order a car?",
          content: "You can contact us via WhatsApp or visit our office to book your inspection.",
        },
      ]}
      sideTitle="FAQs"
      sideDescription="Need answers? Here are the most frequently asked questions about YMG Autosales."
      faqsAnimation="blur-reveal"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplit
      useInvertedBackground={false}
      background={{
        variant: "plain",
      }}
      tag="Contact Us"
      title="Ready To Drive Your Dream Car?"
      description="Call or WhatsApp us today to get started with your luxury vehicle journey."
      imageSrc="http://img.b2bpic.net/free-photo/reflection-sky_181624-9195.jpg"
      mediaPosition="right"
      buttonText="Send Inquiry"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterCard
      logoText="YMG Autosales"
      copyrightText="© 2025 YMG Autosales | Nigeria's Luxury Car Dealer"
      socialLinks={[
        {
          icon: MessageCircle,
          href: "https://wa.me/2348035151288",
          ariaLabel: "WhatsApp",
        },
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
