"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 PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import TeamCardSix from '@/components/sections/team/TeamCardSix';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Zap, CheckCircle, Users, TrendingUp, Award, Star, Sparkles, Crown } 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: "sparkles-gradient" }}
          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="pricing" data-section="pricing">
        <PricingCardEight
          title="Flexible Learning Plans"
          description="Choose the program that fits your goals and budget."
          tag="Pricing"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          plans={[
            {
              id: "beginner",              badge: "Perfect Start",              badgeIcon: Sparkles,
              price: "$299",              subtitle: "Per month",              buttons: [{ text: "Get Started", href: "/enroll" }],
              features: [
                "Fundamentals of Web Development",                "12 weeks of coursework",                "Community access",                "Project portfolio building",                "Email support"
              ]
            },
            {
              id: "professional",              badge: "Most Popular",              badgeIcon: Sparkles,
              price: "$599",              subtitle: "Per month",              buttons: [{ text: "Enroll Now", href: "/enroll" }],
              features: [
                "Full-Stack Development Track",                "24 weeks of intensive training",                "1-on-1 mentorship",                "Industry project experience",                "Job preparation support",                "Career coaching"
              ]
            },
            {
              id: "enterprise",              badge: "Premium",              badgeIcon: Crown,
              price: "$999",              subtitle: "Per month",              buttons: [{ text: "Book Consultation", href: "/contact" }],
              features: [
                "Advanced AI & Cloud Engineering",                "36 weeks specialized track",                "Premium mentorship",                "Live industry collaboration",                "Advanced portfolio projects",                "Priority job placement",                "Lifetime alumni network"
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Student Success Stories"
          description="Hear from graduates who have transformed their tech careers."
          tag="Testimonials"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          testimonials={[
            {
              id: "1",              name: "Sarah Chen",              role: "Senior Developer",              company: "TechCorp",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-smiley-woman-library_23-2149204753.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "2",              name: "Marcus Johnson",              role: "Full Stack Engineer",              company: "StartupXYZ",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-happy-senior-expert-with-flipchart_1262-1745.jpg",              imageAlt: "Marcus Johnson"
            },
            {
              id: "3",              name: "Emily Rodriguez",              role: "Cloud Architect",              company: "CloudInnovate",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/mid-shot-counselor-cabinet_23-2148759108.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              role: "AI Engineer",              company: "FutureTech",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-man-scientist_23-2148820194.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              name: "Jessica Patel",              role: "Product Engineer",              company: "InnovateLabs",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-caucasian-content-teacher-with-folded-hands_74855-10318.jpg",              imageAlt: "Jessica Patel"
            },
            {
              id: "6",              name: "Alex Thompson",              role: "Software Architect",              company: "CodeWorks",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/handsome-black-man-posing-public-library_74855-1939.jpg",              imageAlt: "Alex Thompson"
            }
          ]}
        />
      </div>

      <div id="team" data-section="team">
        <TeamCardSix
          title="Meet Our Instructors"
          description="Learn from experienced developers and tech leaders."
          tag="Team"
          tagIcon={Users}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          members={[
            {
              id: "1",              name: "Dr. Alex Patterson",              role: "Founder & Lead Instructor",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-business-person-doing-internship_23-2149305396.jpg",              imageAlt: "Dr. Alex Patterson"
            },
            {
              id: "2",              name: "Maya Desai",              role: "Full Stack Engineer",              imageSrc: "https://img.b2bpic.net/free-photo/mature-business-manager-office_1098-21368.jpg",              imageAlt: "Maya Desai"
            },
            {
              id: "3",              name: "James Chen",              role: "Cloud Infrastructure Specialist",              imageSrc: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg",              imageAlt: "James Chen"
            },
            {
              id: "4",              name: "Lisa Kowalski",              role: "AI & Machine Learning Expert",              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-woman-studying-math_23-2150444951.jpg",              imageAlt: "Lisa Kowalski"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get in Touch"
          description="Have questions about our programs? We'd love to hear from you. Drop us a message and our team will get back to you within 24 hours."
          buttonText="Send Message"
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/man-wheelchair-having-office-job_23-2149571066.jpg"
          imageAlt="Contact us"
          mediaPosition="right"
          inputs={[
            { name: "fullName", type: "text", placeholder: "Full Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: false },
            { name: "course", type: "text", placeholder: "Interested Course", required: false }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your interest in NoGoogle...",            rows: 5,
            required: true
          }}
        />
      </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>
  );
}