"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import AboutMetric from '@/components/sections/about/AboutMetric';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import ProductCatalog from '@/components/ecommerce/productCatalog/ProductCatalog';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import { Building2, GraduationCap, ShieldCheck } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-stagger"
        defaultTextAnimation="entrance-slide"
        borderRadius="soft"
        contentWidth="smallMedium"
        sizing="largeSizeMediumTitles"
        background="none"
        cardStyle="subtle-shadow"
        primaryButtonStyle="radial-glow"
        secondaryButtonStyle="glass"
        headingFontWeight="bold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        { name: "Home", id: "/" },
        { name: "Courses", id: "/courses" },
        { name: "Services", id: "/services" },
        { name: "Blog", id: "/blog" },
        { name: "Contact", id: "/contact" },
      ]}
      brandName="R-Dex Group"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroOverlay
      title="Securing the Future of Digital Infrastructure"
      description="R-Dex Group Of Industry provides advanced cybersecurity training, defense, and consulting services for a hyper-connected world."
      buttons={[
        { text: "Start Learning", href: "/courses" },
        { text: "Contact Us", href: "/contact" },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/cyber-security-experts-working-with-tech-devices-neon-lights_23-2151645614.jpg"
      avatars={[
        { src: "http://img.b2bpic.net/free-photo/laptop-screen-with-technical-information_53876-101869.jpg", alt: "Cybersecurity Expert A" },
        { src: "http://img.b2bpic.net/free-photo/cyber-security-expert-working-with-technology-neon-lights_23-2151645669.jpg", alt: "Cybersecurity Expert B" },
        { src: "http://img.b2bpic.net/free-photo/cyber-security-experts-working-with-tech-devices-neon-lights_23-2151645638.jpg", alt: "Cybersecurity Expert C" },
        { src: "http://img.b2bpic.net/free-photo/cyber-security-expert-working-with-technology-neon-lights_23-2151645577.jpg", alt: "Cybersecurity Expert D" },
        { src: "http://img.b2bpic.net/free-photo/beautiful-mature-woman-having-fun-time_23-2149232845.jpg", alt: "Cybersecurity Expert E" },
      ]}
      avatarText="Join our 15,000+ elite graduates"
    />
  </div>

  <div id="about" data-section="about">
      <AboutMetric
      useInvertedBackground={true}
      title="Defending Digital Frontiers"
      metrics={[
        { label: "Certified Students", value: "15,000+", icon: GraduationCap },
        { label: "Cyber Defense Projects", value: "200+", icon: ShieldCheck },
        { label: "Global Industry Partners", value: "50+", icon: Building2 },
      ]}
      metricsAnimation="slide-up"
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={false}
      names={["Microsoft", "Google", "CrowdStrike", "IBM", "Intel", "Cisco", "Palo Alto Networks"]}
      title="Trusted by Leading Industry Players"
      description="Collaborating with global enterprises and government sectors to build secure digital infrastructures."
    />
  </div>

  <div id="product" data-section="product">
      <ProductCardThree
      title="Cyber Security Toolkits"
      description="Professional grade tools for your security needs."
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={false}
    />
  </div>

  <div id="ecommerce" data-section="ecommerce">
      <ProductCatalog layout="page" />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseReveal
      logoText="R-Dex Group"
      columns={[
        {
          title: "Company",          items: [
            { label: "About Us", href: "/about" },
            { label: "Contact", href: "/contact" },
          ],
        },
        {
          title: "Services",          items: [
            { label: "Cyber Solutions", href: "/services" },
            { label: "Training", href: "/courses" },
          ],
        },
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
