"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroBillboardRotatedCarousel from "@/components/sections/hero/HeroBillboardRotatedCarousel";
import AboutMetric from "@/components/sections/about/AboutMetric";
import FeatureCardThree from "@/components/sections/feature/featureCardThree/FeatureCardThree";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import ContactText from "@/components/sections/contact/ContactText";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import Link from "next/link";
import { Zap, Users, TrendingUp, Award, Target, BookOpen, Heart } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Start Here", id: "/start-here" },
    { name: "Challenge", id: "/7-day-challenge" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" },
  ];

  const footerColumns = [
    {
      title: "Platform",
      items: [
        { label: "Start Here", href: "/start-here" },
        { label: "7-Day Challenge", href: "/7-day-challenge" },
        { label: "Blog", href: "/blog" },
        { label: "Resources", href: "/resources" },
      ],
    },
    {
      title: "Community",
      items: [
        { label: "Discord", href: "https://discord.com" },
        { label: "Twitter", href: "https://twitter.com" },
        { label: "YouTube", href: "https://youtube.com" },
        { label: "Newsletter", href: "/7-day-challenge" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About", href: "/about" },
        { label: "Contact", href: "/contact" },
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="medium"
      background="aurora"
      cardStyle="soft-shadow"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={{ text: "Join The List", href: "/7-day-challenge" }}
          brandName="Peak Mindset"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Discipline Over Motivation"
          description="Build mental toughness, financial growth, and unstoppable consistency. This is not for the lazy. This is for builders."
          tag="The Movement"
          tagIcon={Zap}
          background={{ variant: "aurora" }}
          buttons={[
            { text: "Start Here", href: "/start-here" },
            { text: "Join The Discipline List", href: "/7-day-challenge" },
          ]}
          carouselItems={[
            {
              id: "1",
              imageSrc: "http://img.b2bpic.net/free-photo/young-sportsman-exercising-with-barbell-cross-training-gym_637285-2501.jpg",
              imageAlt: "discipline mindset motivation strength focus",
            },
            {
              id: "2",
              imageSrc: "http://img.b2bpic.net/free-photo/triumphant-hiker-stands-mountain-peak-with-his-arms-raised-victory_482257-119979.jpg",
              imageAlt: "mountain achievement peak success determination",
            },
            {
              id: "3",
              imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-journal-desk_23-2148210414.jpg",
              imageAlt: "guide learning strategy planning notebook",
            },
            {
              id: "4",
              imageSrc: "http://img.b2bpic.net/free-photo/seven-number-day-date-time-character-symbol-concept_53876-31191.jpg",
              imageAlt: "challenge training daily commitment progress",
            },
            {
              id: "5",
              imageSrc: "http://img.b2bpic.net/free-photo/business-colleagues-giving-high-five_74855-1134.jpg",
              imageAlt: "success transformation before-after achievement proud",
            },
            {
              id: "6",
              imageSrc: "http://img.b2bpic.net/free-photo/friends-fitness-training-together-outdoors-living-active-healthy_1328-2963.jpg",
              imageAlt: "confidence strength discipline mindset growth",
            },
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="mission" data-section="mission">
        <AboutMetric
          title="The World Is Distracted. Average Is Normalized. Peak Mindset Exists To Build Disciplined Individuals."
          metrics={[
            { icon: Users, label: "Community Members", value: "10,000+" },
            { icon: TrendingUp, label: "Consistency Rate", value: "87%" },
            { icon: Award, label: "Transformation Stories", value: "2,847" },
            { icon: Target, label: "Goals Achieved", value: "15K+" },
          ]}
          useInvertedBackground={false}
        />
      </div>

      <div id="start-here" data-section="start-here">
        <FeatureCardThree
          title="Start Here"
          description="Most self-improvement sites overwhelm people. We guide you step by step."
          tag="Beginner Funnel"
          tagIcon={BookOpen}
          features={[
            {
              id: "01",
              title: "5-Minute Discipline Starter Guide",
              description: "Free PDF guide to begin your transformation. Enter your email to download.",
              imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-journal-desk_23-2148210414.jpg",
              imageAlt: "guide learning strategy planning notebook",
            },
            {
              id: "02",
              title: "How to Build Discipline",
              description: "Foundational principles and daily practices that create lasting change.",
              imageSrc: "http://img.b2bpic.net/free-photo/triumphant-hiker-stands-mountain-peak-with-his-arms-raised-victory_482257-119979.jpg",
              imageAlt: "mountain achievement peak success determination",
            },
            {
              id: "03",
              title: "How to Stop Procrastinating",
              description: "Proven strategies to eliminate procrastination and execute immediately.",
              imageSrc: "http://img.b2bpic.net/free-photo/seven-number-day-date-time-character-symbol-concept_53876-31191.jpg",
              imageAlt: "challenge training daily commitment progress",
            },
            {
              id: "04",
              title: "How to Design Your Ideal Week",
              description: "Template and framework for structuring a productive, purposeful week.",
              imageSrc: "http://img.b2bpic.net/free-photo/young-sportsman-exercising-with-barbell-cross-training-gym_637285-2501.jpg",
              imageAlt: "discipline mindset motivation strength focus",
            },
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Peak Mindset By The Numbers"
          description="Real results from real builders committed to discipline."
          metrics={[
            { id: "1", icon: Zap, title: "Daily Active Users", value: "8,500+" },
            { id: "2", icon: Target, title: "Challenge Completion", value: "92%" },
            { id: "3", icon: TrendingUp, title: "Avg Success Rate", value: "4.8★" },
            { id: "4", icon: Award, title: "Years of Impact", value: "5+" },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="Transformations From Our Community"
          description="Hear from disciplined builders who committed to the Peak Mindset"
          tag="Success Stories"
          tagIcon={Heart}
          showRating={true}
          testimonials={[
            {
              id: "1",
              name: "James Martinez",
              handle: "@jm_builds",
              testimonial: "Peak Mindset changed my entire approach to productivity. I went from 2 hours of deep work daily to 6 hours. The framework is simple but powerful.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/business-colleagues-giving-high-five_74855-1134.jpg",
              imageAlt: "success transformation before-after achievement proud",
            },
            {
              id: "2",
              name: "Sarah Chen",
              handle: "@sarah.discipline",
              testimonial: "The 7-day challenge was the kick I needed. Three months later, I've built a morning routine that sticks and my income doubled.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/friends-fitness-training-together-outdoors-living-active-healthy_1328-2963.jpg",
              imageAlt: "confidence strength discipline mindset growth",
            },
            {
              id: "3",
              name: "David Thompson",
              handle: "@davidthmp",
              testimonial: "Not motivational fluff. Pure, actionable discipline principles. This community holds you accountable in the best way possible.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-woman-coffee-shop-celebrating-success-with-her-hands-up_1163-1788.jpg",
              imageAlt: "success habits routine winning dedication",
            },
            {
              id: "4",
              name: "Maya Patel",
              handle: "@maya.wins",
              testimonial: "I joined thinking it was another self-help program. Instead, I found a movement of serious builders committed to excellence.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/mentoring-coaching-tutor-guiding-helping-concept_53876-128048.jpg",
              imageAlt: "mentor coach leadership guide inspire",
            },
            {
              id: "5",
              name: "Alex Rodriguez",
              handle: "@alexmovesmount",
              testimonial: "The discipline principles apply everywhere—business, fitness, relationships. My entire life structure improved in 90 days.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/young-sportsman-exercising-with-barbell-cross-training-gym_637285-2501.jpg",
              imageAlt: "discipline mindset motivation strength focus",
            },
            {
              id: "6",
              name: "Emma Wilson",
              handle: "@emmawins22",
              testimonial: "Peak Mindset isn't just about motivation removal. It's about building unshakeable systems that work whether you feel like it or not.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/triumphant-hiker-stands-mountain-peak-with-his-arms-raised-victory_482257-119979.jpg",
              imageAlt: "mountain achievement peak success determination",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="challenge" data-section="challenge">
        <ContactText
          text="Join 10,000+ disciplined builders taking the 7-Day Discipline Challenge. Get daily tasks delivered to your inbox. Build authority, trust, and community."
          animationType="reveal-blur"
          background={{ variant: "aurora" }}
          buttons={[
            { text: "Start 7-Day Challenge", href: "/7-day-challenge" },
            { text: "Learn More", href: "/7-day-challenge" },
          ]}
          useInvertedBackground={true}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/business-executives-with-hand-stacked_1170-1782.jpg"
          imageAlt="Peak Mindset Community"
          columns={footerColumns}
          logoText="Peak Mindset"
          copyrightText="© 2025 Peak Mindset | Discipline Over Motivation"
        />
      </div>
    </ThemeProvider>
  );
}