"use client";

import Link from 'next/link';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactText from '@/components/sections/contact/ContactText';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Users, Award, Zap, TrendingUp, CheckCircle, Sparkles } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumLarge"
      sizing="largeSmallSizeLargeTitles"
      background="aurora"
      cardStyle="glass-elevated"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="ChayNik"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Courses", id: "/courses" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{ text: "Enroll Now", href: "/contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Master the Future of Technology"
          description="Join ChayNik and transform your career with industry-leading IT education. Learn from expert instructors and become job-ready in weeks."
          background={{ variant: "glowing-orb" }}
          kpis={[
            { value: "500+", label: "Students Trained" },
            { value: "95%", label: "Job Placement Rate" },
            { value: "8-12", label: "Weeks to Proficiency" }
          ]}
          enableKpiAnimation={true}
          tag="Trusted IT Training"
          imageSrc="https://img.b2bpic.net/free-photo/college-students-different-ethnicities-cramming_23-2149891341.jpg"
          imageAlt="Students learning IT at ChayNik"
          buttons={[
            { text: "Start Learning", href: "/courses" },
            { text: "Watch Demo", href: "#" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="ChayNik: Empowering the Next Generation of Tech Leaders Through Comprehensive IT Education and Real-World Experience"
          metrics={[
            { icon: Users, label: "Active Learners", value: "2,000+" },
            { icon: Award, label: "Expert Instructors", value: "50+" },
            { icon: Zap, label: "Years of Excellence", value: "10+" },
            { icon: TrendingUp, label: "Career Growth Rate", value: "85%" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardOne
          title="Why Choose ChayNik?"
          description="Our comprehensive curriculum and hands-on approach ensure you gain practical skills that employers demand"
          tag="Key Features"
          tagIcon={Sparkles}
          features={[
            {
              title: "Expert-Led Instruction",
              description: "Learn from industry professionals with 10+ years of experience in leading tech companies",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-company-female-leader-meeting-serious-woman-suit-listening-her-colleagues-reports-analyzing-information-preparing-set-new-tasks-targets-business-growth-strategy-concept_74855-24548.jpg",
              button: { text: "Learn More" }
            },
            {
              title: "Project-Based Learning",
              description: "Build real-world projects and portfolio pieces that showcase your skills to employers",
              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-business-man-holding-notebook_23-2149333047.jpg",
              button: { text: "See Projects" }
            },
            {
              title: "Flexible Schedules",
              description: "Study at your own pace with online and offline options designed for busy professionals",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-female-business-leader-her-colleagues-two-cheerful-men-woman-standing-together-after-corporate-meeting-office-smiling-looking-camera-female-leadership-business-concept_74855-24566.jpg",
              button: { text: "View Schedule" }
            },
            {
              title: "Job Placement Support",
              description: "Dedicated career coaching and job placement assistance to launch your tech career",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-senior-lecturer-with-arms-crossed_1262-1753.jpg",
              button: { text: "Career Services" }
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="four-items-2x2-equal-grid"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Impact in Numbers"
          description="Proven results that demonstrate ChayNik's commitment to student success and career advancement"
          metrics={[
            {
              id: "1",
              value: "95",
              title: "%",
              description: "Job placement within 3 months",
              icon: CheckCircle
            },
            {
              id: "2",
              value: "₹12",
              title: "LPA",
              description: "Average starting salary",
              icon: TrendingUp
            },
            {
              id: "3",
              value: "500",
              title: "+",
              description: "Graduates per year",
              icon: Users
            }
          ]}
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="scale-rotate"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="Success Stories from Our Graduates"
          description="See how ChayNik students have transformed their careers in the tech industry"
          tag="Student Testimonials"
          testimonials={[
            {
              id: "1",
              name: "Rahul Sharma, Software Engineer at TechCorp",
              date: "Date: 15 November 2024",
              title: "ChayNik changed my career trajectory completely!",
              quote: "I was struggling to break into tech with no formal background. The ChayNik program gave me not just technical skills but confidence. Within 2 months of graduation, I landed a job as a Software Engineer earning 50% more than my previous role.",
              tag: "Full Stack Development",
              avatarSrc: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg"
            },
            {
              id: "2",
              name: "Priya Patel, Data Analyst at InsightCo",
              date: "Date: 10 November 2024",
              title: "Best investment I made in my career",
              quote: "The data science course was incredibly comprehensive. Real-world datasets, practical ML projects, and amazing mentorship. I went from zero coding knowledge to landing a data analyst position within 3 months.",
              tag: "Data Science",
              avatarSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-bearded-man-white-shirt-jacket-posing-camera-with-broad-smile-isolated-gray_171337-629.jpg",
              imageSrc: "https://img.b2bpic.net/free-photo/dark-blonde-bearded-man-crosses-his-hands-chest-posing-black-shirt_8353-1116.jpg"
            },
            {
              id: "3",
              name: "Arjun Verma, Web Developer at StartupXYZ",
              date: "Date: 5 November 2024",
              title: "Practical education that actually works",
              quote: "Unlike traditional courses, ChayNik focuses on what companies actually need. The web development bootcamp taught me React, backend systems, and deployment in real scenarios. Got hired before I even finished the program!",
              tag: "Web Development",
              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-caucasian-unshaved-man-eyeglasses-looking-camera-with-sincere-smile-isolated-gray_171337-630.jpg"
            },
            {
              id: "4",
              name: "Neha Singh, DevOps Engineer at CloudTech",
              date: "Date: 28 October 2024",
              title: "Instructors know their craft inside out",
              quote: "The DevOps course instructors have real hands-on experience in production environments. They taught us everything we needed and provided guidance even after the course ended. Highly recommended!",
              tag: "DevOps & Cloud",
              avatarSrc: "https://img.b2bpic.net/free-photo/young-beautiful-woman-smiling-posing-purple-wall_176420-2852.jpg",
              imageSrc: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to transform your career with ChayNik? Join hundreds of successful graduates and start your journey to becoming a tech professional today."
          animationType="entrance-slide"
          buttons={[
            { text: "Enroll Now", href: "/courses" },
            { text: "Schedule Demo", href: "/contact" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <FooterLogoReveal logoText="ChayNik" />
    </ThemeProvider>
  );
}