"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import FeatureCardTwentyFive from "@/components/sections/feature/FeatureCardTwentyFive";
import MetricCardFourteen from "@/components/sections/metrics/MetricCardFourteen";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import { Armchair, Sparkles, Check, Zap, Shield, Truck } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "Pricing", id: "/pricing" },
  { name: "Gallery", id: "/gallery" },
  { name: "Contact", id: "#contact" },
];

const features = [
  {
    title: "Interior Detailing",
    description: "Deep carpet shampooing, leather conditioning, stain removal, and complete interior refresh to restore your cabin to pristine condition.",
    icon: Armchair,
    mediaItems: [
      { imageSrc: "http://img.b2bpic.net/free-photo/woman-cleaning-her-car-dashboard-with-rag_23-2150318453.jpg", imageAlt: "Interior detailing before" },
      { imageSrc: "http://img.b2bpic.net/free-photo/young-man-washing-car-carwash-station-outdoor_651396-2795.jpg", imageAlt: "Interior detailing after" },
    ],
  },
  {
    title: "Exterior Detailing",
    description: "Professional wash, clay bar decontamination, wax/sealant application, and tire conditioning for a flawless exterior finish.",
    icon: Sparkles,
    mediaItems: [
      { imageSrc: "http://img.b2bpic.net/free-photo/image-dirty-car-after-trip-off-road-stands-against-brick-wall-old-part-town_613910-6302.jpg", imageAlt: "Exterior detailing before" },
      { imageSrc: "http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193557.jpg", imageAlt: "Exterior detailing after" },
    ],
  },
  {
    title: "Paint Correction",
    description: "Professional removal of swirls, scratches, and oxidation to restore your vehicle's paint to its original brilliance.",
    icon: Zap,
    mediaItems: [
      { imageSrc: "http://img.b2bpic.net/free-photo/photo-metal-texture-pattern_58702-16073.jpg", imageAlt: "Paint correction before" },
      { imageSrc: "http://img.b2bpic.net/free-photo/man-working-car-detailing-coating-car_1303-30596.jpg", imageAlt: "Paint correction after" },
    ],
  },
];

const footerColumns = [
  {
    title: "Services",
    items: [
      { label: "Interior Detailing", href: "/services" },
      { label: "Exterior Detailing", href: "/services" },
      { label: "Paint Correction", href: "/services" },
      { label: "Ceramic Coating", href: "/services" },
      { label: "Fleet Detailing", href: "/services" },
    ],
  },
  {
    title: "Company",
    items: [
      { label: "Home", href: "/" },
      { label: "About Us", href: "/about" },
      { label: "Gallery", href: "/gallery" },
      { label: "Pricing", href: "/pricing" },
      { label: "Contact", href: "#contact" },
    ],
  },
  {
    title: "Contact",
    items: [
      { label: "Call: (###) ###-####", href: "tel:+1-###-###-####" },
      { label: "Text Us", href: "sms:+1-###-###-####" },
      { label: "Email: info@eliteautodetailing.com", href: "mailto:info@eliteautodetailing.com" },
      { label: "Service Area: [City/Region]", href: "#" },
      { label: "Hours: Mon-Sun, By Appointment", href: "#" },
    ],
  },
];

export default function ServicesPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="small"
      sizing="mediumLargeSizeMediumTitles"
      background="fluid"
      cardStyle="gradient-bordered"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Pricing", id: "/pricing" },
            { name: "Gallery", id: "/gallery" },
            { name: "Contact", id: "#contact" },
          ]}
          brandName="Elite Auto Detailing"
          bottomLeftText="Professional Auto Detailing"
          bottomRightText="(###) ###-#### or text us"
        />
      </div>

      <div id="services-overview" data-section="services-overview">
        <FeatureCardTwentyFive
          title="Our Premium Services"
          description="Comprehensive auto detailing solutions tailored to your vehicle's needs. Each service is performed with professional-grade equipment and premium products to ensure exceptional results."
          tag="What We Offer"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          features={features}
          animationType="blur-reveal"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Book a Service", href: "#contact" }]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="why-us" data-section="why-us">
        <MetricCardFourteen
          title="Why Choose Elite Auto Detailing for Your Professional Needs"
          tag="Our Commitment"
          tagAnimation="slide-up"
          metrics={[
            { id: "1", value: "15+ Years", description: "Professional auto detailing experience serving thousands of satisfied customers." },
            { id: "2", value: "100%", description: "Customer satisfaction guarantee. We stand behind every service we provide." },
            { id: "3", value: "Mobile", description: "Service comes to you—no need to leave your home or office. Complete convenience." },
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Schedule Your Service"
          description="Ready to experience premium detailing? Book your appointment today. Our team will provide expert service at your convenience with mobile service to your location."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "phone", type: "tel", placeholder: "(###) ###-####", required: true },
            { name: "email", type: "email", placeholder: "your@email.com", required: true },
            { name: "vehicleType", type: "text", placeholder: "Vehicle Type (Car, Truck, SUV, etc.)", required: true },
            { name: "service", type: "text", placeholder: "Service Desired", required: true },
            { name: "address", type: "text", placeholder: "Service Address", required: true },
          ]}
          textarea={{ name: "notes", placeholder: "Additional details or preferred date/time", rows: 4 }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193588.jpg"
          imageAlt="Professional detailing equipment"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Book Appointment"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/luxury-car-interior-brown-black-colors_181624-31177.jpg"
          imageAlt="Elite Auto Detailing showcase"
          logoText="Elite Auto Detailing & Mobile Services LLC"
          copyrightText="© 2025 Elite Auto Detailing & Mobile Services LLC. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}