"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { BookOpen, MessageSquare } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Features", id: "/features" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" },
    { name: "Sign In", id: "https://tutorly.example.com/signin" }
  ];

  const testimonials = [
    {
      id: "1",
      name: "Alex Martinez",
      role: "Student",
      company: "High School",
      rating: 5,
      imageSrc: "https://img.b2bpic.net/free-photo/vertical-shot-happy-young-woman-with-curly-hair-holds-notepad-pen-makes-notes-what-she-observes-around-city-dressed-casual-green-jumper-poses-outdoors-against-blurred-background_273609-56665.jpg",
      imageAlt: "Alex Martinez"
    },
    {
      id: "2", 
      name: "Jordan Lee",
      role: "College Student",
      company: "University",
      rating: 5,
      imageSrc: "https://img.b2bpic.net/free-photo/side-view-smiley-woman-holding-book_23-2149535705.jpg",
      imageAlt: "Jordan Lee"
    },
    {
      id: "3",
      name: "Casey Thompson", 
      role: "Parent",
      company: "Family",
      rating: 5,
      imageSrc: "https://img.b2bpic.net/free-photo/woman-sitting-library-couch_273609-12733.jpg",
      imageAlt: "Casey Thompson"
    },
    {
      id: "4",
      name: "Morgan Palmer",
      role: "Tutor", 
      company: "Tutorly",
      rating: 5,
      imageSrc: "https://img.b2bpic.net/free-photo/happy-boy-posing-with-tablet_23-2147655887.jpg",
      imageAlt: "Morgan Palmer"
    }
  ];

  const footerColumns = [
    {
      title: "Product",
      items: [
        { label: "Find Tutors", href: "/" },
        { label: "Become a Tutor", href: "/features" },
        { label: "Pricing", href: "/features" },
        { label: "How It Works", href: "/about" }
      ]
    },
    {
      title: "Company", 
      items: [
        { label: "About Us", href: "/about" },
        { label: "Blog", href: "/" },
        { label: "Careers", href: "/" },
        { label: "Press", href: "/" }
      ]
    },
    {
      title: "Support",
      items: [
        { label: "Help Center", href: "/contact" },
        { label: "Contact Us", href: "/contact" },
        { label: "Terms of Service", href: "/" },
        { label: "Privacy Policy", href: "/" }
      ]
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="medium"
      background="radialGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={navItems}
          brandName="Tutorly"
          bottomLeftText="Join our learning community"
          bottomRightText="hello@tutorly.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Connect with Expert Tutors Anytime"
          description="Tutorly connects students with qualified tutors for personalized learning. Whether you're a student seeking help or a tutor sharing expertise, find your perfect match on our platform."
          tag="Education Platform"
          tagIcon={BookOpen}
          kpis={[
            { value: "5,000+", label: "Active Tutors" },
            { value: "50,000+", label: "Students Helped" },
            { value: "4.9★", label: "Average Rating" }
          ]}
          enableKpiAnimation={true}
          imageSrc="https://img.b2bpic.net/free-photo/virtual-classroom-study-space_23-2149178644.jpg"
          imageAlt="Students learning with tutors online"
          imagePosition="right"
          buttons={[
            { text: "Find a Tutor", href: "/contact" },
            { text: "Become a Tutor", href: "/contact" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Students & Tutors Say"
          description="Real stories from our community of learners and educators."
          tag="Testimonials"
          tagIcon={MessageSquare}
          testimonials={testimonials}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          carouselMode="buttons"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2025 Tutorly. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}