"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import HeroBillboardCarousel from "@/components/sections/hero/HeroBillboardCarousel";
import TextSplitAbout from "@/components/sections/about/TextSplitAbout";
import FeatureCardOne from "@/components/sections/feature/FeatureCardOne";
import MetricCardTen from "@/components/sections/metrics/MetricCardTen";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import FaqBase from "@/components/sections/faq/FaqBase";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import Link from "next/link";
import { Sparkles, BookOpen, Building2, Award, MessageSquare, HelpCircle, Phone } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "About", id: "/about" },
  { name: "Courses", id: "/courses" },
  { name: "Campus", id: "/campus" },
  { name: "Admissions", id: "/admissions" },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="largeSmallSizeMediumTitles"
      background="aurora"
      cardStyle="layered-gradient"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="NRI Institute"
          navItems={navItems.map((item) => ({
            name: item.name,
            id: item.id,
          }))}
          button={{ text: "Call for Admission", href: "tel:09391878787" }}
          animateOnLoad={true}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Build Your Future with Innovation and Excellence"
          description="Autonomous Engineering College in Vijayawada with Advanced Labs and Industry-Focused Learning"
          tag="Engineering Excellence"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          background={{ variant: "aurora" }}
          buttons={[
            { text: "Apply Now", href: "/admissions" },
            { text: "Call: 09391878787", href: "tel:09391878787" },
          ]}
          buttonAnimation="slide-up"
          mediaItems={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/water-dwelling_1127-3260.jpg",
              imageAlt: "NRI Institute Campus Building",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/building-lake_1127-3460.jpg",
              imageAlt: "Modern Campus Infrastructure",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/empty-medical-neuroscience-laboratory-with-nobody-it-with-professional-equipment-ready-neurological-experiment-lab-with-brain-scan-monitor-medicine-industry-with-high-tech-facility_482257-29957.jpg",
              imageAlt: "Advanced Laboratory Facilities",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-good-looking-young-dark-skinned-perspective-entrepreneur-looking-digital-tablet-looking-information-about-team-project-friend-meeting-library_176420-8281.jpg",
              imageAlt: "Student Learning Environment",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/data-center-engineering-team-working-together-using-ai-visualization_482257-126733.jpg",
              imageAlt: "State-of-the-Art Technology Labs",
            },
          ]}
          ariaLabel="Hero section - NRI Institute main landing"
        />
      </div>

      <div id="about" data-section="about">
        <TextSplitAbout
          title="About NRI Institute of Technology"
          description={[
            "NRI Institute of Technology is a premier autonomous engineering college located in Vijayawada, Andhra Pradesh. Established with a vision to nurture technical excellence and innovation, we provide world-class education combining theoretical knowledge with practical skills.",
            "Our experienced faculty members bring industry expertise to the classroom, ensuring students receive relevant, contemporary education. We are committed to creating an environment where students can develop critical thinking, leadership qualities, and technical proficiency.",
            "With state-of-the-art infrastructure, modern laboratories, and industry partnerships, we prepare our students for successful careers in emerging technologies including AI, Data Science, and full-stack development.",
          ]}
          buttons={[
            { text: "Learn More", href: "/about" },
            { text: "Download Brochure", href: "#" },
          ]}
          showBorder={true}
          useInvertedBackground={false}
          buttonAnimation="blur-reveal"
        />
      </div>

      <div id="courses" data-section="courses">
        <FeatureCardOne
          title="Engineering Programs"
          description="Explore our comprehensive range of B.Tech programs designed with industry relevance and academic rigor"
          tag="Departments"
          tagIcon={BookOpen}
          tagAnimation="slide-up"
          textboxLayout="default"
          features={[
            {
              title: "Computer Science Engineering",
              description: "Master programming, software development, and emerging technologies with hands-on lab experience and industry collaborations.",
              imageSrc: "http://img.b2bpic.net/free-photo/it-specialist-workstation-programming-monitor-writing-lines-code_482257-118997.jpg",
              imageAlt: "Computer Science Engineering",
            },
            {
              title: "Artificial Intelligence & Data Science",
              description: "Specialized program focusing on machine learning, deep learning, and data analytics for next-generation tech careers.",
              imageSrc: "http://img.b2bpic.net/free-photo/data-center-engineer-using-artificial-intelligence-visualization-tools_482257-126828.jpg",
              imageAlt: "AI and Data Science Program",
            },
            {
              title: "Electronics & Communication",
              description: "Learn embedded systems, digital signal processing, and telecommunications with cutting-edge laboratory facilities.",
              imageSrc: "http://img.b2bpic.net/free-photo/transistors_1160-25.jpg",
              imageAlt: "Electronics and Communication",
            },
            {
              title: "Mechanical Engineering",
              description: "Study thermal systems, CAD design, and manufacturing processes with access to advanced engineering workshops.",
              imageSrc: "http://img.b2bpic.net/free-photo/photo-automobile-production-line-welding-car-body-modern-car-assembly-plant-auto-industry-male-worker-orange-protective-helmet_645730-108.jpg",
              imageAlt: "Mechanical Engineering",
            },
            {
              title: "Civil Engineering",
              description: "Develop expertise in structural design, construction management, and sustainable infrastructure development.",
              imageSrc: "http://img.b2bpic.net/free-photo/discussing-blueprint_1098-13779.jpg",
              imageAlt: "Civil Engineering",
            },
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          useInvertedBackground={false}
          ariaLabel="Engineering courses and departments section"
        />
      </div>

      <div id="infrastructure" data-section="infrastructure">
        <FeatureCardOne
          title="Campus & Infrastructure"
          description="State-of-the-art facilities designed to support world-class education and student development"
          tag="Facilities"
          tagIcon={Building2}
          tagAnimation="slide-up"
          textboxLayout="default"
          features={[
            {
              title: "Smart Classrooms",
              description: "Interactive learning spaces equipped with advanced audio-visual technology and collaborative learning tools.",
              imageSrc: "http://img.b2bpic.net/free-photo/woman-standing-children-sitting-desks_259150-60228.jpg",
              imageAlt: "Modern Smart Classroom",
            },
            {
              title: "Advanced Computer Labs",
              description: "Multiple specialized labs with latest software, programming tools, and high-performance computing infrastructure.",
              imageSrc: "http://img.b2bpic.net/free-photo/medical-themeobservation-room-with-computer-tomograph-group-doctors-meeting-mri-office-diagnostic-center-hospital_627829-6526.jpg",
              imageAlt: "Advanced Computer Laboratories",
            },
            {
              title: "Innovation Hub",
              description: "Dedicated innovation center for student projects, startups, and research initiatives with industry mentorship.",
              imageSrc: "http://img.b2bpic.net/free-photo/furious-displeased-director-throwing-paperwork-her-business-staff_482257-118739.jpg",
              imageAlt: "Innovation and Entrepreneurship Hub",
            },
            {
              title: "Central Library",
              description: "Comprehensive learning resource center with digital database access, quiet study zones, and collaborative spaces.",
              imageSrc: "http://img.b2bpic.net/free-photo/elegant-reading-room-with-mid-century-modern-furniture_23-2152001408.jpg",
              imageAlt: "Central Library Facility",
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="blur-reveal"
          useInvertedBackground={false}
          ariaLabel="Campus facilities and infrastructure section"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTen
          title="Placements & Achievements"
          description="Our students secure positions at leading companies across India and globally with competitive salary packages"
          tag="Success Stories"
          tagIcon={Award}
          tagAnimation="slide-up"
          textboxLayout="default"
          metrics={[
            {
              id: "1",
              title: "98% Placement Rate",
              subtitle: "Students successfully placed in top companies",
              category: "Placements",
              value: "2024 Batch",
            },
            {
              id: "2",
              title: "Average CTC - 8 LPA",
              subtitle: "Competitive salary packages offered",
              category: "Packages",
              value: "Starting Salary",
            },
            {
              id: "3",
              title: "Top Recruiters",
              subtitle: "Microsoft, Google, Infosys, TCS, Cognizant",
              category: "Industry",
              value: "Elite Partners",
            },
            {
              id: "4",
              title: "Highest CTC",
              subtitle: "Premium packages for exceptional performers",
              category: "Achievement",
              value: "18+ LPA",
            },
          ]}
          animationType="scale-rotate"
          useInvertedBackground={false}
          ariaLabel="Placements and achievements metrics section"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="Student Testimonials"
          description="Hear from our students about their transformative experiences at NRI Institute"
          tag="Success Stories"
          tagIcon={MessageSquare}
          tagAnimation="slide-up"
          textboxLayout="default"
          showRating={true}
          testimonials={[
            {
              id: "1",
              name: "Arjun Sharma",
              handle: "@arjun_sharma",
              testimonial: "The curriculum at NRI Institute prepared me exceptionally well for the tech industry. My faculty mentors guided me through real-world projects that directly impacted my career placement at Microsoft.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/cheerful-young-man-holding-folder-outdoor_74855-2121.jpg",
              imageAlt: "Arjun Sharma",
            },
            {
              id: "2",
              name: "Priya Reddy",
              handle: "@priya_reddy",
              testimonial: "The AI and Data Science program at NRI is comprehensive and practical. I learned not just theory but also how to apply machine learning in real business scenarios. Highly recommended!",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-smiling-pretty-girl-plaid-shirt-posing_114579-70643.jpg",
              imageAlt: "Priya Reddy",
            },
            {
              id: "3",
              name: "Rahul Verma",
              handle: "@rahul_verma",
              testimonial: "Outstanding faculty support, modern labs, and industry connections made my four years at NRI absolutely valuable. I secured placement at TCS with a lucrative package.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-young-man_1268-21877.jpg",
              imageAlt: "Rahul Verma",
            },
            {
              id: "4",
              name: "Neha Patel",
              handle: "@neha_patel",
              testimonial: "The innovation hub at NRI helped me launch my startup idea. The mentorship and resources provided were instrumental in my entrepreneurial journey.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/blonde-young-woman-smiling-portrait-wearing-blue-gentle-shirt-building_158595-6612.jpg",
              imageAlt: "Neha Patel",
            },
            {
              id: "5",
              name: "Vikram Singh",
              handle: "@vikram_singh",
              testimonial: "NRI's infrastructure and faculty expertise are world-class. My internship opportunities and industry connections led to multiple job offers from top tech companies.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-young-man_1268-21877.jpg",
              imageAlt: "Vikram Singh",
            },
            {
              id: "6",
              name: "Anjali Gupta",
              handle: "@anjali_gupta",
              testimonial: "The student life at NRI is vibrant with tech fests, hackathons, and clubs. Alongside rigorous academics, I developed leadership skills and lifelong friendships.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-smiling-pretty-girl-plaid-shirt-posing_114579-70643.jpg",
              imageAlt: "Anjali Gupta",
            },
          ]}
          animationType="slide-up"
          useInvertedBackground={false}
          ariaLabel="Student testimonials and reviews section"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/hotel_1127-4042.jpg"
          imageAlt="NRI Institute Campus Footer"
          logoText="NRI Institute of Technology"
          copyrightText="© 2025 NRI Institute of Technology. All rights reserved."
          columns={[
            {
              title: "Quick Links",
              items: [
                { label: "Home", href: "/" },
                { label: "About Us", href: "/about" },
                { label: "Courses", href: "/courses" },
                { label: "Placements", href: "/placements" },
              ],
            },
            {
              title: "Admissions",
              items: [
                { label: "Apply Now", href: "/admissions" },
                { label: "Eligibility", href: "/admissions" },
                { label: "Fee Structure", href: "/admissions" },
                { label: "Download Brochure", href: "#" },
              ],
            },
            {
              title: "Contact",
              items: [
                { label: "Phone: 09391878787", href: "tel:09391878787" },
                { label: "Email: admissions@nri.edu", href: "mailto:admissions@nri.edu" },
                { label: "Vijayawada, Andhra Pradesh", href: "#" },
                { label: "Privacy Policy", href: "#" },
              ],
            },
          ]}
          ariaLabel="Site footer with navigation and contact information"
        />
      </div>
    </ThemeProvider>
  );
}