"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import FooterBase from '@/components/sections/footer/FooterBase';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import TextAbout from '@/components/sections/about/TextAbout';
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import { Sparkles, Users, Calendar, Code, Heart, MessageSquare } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "About", id: "/about" },
  { name: "Contact", id: "/contact" },
];

const footerColumns = [
    {
        title: "Explore",
        items: [
            { label: "Home", href: "/" },
            { label: "About", href: "/about" },
            { label: "Contact", href: "/contact" },
        ],
    },
    {
        title: "Connect",
        items: [
            { label: "Discord Server", href: "#" },
            { label: "LinkedIn Group", href: "#" },
            { label: "Instagram", href: "#" },
            { label: "YouTube Channel", href: "#" },
        ],
    },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="small"
      sizing="medium"
      background="noise"
      cardStyle="subtle-shadow"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={{ text: "Join Us", href: "/contact" }}
          brandName="TechClub"
        />
      </div>

      <div id="hero-section" data-section="hero-section">
        <HeroBillboard
          title="Welcome to TechTrove - Where Innovation Meets Community"
          description="Join our vibrant computer club dedicated to fostering creativity, collaboration, and cutting-edge tech skills for students and enthusiasts alike."
          background={{ variant: 'radial-gradient' }}
          tag="Join Our Community"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[{ text: "Explore Events", href: "/about" }, { text: "Learn More", href: "/about" }]}
          buttonAnimation="slide-up"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/young-coworkers-working-computer-office_329181-20147.jpg", alt: "Club member" },
            { src: "http://img.b2bpic.net/free-photo/workers-looking-monthly-statistics_329181-12025.jpg", alt: "Club member" },
            { src: "http://img.b2bpic.net/free-photo/system-engineers-celebrating-successful-code-compiling-doing-high-five-hand-gesture-with-colleague-coder-analyzing-algorithm-multiple-screens-takes-off-glasses-congratulates-coworker_482257-41855.jpg", alt: "Club member" }
          ]}
          avatarText="150+ Members"
          imageSrc="http://img.b2bpic.net/free-photo/young-adults-meeting-up-study_23-2149064521.jpg"
          imageAlt="TechTrove club members collaborating on a project"
          mediaAnimation="slide-up"
          marqueeItems={[{ type: 'text', text: "Hackathons" }, { type: 'text', text: "Workshops" }, { type: 'text', text: "Projects" }, { type: 'text', text: "Networking" }]}
          marqueeSpeed={40}
          showMarqueeCard={true}
          ariaLabel="Hero section showcasing TechTrove club"
        />
      </div>

      <div id="about-section" data-section="about-section">
        <TextAbout
          tag="About Us"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          title="Empowering the Next Generation of Tech Innovators"
          buttons={[{ text: "Join Our Community", href: "/contact" }, { text: "Explore Events", href: "/about" }]}
          buttonAnimation="blur-reveal"
          useInvertedBackground={true}
        />
      </div>

      <div id="features-section" data-section="features-section">
        <FeatureCardTwelve
          features={[
            { id: "feature-1", label: "Weekly Workshops", title: "Master New Technologies", items: ["Hands-on coding sessions with industry experts", "Learn cutting-edge programming languages", "Build real projects with peers"], buttons: [{ text: "View Schedule", href: "/about" }] },
            { id: "feature-2", label: "Tech Talks", title: "Expert Insights", items: ["Monthly guest lectures from tech professionals", "Latest trends in software development", "Career advice and networking opportunities"], buttons: [{ text: "See Past Talks", href: "/about" }] },
            { id: "feature-3", label: "Resource Hub", title: "Learning Materials", items: ["Curated tutorials and documentation", "Open-source project contributions", "Study groups and collaboration tools"], buttons: [{ text: "Explore Resources", href: "/about" }] }
          ]}
          animationType="slide-up"
          title="What We Offer"
          description="Join our dynamic community of tech enthusiasts and students. We provide hands-on learning experiences, expert guidance, and collaborative opportunities to help you grow your skills and build meaningful connections."
          textboxLayout="inline-image"
          useInvertedBackground={false}
          tag="Community Driven"
          tagIcon={Users}
          tagAnimation="blur-reveal"
          buttons={[{ text: "Join Us Today", href: "/contact" }]}
          buttonAnimation="opacity"
          ariaLabel="Features section highlighting club offerings"
        />
      </div>
      
      <div id="metrics-section" data-section="metrics-section">
        <MetricCardOne
            title="Our Club Impact"
            description="See how our computer club is making a difference in the tech community and student engagement."
            gridVariant="bento-grid"
            animationType="slide-up"
            textboxLayout="inline-image"
            useInvertedBackground={true}
            metrics={[
                { id: "members", value: "250+", title: "Active Members", description: "Students passionate about technology and innovation", icon: Users },
                { id: "events", value: "50+", title: "Events Hosted", description: "Workshops, hackathons, and tech meetups", icon: Calendar },
                { id: "projects", value: "30+", title: "Projects Completed", description: "From apps to robotics, we build it all", icon: Code },
                { id: "mentorship", value: "100%", title: "Mentorship Program", description: "Peer-to-peer learning and guidance", icon: Heart }
            ]}
        />
      </div>

      <div id="testimonials-section" data-section="testimonials-section">
        <TestimonialCardOne
          testimonials={[
            { id: "testimonial-1", name: "Alex Morgan", role: "Club Member", company: "Tech Enthusiast", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/cute-young-woman-student-business-lady-showing-thumbs-up-well-done-sitting-outdoor-cafe-terrace-with-laptop-wearing-pink-smart-clothes_197531-3122.jpg", imageAlt: "Alex Morgan, Club Member" },
            { id: "testimonial-2", name: "Jamie Chen", role: "Event Organizer", company: "Computer Science Student", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/colleagues-clapping-hands-celebrating-successful-presentation-boardroom-team-business-people-receiving-applause-from-coworkers-feeling-satisfied-about-success-accomplishment_482257-29947.jpg", imageAlt: "Jamie Chen, Event Organizer" },
            { id: "testimonial-3", name: "Taylor Kim", role: "Resource Contributor", company: "Software Developer", rating: 4, imageSrc: "http://img.b2bpic.net/free-photo/side-view-friends-winning-videogame_23-2149349984.jpg", imageAlt: "Taylor Kim, Resource Contributor" }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          title="What Our Members Say"
          description="Hear from our active members about their experiences and the value they've gained from being part of our computer club."
          tag="Community Voices"
          tagIcon={MessageSquare}
          tagAnimation="blur-reveal"
          buttons={[{ text: "View All Reviews", href: "#" }]}
          buttonAnimation="opacity"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>
      
      <div id="footer-section" data-section="footer-section">
        <FooterBase
            columns={footerColumns}
            logoText="TechClub Hub"
            copyrightText="© 2025 TechClub Hub | Empowering Students Through Technology"
            ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}