"use client";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import FooterBase from '@/components/sections/footer/FooterBase';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Shield, MessageSquare, MapPin, CreditCard, FileText, Star, Settings, User, Clock, CheckCircle, AlertCircle, Lock, Heart, Users, Car, ThumbsUp } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="circleGradient"
      cardStyle="outline"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="GoGoToMe"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Fleet", id: "/fleet" },
            { name: "Pricing", id: "/pricing" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Book Now",
            href: "/booking"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="GoGoToMe"
          description="Premium car rental solutions for every journey. Book instantly, drive with confidence."
          buttons={[
            { text: "Book Your Ride", href: "/booking" },
            { text: "Explore Fleet", href: "/fleet" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/smiling-businessman-suit-examining-auto-before-purchase_7502-9822.jpg"
          imageAlt="Luxury car rental hero image"
          showDimOverlay={true}
          logoLineHeight={1.2}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBento
          title="Why Choose GoGoToMe"
          description="Experience premium car rentals with cutting-edge technology and unmatched customer service."
          tag="Features"
          features={[
            {
              title: "Instant Booking",
              description: "Book your perfect car in seconds with our intuitive mobile app and website.",
              bentoComponent: "globe"
            },
            {
              title: "24/7 Support",
              description: "Round-the-clock customer support to assist you anytime, anywhere.",
              bentoComponent: "phone",
              statusIcon: Lock,
              alertIcon: MessageSquare,
              alertTitle: "Support Available",
              alertMessage: "Chat with our team now",
              apps: [
                { name: "Support", icon: MessageSquare },
                { name: "Tracking", icon: MapPin },
                { name: "Payments", icon: CreditCard },
                { name: "Documents", icon: FileText },
                { name: "Reviews", icon: Star },
                { name: "Settings", icon: Settings },
                { name: "Profile", icon: User },
                { name: "History", icon: Clock }
              ]
            },
            {
              title: "Comprehensive Insurance",
              description: "Full coverage options to protect you and your rental with peace of mind.",
              bentoComponent: "orbiting-icons",
              centerIcon: Shield,
              items: [
                { icon: CheckCircle, ring: 1, duration: 10 },
                { icon: AlertCircle, ring: 1, duration: 12 },
                { icon: Lock, ring: 2, duration: 14 },
                { icon: Heart, ring: 2, duration: 11 }
              ]
            },
            {
              title: "GPS Navigation",
              description: "Advanced GPS and real-time tracking to guide your every drive.",
              bentoComponent: "map"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="fleet" data-section="fleet">
        <ProductCardThree
          title="Our Fleet"
          description="Choose from our diverse selection of premium vehicles tailored to your needs."
          products={[
            {
              id: "1",
              name: "Luxury Sedan",
              price: "$85/day",
              imageSrc: "https://img.b2bpic.net/free-photo/black-sedan-wet-highway-rain-rainy-drive_169016-69903.jpg",
              imageAlt: "Luxury sedan rental",
              initialQuantity: 1
            },
            {
              id: "2",
              name: "Premium SUV",
              price: "$120/day",
              imageSrc: "https://img.b2bpic.net/free-photo/fashionable-ladies-going-out-car_132075-12211.jpg",
              imageAlt: "Family SUV rental",
              initialQuantity: 1
            },
            {
              id: "3",
              name: "Compact City Car",
              price: "$45/day",
              imageSrc: "https://img.b2bpic.net/free-photo/young-woman-choosing-car-car-showroom_1303-17457.jpg",
              imageAlt: "Compact city car rental",
              initialQuantity: 1
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Impact"
          description="Growing numbers showcase our commitment to customer satisfaction and service excellence."
          tag="Statistics"
          metrics={[
            {
              id: "1",
              value: "50K+",
              title: "Happy Customers",
              description: "Trusted by thousands of satisfied travelers worldwide",
              icon: Users
            },
            {
              id: "2",
              value: "500+",
              title: "Vehicles",
              description: "Diverse fleet across premium and economy options",
              icon: Car
            },
            {
              id: "3",
              value: "150",
              title: "Locations",
              description: "Available in major cities and airports globally",
              icon: MapPin
            },
            {
              id: "4",
              value: "98%",
              title: "Satisfaction",
              description: "Customer satisfaction rating based on reviews",
              icon: ThumbsUp
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Customer Stories"
          description="See what our customers say about their GoGoToMe experience."
          tag="Testimonials"
          testimonials={[
            {
              id: "1",
              name: "Sarah Johnson",
              handle: "@sarahtravel",
              testimonial: "GoGoToMe made my road trip seamless. The booking process was incredibly easy and the vehicle was in perfect condition. Highly recommend!",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",
              name: "Michael Chen",
              handle: "@mchen_ventures",
              testimonial: "The 24/7 support team was fantastic when I needed help. Professional, responsive, and genuinely caring. Best rental experience ever!",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg",
              imageAlt: "Michael Chen"
            },
            {
              id: "3",
              name: "Emily Rodriguez",
              handle: "@emily_explores",
              testimonial: "Love the transparent pricing and no hidden fees. The insurance coverage gave me peace of mind throughout my entire trip.",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-beautiful-middle-aged-business-woman_1262-3085.jpg",
              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",
              name: "David Kim",
              handle: "@davidk_business",
              testimonial: "Premium service at competitive prices. The GPS navigation and real-time tracking features are game-changers for business travel.",
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg",
              imageAlt: "David Kim"
            },
            {
              id: "5",
              name: "Jessica White",
              handle: "@jwhite_adventures",
              testimonial: "From booking to return, everything was smooth and stress-free. GoGoToMe sets the standard for car rental excellence.",
              imageSrc: "https://img.b2bpic.net/free-photo/business-lady-looking-copyspace-with-interest_1262-2957.jpg",
              imageAlt: "Jessica White"
            },
            {
              id: "6",
              name: "Robert Martinez",
              handle: "@rmartinez_travel",
              testimonial: "Outstanding fleet selection and immaculate condition of every vehicle. This is how car rentals should be done!",
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg",
              imageAlt: "Robert Martinez"
            }
          ]}
          animationType="opacity"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          speed={45}
        />
      </div>

      <FooterBase
        logoText="GoGoToMe"
        copyrightText="© 2025 GoGoToMe Car Rentals. All rights reserved."
        columns={[
          {
            title: "Product",
            items: [
              { label: "Browse Fleet", href: "/fleet" },
              { label: "Pricing Plans", href: "/pricing" },
              { label: "Insurance Options", href: "#" },
              { label: "Book Now", href: "/booking" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Blog", href: "#" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Help Center", href: "#" },
              { label: "FAQs", href: "/faq" },
              { label: "Track Rental", href: "#" },
              { label: "Support 24/7", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}