"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import Link from 'next/link';
import { Sparkles, CheckCircle, ArrowRight, Brain, Code, BookOpen, Users, Trophy, TrendingUp, Shield } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="medium"
      sizing="mediumLargeSizeLargeTitles"
      background="floatingGradient"
      cardStyle="outline"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          navItems={[
            { name: "Home", id: "/" },
            { name: "About", id: "/about" },
            { name: "Events", id: "/events" },
            { name: "Projects", id: "/projects" },
            { name: "Join", id: "/join" },
            { name: "Resources", id: "/resources" },
            { name: "Contact", id: "/contact" },
            { name: "Leadership", id: "/leadership" }
          ]}
          brandName="Computer Club"
          button={{ text: "Join Now", href: "/join" }}
        />
      </div>

      <div id="hero-section" data-section="hero-section">
        <HeroCarouselLogo
          logoText="Computer Club"
          description="Join our vibrant community of tech enthusiasts. Explore cutting-edge projects, attend workshops, and connect with fellow innovators."
          buttons={[
            { text: "Join Us", href: "/join", dataWebildId: "hero_join_btn" },
            { text: "View Events", href: "/events", dataWebildId: "hero_events_btn" }
          ]}
          slides={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/group-young-people-doing-experiments-robotics-laboratory-girls-protective-glasses_1268-24389.jpg"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/three-students-working-together-laptops_23-2152025161.jpg"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/group-people-discussing-business-issues_53876-22915.jpg"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/abstract-luxury-gradient-blue-background_53876-120942.jpg"
            }
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
          ariaLabel="Computer Club hero carousel section"
        />
      </div>

      <div id="about-section" data-section="about-section">
        <TextSplitAbout
          title="About Our Tech Club"
          description={[
            "We're a vibrant community of students passionate about technology, innovation, and collaboration. Our club provides a welcoming space for learners of all levels to explore coding, robotics, cybersecurity, and emerging tech trends.",
            "Whether you're a beginner curious about your first line of code or an experienced developer looking to share knowledge, we offer hands-on workshops, mentorship programs, and exciting projects that bring ideas to life."
          ]}
          buttons={[
            { text: "Join Us", href: "/join" },
            { text: "View Projects", href: "/projects" }
          ]}
          buttonAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="events-section" data-section="events-section">
        <FeatureCardTwentyFive
          title="Upcoming Tech Events"
          description="Join our community for hands-on workshops, guest lectures, and networking opportunities. Stay updated with our calendar of events designed to spark curiosity and build skills."
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              title: "AI Workshop Series",
              description: "Explore machine learning fundamentals with interactive demos and real-world applications. Perfect for beginners and intermediate learners.",
              icon: Brain,
              mediaItems: [
                { imageSrc: "http://img.b2bpic.net/free-photo/digital-environment-scene_23-2151873107.jpg?_wi=1", imageAlt: "Participants working on AI projects" },
                { imageSrc: "http://img.b2bpic.net/free-photo/group-young-people-doing-experiments-robotics-laboratory-girls-protective-glasses_1268-24389.jpg?_wi=2", imageAlt: "Instructor presenting AI concepts" }
              ]
            },
            {
              title: "Hackathon 2024",
              description: "Showcase your coding prowess in our annual hackathon. Build innovative solutions with mentors and win exciting prizes.",
              icon: Code,
              mediaItems: [
                { imageSrc: "http://img.b2bpic.net/free-photo/team-software-engineers-doing-brainstorming-office_482257-123976.jpg?_wi=1", imageAlt: "Team collaborating on a hackathon project" },
                { imageSrc: "http://img.b2bpic.net/free-photo/digital-environment-scene_23-2151873107.jpg?_wi=2", imageAlt: "Judges reviewing hackathon submissions" }
              ]
            },
            {
              title: "Cybersecurity Seminar",
              description: "Learn essential security practices from industry experts. Gain insights into protecting digital assets and identifying threats.",
              icon: Shield,
              mediaItems: [
                { imageSrc: "http://img.b2bpic.net/free-photo/group-young-people-casual-clothes-working-modern-office_146671-16433.jpg", imageAlt: "Security expert speaking at seminar" },
                { imageSrc: "http://img.b2bpic.net/free-photo/computer-scientist-office-receiving-critical-error-warning-while-writing-api-code-it-specialist_482257-136313.jpg", imageAlt: "Audience taking notes during cybersecurity session" }
              ]
            }
          ]}
          buttons={[
            { text: "View Full Calendar", href: "/events" }
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="projects-section" data-section="projects-section">
        <MetricCardOne
          metrics={[
            {
              id: "metric-1",
              value: "50+",
              title: "Active Projects",
              description: "From web apps to AI models, our members build innovative solutions.",
              icon: Code
            },
            {
              id: "metric-2",
              value: "120+",
              title: "Club Members",
              description: "Diverse talents united by passion for technology and creativity.",
              icon: Users
            },
            {
              id: "metric-3",
              value: "24",
              title: "Workshops Held",
              description: "Hands-on learning experiences covering cutting-edge tech trends.",
              icon: BookOpen
            },
            {
              id: "metric-4",
              value: "8",
              title: "Hackathons Won",
              description: "Recognition for our team's ingenuity and problem-solving skills.",
              icon: Trophy
            }
          ]}
          gridVariant="bento-grid"
          animationType="slide-up"
          title="Our Impact"
          description="Discover how our club drives innovation and empowers tech enthusiasts through collaborative projects and learning opportunities."
          tag="Tech Innovation"
          tagIcon={Sparkles}
          tagAnimation="blur-reveal"
          buttons={[
            { text: "View All Projects", href: "/projects" }
          ]}
          buttonAnimation="opacity"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="membership-section" data-section="membership-section">
        <TestimonialCardOne
          testimonials={[
            {
              id: "testimonial-1",
              name: "Alex Morgan",
              role: "Senior Developer",
              company: "Tech Innovations Inc.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/colleagues-working-together-while-sitting-cafe_273609-13272.jpg?_wi=1",
              imageAlt: "Alex Morgan, Senior Developer at Tech Innovations Inc."
            },
            {
              id: "testimonial-2",
              name: "Jordan Lee",
              role: "UI/UX Designer",
              company: "Creative Minds Studio",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/jolly-venture-company-employees-delighted-after-securing-funding-from-investors_482257-125222.jpg?_wi=1",
              imageAlt: "Jordan Lee, UI/UX Designer at Creative Minds Studio"
            },
            {
              id: "testimonial-3",
              name: "Taylor Kim",
              role: "Data Scientist",
              company: "Data Insights Co.",
              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: "Taylor Kim, Data Scientist at Data Insights Co."
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          title="What Our Members Say"
          description="Hear from our active members about their experiences and growth within our vibrant tech community."
          tag="Community Stories"
          tagIcon={Users}
          tagAnimation="slide-up"
          buttons={[
            { text: "Join Our Community", href: "/contact" }
          ]}
          buttonAnimation="opacity"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Explore",
            items: [
              { label: "Home", href: "/" },
              { label: "About", href: "/about" },
              { label: "Events", href: "/events" },
              { label: "Projects", href: "/projects" }
            ]
          },
          {
            title: "Resources",
            items: [
              { label: "Learning Materials", href: "/resources" },
              { label: "Join", href: "/join" },
              { label: "Leadership", href: "/leadership" },
              { label: "Community Guidelines", href: "#" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Join Our Discord", href: "#" },
              { label: "Follow on Social Media", href: "#" },
              { label: "Newsletter Signup", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2023 TechConnect Club. All rights reserved."
        bottomRightText="Designed with ❤️ for students by students"
        ariaLabel="Site footer"
      />
    </ThemeProvider>
  );
}