"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FeatureCardTwentyFour from '@/components/sections/feature/FeatureCardTwentyFour';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import HeroBillboardTestimonial from '@/components/sections/hero/HeroBillboardTestimonial';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="background-highlight"
        borderRadius="pill"
        contentWidth="smallMedium"
        sizing="mediumSizeLargeTitles"
        background="grid"
        cardStyle="inset"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="solid"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        { name: "Home", id: "/" },
        { name: "About", id: "/about" },
        { name: "Courses", id: "/courses" },
        { name: "Contact", id: "/contact" },
      ]}
      brandName="Academy Excellence"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboardTestimonial
      title="Unlock Your Potential with Elite Coaching"
      description="Master Science and Mathematics with our proven curriculum. Empowering students from Grade 6 to O/L in both English and Sinhala mediums."
      background={{ variant: "sparkles-gradient" }}
      testimonials={[
        { name: "Aravinda P.", handle: "@top_scorer", testimonial: "The personalized attention helped me secure an A in Maths.", rating: 5 },
        { name: "Samadhi K.", handle: "@science_wiz", testimonial: "The science concepts are finally crystal clear!", rating: 5 }
      ]}
      buttons={[
        { text: "Enroll Now", href: "/contact" }
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/young-students-brainstorming-with-teacher_23-2147864634.jpg"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwentyFour
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      features={[
        { id: "f1", title: "Experienced Faculty", author: "Top Educators", description: "Teachers with a decade of proven success.", tags: ["Qualified"], imageSrc: "http://img.b2bpic.net/free-photo/light-bulb-near-back-school-writing_23-2147864634.jpg" },
        { id: "f2", title: "Small Group Focus", author: "Personalized", description: "Individual guidance for every student.", tags: ["Focused"], imageSrc: "http://img.b2bpic.net/free-photo/abstract-creation-made-from-3d-geometric-shapes_23-2150829267.jpg" }
      ]}
      title="Why Choose Us?"
      description="Excellence in every lesson."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardFourteen
      useInvertedBackground={false}
      title="Proven Results"
      tag="Achievements"
      metrics={[
        { id: "m1", value: "95%", description: "Success Rate" },
        { id: "m2", value: "500+", description: "Happy Students" }
      ]}
      metricsAnimation="slide-up"
    />
  </div>

  <div id="socialProof" data-section="socialProof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={false}
      title="Trusted by Families"
      names={["Top Island Ranks", "Math Olympians", "O/L Success Achievers"]}
    />
  </div>

  <div id="testimonial" data-section="testimonial">
      <TestimonialCardTwo
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      testimonials={[]}
      title="Student Success"
      description="Real stories from our students."
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterLogoEmphasis
      columns={[
        { items: [{ label: "About", href: "/about" }, { label: "Courses", href: "/courses" }] },
        { items: [{ label: "Contact Us", href: "/contact" }] }
      ]}
      logoText="Academy Excellence"
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}