"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import LegalSection from '@/components/legal/LegalSection';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import { Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="directional-hover"
        defaultTextAnimation="entrance-slide"
        borderRadius="rounded"
        contentWidth="medium"
        sizing="large"
        background="none"
        cardStyle="glass-elevated"
        primaryButtonStyle="flat"
        secondaryButtonStyle="glass"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleApple
      navItems={[
        {
          name: "Home",          id: "/"},
        {
          name: "Configure",          id: "/configure"},
        {
          name: "Engineering",          id: "/engineering"},
      ]}
      brandName="Aethelgard"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboard
      background={{
        variant: "radial-gradient"}}
      title="AE-1: PERFORMANCE SYNTHESIS"
      description="Where aerodynamic precision meets pure adrenaline. Engineered for the edge."
      buttons={[
        {
          text: "Configure Now",          href: "/configure"},
        {
          text: "Learn More",          href: "/engineering"},
      ]}
      imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3CWTwT4e7ZbMNeHH1TuQavpTmv3/uploaded-1776500778193-6y4xx147.png"
      imageAlt="Aethelgard AE-1 Sports Car"
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/portrait-handsome-young-businessman-car_23-2147873892.jpg",          alt: "Test driver"},
        {
          src: "http://img.b2bpic.net/free-photo/close-up-equity-analyst-working-proprietary-firm-reading-annual-company-reports-evaluate_482257-132953.jpg",          alt: "Lead engineer"},
        {
          src: "http://img.b2bpic.net/free-photo/spaceship-crew-member-stressed-by-unknown-hull-breach-causing-alarm-sound_482257-126223.jpg",          alt: "Aerodynamics lead"},
        {
          src: "http://img.b2bpic.net/free-photo/mechanic-using-touchscreen-device_1170-1579.jpg",          alt: "Chassis designer"},
        {
          src: "http://img.b2bpic.net/free-photo/young-man-student-holding-computer_1303-21810.jpg",          alt: "Software architect"},
      ]}
      marqueeItems={[
        {
          type: "text",          text: "1200 Horsepower"},
        {
          type: "text",          text: "Active Aero"},
        {
          type: "text",          text: "Carbon Monocoque"},
        {
          type: "text",          text: "Track Dominance"},
        {
          type: "text",          text: "Future Performance"},
      ]}
    />
  </div>

  <div id="engineering-intro" data-section="engineering-intro">
      <TestimonialAboutCard
      useInvertedBackground={true}
      tag="Engineering"
      title="A Symphony of Air"
      description="The AE-1 features active aerodynamics that adapt in milliseconds, ensuring maximum downforce when you need it and minimal drag when you don't."
      subdescription="Every curve, every duct, and every blade serves a singular purpose."
      icon={Zap}
      imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3CWTwT4e7ZbMNeHH1TuQavpTmv3/uploaded-1776500778194-7iwtu65y.png"
      mediaAnimation="slide-up"
    />
  </div>

  <div id="socialProof" data-section="socialProof">
      <SocialProofOne
      names={["Aethelgard", "Aero-Dynamics", "Precision-Motorworks", "Global-Engineering", "Velocity-Racing"]}
      title="Trusted by Industry Leaders"
      description="Our engineering solutions are implemented by the most prestigious teams in the world."
      textboxLayout="default"
      useInvertedBackground={false}
    />
  </div>

  <div id="testimonial" data-section="testimonial">
      <TestimonialCardSixteen
      testimonials={[
        {
          name: "Markus V.",          role: "Formula One Driver",          content: "The AE-1 handles like a dream at 300km/h."
        },
        {
          name: "Sarah K.",          role: "Head of Aero",          content: "Unparalleled downforce precision."
        },
        {
          name: "James L.",          role: "Automotive Journalist",          content: "This is the future of sports performance."
        },
        {
          name: "Elena M.",          role: "Lead Chassis Designer",          content: "Carbon monocoque mastery at its finest."
        },
        {
          name: "Viktor S.",          role: "Performance Specialist",          content: "The active aero tech is simply mind-blowing."
        }
      ]}
      kpiItems={[
        { value: "98%", description: "Customer Satisfaction" },
        { value: "500+", description: "Simulations Run" },
        { value: "10/10", description: "Track Rating" },
        { value: "24h", description: "Support Response" },
        { value: "5y", description: "Warranty Coverage" }
      ]}
      title="Performance Verified"
      description="Client satisfaction through raw engineering data."
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
    />
  </div>

  <div id="legal" data-section="legal">
      <LegalSection 
        layout="default"
        title="Legal Notice"
        sections={[
            { title: "Compliance", content: "Fully compliant with road safety standards." },
            { title: "Privacy", content: "Data handled with maximum security." }
        ]}
      />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoText="AETHELGARD"
      columns={[
        {
          title: "Vehicles",          items: [
            {
              label: "AE-1",              href: "/configure"},
            {
              label: "Performance",              href: "/engineering"},
          ],
        },
        {
          title: "Company",          items: [
            {
              label: "Heritage",              href: "#"},
            {
              label: "Careers",              href: "#"},
          ],
        },
      ]}
      copyrightText="© 2024 Aethelgard Motorworks."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
