"use client";
import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Zap, Shield, ArrowRight, TrendingUp, Package, MapPin, Award, Truck, Building2, Users, Star, Rocket } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="small"
      sizing="mediumLargeSizeMediumTitles"
      background="noise"
      cardStyle="outline"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="LogisticNet"
          navItems={[
            { name: "About", id: "/about" },
            { name: "Solutions", id: "/solutions" },
            { name: "Pricing", id: "/pricing" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{ text: "Request Demo", href: "/contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          background={{ variant: "plain" }}
          tag="Intelligent Logistics Network"
          tagIcon={Zap}
          title="End-to-End Logistics From China to Your Doorstep"
          description="LogisticNet combines 3,500 trucks, a nationwide warehouse network, and AI-powered forecasting to deliver seamless physical-digital logistics. From origin to last-mile delivery, we optimize every step of your supply chain."
          mediaItems={[
            { 
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/a-sophisticated-b2b-logistics-dashboard--1771991399151-d561d89d.png?_wi=1", 
              imageAlt: "A sophisticated B2B logistics dashboard displaying real-time shipment tracking"
            },
            { 
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/a-stylized-world-map-showing-an-intercon-1771991399459-40aef28e.png?_wi=1", 
              imageAlt: "A stylized world map showing an interconnected global logistics network"
            }
          ]}
          mediaAnimation="slide-up"
          rating={5}
          ratingText="Trusted by 500+ Enterprise Clients"
          buttons={[
            { text: "Start Your Free Trial", href: "/contact" },
            { text: "Explore Our Network", href: "/solutions" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Our Integrated Network Advantage"
          description="LogisticNet operates a hybrid physical-digital infrastructure that gives you real-time visibility and predictive control. With strategically positioned warehouses and a fleet of 3,500 vehicles, we forecast demand patterns and pre-position inventory to minimize costs and delivery times."
          tag="Network Infrastructure"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/an-aerial-view-of-a-modern-logistics-war-1771991399017-ff423abb.png?_wi=1"
          imageAlt="Modern logistics warehouse with automated systems"
          buttons={[{ text: "View Network Map", href: "/solutions" }]}
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentySix
          title="Core Capabilities"
          description="Our platform integrates physical logistics infrastructure with digital intelligence for complete supply chain optimization."
          tag="Integrated Solutions"
          tagIcon={Shield}
          features={[
            {
              title: "Real-Time Fleet Tracking",              description: "Monitor all 3,500+ vehicles across your network with GPS precision and predictive ETA.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/a-fleet-of-modern-logistics-trucks-lined-1771991399434-bd83e6d5.png",              imageAlt: "Fleet of logistics trucks",              buttonIcon: ArrowRight
            },
            {
              title: "Demand Forecasting Engine",              description: "AI-powered predictions optimize inventory positioning and reduce stockouts by 40%.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/a-detailed-analytics-dashboard-showing-d-1771991398781-6fb5bcee.png?_wi=1",              imageAlt: "Analytics and forecasting dashboard",              buttonIcon: TrendingUp
            },
            {
              title: "Smart Warehouse Network",              description: "Access our nationwide warehouse system with automated allocation and cross-docking capabilities.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/professional-cargo-handling-at-a-modern--1771991398762-9d97f210.png?_wi=1",              imageAlt: "Automated warehouse operations",              buttonIcon: Package
            },
            {
              title: "Last-Mile Optimization",              description: "Route optimization and delivery scheduling reduce costs by 35% while improving customer satisfaction.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/a-mobile-phone-and-computer-screen-displ-1771991399839-be9d71dd.png?_wi=1",              imageAlt: "Real-time tracking interface",              buttonIcon: MapPin
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Impact by the Numbers"
          description="LogisticNet's integrated approach delivers measurable results for enterprise supply chains."
          tag="Performance Metrics"
          tagIcon={Award}
          metrics={[
            {
              id: "trucks",              value: "3500",              title: "Active Vehicles",              description: "Strategic fleet across major corridors",              icon: Truck
            },
            {
              id: "warehouses",              value: "250",              title: "Network Locations",              description: "Nationwide warehouse coverage",              icon: Building2
            },
            {
              id: "clients",              value: "500",              title: "Enterprise Clients",              description: "Fortune 500 and mid-market companies",              icon: Users
            },
            {
              id: "daily-shipments",              value: "45000",              title: "Daily Shipments",              description: "Seamless end-to-end deliveries",              icon: Zap
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Clients Say"
          description="Enterprise leaders share how LogisticNet transformed their supply chains."
          tag="Client Success"
          tagIcon={Star}
          showRating={true}
          testimonials={[
            {
              id: "1",              name: "Sarah Chen",              handle: "@sarahchen",              testimonial: "LogisticNet reduced our logistics costs by 32% in the first year. Their demand forecasting integration eliminated our excess inventory challenges. Outstanding partner.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/professional-portrait-of-a-business-exec-1771991397938-911577d9.png?_wi=1"
            },
            {
              id: "2",              name: "Marcus Rodriguez",              handle: "@mrodriguez",              testimonial: "The real-time tracking and warehouse network optimization changed how we manage our supply chain. Delivery times dropped from 6 days to 3 days across our region.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/professional-portrait-of-a-logistics-ope-1771991399783-a8b42e15.png"
            },
            {
              id: "3",              name: "Elena Vasquez",              handle: "@evasquez",              testimonial: "LogisticNet's integrated approach bridges physical and digital seamlessly. Their team understood our complex international requirements immediately and delivered results.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/professional-portrait-of-a-supply-chain--1771991399773-373496dc.png?_wi=1"
            },
            {
              id: "4",              name: "David Kim",              handle: "@dkim",              testimonial: "We've worked with many logistics providers. LogisticNet stands out for their forecasting accuracy and proactive network optimization. True partnership.",              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_34YrpHTNyoPHUh85bjA10KHfDge/professional-portrait-of-an-ecommerce-op-1771991398868-b43afe14.png"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          title="Ready to Transform Your Supply Chain?"
          description="Schedule a consultation with our logistics experts to see how LogisticNet can optimize your operations. We'll assess your specific requirements and show ROI projections within 48 hours."
          tagIcon={Rocket}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          inputPlaceholder="your@company.com"
          buttonText="Request Demo"
          termsText="We'll contact you within 24 hours. Your data is secure and never shared."
        />
      </div>

      <FooterBase
        logoText="LogisticNet"
        copyrightText="© 2025 LogisticNet. All rights reserved. Integrated Logistics for the Modern Enterprise."
        columns={[
          {
            title: "Solutions",            items: [
              { label: "Fleet Management", href: "/solutions" },
              { label: "Warehouse Network", href: "/about" },
              { label: "Demand Forecasting", href: "/solutions" },
              { label: "Last-Mile Delivery", href: "/solutions" }
            ]
          },
          {
            title: "Company",            items: [
              { label: "About Us", href: "/about" },
              { label: "Pricing", href: "/pricing" },
              { label: "Case Studies", href: "/solutions" },
              { label: "Blog", href: "#" }
            ]
          },
          {
            title: "Support",            items: [
              { label: "Help Center", href: "#" },
              { label: "Contact Us", href: "/contact" },
              { label: "System Status", href: "#" },
              { label: "Documentation", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}