"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import FeatureCardNine from "@/components/sections/feature/FeatureCardNine";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import { Image as ImageIcon, Hammer, Smile } from "lucide-react";

export default function GalleryPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Reviews", id: "/reviews" },
    { name: "Gallery", id: "/gallery" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmall"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Dynamite Plumbing"
          bottomLeftText="Hunt County, TX"
          bottomRightText="+1 469-410-2657"
        />
      </div>

      {/* Gallery Projects */}
      <div id="gallery-projects" data-section="gallery-projects">
        <FeatureCardNine
          title="Before & After Gallery"
          description="Explore our completed plumbing projects and transformations"
          tag="Project Gallery"
          tagAnimation="slide-up"
          features={[
            {
              id: 1,
              title: "Bathroom Renovation",              description: "Complete bathroom plumbing upgrade including new fixtures, drain systems, and water lines for modern comfort.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/side-view-kid-learning-shave-from-father_23-2149450886.jpg",                imageAlt: "Before bathroom renovation"},
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/side-view-kid-learning-shave-from-father_23-2149450886.jpg",                imageAlt: "After bathroom renovation"},
            },
            {
              id: 2,
              title: "Kitchen Sink Installation",              description: "Professional kitchen sink and faucet installation with seamless drain connections and modern fixtures.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/household-problem-woman-pointing-broken-tap-with-jet-water-man-with-suitcase-tools_259150-58295.jpg",                imageAlt: "Kitchen sink before"},
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/household-problem-woman-pointing-broken-tap-with-jet-water-man-with-suitcase-tools_259150-58295.jpg",                imageAlt: "Kitchen sink after"},
            },
            {
              id: 3,
              title: "Gas Line Installation",              description: "Safe and code-compliant gas line installation for home heating and appliance systems with full certification.",              phoneOne: {
                imageSrc: "http://img.b2bpic.net/free-photo/electrician-builder-work-servicing-fuselage-industrial-switchboard-professional-overalls-with-electrician-s-tool_169016-8634.jpg",                imageAlt: "Gas line project start"},
              phoneTwo: {
                imageSrc: "http://img.b2bpic.net/free-photo/electrician-builder-work-servicing-fuselage-industrial-switchboard-professional-overalls-with-electrician-s-tool_169016-8634.jpg",                imageAlt: "Gas line project complete"},
            },
          ]}
          showStepNumbers={true}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
          buttonAnimation="slide-up"
          ariaLabel="Gallery projects section"
        />
      </div>

      {/* Gallery Stats */}
      <div id="gallery-stats" data-section="gallery-stats">
        <MetricCardThree
          title="Our Portfolio"
          description="Years of quality workmanship on display"
          metrics={[
            { id: "1", icon: ImageIcon, title: "Projects Completed", value: "500+" },
            { id: "2", icon: Hammer, title: "Professional Quality", value: "Certified" },
            { id: "3", icon: Smile, title: "Customer Happy", value: "Always" },
            { id: "4", icon: ImageIcon, title: "Years Showcased", value: "15+" },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Gallery statistics section"
        />
      </div>

      {/* Gallery Contact */}
      <div id="gallery-contact" data-section="gallery-contact">
        <ContactSplitForm
          title="Interested in a Similar Project?"
          description="Let us transform your plumbing. Contact us today for a free consultation and estimate."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: true },
            { name: "project_type", type: "text", placeholder: "Project Type Interest", required: false },
            { name: "email", type: "email", placeholder: "Email Address", required: false },
          ]}
          textarea={{
            name: "project_details",            placeholder: "Tell us about your project ideas...",            rows: 4,
            required: true,
          }}
          buttonText="Get Free Quote"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          mediaPosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/modern-automobile-mechanic-composition_23-2147881677.jpg"
          imageAlt="Professional plumbing work"
          ariaLabel="Gallery inquiry form"
          onSubmit={(data) => {
            console.log("Gallery inquiry:", data);
          }}
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Dynamite Plumbing"
          leftLink={{ text: "Privacy Policy", href: "/" }}
          rightLink={{ text: "Terms of Service", href: "/" }}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}