"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 TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import { Check, Star } 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 testimonials = [
  { id: "1", name: "Sarah Johnson", imageSrc: "http://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg" },
  { id: "2", name: "Michael Chen", imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport-terminal_107420-85070.jpg" },
  { id: "3", name: "Emily Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/happy-businesswoman-smiling-looking-camera-successful-confident-grey-haired-manager-sitting-office-room-workplace-business-management-concept_74855-7343.jpg" },
  { id: "4", name: "David Kim", imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg" },
  { id: "5", name: "Jessica Martinez", imageSrc: "http://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg" },
  { id: "6", name: "Robert Thompson", imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg" },
];

const beforeAfterGallery = [
  {
    title: "Interior Refresh",
    description: "Complete interior transformation with deep cleaning and conditioning. This vehicle went from neglected to pristine.",
    icon: Check,
    mediaItems: [
      { imageSrc: "http://img.b2bpic.net/free-photo/woman-cleaning-her-car-dashboard-with-rag_23-2150318453.jpg", imageAlt: "Interior before cleaning" },
      { imageSrc: "http://img.b2bpic.net/free-photo/young-man-washing-car-carwash-station-outdoor_651396-2795.jpg", imageAlt: "Interior after detailing" },
    ],
  },
  {
    title: "Exterior Shine",
    description: "Professional exterior detailing reveals a stunning finish. Wash, clay bar, and premium wax application for long-lasting protection.",
    icon: Check,
    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 before detailing" },
      { imageSrc: "http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193557.jpg", imageAlt: "Exterior after detailing" },
    ],
  },
  {
    title: "Full Detail Package",
    description: "Complete transformation showcasing our signature full detail service. Interior and exterior work combined for showroom-ready results.",
    icon: Check,
    mediaItems: [
      { imageSrc: "http://img.b2bpic.net/free-photo/man-white-shirt-wipes-car-car-wash_1157-27235.jpg", imageAlt: "Vehicle before full detail" },
      { imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-couple-car-salon_1157-22274.jpg", imageAlt: "Vehicle after full detail" },
    ],
  },
];

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 GalleryPage() {
  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="gallery" data-section="gallery">
        <FeatureCardTwentyFive
          title="Before & After Gallery"
          description="See the dramatic transformations we deliver with our professional detailing services. Every vehicle is treated with care and expertise."
          tag="Our Work"
          tagIcon={Check}
          tagAnimation="slide-up"
          features={beforeAfterGallery}
          animationType="blur-reveal"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Book Your Transformation", href: "#contact" }]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          testimonials={testimonials}
          cardTitle="Customers love the results they see in our gallery"
          cardTag="Real Reviews"
          cardTagIcon={Star}
          cardAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Ready to See Your Vehicle Transformed?"
          description="Schedule your detailing appointment today and join hundreds of satisfied customers. We'll deliver the same stunning results you see in our gallery."
          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 },
          ]}
          textarea={{ name: "notes", placeholder: "Tell us your preferred date and any specific requests...", 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="Schedule Now"
        />
      </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>
  );
}