"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FeatureCardTwentyNine from '@/components/sections/feature/featureCardTwentyNine/FeatureCardTwentyNine';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroSplitTestimonial from '@/components/sections/hero/HeroSplitTestimonial';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import { Award, Clock, MapPin, Phone, ShieldCheck } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="hover-magnetic"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="mediumLarge"
        sizing="largeSmallSizeMediumTitles"
        background="none"
        cardStyle="glass-elevated"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="radial-glow"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        {
          name: "Home",
          id: "home",
        },
        {
          name: "Services",
          id: "services",
        },
        {
          name: "Why Choose Us",
          id: "why-choose-us",
        },
        {
          name: "Gallery",
          id: "gallery",
        },
        {
          name: "Testimonials",
          id: "testimonials",
        },
        {
          name: "About Us",
          id: "about-us",
        },
        {
          name: "Contact",
          id: "contact",
        },
      ]}
      brandName="Flow Electrical"
      button={{
        text: "Call Now",
        href: "tel:07919258655",
      }}
    />
  </div>

  <div id="home" data-section="home">
      <HeroSplitTestimonial
      useInvertedBackground={false}
      background={{
        variant: "plain",
      }}
      title="Reliable Electricians in Leeds You Can Trust"
      description="Flow Electrical Contractors provides fast, safe, and certified electrical services across Leeds and surrounding areas. From emergency repairs to full rewires, we ensure your home or business is powered efficiently and safely."
      testimonials={[
        {
          name: "Sarah J.",
          handle: "@HappyCustomer",
          testimonial: "Flow Electrical provided an excellent service. Quick response, professional, and fixed our wiring issue efficiently. Highly recommend!",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/successful-smiling-businesswoman-put-wireless-earphone-hold-digital-tablet_176420-19448.jpg",
          imageAlt: "Customer Sarah J.",
        },
        {
          name: "Mark P.",
          handle: "@LocalBusiness",
          testimonial: "Top-notch service for our office rewiring. The team was tidy, on time, and the work was completed to the highest standard. Very impressed!",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/portrait-cheerful-man-smiling-showing-thumb-up-blue-background_93675-134703.jpg",
          imageAlt: "Customer Mark P.",
        },
        {
          name: "Emily R.",
          handle: "@HomeownerLeeds",
          testimonial: "Had a consumer unit upgrade by Flow Electrical. Fantastic communication throughout and a fair price. Feeling much safer now!",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/indoor-shot-happy-student-girl-with-dark-hair-bun-smiling-cheerfully-keeping-hands-her-breast-pleased-with-unexpected-gift-from-her-boyfriend-positive-human-expressions-emotions_176420-10523.jpg",
          imageAlt: "Customer Emily R.",
        },
        {
          name: "David K.",
          handle: "@LeedsProperty",
          testimonial: "Their fault-finding service was brilliant. Diagnosed a tricky issue that others couldn't. Professional and reliable, will use again.",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg",
          imageAlt: "Customer David K.",
        },
        {
          name: "Olivia M.",
          handle: "@TrustpilotReview",
          testimonial: "Prompt emergency call-out and solved our power loss quickly. So grateful for their efficient and friendly service. Life savers!",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/charming-lady-smiling-while-keeping-arms-crossed-black-blouse-looking-jolly_176474-40344.jpg",
          imageAlt: "Customer Olivia M.",
        },
      ]}
      tag="5 Years Experience | NICEIC & CSCS Certified"
      buttons={[
        {
          text: "Call Now",
          href: "tel:07919258655",
        },
        {
          text: "Get a Free Quote",
          href: "#contact",
        },
      ]}
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/small-business-concept-handsome-businessman-cafe-owner-sitting-near-counter-with-laptop-smartphone-working-coffee-shop_1258-314430.jpg",
          alt: "Customer 1",
        },
        {
          src: "http://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg",
          alt: "Customer 2",
        },
        {
          src: "http://img.b2bpic.net/free-photo/laughing-happily-with-arms-crossed-with-relaxed-positive-satisfied-pose_1194-413783.jpg",
          alt: "Customer 3",
        },
        {
          src: "http://img.b2bpic.net/free-photo/happy-young-handsome-man-sitting-cafe-table_1262-975.jpg",
          alt: "Customer 4",
        },
        {
          src: "http://img.b2bpic.net/free-photo/crazy-dealer-happy-expression_1194-3984.jpg",
          alt: "Customer 5",
        },
      ]}
      avatarText="Trusted by hundreds of local homeowners and businesses."
      imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Eto6xUX4apEwJrgUUsnLlaRDrs/uploaded-1781095736937-qocpo4db.jpg"
      imageAlt="Electrician working on electrical wiring in a modern home"
      mediaAnimation="slide-up"
      marqueeItems={[
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/woman-engineer-inspects-electrical-panel-industrial-room-equipment-inspection_169016-71175.jpg",
          alt: "Electrician using testing equipment",
        },
        {
          type: "text-icon",
          text: "24/7 Emergency",
          icon: Phone,
        },
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/water-pump-automatic-control-box-isolated-white_627829-7495.jpg",
          alt: "Modern consumer unit installation",
        },
        {
          type: "text-icon",
          text: "NICEIC Certified",
          icon: Award,
        },
        {
          type: "image",
          src: "http://img.b2bpic.net/free-photo/male-electrician-works-switchboard-with-electrical-connecting-cab_169016-1474.jpg",
          alt: "Residential wiring work",
        },
      ]}
    />
  </div>

  <div id="services" data-section="services">
      <FeatureCardTwentyNine
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="four-items-2x2-equal-grid"
      useInvertedBackground={false}
      carouselMode="buttons"
      features={[
        {
          title: "Lighting Installation & Repair",
          description: "Brighten your home or business with new lighting, or get existing systems repaired for optimal efficiency and safety.",
          imageSrc: "http://img.b2bpic.net/free-photo/professional-overalls-with-tools-background-repair-site-home-renovation-concept_169016-7323.jpg",
          imageAlt: "Modern LED lighting installation",
          titleImageSrc: "http://img.b2bpic.net/free-photo/round-chandeliers-hanging-from-ceiling_250224-330.jpg",
          buttonText: "Learn More",
          buttonHref: "#contact",
        },
        {
          title: "Full & Partial Rewires",
          description: "Upgrade outdated wiring to meet current safety standards and ensure reliable power distribution throughout your property.",
          imageSrc: "http://img.b2bpic.net/free-photo/electrician-builder-work-examines-cable-connection-electrical-line-fuselage-industrial-switchboard-professional-overalls-with-electrician-s-tool_169016-7334.jpg",
          imageAlt: "Electrician rewiring an old house for safety",
          titleImageSrc: "http://img.b2bpic.net/free-photo/ceiling-glass-wall_1127-2092.jpg",
          buttonText: "Learn More",
          buttonHref: "#contact",
        },
        {
          title: "Electrical Fault Finding",
          description: "Quickly diagnose and resolve any electrical issues, from flickering lights to power outages, minimizing disruption to your day.",
          imageSrc: "http://img.b2bpic.net/free-photo/handsome-hispanic-man-working-shop-using-barcode-scanner-retail-shop_839833-11699.jpg",
          imageAlt: "Electrician troubleshooting an electrical fault",
          titleImageSrc: "http://img.b2bpic.net/free-photo/electrician-working_53876-16064.jpg",
          buttonText: "Learn More",
          buttonHref: "#contact",
        },
        {
          title: "Consumer Unit Upgrades",
          description: "Replace old fuse boxes with modern consumer units for enhanced safety, improved energy efficiency, and peace of mind.",
          imageSrc: "http://img.b2bpic.net/free-photo/abstract-minimal-background-with-floor_23-2149207757.jpg",
          imageAlt: "New consumer unit installation",
          titleImageSrc: "http://img.b2bpic.net/free-photo/delivery-man-clicking-bell-medium-shot_23-2148593099.jpg",
          buttonText: "Learn More",
          buttonHref: "#contact",
        },
      ]}
      title="Comprehensive Electrical Services for Leeds"
      description="From minor repairs to major installations, our certified electricians handle all your domestic and commercial electrical needs with expertise and efficiency."
    />
  </div>

  <div id="why-choose-us" data-section="why-choose-us">
      <MetricCardThree
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      carouselMode="buttons"
      metrics={[
        {
          id: "m1",
          icon: ShieldCheck,
          title: "Certified Professionals",
          value: "NICEIC & CSCS certified, ensuring all work meets the highest safety standards.",
        },
        {
          id: "m2",
          icon: Clock,
          title: "Prompt & Reliable",
          value: "Fast response times and efficient service, getting your electrical issues resolved quickly.",
        },
        {
          id: "m3",
          icon: MapPin,
          title: "Local Leeds Experts",
          value: "Proudly serving Leeds and surrounding areas with in-depth local knowledge and understanding.",
        },
        {
          id: "m4",
          icon: Award,
          title: "5 Years of Excellence",
          value: "Building a reputation for quality workmanship and customer satisfaction since 2019.",
        },
      ]}
      title="Why Flow Electrical is Your Best Choice"
      description="Choosing the right electrician means trusting their expertise and reliability. Here’s what sets us apart for residents and businesses in Leeds."
    />
  </div>

  <div id="gallery" data-section="gallery">
      <ProductCardFour
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      carouselMode="buttons"
      products={[
        {
          id: "p1",
          name: "Kitchen Rewire",
          price: "Project 1",
          variant: "Residential",
          imageSrc: "http://img.b2bpic.net/free-photo/man-doing-professional-home-cleaning-service_23-2150358950.jpg",
          imageAlt: "Completed kitchen wiring installation",
        },
        {
          id: "p2",
          name: "Outdoor Lighting",
          price: "Project 2",
          variant: "Residential",
          imageSrc: "http://img.b2bpic.net/free-photo/transparent-glass-illumination-retro-white_1232-3954.jpg",
          imageAlt: "Outdoor security lighting installation",
        },
        {
          id: "p3",
          name: "Office Fit-Out",
          price: "Project 3",
          variant: "Commercial",
          imageSrc: "http://img.b2bpic.net/free-photo/industrial-plant-managers-greet-investors-doing-handshake-showcasing-product_482257-119474.jpg",
          imageAlt: "Commercial office electrical fit-out",
        },
        {
          id: "p4",
          name: "Bathroom Fan",
          price: "Project 4",
          variant: "Residential",
          imageSrc: "http://img.b2bpic.net/free-photo/washbasin-hole_1339-1020.jpg",
          imageAlt: "Bathroom extractor fan installation",
        },
        {
          id: "p5",
          name: "Loft Conversion",
          price: "Project 5",
          variant: "Residential",
          imageSrc: "http://img.b2bpic.net/free-photo/woman-fixing-plug_53876-20682.jpg",
          imageAlt: "Loft conversion electrical wiring",
        },
        {
          id: "p6",
          name: "Garden Power",
          price: "Project 6",
          variant: "Residential",
          imageSrc: "http://img.b2bpic.net/free-photo/man-preparing-work-tools-bike-repair_482257-127989.jpg",
          imageAlt: "Garden shed power installation",
        },
      ]}
      title="Our Completed Work: Quality You Can See"
      description="Take a look at some of the electrical projects we’ve successfully completed for our satisfied clients across Leeds."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardTwo
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={false}
      carouselMode="buttons"
      testimonials={[
        {
          id: "test1",
          name: "John D.",
          role: "Homeowner, Adel",
          testimonial: "Flow Electrical fixed a complex wiring issue in my old house. Their professionalism and attention to detail were outstanding. Highly recommend their services!",
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-young-businesswoman_23-2149153829.jpg",
          imageAlt: "John D. from Adel",
        },
        {
          id: "test2",
          name: "Priya S.",
          role: "Small Business Owner, Leeds",
          testimonial: "We needed a full electrical inspection and safety certificate for our new cafe. Flow Electrical was efficient, thorough, and provided great advice. Excellent service!",
          imageSrc: "http://img.b2bpic.net/free-photo/happy-senior-woman-with-tablet-cafe_1262-3779.jpg",
          imageAlt: "Priya S. from Leeds",
        },
        {
          id: "test3",
          name: "Michael T.",
          role: "Landlord, Roundhay",
          testimonial: "Always use Flow Electrical for my rental properties. They're reliable, responsive, and their work is consistently high quality. Never had a complaint.",
          imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-shrugging-while-his-boyfriend-giving-her-engagement-ring_23-2147891252.jpg",
          imageAlt: "Michael T. from Roundhay",
        },
        {
          id: "test4",
          name: "Emma L.",
          role: "Resident, Horsforth",
          testimonial: "Had an emergency with flickering lights. Flow Electrical came out very quickly and resolved it safely and effectively. Reassuring to have such prompt service.",
          imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-using-hand-sanitizer_23-2148725208.jpg",
          imageAlt: "Emma L. from Horsforth",
        },
        {
          id: "test5",
          name: "Tom G.",
          role: "Property Developer, Moortown",
          testimonial: "For all our new builds, Flow Electrical handles the entire electrical installation. Their team is knowledgeable, adheres to deadlines, and delivers exceptional results.",
          imageSrc: "http://img.b2bpic.net/free-photo/vertical-shot-happy-young-man-with-suitcase-checking-rented-apartment-waving-hand-camera-walking-with-luggage-indoors_1258-314216.jpg",
          imageAlt: "Tom G. from Moortown",
        },
      ]}
      title="What Our Valued Customers Say"
      description="Our commitment to quality service and customer satisfaction speaks for itself through the words of those we've served."
    />
  </div>

  <div id="about-us" data-section="about-us">
      <TextSplitAbout
      useInvertedBackground={false}
      title="About Flow Electrical Contractors"
      description={[
        "Hi, I'm the owner of Flow Electrical Contractors. With 5 years of dedicated service in Leeds and the surrounding areas, my passion is providing safe, reliable, and straightforward electrical solutions for both homes and businesses.",
        "We pride ourselves on a no-nonsense approach, focusing on clear communication, transparent pricing, and quality workmanship. We understand the importance of a properly functioning electrical system, and we're committed to ensuring your peace of mind. As a local business, we genuinely care about our community and aim to build lasting relationships based on trust and excellent service.",
      ]}
      buttons={[
        {
          text: "Meet the Team",
          href: "#",
        },
        {
          text: "Our Certifications",
          href: "#",
        },
      ]}
      showBorder={false}
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplit
      useInvertedBackground={false}
      background={{
        variant: "plain",
      }}
      tag="Get in Touch"
      title="Your Local Electrician, Ready to Help"
      description="Have an electrical query or need to schedule a service? Contact Flow Electrical Contractors today for friendly, professional assistance across Leeds and surrounding areas. We're here to power your peace of mind.\n\nPhone: 07919 258655\nEmail: info@flowelectrical.co.uk\nAddress: 13 Dunstarn Dr, Adel, Leeds LS16 8EH\nOpening Hours: Mon–Sat 7am–7pm, Emergency callouts 24/7"
      imageSrc="http://img.b2bpic.net/free-photo/man-giving-taxi-services-through-app_23-2149149655.jpg"
      imageAlt="Map of Leeds and surrounding areas"
      mediaAnimation="slide-up"
      mediaPosition="right"
      inputPlaceholder="Your Name"
      buttonText="Send Message"
      termsText="By submitting, you agree to our privacy policy and terms of service."
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoText="Flow Electrical"
      columns={[
        {
          title: "Services",
          items: [
            {
              label: "Lighting",
              href: "#services",
            },
            {
              label: "Rewiring",
              href: "#services",
            },
            {
              label: "Fault Finding",
              href: "#services",
            },
            {
              label: "Consumer Units",
              href: "#services",
            },
          ],
        },
        {
          title: "Company",
          items: [
            {
              label: "About Us",
              href: "#about-us",
            },
            {
              label: "Our Work",
              href: "#gallery",
            },
            {
              label: "Testimonials",
              href: "#testimonials",
            },
            {
              label: "Contact Us",
              href: "#contact",
            },
          ],
        },
        {
          title: "Legal",
          items: [
            {
              label: "Privacy Policy",
              href: "#",
            },
            {
              label: "Terms of Service",
              href: "#",
            },
          ],
        },
      ]}
      copyrightText="© 2024 Flow Electrical Contractors. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
