"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-shift"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="mediumLarge"
        sizing="largeSmallSizeMediumTitles"
        background="fluid"
        cardStyle="inset"
        primaryButtonStyle="primary-glow"
        secondaryButtonStyle="radial-glow"
        headingFontWeight="medium"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Accueil",          id: "/"},
        {
          name: "Véhicules",          id: "/vehicules"},
        {
          name: "Services",          id: "/services"},
        {
          name: "À Propos",          id: "/a-propos"},
        {
          name: "Contact",          id: "/contact"},
      ]}
      logoSrc="http://img.b2bpic.net/free-vector/best-dad-award_23-2147501669.jpg"
      logoAlt="FAHD AUTO SETIF Logo"
      brandName="FAHD AUTO SETIF"
      button={{
        text: "WhatsApp",        href: "https://wa.me/213550208888?text=Bonjour,%20je%20suis%20intéressé%20par%20vos%20véhicules"}}
    />
  </div>

  <div id="about-history" data-section="about-history">
      <MetricSplitMediaAbout
      useInvertedBackground={false}
      title="Notre Histoire"
      description="FAHD AUTO SETIF"
      metrics={[
        { value: "10+", title: "Ans d'Expérience" },
        { value: "500+", title: "Véhicules Vendus" },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/f1-racing-24-hours-le-mans-render-3d-illustration_654080-364.jpg"
      imageAlt="Audi RS3 2.5L 400cv yellow"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterLogoReveal
      logoSrc="http://img.b2bpic.net/free-vector/best-dad-award_23-2147501669.jpg"
      logoAlt="FAHD AUTO SETIF Logo"
      logoText="FAHD AUTO SETIF"
      leftLink={{
        text: "© 2025 FAHD AUTO SETIF. Tous droits réservés.",        href: "#"}}
      rightLink={{
        text: "Politique de confidentialité",        href: "#"}}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
