"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Zap, CheckCircle, Users, TrendingUp, Award, Star } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="aurora"
      cardStyle="soft-shadow"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="NoGoogle"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Courses", id: "/courses" },
            { name: "About", id: "/about" },
            { name: "Blog", id: "/blog" }
          ]}
          button={{ text: "Enroll Now", href: "/enroll" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Learn to Code Without the Google Trap"
          description="Master web development, cloud computing, and AI at NoGoogle—the independent IT school built by developers, for developers."
          background={{ variant: "aurora" }}
          tag="Start Your Tech Journey"
          tagIcon={Zap}
          imageSrc="https://img.b2bpic.net/free-photo/college-students-different-ethnicities-cramming_23-2149891341.jpg"
          imageAlt="Students collaborating on coding projects"
          buttons={[
            { text: "Explore Courses", href: "/courses" },
            { text: "Watch Demo", href: "#features" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "We're building the future of" },
            { type: "text", content: "independent tech education" }
          ]}
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Our Story", href: "/about" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyOne
          title="Why Choose NoGoogle?"
          description="Experience real-world tech education designed by industry professionals."
          tag="Our Advantages"
          tagIcon={CheckCircle}
          imageSrc="https://img.b2bpic.net/free-photo/person-computing-software-code-laptop_482257-85707.jpg"
          imageAlt="Advanced coding environment"
          useInvertedBackground="noInvert"
          mediaPosition="right"
          accordionItems={[
            {
              id: "1",
              title: "Hands-On Project-Based Learning",
              content: "Build real applications from day one. Learn by doing with projects that matter and code that ships."
            },
            {
              id: "2",
              title: "Industry-Expert Instructors",
              content: "Learn from developers working at top tech companies. Get mentorship from people actively building the future."
            },
            {
              id: "3",
              title: "Flexible Curriculum",
              content: "Choose your path: web development, cloud architecture, AI/ML, or full-stack engineering. Learn at your pace."
            },
            {
              id: "4",
              title: "Job-Ready Skills",
              content: "Our curriculum is designed with hiring managers. Graduate with skills companies are actively seeking."
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Our Impact"
          description="Proven results from our community of learners and professionals."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          metrics={[
            { id: "1", icon: Users, title: "Students Trained", value: "5,000+" },
            { id: "2", icon: TrendingUp, title: "Career Placements", value: "92%" },
            { id: "3", icon: Award, title: "Avg Salary Increase", value: "+45%" },
            { id: "4", icon: Star, title: "Student Rating", value: "4.9/5" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="NoGoogle"
          columns={[
            {
              title: "Programs",
              items: [
                { label: "Web Development", href: "/courses/web-development" },
                { label: "Cloud Engineering", href: "/courses/cloud-engineering" },
                { label: "AI & Machine Learning", href: "/courses/ai-ml" },
                { label: "Full Stack Bootcamp", href: "/courses/bootcamp" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Team", href: "/team" },
                { label: "Blog", href: "/blog" },
                { label: "Careers", href: "/careers" }
              ]
            },
            {
              title: "Resources",
              items: [
                { label: "FAQ", href: "/faq" },
                { label: "Documentation", href: "/docs" },
                { label: "Community", href: "/community" },
                { label: "Support", href: "/support" }
              ]
            },
            {
              title: "Connect",
              items: [
                { label: "Twitter", href: "https://twitter.com" },
                { label: "GitHub", href: "https://github.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "Discord", href: "https://discord.com" }
              ]
            }
          ]}
          copyrightText="© 2025 NoGoogle. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}