"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Turtle, BookOpen, Leaf, Heart } from "lucide-react";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FooterBase from '@/components/sections/footer/FooterBase';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeLargeTitles"
      background="plain"
      cardStyle="gradient-mesh"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Turtles Science"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Biology", id: "/biology" },
            { name: "Species", id: "/species" },
            { name: "Conservation", id: "/conservation" }
          ]}
          button={{
            text: "Learn More",            href: "/biology"
          }}
        />
      </div>

      <div id="hero" data-section="hero" className="mx-auto px-4 md:px-6">
        <HeroSplitKpi
          title="The Fascinating World of Turtles"
          description="Turtles are one of Earth's most ancient reptiles, with a history spanning over 200 million years. This comprehensive science project explores their biology, diversity, habitats, and the critical importance of turtle conservation in our changing world."
          tag="Science Project: Turtles"
          tagIcon={Turtle}
          imageSrc="https://images.unsplash.com/photo-1600088113235-cd37b53919d9?w=800&h=600&fit=crop"
          imageAlt="Sea turtle swimming in ocean"
          imagePosition="right"
          enableKpiAnimation={true}
          kpis={[
            { value: "200M+", label: "Years of Evolution" },
            { value: "350+", label: "Turtle Species" },
            { value: "7", label: "Continental Distributions" }
          ]}
          buttons={[
            { text: "Explore Biology", href: "/biology" },
            { text: "View Conservation", href: "/conservation" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials" className="mx-auto px-4 md:px-6">
        <TestimonialCardSix
          title="Key Discoveries About Turtles"
          description="Learn from leading turtle research and scientific insights about these remarkable creatures and their role in our ecosystems."
          tag="Research Highlights"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          speed={40}
          topMarqueeDirection="left"
          testimonials={[
            {
              id: "1",              name: "Dr. Sarah Mitchell",              handle: "@turtle_biologist",              testimonial: "Turtles possess a unique skeletal structure with their shell being fused to their spine. This incredible adaptation has allowed them to survive for millions of years.",              imageSrc: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&h=400&fit=crop",              imageAlt: "Dr. Sarah Mitchell",              icon: BookOpen
            },
            {
              id: "2",              name: "Prof. James Chen",              handle: "@marine_ecologist",              testimonial: "Sea turtles play a crucial role in maintaining ocean health by controlling jellyfish populations and maintaining seagrass beds. Their presence indicates a balanced ecosystem.",              imageSrc: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&h=400&fit=crop",              imageAlt: "Prof. James Chen",              icon: Heart
            },
            {
              id: "3",              name: "Dr. Emily Rodriguez",              handle: "@conservation_scientist",              testimonial: "Turtles have excellent spatial memory and can navigate thousands of miles across oceans using Earth's magnetic field. This navigation ability is one of nature's greatest wonders.",              imageSrc: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=400&h=400&fit=crop",              imageAlt: "Dr. Emily Rodriguez",              icon: BookOpen
            },
            {
              id: "4",              name: "Michael Thompson",              handle: "@wildlife_researcher",              testimonial: "Temperature determines the sex of turtle hatchlings. Rising global temperatures threaten to skew populations toward one gender, creating serious conservation challenges.",              imageSrc: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=400&h=400&fit=crop",              imageAlt: "Michael Thompson",              icon: Leaf
            },
            {
              id: "5",              name: "Dr. Jessica Park",              handle: "@reptile_expert",              testimonial: "Some turtle species can live over 100 years, making them one of the longest-living vertebrates. This longevity makes studying them crucial for understanding aging.",              imageSrc: "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=400&h=400&fit=crop",              imageAlt: "Dr. Jessica Park",              icon: BookOpen
            },
            {
              id: "6",              name: "Dr. David Kim",              handle: "@ecosystem_science",              testimonial: "Protecting turtle habitats means protecting entire ecosystems. Turtles are indicator species - their health reflects the health of our planet's environments.",              imageSrc: "https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=400&h=400&fit=crop",              imageAlt: "Dr. David Kim",              icon: Leaf
            }
          ]}
        />
      </div>

      <FooterBase
        logoText="Turtles Science Project"
        copyrightText="© 2025 Turtles Science Project. Educational Resources."
        columns={[
          {
            title: "Research",            items: [
              { label: "Turtle Biology", href: "/biology" },
              { label: "Species Guide", href: "/species" },
              { label: "Habitats", href: "/habitats" }
            ]
          },
          {
            title: "Science",            items: [
              { label: "Anatomy", href: "/biology" },
              { label: "Evolution", href: "/evolution" },
              { label: "Behavior", href: "/behavior" },
              { label: "Diet", href: "/diet" }
            ]
          },
          {
            title: "Conservation",            items: [
              { label: "Conservation Efforts", href: "/conservation" },
              { label: "Threats", href: "/threats" },
              { label: "How to Help", href: "/help" },
              { label: "Resources", href: "/resources" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}
