"use client";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import AboutMetric from '@/components/sections/about/AboutMetric';
import TeamCardSix from '@/components/sections/team/TeamCardSix';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterCard from '@/components/sections/footer/FooterCard';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import { Trophy, Users, Award, Zap, Heart, Facebook, Twitter, Instagram, Youtube } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeLargeTitles"
      background="floatingGradient"
      cardStyle="elevated"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple 
          brandName="Family Lovers"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Team", id: "/team" },
            { name: "Players", id: "/players" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard 
          logoText="Family Lovers"
          description="Unite with Alabama Basketball. Where passion meets excellence, family comes first. Join our community of dedicated fans celebrating the crimson legacy."
          buttons={[
            { text: "Join The Family", href: "/contact" },
            { text: "Explore Team" }
          ]}
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-photo/basketball-players-big-professional-arena-game_654080-388.jpg"
          imageAlt="Alabama basketball court arena"
          mediaAnimation="blur-reveal"
          frameStyle="card"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric 
          title="Building a Basketball Legacy with Heart and Dedication"
          metrics={[
            { icon: Trophy, label: "Championships Won", value: "28+" },
            { icon: Users, label: "Dedicated Fans", value: "100K+" },
            { icon: Award, label: "Elite Players", value: "150+" },
            { icon: Zap, label: "Years of Excellence", value: "80+" }
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="team" data-section="team">
        <TeamCardSix 
          title="Meet Our Roster"
          description="The heart and soul of Alabama Basketball"
          tag="Players"
          tagIcon={Users}
          members={[
            {
              id: "1",
              name: "Marcus Davis",
              role: "Point Guard",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-african-american-basketball-player-sportswear-isolated-dark-background_613910-19475.jpg",
              imageAlt: "Marcus Davis"
            },
            {
              id: "2",
              name: "Jordan Wright", 
              role: "Shooting Guard",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-afro-american-sportsman-basketball-player-sportswear-with-ball-dark-background_613910-6537.jpg",
              imageAlt: "Jordan Wright"
            },
            {
              id: "3",
              name: "DeShawn Thompson",
              role: "Small Forward", 
              imageSrc: "https://img.b2bpic.net/free-photo/happy-black-basketball-player-green-white-outfit-holding-vintage-brown-basketball-dynamic-pose-white_346278-1681.jpg",
              imageAlt: "DeShawn Thompson"
            },
            {
              id: "4",
              name: "Brandon Miller",
              role: "Power Forward",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-afro-american-sportsman-basketball-player-sportswear-with-ball-dark-background_613910-6460.jpg",
              imageAlt: "Brandon Miller"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix 
          title="Fan Stories"
          description="What our family community means to devoted supporters"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              handle: "Lifelong Supporter",
              testimonial: "Being part of the Alabama basketball family is more than fandom—it's a way of life. The passion and dedication of this program inspire me every single day.",
              imageSrc: "https://img.b2bpic.net/free-photo/full-length-portrait-happy-cheerful-muscular-black-athlete-holding-old-leather-basketball-wearing-green-white-sportswear-against-white-wall-wooden-floor_346278-1678.jpg",
              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",
              name: "Robert Chen",
              handle: "Season Ticket Holder", 
              testimonial: "I've supported Alabama basketball for over 30 years. The heart these players show and the community we've built together is unmatched. This is family.",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-african-american-basketball-player-sportswear-isolated-dark-background_613910-19489.jpg",
              imageAlt: "Robert Chen"
            },
            {
              id: "3",
              name: "Jessica Taylor",
              handle: "Young Fan",
              testimonial: "Growing up watching Alabama basketball taught me what teamwork and excellence really mean. I'm proud to be part of this amazing family legacy.",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-bearded-black-man-holds-basket-ball_613910-8519.jpg",
              imageAlt: "Jessica Taylor"
            },
            {
              id: "4", 
              name: "Coach David Martinez",
              handle: "Youth Program Director",
              testimonial: "The Alabama basketball family extends beyond the court. We're building character, discipline, and dreams in our young athletes every single day.",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-afro-american-sportsman-basketball-player-sportswear-with-ball-dark-background_613910-6480.jpg",
              imageAlt: "Coach David Martinez"
            },
            {
              id: "5",
              name: "Emily Anderson",
              handle: "Community Member",
              testimonial: "Alabama basketball brought our community together. It's a source of pride, unity, and inspiration for everyone who loves this program.",
              imageSrc: "https://img.b2bpic.net/free-photo/full-body-portrait-black-professional-basketball-player-action-basketball-field_613910-7801.jpg",
              imageAlt: "Emily Anderson"
            },
            {
              id: "6",
              name: "Michael Johnson", 
              handle: "Alumni",
              testimonial: "As an alumnus, watching Alabama basketball represent our values with such excellence and heart makes me incredibly proud. This is what family looks like.",
              imageSrc: "https://img.b2bpic.net/free-photo/studio-portrait-black-basketball-player-holds-ball-grey-background_613910-8394.jpg",
              imageAlt: "Michael Johnson"
            }
          ]}
          speed={40}
        />
      </div>

      <div id="social-proof" data-section="social-proof">
        <SocialProofOne 
          title="Trusted Partners"
          description="Alabama basketball partners with leading brands and organizations"
          tag="Partners"
          tagIcon={Award}
          textboxLayout="default"
          useInvertedBackground={false}
          names={["Nike", "Adidas", "Under Armour", "ESPN", "Turner Sports", "SEC Conference", "Alabama Crimson"]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="contact-cta" data-section="contact-cta">
        <ContactCTA 
          tag="Get Involved"
          tagIcon={Heart}
          title="Ready to Join the Family?"
          description="Whether you're a passionate fan, aspiring player, or community member, there's a place for you in the Alabama basketball family. Let's connect and celebrate this incredible legacy together."
          buttons={[
            { text: "Contact Us", href: "/contact" },
            { text: "Learn More" }
          ]}
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={true}
        />
      </div>

      <FooterCard 
        logoText="Family Lovers"
        copyrightText="© 2025 Alabama Basketball Family Lovers. All rights reserved."
        socialLinks={[
          { icon: Facebook, href: "https://facebook.com/alabamabasketball", ariaLabel: "Facebook" },
          { icon: Twitter, href: "https://twitter.com/alabamahoops", ariaLabel: "Twitter" },
          { icon: Instagram, href: "https://instagram.com/alabamahoops", ariaLabel: "Instagram" },
          { icon: Youtube, href: "https://youtube.com/alabamabasketball", ariaLabel: "YouTube" }
        ]}
      />
    </ThemeProvider>
  );
}