"use client"; import React, { useRef } from "react"; import Link from "next/link"; import Image from "next/image"; import { useInView } from "framer-motion"; import { ScrollReveal, Magnetic } from "@/animations/Reveal"; interface ConnectedLogisticsSectionProps { id?: string; eyebrow?: string; title?: string; imageSrc?: string; imageAlt?: string; items?: Array<{ title: string; text: string }>; showButton?: boolean; } const DEFAULT_ITEMS = [ { title: "Real-Time Visibility", text: "See every shipment, every vehicle, every handoff—live. No blind spots." }, { title: "Dynamic Route Adjustment", text: "AI continuously optimizes routes based on traffic, weather, and real-world conditions." }, { title: "Proactive Delay Prevention", text: "Detect SLA risks hours before they become problems. Act, don't react." }, { title: "Execution Intelligence", text: "Learn from every shipment. Get smarter with every mile traveled." }, ]; export default function ConnectedLogisticsSection({ id = "vehicle-ai", eyebrow = "/ Connected Logistics /", title = "Smart logistics solutions we deliver for modern supply chains", imageSrc = "/images/home2-pic-3.webp", imageAlt = "Connected Logistics", items = DEFAULT_ITEMS, showButton = false, }: ConnectedLogisticsSectionProps) { const sectionRef = useRef(null); const isInView = useInView(sectionRef, { once: true, margin: "-50px" }); return (