"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';

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="metrics-section" data-section="metrics-section">
      <MetricCardTwo
      animationType="depth-3d"
      textboxLayout="split"
      gridVariant="bento-grid"
      useInvertedBackground={true}
      metrics={[
        {
          id: "m1",
          value: "1,200hp",
          description: "Peak Power",
        },
        {
          id: "m2",
          value: "2.2s",
          description: "0-100 km/h",
        },
        {
          id: "m3",
          value: "400km/h",
          description: "Top Speed",
        },
      ]}
      title="Performance Data"
      description="Real-world telemetry verified through exhaustive simulation and testing."
    />
  </div>

  <div id="metric" data-section="metric">
      <MetricCardFourteen
      useInvertedBackground={false}
      title="Advanced Engineering Metrics"
      tag="Telemetry"
      metrics={[
        {
          id: "s1",
          value: "0.22",
          description: "Drag Coefficient",
        },
        {
          id: "s2",
          value: "1.8G",
          description: "Lateral Acceleration",
        },
        {
          id: "s3",
          value: "1,350kg",
          description: "Dry Weight",
        },
      ]}
      metricsAnimation="slide-up"
    />
  </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>
  );
}
