"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplitTestimonial from '@/components/sections/hero/HeroSplitTestimonial';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Zap, Shield, Trophy, Quote, Award } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="mediumSizeLargeTitles"
      background="circleGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Blake Dowdall"
          navItems={[
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Track Record", id: "metrics" },
            { name: "Contact", id: "contact" },
          ]}
          button={{
            text: "Explore Services",            href: "#services"}}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitTestimonial
          title="Elevate Your Racing Performance Today"
          description="Expert motorsport coaching and consultation from a seasoned professional. Whether you're refining technique or building your racing career, Blake Dowdall Motorsport delivers personalized guidance to help you succeed on track."
          tag="Professional Coaching"
          tagIcon={Zap}
          tagAnimation="slide-up"
          background={{ variant: "glowing-orb" }}
          useInvertedBackground={false}
          mediaAnimation="blur-reveal"
          imagePosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/handsome-man-karting-with-car_1157-24752.jpg"
          imageAlt="Professional racing driver on track"
          buttons={[
            { text: "Explore Services", href: "#services" },
            { text: "Schedule Consultation", href: "#contact" },
          ]}
          buttonAnimation="slide-up"
          testimonials={[
            {
              name: "Michael Chen",              handle: "Semi-Pro Racer",              testimonial: "Blake's coaching transformed my lap times and race craft. Highly professional and results-driven.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-athletic-man-black-background_613910-9870.jpg?_wi=1",              imageAlt: "professional headshot male portrait racing driver athlete"},
            {
              name: "James Mitchell",              handle: "Amateur Circuit Racer",              testimonial: "The personalized approach made all the difference. I went from mid-pack to podium finishes in one season.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-man-with-facial-hair_181624-21795.jpg?_wi=1",              imageAlt: "professional headshot male portrait racer motorsport"},
            {
              name: "Sarah Rodriguez",              handle: "Sponsor - TechMotor Inc",              testimonial: "Blake brings credibility and expertise to our racing program. A trusted partner in performance.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/successful-businesswoman-ready-challenges_1163-4336.jpg",              imageAlt: "professional headshot female portrait business woman executive"},
            {
              name: "David Kim",              handle: "Professional Circuit Coach",              testimonial: "Blake's methodology is sound. His athletes consistently show measurable improvement in all key metrics.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiley-male-boxer-posing-t-shirt-with-arms-crossed_23-2148426242.jpg",              imageAlt: "professional headshot male portrait coach trainer"},
          ]}
          testimonialRotationInterval={5000}
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="Background"
          tagIcon={Shield}
          tagAnimation="slide-up"
          title="Motorsport Excellence Through Proven Experience"
          description="Blake Dowdall"
          subdescription="Professional Motorsport Coach & Consultant"
          icon={Trophy}
          imageSrc="http://img.b2bpic.net/free-photo/handsome-man-karting-with-car_1157-25370.jpg"
          imageAlt="professional racing driver motorsport coaching circuit racing pro racer"
          mediaAnimation="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardMedia
          title="Comprehensive Motorsport Services"
          description="From performance coaching to strategic vehicle setup, Blake Dowdall Motorsport provides expert guidance tailored to your racing goals and experience level."
          tag="Our Services"
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              id: "1",              title: "Performance Coaching",              description: "Personalized one-on-one coaching focused on technique refinement, racecraft strategy, and mental performance optimization for competitive advantage.",              tag: "Coaching",              imageSrc: "http://img.b2bpic.net/free-photo/two-auto-mechanics-cooperating-while-repairing-tire-customer-s-car-auto-repair-shop_637285-4255.jpg",              imageAlt: "coaching training mentor mentorship racing instruction performance coaching",              buttons: [{ text: "Learn More", href: "#" }],
            },
            {
              id: "2",              title: "Vehicle Setup Consultation",              description: "Expert analysis and recommendations on chassis setup, suspension tuning, and vehicle dynamics to maximize performance on your racing discipline.",              tag: "Technical",              imageSrc: "http://img.b2bpic.net/free-photo/auto-repairman-examining-undercarriage-car-workshop_637285-7632.jpg",              imageAlt: "car mechanics vehicle setup suspension tuning racing mechanics",              buttons: [{ text: "Learn More", href: "#" }],
            },
            {
              id: "3",              title: "Mentorship & Career Development",              description: "Strategic guidance for aspiring racers to navigate the motorsport career path, sponsorship opportunities, and professional progression.",              tag: "Career",              imageSrc: "http://img.b2bpic.net/free-photo/friendly-colleagues-discussing-project-office-room-smiling-successful-grey-haired-content-businesswomen-sitting-table-talking-with-partners-teamwork-business-management-concept_74855-7297.jpg",              imageAlt: "career mentorship professional development leadership coaching career growth",              buttons: [{ text: "Learn More", href: "#" }],
            },
            {
              id: "4",              title: "Race Strategy & Analysis",              description: "In-depth race planning, competitor analysis, and on-track decision-making frameworks to maximize your competitive position.",              tag: "Strategy",              imageSrc: "http://img.b2bpic.net/free-photo/football-trainer-teaching-his-pupils_23-2149707976.jpg",              imageAlt: "race strategy tactical planning competition strategy game plan",              buttons: [{ text: "Learn More", href: "#" }],
            },
            {
              id: "5",              title: "Sponsorship & Partnership Advisory",              description: "Professional guidance on building and maintaining sponsor relationships, brand development, and partnership opportunities in motorsport.",              tag: "Business",              imageSrc: "http://img.b2bpic.net/free-photo/business-people-motivating-themselves_23-2147626487.jpg",              imageAlt: "business partnership sponsorship brand collaboration corporate partnership",              buttons: [{ text: "Learn More", href: "#" }],
            },
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Clients Say"
          description="Hear directly from racers and sponsors who have benefited from Blake Dowdall Motorsport's expertise and professional coaching."
          tag="Testimonials"
          tagIcon={Quote}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          showRating={true}
          testimonials={[
            {
              id: "1",              name: "Michael Chen",              handle: "@mchen_racing",              testimonial: "Blake's coaching fundamentally changed my approach to racing. His technical knowledge combined with strategic thinking helped me improve my lap times by 2 seconds in just 3 months.",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/smiling-athletic-man-black-background_613910-9870.jpg?_wi=2",              imageAlt: "male professional headshot racing athlete young professional portrait"},
            {
              id: "2",              name: "James Mitchell",              handle: "@jmitchell_circuits",              testimonial: "From a mid-pack amateur to consistent podium finisher. Blake's methodology is systematic and results-oriented. Highly recommend to anyone serious about racing.",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-man-with-facial-hair_181624-21795.jpg?_wi=2",              imageAlt: "male professional headshot race driver motorsport athlete portrait"},
            {
              id: "3",              name: "Sarah Rodriguez",              handle: "@techmotor_racing",              testimonial: "As a sponsor, we appreciate Blake's professionalism and the measurable results he delivers. His racers consistently represent our brand with excellence.",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",              imageAlt: "female professional headshot business executive corporate professional portrait"},
            {
              id: "4",              name: "David Park",              handle: "@d_park_motorsports",              testimonial: "Blake's strategic guidance on race craft and vehicle setup gave me the competitive edge I needed to secure my sponsorship deal.",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/smiling-athletic-man-black-background_613910-9870.jpg?_wi=3",              imageAlt: "male professional headshot coach mentor sports professional portrait"},
            {
              id: "5",              name: "Emma Thompson",              handle: "@e_thompson_pro",              testimonial: "His mentorship helped me transition from amateur to semi-professional racing. Blake invests in his students' success beyond just coaching.",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/close-up-cyclist-woman-outdors_23-2149647438.jpg",              imageAlt: "female professional headshot race driver motorsport athlete portrait"},
            {
              id: "6",              name: "Marcus Johnson",              handle: "@m_johnson_circuits",              testimonial: "The personalized approach to coaching is exceptional. Blake identifies weaknesses and creates specific training programs to address them. Worth every investment.",              rating: 5,              imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-handsome-sportsman-holds-hand-chin-dark-background_613910-5321.jpg",              imageAlt: "male professional headshot racing professional athlete portrait motorsport"},
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTen
          title="Track Record & Achievements"
          description="Blake Dowdall's professional accomplishments and the measurable success of coached athletes across competitive motorsport disciplines."
          tag="Results"
          tagIcon={Award}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          metrics={[
            {
              id: "1",              title: "Professional Racing Experience",              subtitle: "Circuit & International Competitions",              category: "Experience",              value: "15+ Years"},
            {
              id: "2",              title: "Coached Athletes",              subtitle: "Amateur to Semi-Professional Level",              category: "Coaching",              value: "40+ Racers"},
            {
              id: "3",              title: "Podium Finishes",              subtitle: "Coached Athletes in Competitions",              category: "Results",              value: "95+ Podiums"},
            {
              id: "4",              title: "Average Performance Improvement",              subtitle: "Documented Lap Time Reductions",              category: "Metrics",              value: "2.5-4 Secs"},
            {
              id: "5",              title: "Sponsorship Success Rate",              subtitle: "Mentored Athletes Securing Deals",              category: "Business",              value: "70%+"},
            {
              id: "6",              title: "Client Retention",              subtitle: "Repeat & Long-Term Engagements",              category: "Satisfaction",              value: "92%"},
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to accelerate your racing career or explore partnership opportunities? Let's discuss how Blake Dowdall Motorsport can help you achieve your goals on and off the track."
          animationType="entrance-slide"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Schedule Consultation", href: "#" },
            { text: "Discuss Partnership", href: "#" },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Blake Dowdall Motorsport"
          columns={[
            {
              title: "Services",              items: [
                { label: "Performance Coaching", href: "#services" },
                { label: "Vehicle Setup", href: "#services" },
                { label: "Mentorship", href: "#services" },
                { label: "Race Strategy", href: "#services" },
              ],
            },
            {
              title: "Company",              items: [
                { label: "About Blake", href: "#about" },
                { label: "Track Record", href: "#metrics" },
                { label: "Testimonials", href: "#testimonials" },
                { label: "Contact", href: "#contact" },
              ],
            },
            {
              title: "Resources",              items: [
                { label: "Racing Tips", href: "#" },
                { label: "Performance Blog", href: "#" },
                { label: "Sponsorship Guide", href: "#" },
                { label: "FAQ", href: "#" },
              ],
            },
            {
              title: "Connect",              items: [
                { label: "Email", href: "mailto:info@blakedowndall.com" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "YouTube", href: "https://youtube.com" },
              ],
            },
          ]}
          copyrightText="© 2025 Blake Dowdall Motorsport. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
