"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBase from '@/components/sections/footer/FooterBase';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import { Phone, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="entrance-slide"
        borderRadius="soft"
        contentWidth="mediumSmall"
        sizing="largeSizeMediumTitles"
        background="noise"
        cardStyle="subtle-shadow"
        primaryButtonStyle="primary-glow"
        secondaryButtonStyle="solid"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",
          id: "/",
        },
        {
          name: "Services",
          id: "/services",
        },
        {
          name: "Book Appointment",
          id: "/book",
        },
        {
          name: "Contact",
          id: "/contact",
        },
      ]}
      brandName="CareLink Systems"
    />
  </div>

  <div id="contact-body" data-section="contact-body">
      <ContactSplit
      useInvertedBackground={false}
      background={{
        variant: "plain",
      }}
      title="Get in Touch"
      description="Have questions? Our support team is ready to assist you with your health management inquiries."
      tag="Contact Us"
      imageSrc="http://img.b2bpic.net/free-photo/contact-with-patient-is-very-important-create-positive-thinking_329181-2192.jpg"
      mediaAnimation="blur-reveal"
    />
  </div>

  <div id="metric" data-section="metric">
      <MetricCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={false}
      title="Support Availability"
      description="Always here to help."
      metrics={[
        {
          id: "m8",
          value: "24/7",
          title: "Support",
          description: "Phone & Online",
          icon: Phone,
        },
        {
          id: "m9",
          value: "<5 min",
          title: "Avg Response",
          description: "Priority handling",
          icon: Zap,
        },
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBase
      columns={[
        {
          title: "Navigate",
          items: [
            {
              label: "Home",
              href: "/",
            },
            {
              label: "Services",
              href: "/services",
            },
          ],
        },
        {
          title: "Support",
          items: [
            {
              label: "Book Now",
              href: "/book",
            },
            {
              label: "Contact",
              href: "/contact",
            },
          ],
        },
      ]}
      logoText="CareLink"
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
