"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroSplit from "@/components/sections/hero/HeroSplit";
import FeatureCardTwentyFour from "@/components/sections/feature/FeatureCardTwentyFour";
import ProductCardTwo from "@/components/sections/product/ProductCardTwo";
import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaAbout";
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import MetricCardTen from "@/components/sections/metrics/MetricCardTen";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { Shield, Award, Star } from "lucide-react";

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Services", id: "services" },
    { name: "About", id: "about" },
    { name: "Reviews", id: "reviews" },
    { name: "Service Areas", id: "service-areas" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Services",
      items: [
        { label: "Plumbing Repair", href: "/services" },
        { label: "Drain Cleaning", href: "/services" },
        { label: "Water Heater Service", href: "/services" },
        { label: "Electrical Repairs", href: "/services" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "#about" },
        { label: "Customer Reviews", href: "#reviews" },
        { label: "Service Areas", href: "#service-areas" },
        { label: "Contact Us", href: "#contact" },
      ],
    },
    {
      title: "Contact",
      items: [
        { label: "Call: +1 (657) 439-3277", href: "tel:+16574393277" },
        { label: "24/7 Emergency Service", href: "tel:+16574393277" },
        { label: "Licensed & Insured", href: "#" },
        { label: "Request Service", href: "#contact" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="large"
      background="noise"
      cardStyle="glass-depth"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Dickerson Plumbing & Electrical"
          navItems={navItems}
          button={{ text: "Call Now", href: "tel:+16574393277" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Reliable Plumbing & Electrical Experts You Can Trust"
          description="Fast response. Licensed professionals. Quality work that lasts. We handle everything from burst pipes to electrical emergencies—24/7 service for your peace of mind."
          tag="Professional Services"
          tagIcon={Shield}
          tagAnimation="slide-up"
          buttons={[
            { text: "Call Now: +1 (657) 439-3277", href: "tel:+16574393277" },
            { text: "Request Service", href: "#contact" },
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "noise" }}
          imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721517.jpg"
          imageAlt="Professional plumber working on pipe repair"
          mediaAnimation="blur-reveal"
          imagePosition="right"
        />
      </div>

      <div id="trust-badges" data-section="trust-badges">
        <FeatureCardTwentyFour
          title="Why Customers Trust Dickerson"
          description="Licensed, certified, and committed to exceeding expectations. We deliver professional service backed by real expertise."
          features={[
            {
              id: "licensed",
              title: "Licensed & Certified",
              author: "Industry Standard",
              description: "All technicians hold current licenses and certifications ensuring safe, code-compliant work.",
              tags: ["certified", "licensed"],
              imageSrc: "http://img.b2bpic.net/free-vector/retro-golden-restaurant-logo-collection_23-2148377979.jpg",
              imageAlt: "Licensed certified badge professional seal",
            },
            {
              id: "emergency",
              title: "Fast Emergency Response",
              author: "24/7 Available",
              description: "Average response time under 20 minutes. We're ready when you need us most.",
              tags: ["emergency", "fast"],
              imageSrc: "http://img.b2bpic.net/free-vector/re-opening-soon-badge-set_23-2148559388.jpg",
              imageAlt: "Emergency response fast icon 24/7",
            },
            {
              id: "satisfaction",
              title: "5-Star Customer Satisfaction",
              author: "Verified Reviews",
              description: "Consistently rated 5-stars by homeowners and businesses across the region.",
              tags: ["reviews", "quality"],
              imageSrc: "http://img.b2bpic.net/free-vector/flat-design-employee-month-badges_23-2149457887.jpg",
              imageAlt: "Five star rating customer satisfaction badge",
            },
            {
              id: "services",
              title: "Residential & Commercial",
              author: "Full Service Coverage",
              description: "From home repairs to commercial system upgrades—we handle it all professionally.",
              tags: ["residential", "commercial"],
              imageSrc: "http://img.b2bpic.net/free-vector/re-opening-soon-badge-set_23-2148559388.jpg",
              imageAlt: "Residential commercial dual service badge",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="services" data-section="services">
        <ProductCardTwo
          title="Our Services"
          description="Comprehensive plumbing and electrical solutions for your home or business. Expert technicians ready to solve any problem."
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          products={[
            {
              id: "plumbing-repairs",
              brand: "Plumbing",
              name: "Leak Detection & Repair",
              price: "Affordable Rates",
              rating: 5,
              reviewCount: "280+ reviews",
              imageSrc: "http://img.b2bpic.net/free-photo/man-with-tools-looking-closely-lamp-hand_259150-58241.jpg",
              imageAlt: "Plumber detecting leak water damage repair",
            },
            {
              id: "drain-cleaning",
              brand: "Plumbing",
              name: "Drain Cleaning",
              price: "Starting at $150",
              rating: 5,
              reviewCount: "156+ reviews",
              imageSrc: "http://img.b2bpic.net/free-photo/male-plumber-working-fix-problems-client-s-house_23-2150990702.jpg",
              imageAlt: "Professional drain cleaning plumbing service",
            },
            {
              id: "water-heater",
              brand: "Plumbing",
              name: "Water Heater Service",
              price: "Installation & Repair",
              rating: 5,
              reviewCount: "312+ reviews",
              imageSrc: "http://img.b2bpic.net/free-photo/side-view-woman-working-as-plumber_23-2150746391.jpg",
              imageAlt: "Water heater installation service professional",
            },
            {
              id: "electrical-repair",
              brand: "Electrical",
              name: "Electrical Troubleshooting",
              price: "Fast Diagnosis",
              rating: 5,
              reviewCount: "189+ reviews",
              imageSrc: "http://img.b2bpic.net/free-photo/male-electrician-checking-switchboard-basement_651396-3066.jpg",
              imageAlt: "Electrician troubleshooting electrical problem",
            },
            {
              id: "panel-upgrade",
              brand: "Electrical",
              name: "Panel Upgrades",
              price: "Licensed Installation",
              rating: 5,
              reviewCount: "94+ reviews",
              imageSrc: "http://img.b2bpic.net/free-photo/male-electrician-uniform-working-switchboard-electricity_169016-67806.jpg",
              imageAlt: "Electrical panel upgrade installation professional",
            },
            {
              id: "emergency",
              brand: "Emergency",
              name: "24/7 Emergency Service",
              price: "Available Anytime",
              rating: 5,
              reviewCount: "425+ reviews",
              imageSrc: "http://img.b2bpic.net/free-photo/joyful-young-call-center-girl-wearing-headset-sitting-desk-talking-phone-using-laptop-isolated-orange_141793-84174.jpg",
              imageAlt: "Emergency plumber response burst pipe repair",
            },
          ]}
          buttons={[{ text: "Schedule Service Today", href: "/services" }]}
        />
      </div>

      <div id="why-choose-us" data-section="why-choose-us">
        <MetricSplitMediaAbout
          title="Why Choose Dickerson Plumbing & Electrical"
          description="We combine decades of experience with a customer-first approach. Every job—big or small—receives the same professional attention and expertise. Our reputation is built on reliability, honesty, and superior workmanship."
          tag="Industry Leaders"
          tagIcon={Award}
          tagAnimation="slide-up"
          metrics={[
            { value: "20+", title: "Years Experience" },
            { value: "2500+", title: "Jobs Completed" },
            { value: "100%", title: "Satisfaction Guarantee" },
            { value: "<20 min", title: "Avg Emergency Response" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/team-leader-doing-induction-new-trainees-industry-40-photovoltaics-plant_482257-126721.jpg"
          imageAlt="Professional Dickerson technician team"
          mediaAnimation="slide-up"
          metricsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="What Customers Are Saying"
          cardTag="Verified Reviews"
          cardTagIcon={Star}
          cardAnimation="blur-reveal"
          useInvertedBackground={true}
          testimonials={[
            {
              id: "testimonial-1",
              name: "Sarah Johnson",
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessmen-office_1098-240.jpg",
              imageAlt: "Satisfied homeowner happy customer portrait",
            },
            {
              id: "testimonial-2",
              name: "Michael Chen",
              imageSrc: "http://img.b2bpic.net/free-photo/woman-with-thumbs-up_1149-1163.jpg",
              imageAlt: "Satisfied business owner customer testimonial",
            },
            {
              id: "testimonial-3",
              name: "Emily Rodriguez",
              imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-taking-selfie-work_23-2148826501.jpg",
              imageAlt: "Happy customer service testimonial portrait",
            },
            {
              id: "testimonial-4",
              name: "David Kim",
              imageSrc: "http://img.b2bpic.net/free-photo/crazy-hippie-man-happy-expression_1194-3937.jpg",
              imageAlt: "Satisfied customer testimonial review portrait",
            },
            {
              id: "testimonial-5",
              name: "Jessica Martinez",
              imageSrc: "http://img.b2bpic.net/free-photo/cheerful-businessman-using-cellphone-laughing_1262-2965.jpg",
              imageAlt: "Customer testimonial satisfied service review",
            },
            {
              id: "testimonial-6",
              name: "Robert Williams",
              imageSrc: "http://img.b2bpic.net/free-photo/indoor-portrait-gorgeous-young-caucasian-female-student-with-perfect-healthy-skin_273609-9035.jpg",
              imageAlt: "Professional customer testimonial satisfied review",
            },
          ]}
        />
      </div>

      <div id="process" data-section="process">
        <MetricCardTen
          title="Our Simple Process"
          description="We make it easy to get the help you need. Four straightforward steps from call to completion."
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          metrics={[
            {
              id: "step-1",
              title: "Call or Request",
              subtitle: "Describe your issue",
              category: "Step 1",
              value: "Online or Phone",
            },
            {
              id: "step-2",
              title: "Fast Scheduling",
              subtitle: "We dispatch quickly",
              category: "Step 2",
              value: "<20 Min Response",
            },
            {
              id: "step-3",
              title: "Professional Repair",
              subtitle: "Licensed technician fixes it",
              category: "Step 3",
              value: "Quality Guaranteed",
            },
            {
              id: "step-4",
              title: "Clean Finish",
              subtitle: "Home restored perfectly",
              category: "Step 4",
              value: "100% Satisfaction",
            },
          ]}
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactText
          text="Need Plumbing or Electrical Help Today?"
          animationType="entrance-slide"
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={true}
          buttons={[
            { text: "Call Now: +1 (657) 439-3277", href: "tel:+16574393277" },
            { text: "Request Service Online", href: "/services" },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Dickerson Plumbing & Electrical"
          copyrightText="© 2025 Dickerson Plumbing & Electrical. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}