"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 TextAbout from '@/components/sections/about/TextAbout';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import { Sparkles, 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 ContactPage() {
  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="about-section-intro" data-section="about-section-intro">
        <TextAbout
          tag="Get Involved"
          tagIcon={Sparkles}
          title="Join a Community of Innovators and Builders"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-section" data-section="contact-section">
        <ContactSplitForm
          title="Get In Touch With Our Tech Community"
          description="Have questions about our club activities, events, or resources? Reach out to us and join our vibrant community of tech enthusiasts!"
          inputs={[
            { name: "name", type: "text", placeholder: "Your Full Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email Address", required: true },
            { name: "subject", type: "text", placeholder: "Subject", required: false }
          ]}
          textarea={{ name: "message", placeholder: "Your Message", rows: 5, required: true }}
          useInvertedBackground={true}
          imageSrc="http://img.b2bpic.net/free-photo/successful-african-american-employee-manages-financial-planning_482257-122600.jpg"
          imageAlt="Students collaborating on a computer project in a tech club setting"
          mediaAnimation="slide-up"
          mediaPosition="left"
          buttonText="Send Message"
          ariaLabel="Contact section"
          className="py-16"
          containerClassName="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"
          contentClassName="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center"
          formCardClassName="bg-white rounded-xl shadow-lg p-8"
          titleClassName="text-3xl font-bold text-gray-900 mb-4"
          descriptionClassName="text-lg text-gray-600 mb-6"
          buttonClassName="bg-yellow-500 hover:bg-yellow-600 text-white font-semibold py-3 px-6 rounded-lg transition duration-300 ease-in-out transform hover:scale-105"
          buttonTextClassName="font-medium"
          mediaWrapperClassName="relative overflow-hidden rounded-xl"
          mediaClassName="w-full h-full object-cover"
        />
      </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?_wi=3", 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?_wi=3", 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?_wi=3", 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"
          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>
  );
}