"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroSplitTestimonial from "@/components/sections/hero/HeroSplitTestimonial";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia";
import TextSplitAbout from "@/components/sections/about/TextSplitAbout";
import TestimonialCardFive from "@/components/sections/testimonial/TestimonialCardFive";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Zap, Award } 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: "Contact", id: "contact" },
  ];

  const navButton = {
    text: "Call Now",
    href: "tel:+15194441234",
  };

  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="noise"
      cardStyle="soft-shadow"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={navButton}
          brandName="Local Electric"
        />
      </div>

      {/* Hero Section */}
      <div id="hero" data-section="hero">
        <HeroSplitTestimonial
          title="Trusted Residential Electrician in London, Ontario"
          description="Fast, honest, and professional electrical service — when you need it most. 4.8★ rated by 19+ local customers. We're here for emergencies, renovations, and everything in between."
          tag="⚡ 4.8 Stars • 19+ Reviews"
          tagIcon={Zap}
          background={{ variant: "plain" }}
          imageSrc="http://img.b2bpic.net/free-photo/electrician-working-near-board-with-wires-installation-connection-electrics_169016-5875.jpg"
          imageAlt="Professional electrician performing residential electrical work"
          imagePosition="right"
          testimonials={[
            {
              name: "Sarah Mitchell",
              handle: "Homeowner, South London",
              testimonial: "Chris was incredibly responsive and showed up within 30 minutes. Honest, professional, and fair pricing. Couldn't ask for better!",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/confident-beautiful-young-businesswoman-looking-camera-head-shot-portrait_1163-4928.jpg",
            },
            {
              name: "James Rodriguez",
              handle: "Business Owner, Downtown London",
              testimonial: "Available on weekends and doesn't push unnecessary work. This is the kind of electrician you can trust with your home.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
            },
          ]}
          buttons={[
            { text: "Call Now", href: "tel:+15194441234" },
            { text: "Request a Quote", href: "#contact" },
          ]}
          mediaAnimation="slide-up"
          buttonAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      {/* Trust Bar Section */}
      <div id="trust-bar" data-section="trust-bar">
        <SocialProofOne
          title="Why Homeowners Choose Local Electric"
          description="Serving London, Ontario with speed, honesty, and professional craftsmanship"
          tag="Trusted Local Partner"
          tagIcon={Award}
          names={[
            "⚡ Fast Response Times (30 mins avg)",
            "💰 Honest & Transparent Pricing",
            "🔧 Professional Workmanship",
            "😊 Friendly & Easy to Deal With",
            "📅 Weekend Availability",
            "✓ Reliable — Shows Up When Promised",
          ]}
          textboxLayout="default"
          useInvertedBackground={true}
          speed={35}
          showCard={true}
        />
      </div>

      {/* Services Section */}
      <div id="services" data-section="services">
        <FeatureCardMedia
          title="Residential Electrical Services"
          description="From emergency repairs to complete home upgrades, we handle all your electrical needs with professionalism and care."
          features={[
            {
              id: "1",
              title: "Electrical Repairs",
              description: "Flickering lights, dead outlets, circuit breaker issues — we diagnose and fix any electrical problem quickly.",
              tag: "Emergency Ready",
              imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-composition-with-electrician-s-tools-accessories_169016-24022.jpg",
              imageAlt: "Electrician performing residential electrical repair",
            },
            {
              id: "2",
              title: "Lighting Installation",
              description: "Transform your home with professional indoor and outdoor lighting installations. Upgrades, fixtures, and design consultation included.",
              tag: "Interior & Exterior",
              imageSrc: "http://img.b2bpic.net/free-photo/modern-decorative-lamps_23-2148164736.jpg",
              imageAlt: "Beautiful residential lighting installation",
            },
            {
              id: "3",
              title: "EV Charger Installation",
              description: "Safe, reliable home EV charging stations installed to code. Fast turnaround on permits and installation.",
              tag: "Future Ready",
              imageSrc: "http://img.b2bpic.net/free-photo/electric-vehicle-parking_1127-3300.jpg",
              imageAlt: "EV charger installation at residential home",
            },
            {
              id: "4",
              title: "Renovation & Basement Wiring",
              description: "Complete wiring for bathrooms, basements, gyms, and full home renovations. Code-compliant and professionally executed.",
              tag: "Full Renos",
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-with-tools-working-construction-site_169016-5293.jpg",
              imageAlt: "Electrician working on basement renovation wiring",
            },
            {
              id: "5",
              title: "Panel Upgrades",
              description: "Modernize your electrical panel for safety and capacity. We handle all upgrades to current code standards.",
              tag: "Safety Upgrade",
              imageSrc: "http://img.b2bpic.net/free-photo/man-electrical-technician-working-switchboard-with-fuses-installation-connection-electrical-equipment_169016-5073.jpg",
              imageAlt: "Electrical panel upgrade and inspection",
            },
            {
              id: "6",
              title: "Hot Tub & Outdoor Wiring",
              description: "Expert installation for hot tubs, outdoor kitchens, and landscape lighting. All work done safely and to code.",
              tag: "Outdoor Living",
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-builder-work-servicing-fuselage-industrial-switchboard-professional-overalls-with-electrician-s-tool_169016-8634.jpg",
              imageAlt: "Hot tub electrical wiring installation",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "View All Services", href: "/services" }]}
        />
      </div>

      {/* Why Choose Section */}
      <div id="why-choose" data-section="why-choose">
        <TextSplitAbout
          title="Why Choose Local Electric?"
          description={[
            "Chris has been serving homeowners in London, Ontario for years with a simple philosophy: be honest, show up on time, and do quality work. He's not here to upsell you or push unnecessary services. Local Electric specializes in residential electrical work and treats your home with the same care he'd give his own.",
            "Every project is handled with professionalism and respect. From quick repairs to complex renovations, we take pride in clean workmanship and clear communication. You'll know what needs to be done and why — no surprises, no pressure, just honest expertise.",
          ]}
          buttons={[{ text: "Learn More About Us", href: "/about" }]}
          showBorder={false}
          useInvertedBackground={true}
        />
      </div>

      {/* Testimonials Section */}
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Clients Say"
          description="Real feedback from homeowners in London, Ontario who trust Local Electric"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell, Homeowner",
              date: "Date: December 2024",
              title: "Incredibly responsive and professional",
              quote: "Chris arrived within 30 minutes of my call for a flickering light issue. He diagnosed it quickly, explained the problem clearly, and charged fair prices. I've recommended him to all my neighbors.",
              tag: "Fast Service",
              avatarSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",
              avatarAlt: "Sarah Mitchell",
              imageSrc: "http://img.b2bpic.net/free-photo/male-electrician-working-switchboard-male-electrician-overalls-working-with-electricity_169016-66830.jpg",
              imageAlt: "Professional electrical work completed",
            },
            {
              id: "2",
              name: "James Rodriguez, Business Owner",
              date: "Date: November 2024",
              title: "Honest and doesn't push unnecessary work",
              quote: "Unlike some electricians, Chris doesn't try to upsell you on things you don't need. He gave me a straightforward assessment and fair quote. Weekend availability was a huge plus for our renovation timeline.",
              tag: "Honest Service",
              avatarSrc: "http://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",
              avatarAlt: "James Rodriguez",
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-working-near-board-with-wires-installation-connection-electrics_169016-5875.jpg",
              imageAlt: "Renovation wiring installation",
            },
            {
              id: "3",
              name: "Emily Chen, Homeowner",
              date: "Date: October 2024",
              title: "Clean work and friendly approach",
              quote: "Had Chris install new lighting throughout our basement. His team was clean, professional, and finished on schedule. We felt comfortable having them in our home — definitely coming back for the panel upgrade.",
              tag: "Professional",
              avatarSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",
              avatarAlt: "Emily Chen",
              imageSrc: "http://img.b2bpic.net/free-photo/modern-decorative-lamps_23-2148164840.jpg",
              imageAlt: "Basement lighting installation",
            },
            {
              id: "4",
              name: "David Park, EV Owner",
              date: "Date: September 2024",
              title: "Expert EV charger installation",
              quote: "Needed a Level 2 charger installed for my new Tesla. Chris handled permits, installation, and everything in between. He knew exactly what to do and answered all my questions. Couldn't be happier.",
              tag: "Expert Install",
              avatarSrc: "http://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",
              avatarAlt: "David Park",
              imageSrc: "http://img.b2bpic.net/free-photo/man-charging-electric-car-by-house_1303-31360.jpg",
              imageAlt: "EV charger installation",
            },
            {
              id: "5",
              name: "Lisa Wong, Homeowner",
              date: "Date: August 2024",
              title: "Sunday emergency service saved us",
              quote: "Our bathroom had no power on a Sunday evening. Chris came out, fixed a tripped breaker issue, and had us back up and running in 30 minutes. Very grateful he was available when we needed help.",
              tag: "Emergency Ready",
              avatarSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",
              avatarAlt: "Lisa Wong",
              imageSrc: "http://img.b2bpic.net/free-photo/male-electrician-working-switchboard-with-fuses_169016-53034.jpg",
              imageAlt: "Emergency electrical repair",
            },
            {
              id: "6",
              name: "Michael Thompson, Contractor",
              date: "Date: July 2024",
              title: "Reliable contractor for renovation work",
              quote: "I've worked with Chris on several client renovations. He's reliable, meets deadlines, and communicates well with homeowners. His professionalism makes my job easier. Highly recommended for any electrical work.",
              tag: "Trusted Partner",
              avatarSrc: "http://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",
              avatarAlt: "Michael Thompson",
              imageSrc: "http://img.b2bpic.net/free-photo/happy-manual-worker-presenting-results-business-development-while-giving-presentation-company-leaders-his-team-factory_637285-4144.jpg",
              imageAlt: "Renovation electrical coordination",
            },
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      {/* CTA Section */}
      <div id="cta" data-section="cta">
        <ContactCTA
          tag="Ready to Get Started?"
          tagIcon={Zap}
          title="Need a Reliable Electrician You Can Trust?"
          description="Call Local Electric today for fast service in London, Ontario. Emergency calls welcome. Honest pricing, professional work, every time."
          buttons={[
            { text: "Call (519) 444-1234", href: "tel:+15194441234" },
            { text: "Request a Quote", href: "/contact" },
          ]}
          background={{ variant: "noise" }}
          useInvertedBackground={false}
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Local Electric"
          columns={[
            {
              items: [
                { label: "Home", href: "/" },
                { label: "Services", href: "/services" },
                { label: "About", href: "/about" },
              ],
            },
            {
              items: [
                { label: "Reviews", href: "/reviews" },
                { label: "Contact", href: "/contact" },
                { label: "Emergency Service", href: "tel:+15194441234" },
              ],
            },
            {
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "License & Insurance", href: "#" },
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}