"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Award, Building2, Zap, Wrench } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="expand-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="small"
      sizing="mediumLargeSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="MRS-CMC"
          navItems={[
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitKpi
          title="Over 50 Years of Intermodal Excellence"
          description="Industry-leading maintenance, repair, and logistics services. From depot operations to mobile repair, we deliver comprehensive solutions with the nation's largest M&R footprint."
          background={{ variant: "circleGradient" }}
          kpis={[
            { value: "50+", label: "Years of Service" },
            { value: "Largest", label: "M&R Footprint" },
            { value: "24/7", label: "Support Available" }
          ]}
          enableKpiAnimation={true}
          tag="Industry Leader"
          tagIcon={Award}
          tagAnimation="slide-up"
          buttons={[
            { text: "Contact Us", href: "#contact" },
            { text: "Learn More", href: "#services" }
          ]}
          buttonAnimation="slide-up"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=9l8te9"
          imageAlt="industrial repair facility intermodal equipment"
          mediaAnimation="blur-reveal"
          imagePosition="right"
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="About Our Company"
          tagIcon={Building2}
          tagAnimation="slide-up"
          title="Trusted Partner in Intermodal Transport"
          description="Marine Repair Services and Container Maintenance Corporation (MRS-CMC) stands as the backbone of North America's intermodal infrastructure."
          subdescription="With decades of operational expertise across marine, rail, and trucking sectors, we provide depot services, equipment sales, maintenance, repair, and comprehensive logistics solutions that keep your operations moving."
          icon={Zap}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=59vtrt"
          imageAlt="professional technician repair equipment"
          mediaAnimation="blur-reveal"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardSeven
          title="Comprehensive Service Solutions"
          description="Our core service offerings are designed to meet every aspect of intermodal equipment maintenance and logistics."
          tag="Services"
          tagIcon={Wrench}
          tagAnimation="slide-up"
          animationType="blur-reveal"
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              title: "Maintenance & Repair",              description: "Timely, high-quality maintenance and repair services adhering to AAR, IICL, OSHA and TMC standards. Our technicians undergo continuous education on latest safety protocols.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1t5oay",              imageAlt: "Professional repair services"
            },
            {
              id: 2,
              title: "Mobile Repair Services",              description: "Road repair services extending to the trucking community through our affiliate Reliable Fleet Services. Centralized at major ports and rail locations with expanding coverage.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=e2irys",              imageAlt: "Mobile repair truck"
            },
            {
              id: 3,
              title: "Depot Services",              description: "Complete depot operations including repair, maintenance, storage, and redistribution of intermodal equipment across U.S. hub regions. Industry leader in equipment handling.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=yla80m",              imageAlt: "Depot facility operations"
            },
            {
              id: 4,
              title: "Intermodal Transportation",              description: "Drayage and trucking services via CMC Logistics, strategically positioned in Charleston, Memphis, Savannah with new locations expanding. Serving steamship lines and cargo owners.",              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1t5oay",              imageAlt: "Transportation logistics"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTen
          title="Why Choose MRS-CMC"
          description="Industry standards and proven expertise across all service lines."
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={[
            {
              id: "1",              title: "Industry Standards",              subtitle: "Certified Expertise",              category: "Compliance",              value: "AAR, IICL, OSHA, TMC"
            },
            {
              id: "2",              title: "National Coverage",              subtitle: "Largest Footprint",              category: "Operations",              value: "Nationwide Network"
            },
            {
              id: "3",              title: "Continuous Training",              subtitle: "Safety First",              category: "Expertise",              value: "Ongoing Education"
            },
            {
              id: "4",              title: "Multi-Sector",              subtitle: "Diversified Services",              category: "Capabilities",              value: "Marine, Rail, Trucking"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to partner with the industry's most trusted intermodal services provider? Contact MRS-CMC today for all your repair, maintenance, and logistics needs."
          animationType="reveal-blur"
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Call 843-971-1339", href: "tel:8439711339" },
            { text: "Get in Touch", href: "mailto:info@mrscmc.com" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="MRS-CMC"
          columns={[
            {
              title: "Services",              items: [
                { label: "Maintenance & Repair", href: "#services" },
                { label: "Mobile Repair", href: "#services" },
                { label: "Depot Services", href: "#services" },
                { label: "Transportation", href: "#services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Contact", href: "#contact" },
                { label: "Careers", href: "#" },
                { label: "News", href: "#" }
              ]
            },
            {
              title: "Contact",              items: [
                { label: "Phone: 843-971-1339", href: "tel:8439711339" },
                { label: "Email: info@mrscmc.com", href: "mailto:info@mrscmc.com" },
                { label: "Charleston Office", href: "#" },
                { label: "Memphis Office", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Marine Repair Services. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
