"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Zap, Lightbulb, Sun, Wrench, Home, CheckCircle, MessageCircle, Calendar, Phone } from "lucide-react";
import Link from "next/link";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="small"
      sizing="medium"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="layered"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" },
            { name: "Reviews", id: "/reviews" }
          ]}
          brandName="Stemple Electric"
          bottomLeftText="Licensed • Insured • Fast Response"
          bottomRightText="(307) 555-ELEC"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit 
          logoText="STEMPLE ELECTRIC"
          description="Bright, reliable electrical work done right. Residential & light commercial electrical services across Wyoming. Clean work, clear pricing, and fast scheduling."
          background={{ variant: "circleGradient" }}
          buttons={[
            { text: "Call Now", href: "tel:+13075551352" },
            { text: "Get Free Estimate", href: "/contact" }
          ]}
          layoutOrder="default"
          imageSrc="http://img.b2bpic.net/free-photo/electrician-working-switchboard-with-electrical-connection-cable-copy-space_169016-53646.jpg"
          imageAlt="Professional electrician working on modern electrical panel"
          frameStyle="card"
          mediaAnimation="slide-up"
          buttonAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyFive 
          title="Our Electrical Services"
          description="Complete electrical solutions for homes and light commercial properties across Wyoming"
          tag="Services"
          tagIcon={Zap}
          features={[
            {
              title: "Panel Upgrades & Breaker Replacement",
              description: "Safe, code-compliant electrical panel upgrades and repairs",
              icon: Lightbulb,
              mediaItems: [
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/electrician-switchboard-room-cable-connection-electrical-system-installation_169016-68225.jpg?_wi=1",
                  imageAlt: "Electrical panel upgrade in progress"
                },
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/electrical-technician-looking-focused-while-working-switchboard-with-fuses_169016-23482.jpg?_wi=1",
                  imageAlt: "Modern electrical panel installation"
                }
              ]
            },
            {
              title: "Lighting Installation",
              description: "Indoor & outdoor lighting design and installation",
              icon: Sun,
              mediaItems: [
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/young-woman-wearing-embroidered-shirt_23-2149394271.jpg?_wi=1",
                  imageAlt: "Modern interior lighting installation"
                },
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/two-waiters-far-away-ready-service-prepared-desk-waiting-food-visitors-evening-time_146671-14405.jpg?_wi=1",
                  imageAlt: "Outdoor lighting installation"
                }
              ]
            },
            {
              title: "Electrical Troubleshooting & Repairs",
              description: "Fast diagnosis and repair of electrical issues",
              icon: Wrench,
              mediaItems: [
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-composition-with-electrician-s-tools-accessories_169016-24022.jpg?_wi=1",
                  imageAlt: "Electrician diagnosing electrical problem"
                },
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-composition-with-electrician-s-tools-accessories_169016-24022.jpg?_wi=2",
                  imageAlt: "Professional electrical repair work"
                }
              ]
            },
            {
              title: "EV Charger Installation",
              description: "Home electric vehicle charging station setup & installation",
              icon: Zap,
              mediaItems: [
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/close-view-man-plugging-charger-into-electric-car-charging-port_1268-21379.jpg?_wi=1",
                  imageAlt: "EV charger installation at home"
                },
                {
                  imageSrc: "http://img.b2bpic.net/free-photo/woman-charging-electro-car-by-her-house_1303-17808.jpg?_wi=1",
                  imageAlt: "Modern EV charging station"
                }
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout 
          heading={[
            { type: "text", content: "Why Choose" },
            { type: "text", content: "Stemple Electric" }
          ]}
          useInvertedBackground={false}
          buttons={[
            { text: "Schedule Service", href: "/contact" },
            { text: "Call Us Today", href: "tel:+13075551352" }
          ]}
        />
      </div>

      <div id="benefits" data-section="benefits">
        <MetricCardTwo 
          title="Why Stemple Electric Stands Out"
          description="Our commitment to excellence across every aspect of service"
          metrics={[
            { id: "1", value: "100%", description: "Straight answers, no runaround" },
            { id: "2", value: "Code", description: "Compliant, clean workmanship" },
            { id: "3", value: "Text", description: "Updates + easy scheduling" },
            { id: "4", value: "Respect", description: "Respectful in your home" }
          ]}
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen 
          title="What Our Customers Say"
          description="Real feedback from homeowners and businesses across Wyoming"
          textboxLayout="default"
          useInvertedBackground={false}
          showRating={true}
          testimonials={[
            {
              id: "1",
              name: "James Mitchell",
              handle: "@jmitchell_wy",
              testimonial: "Stemple Electric fixed our panel issue in less than a day. Professional, clean work, and they explained everything clearly. Will definitely call them again!",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=1"
            },
            {
              id: "2",
              name: "Sarah Chen",
              handle: "@sarahc_cheyenne",
              testimonial: "Had them install a new EV charger at our home. The installation was seamless and they were incredibly respectful of our space. Highly recommend!",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/confident-beautiful-young-businesswoman-looking-camera-head-shot-portrait_1163-4928.jpg?_wi=1"
            },
            {
              id: "3",
              name: "Robert Thompson",
              handle: "@rthompson_laramie",
              testimonial: "We needed emergency lighting repairs during a storm. They responded quickly and the work was solid. Great to have a reliable electrician in Laramie.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/closeup-handsome-middle-aged-business-leader_1262-4822.jpg?_wi=1"
            }
          ]}
          animationType="slide-up"
          buttonAnimation="slide-up"
        />
      </div>

      <div id="service-areas" data-section="service-areas">
        <SocialProofOne 
          title="Serving Communities Across Wyoming"
          description="From Cheyenne to the western border, we're your trusted local electrician"
          textboxLayout="default"
          useInvertedBackground={false}
          names={["Cheyenne", "Casper", "Laramie", "Gillette", "Sheridan", "Rock Springs", "Evanston", "Green River"]}
          showCard={true}
          speed={40}
        />
      </div>

      <FooterMedia 
        imageSrc="http://img.b2bpic.net/free-vector/electrical-works-horizontal-banners_1284-10214.jpg?_wi=1"
        imageAlt="Modern electrical work and safety"
        logoText="Stemple Electric LLC"
        copyrightText="© 2025 Stemple Electric LLC. All rights reserved."
        columns={[
          {
            title: "Services",
            items: [
              { label: "Panel Upgrades", href: "/services#panel-upgrades" },
              { label: "Lighting Installation", href: "/services#lighting" },
              { label: "EV Chargers", href: "/services#ev-chargers" },
              { label: "Troubleshooting & Repairs", href: "/services#repairs" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Contact", href: "/contact" },
              { label: "Reviews", href: "/reviews" },
              { label: "FAQ", href: "/#faq" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Phone: (307) 555-ELEC", href: "tel:+13075551352" },
              { label: "Email: info@stempleelectric.com", href: "mailto:info@stempleelectric.com" },
              { label: "License & Insurance", href: "#" },
              { label: "Privacy Policy", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}