"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroCarouselLogo from "@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo";
import SplitAbout from "@/components/sections/about/SplitAbout";
import FeatureCardMedia from "@/components/sections/feature/FeatureCardMedia";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import TestimonialCardFive from "@/components/sections/testimonial/TestimonialCardFive";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterCard from "@/components/sections/footer/FooterCard";
import { CheckCircle, Shield, Award, MapPin, Facebook, Twitter } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Services", id: "/services" },
  { name: "About", id: "/about" },
  { name: "Contact", id: "/contact" },
];

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="large"
      background="grid"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          navItems={navItems}
          brandName="Dennis King"
          button={{ text: "Call Now", href: "tel:+441904000000" }}
        />
      </div>

      {/* Hero Section */}
      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="DENNIS KING ELECTRICAL"
          description="50+ Years of Expert Domestic Electrical Installations in York"
          buttons={[
            { text: "Call Now", href: "tel:+441904000000" },
            { text: "Get Quote", href: "/contact" },
          ]}
          slides={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-working_53876-16064.jpg",
              imageAlt: "Professional electrician at work",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17661.jpg",
              imageAlt: "Electrical installation service",
            },
            {
              imageSrc: "http://img.b2bpic.net/free-vector/electrician-landing-page_23-2148716532.jpg",
              imageAlt: "Qualified electrician with tools",
            },
          ]}
          autoplayDelay={5000}
          showDimOverlay={true}
        />
      </div>

      {/* About Section */}
      <div id="about" data-section="about">
        <SplitAbout
          title="Five Decades of Electrical Excellence in York"
          description="Dennis King Electrical Limited has been serving York and surrounding areas for over 50 years. Our family-run business is built on a foundation of expertise, reliability, and unwavering commitment to safety. Every installation is performed by fully qualified electricians who stay current with the latest industry standards and regulations."
          tag="Our Story"
          bulletPoints={[
            {
              title: "Fully Qualified Electricians",
              description: "All our team members are certified and insured, ensuring compliance with UK electrical standards.",
              icon: CheckCircle,
            },
            {
              title: "Safety & Compliance First",
              description: "We prioritize your home's safety with rigorous adherence to electrical regulations and industry best practices.",
              icon: Shield,
            },
            {
              title: "Local Expertise",
              description: "Five decades serving York means we understand the unique electrical needs of local properties and infrastructure.",
              icon: Award,
            },
          ]}
          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="Dennis King Electrical professional team"
          imagePosition="right"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[{ text: "Learn More", href: "/about" }]}
        />
      </div>

      {/* Services Section */}
      <div id="services" data-section="services">
        <FeatureCardMedia
          title="Comprehensive Electrical Services"
          description="From rewires to EV charger installations, we offer complete domestic electrical solutions for York homeowners."
          tag="Our Services"
          features={[
            {
              id: "rewires",
              title: "Full & Partial Rewires",
              description: "Complete electrical system upgrades for older properties or partial rewiring for specific areas.",
              tag: "Rewiring",
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-working-near-board-with-wires-installation-connection-electrics_169016-5875.jpg",
              imageAlt: "Electrical rewiring work",
            },
            {
              id: "consumer-unit",
              title: "Consumer Unit Upgrades",
              description: "Modern fuse board replacements and upgrades to meet current safety standards.",
              tag: "Safety",
              imageSrc: "http://img.b2bpic.net/free-photo/man-electrical-technician-working-switchboard-with-fuses-installation-connection-electrical-equipment_169016-5073.jpg",
              imageAlt: "Consumer unit installation",
            },
            {
              id: "lighting",
              title: "Lighting Installations",
              description: "Indoor and outdoor lighting solutions, from ambient home lighting to landscape illumination.",
              tag: "Lighting",
              imageSrc: "http://img.b2bpic.net/free-photo/young-woman-wearing-embroidered-shirt_23-2149394271.jpg",
              imageAlt: "Modern lighting installation",
            },
            {
              id: "ev-charger",
              title: "EV Charger Installation",
              description: "Professional installation of electric vehicle charging points at your home.",
              tag: "EV Charging",
              imageSrc: "http://img.b2bpic.net/free-photo/close-view-man-plugging-charger-into-electric-car-charging-port_1268-21379.jpg",
              imageAlt: "EV charger installation",
            },
            {
              id: "fault-finding",
              title: "Electrical Fault Finding",
              description: "Expert diagnostics to identify and resolve electrical issues safely and efficiently.",
              tag: "Diagnosis",
              imageSrc: "http://img.b2bpic.net/free-photo/electrician-working_53876-16064.jpg",
              imageAlt: "Electrical fault diagnosis",
            },
            {
              id: "eicr",
              title: "EICR Safety Inspections",
              description: "Comprehensive electrical safety inspections and certification reports for peace of mind.",
              tag: "Inspection",
              imageSrc: "http://img.b2bpic.net/free-photo/solar-panel-manufacturing-plant-researcher-taking-notes-files_482257-125791.jpg",
              imageAlt: "EICR inspection work",
            },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          buttons={[{ text: "View All Services", href: "/services" }]}
        />
      </div>

      {/* Trust Signals Section */}
      <div id="trust-signals" data-section="trust-signals">
        <SocialProofOne
          title="Why Choose Dennis King Electrical"
          description="Your assurance of quality workmanship and professional service standards."
          tag="Trust & Credentials"
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "50+ Years Experience",
            "Fully Qualified Electricians",
            "Fully Insured",
            "Certified & Compliant",
            "Local York Experts",
            "24/7 Availability",
            "Free Quotations",
            "Customer Focused",
          ]}
          speed={50}
          showCard={true}
        />
      </div>

      {/* Testimonials Section */}
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Real feedback from York homeowners who trust Dennis King Electrical for their electrical needs."
          tag="Customer Stories"
          textboxLayout="default"
          useInvertedBackground={true}
          testimonials={[
            {
              id: "1",
              name: "Margaret Thompson, Homeowner",
              date: "Date: January 2025",
              title: "Excellent service and professionalism",
              quote: "Dennis King's team completely rewired our 1960s property. The work was thorough, clean, and completed on schedule. They explained everything clearly and answered all our questions. Highly recommended for anyone in York.",
              tag: "Rewiring",
              avatarSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",
              avatarAlt: "Margaret Thompson",
              imageSrc: "http://img.b2bpic.net/free-photo/cheerful-asian-handyman-hammering-nail-female-homeowner-giving-instructions_1098-17849.jpg",
              imageAlt: "Satisfied customer Margaret Thompson",
            },
            {
              id: "2",
              name: "James Wright, Homeowner",
              date: "Date: December 2024",
              title: "Professional and reliable",
              quote: "Had a fuse board upgrade done last month. The electricians were punctual, professional, and left the work area spotless. They're clearly experienced with older properties. Great value for money.",
              tag: "Consumer Unit",
              avatarSrc: "http://img.b2bpic.net/free-photo/confident-european-businessman-smiling-closeup-portrait-jobs-career-campaign_53876-128975.jpg",
              avatarAlt: "James Wright",
              imageSrc: "http://img.b2bpic.net/free-photo/man-electrical-technician-working-switchboard-with-fuses-installation-connection-electrical-equipment_169016-5073.jpg",
              imageAlt: "Customer James Wright",
            },
            {
              id: "3",
              name: "Susan Miller, Homeowner",
              date: "Date: November 2024",
              title: "Fast, efficient EV charger installation",
              quote: "Had my EV charger installed last month. The team was knowledgeable about the latest technology and completed everything quickly. They even explained maintenance tips. Perfect service.",
              tag: "EV Charging",
              avatarSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",
              avatarAlt: "Susan Miller",
              imageSrc: "http://img.b2bpic.net/free-photo/person-taking-care-electric-car_23-2149362794.jpg",
              imageAlt: "Susan Miller with her EV charger",
            },
            {
              id: "4",
              name: "Robert Jones, Homeowner",
              date: "Date: October 2024",
              title: "Solved a tricky electrical fault",
              quote: "We had intermittent electrical problems for months. Dennis King's team diagnosed and fixed the issue in one visit. Their expertise and fault-finding skills are outstanding. Very impressed.",
              tag: "Fault Finding",
              avatarSrc: "http://img.b2bpic.net/free-photo/confident-european-businessman-smiling-closeup-portrait-jobs-career-campaign_53876-128975.jpg",
              avatarAlt: "Robert Jones",
              imageSrc: "http://img.b2bpic.net/free-photo/composition-with-digital-tablet-electrician-work-items_169016-24255.jpg",
              imageAlt: "Robert Jones testimonial",
            },
            {
              id: "5",
              name: "Patricia Evans, Homeowner",
              date: "Date: September 2024",
              title: "Beautiful new lighting transforms our home",
              quote: "Our new outdoor and indoor lighting looks amazing. The electricians listened to our ideas and suggested improvements. Professional installation and very tidy work throughout.",
              tag: "Lighting",
              avatarSrc: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg",
              avatarAlt: "Patricia Evans",
              imageSrc: "http://img.b2bpic.net/free-photo/two-waiters-far-away-ready-service-prepared-desk-waiting-food-visitors-evening-time_146671-14405.jpg",
              imageAlt: "Patricia Evans home with lighting",
            },
            {
              id: "6",
              name: "David Chen, Homeowner",
              date: "Date: August 2024",
              title: "EICR inspection gave us peace of mind",
              quote: "Had an EICR safety inspection done before selling our property. Dennis King's thorough report and professional approach was exactly what we needed. Highly trustworthy team.",
              tag: "Safety",
              avatarSrc: "http://img.b2bpic.net/free-photo/confident-european-businessman-smiling-closeup-portrait-jobs-career-campaign_53876-128975.jpg",
              avatarAlt: "David Chen",
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-female-engineer-hand-controling-robot-arm-welding-machine-industrial-40-modern-factory-backgroundsmart-female-engineer-inspect-quality-control-factory_609648-856.jpg",
              imageAlt: "David Chen satisfied customer",
            },
          ]}
        />
      </div>

      {/* Contact CTA Section */}
      <div id="contact-cta" data-section="contact-cta">
        <ContactCTA
          tag="Ready to get started?"
          title="Contact Dennis King Electrical Today"
          description="Whether you need a free quotation, emergency repair, or safety inspection, our team is ready to help. Call us or get in touch using the form below."
          buttons={[
            { text: "Call 01904 000000", href: "tel:+441904000000" },
            { text: "Contact Form", href: "/contact" },
          ]}
          background={{ variant: "animated-grid" }}
          useInvertedBackground={false}
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Dennis King Electrical"
          copyrightText="© 2025 Dennis King Electrical Limited. All rights reserved."
          socialLinks={[
            { icon: Facebook, href: "https://facebook.com", ariaLabel: "Facebook" },
            { icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}