"use client";

import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider';
import { TrendingUp, CheckCircle, Zap, Users, Sparkles, Star, Award, Heart, CreditCard } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="PitchDrive"
          navItems={[
            { name: "Home", id: "/" },
            { name: "About", id: "/about" },
            { name: "Pricing", id: "/pricing" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{ text: "Get Started", href: "/contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Pitch Perfect. Drive Results."
          description="PitchDrive empowers businesses to craft compelling pitches, close deals faster, and drive measurable growth. Transform your sales process with intelligent insights and powerful tools."
          background={{ variant: "glowing-orb" }}
          kpis={[
            { value: "3x", label: "Faster Deal Closure" },
            { value: "95%", label: "Client Success Rate" },
            { value: "500+", label: "Active Users" }
          ]}
          enableKpiAnimation={true}
          tag="Launch Your Pitch"
          tagIcon={Zap}
          imageSrc="https://img.b2bpic.net/free-photo/team-diverse-startup-company-colleague-entrepreneur-meeting-professional-workplace-broadroom_482257-5082.jpg"
          imageAlt="PitchDrive business presentation platform"
          imagePosition="right"
          buttons={[
            { text: "Start Free Trial", href: "/pricing" },
            { text: "Watch Demo", href: "#" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Why Choose PitchDrive"
          description="We're revolutionizing how businesses pitch and win deals"
          tabs={[
            {
              id: "mission",
              label: "Our Mission",
              description: "We believe every business deserves access to world-class pitch and sales enablement tools. Our mission is to democratize success by providing intelligent, easy-to-use solutions that help teams close deals and drive growth."
            },
            {
              id: "approach",
              label: "Our Approach",
              description: "We combine cutting-edge AI technology with deep industry expertise. Our platform analyzes winning pitch patterns, provides real-time coaching, and delivers actionable insights to help your sales team perform at their best."
            },
            {
              id: "impact",
              label: "Our Impact",
              description: "Since launch, PitchDrive has helped thousands of sales professionals close $2B+ in deals. Our clients report 3x faster deal closure, higher conversion rates, and improved customer satisfaction across the board."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/team-diverse-coworkers-modern-office-discuss-their-project-together_93675-133516.jpg"
          imageAlt="PitchDrive team collaboration"
          imagePosition="right"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNine
          title="Powerful Features"
          description="Everything you need to master the pitch and win more deals"
          tag="Capabilities"
          tagIcon={Sparkles}
          features={[
            {
              id: 1,
              title: "AI-Powered Pitch Coach",
              description: "Get real-time feedback on your pitch delivery with our advanced AI coach. Improve confidence, clarity, and persuasion with personalized suggestions and performance metrics.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-vector/task-management-app-interface_23-2148647718.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-vector/task-management-app_23-2148639059.jpg" }
            },
            {
              id: 2,
              title: "Deal Intelligence Dashboard",
              description: "Track every deal in real-time with visual pipeline management. Get predictive insights on deal probability, recommended next steps, and personalized strategies to close faster.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-vector/task-management-app-interface_23-2148647718.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-vector/task-management-app_23-2148639059.jpg" }
            },
            {
              id: 3,
              title: "Collaborative Pitch Library",
              description: "Build and share winning pitch decks with your entire team. Access proven templates, track performance, and continuously improve based on data-driven insights from successful closes.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-vector/task-management-app-interface_23-2148647718.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-vector/task-management-app_23-2148639059.jpg" }
            }
          ]}
          showStepNumbers={true}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Proven Results"
          description="See the impact PitchDrive has on businesses worldwide"
          metrics={[
            {
              id: "1",
              value: "2B",
              title: "in deals closed",
              description: "Total value of deals closed with PitchDrive",
              icon: TrendingUp
            },
            {
              id: "2",
              value: "95%",
              title: "success rate",
              description: "Clients reporting improved win rates",
              icon: CheckCircle
            },
            {
              id: "3",
              value: "3x",
              title: "faster closure",
              description: "Average reduction in sales cycle",
              icon: Zap
            },
            {
              id: "4",
              value: "500+",
              title: "active users",
              description: "Growing community of successful sales teams",
              icon: Users
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Trusted by Sales Leaders"
          description="See how PitchDrive transforms sales teams across industries"
          tag="Customer Success"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",
              title: "Transformed Our Sales Process",
              quote: "PitchDrive completely changed how we approach pitches. The AI coach is incredibly helpful, and our team's win rate has increased dramatically. It's like having a world-class sales consultant in every meeting.",
              name: "Sarah Chen",
              role: "VP of Sales",
              imageSrc: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg",
              imageAlt: "Sarah Chen"
            },
            {
              id: "2",
              title: "Accelerated Our Growth",
              quote: "We've been able to close deals 3x faster since implementing PitchDrive. The deal intelligence dashboard gives us the insights we need to make smart decisions and close faster.",
              name: "Michael Rodriguez",
              role: "Sales Director",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg",
              imageAlt: "Michael Rodriguez"
            },
            {
              id: "3",
              title: "Game Changer for Our Team",
              quote: "The collaboration features and pitch library have made onboarding new sales reps so much faster. Everyone learns from the best practices, and our team's overall performance has improved significantly.",
              name: "Emily Watson",
              role: "Sales Manager",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-bearded-man-white-shirt-jacket-posing-camera-with-broad-smile-isolated-gray_171337-629.jpg",
              imageAlt: "Emily Watson"
            },
            {
              id: "4",
              title: "Essential for Modern Sales",
              quote: "In today's competitive market, PitchDrive is essential. Our sales team now has the tools and insights to compete with anyone. Couldn't imagine going back to our old process.",
              name: "David Park",
              role: "Head of Revenue",
              imageSrc: "https://img.b2bpic.net/free-photo/dark-blonde-bearded-man-crosses-his-hands-chest-posing-black-shirt_8353-1116.jpg",
              imageAlt: "David Park"
            }
          ]}
        />
      </div>

      <FooterLogoReveal logoText="PitchDrive" />
    </ThemeProvider>
  );
}