"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Waves, Droplet, Zap, Shield, MapPin, Sparkles } from 'lucide-react';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeLargeTitles"
      background="blurBottom"
      cardStyle="gradient-mesh"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Precision Pools"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Pool Installation", id: "/pool-installation" },
            { name: "Liner Replacement", id: "/liner-replacement" },
            { name: "Pool Services", id: "/pool-services" },
            { name: "Reviews", id: "/reviews" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Call (716) 563-4603",            href: "tel:+17165634603"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="Precision Pools"
          description="Owner-led service. Quality workmanship. Clean, fast installations across Western New York."
          buttons={[
            { text: "Call Now (716) 563-4603", href: "tel:+17165634603" },
            { text: "Get Free Quote", href: "/contact" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/handsome-man-sitting-near-swimming-pool-with-luggage-bag-posing_23-2148221972.jpg"
          imageAlt="Professional pool installation team in Tonawanda"
          showDimOverlay={true}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyFive
          title="Our Core Services"
          description="Professional pool solutions tailored to your needs"
          features={[
            {
              title: "Above-Ground Pool Installation",              description: "Fast, professional installation with precision and care. We handle everything from site preparation to final setup.",              icon: Waves,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/teenager-getting-out-from-bowl_23-2147678172.jpg",                  imageAlt: "Pool installation process"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/men-preparing-ride-skateboards_23-2147678227.jpg",                  imageAlt: "Completed pool installation"
                }
              ]
            },
            {
              title: "Pool Liner Replacement",              description: "Restore your pool with expert liner installation. We use quality materials and professional techniques.",              icon: Droplet,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/legs-skateboarders-ramp_23-2147678199.jpg",                  imageAlt: "Pool liner replacement"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/legs-skateboarder-preparing-ride_23-2147678296.jpg",                  imageAlt: "Water maintenance"
                }
              ]
            },
            {
              title: "Pool Maintenance & Service",              description: "Keep your pool running clean and smooth all season. Regular maintenance extends pool life and ensures crystal-clear water.",              icon: Zap,
              mediaItems: [
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/legs-skateboarder-preparing-ride_23-2147678296.jpg",                  imageAlt: "Pool cleaning and maintenance"
                },
                {
                  imageSrc: "https://img.b2bpic.net/free-photo/teenager-getting-out-from-bowl_23-2147678172.jpg",                  imageAlt: "Professional pool care"
                }
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="trust" data-section="trust">
        <MetricSplitMediaAbout
          tag="Why Choose Us"
          tagIcon={Shield}
          title="Your Trusted Local Pool Contractor"
          description="With 42+ verified customer reviews and a 4.6-star rating, Precision Pools has earned the trust of Western New York families. Our owner is personally involved in every project, ensuring quality workmanship, respectful crew behavior, and clear communication from start to finish."
          metrics={[
            { value: "4.6", title: "Star Rating (42+ Reviews)" },
            { value: "100%", title: "Owner-Led Projects" }
          ]}
          useInvertedBackground={true}
          imageSrc="https://img.b2bpic.net/free-photo/handsome-man-sitting-near-swimming-pool-with-luggage-bag-posing_23-2148221972.jpg"
          imageAlt="Precision Pools owner and team"
          mediaAnimation="slide-up"
          metricsAnimation="slide-up"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Join 42+ happy homeowners who trust Precision Pools"
          testimonials={[
            {
              id: "1",              name: "Jennifer Martinez, Tonawanda",              date: "Date: November 2024",              title: "Quick Installation, Quality Workmanship",              quote: "Quick installation, quality workmanship & great service! The owner was on-site the whole time. They treated our property with respect and cleaned up after themselves. We couldn't be happier with our new pool.",              tag: "Verified Homeowner",              avatarSrc: "https://img.b2bpic.net/free-photo/beautiful-young-african-american-woman-smiling-cheerful-friendly-face-laughing-confident_839833-29956.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/men-preparing-ride-skateboards_23-2147678227.jpg"
            },
            {
              id: "2",              name: "David Thompson, North Tonawanda",              date: "Date: October 2024",              title: "Restored My Faith in Contractors",              quote: "You've restored my faith that genuine people still exist. They showed up on time, did exactly what they promised, and the price was fair. The owner's personal touch made all the difference. Highly recommend!",              tag: "Verified Homeowner",              avatarSrc: "https://img.b2bpic.net/free-photo/smiling-man-with-cleaning-equipment-living-room_329181-649.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/teenager-getting-out-from-bowl_23-2147678172.jpg"
            },
            {
              id: "3",              name: "Sarah Chen, Amherst",              date: "Date: September 2024",              title: "Only Company I Trust for My Pool",              quote: "I've used Precision Pools for maintenance for 3 years now. They're reliable, professional, and genuinely care about keeping my pool in perfect condition. I won't use anyone else.",              tag: "Repeat Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/legs-skateboarder-preparing-ride_23-2147678296.jpg"
            },
            {
              id: "4",              name: "Michael Rodriguez, Buffalo",              date: "Date: August 2024",              title: "Best Pool Experience Ever",              quote: "From quote to completion, everything was professional and seamless. The crew was friendly, the work was perfect, and the owner made sure we understood every step. Worth every penny!",              tag: "Verified Homeowner",              avatarSrc: "https://img.b2bpic.net/free-photo/woman-showing-ok-sign_23-2148990150.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/legs-skateboarders-ramp_23-2147678199.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact-cta" data-section="contact-cta">
        <ContactCTA
          tag="Ready to Install Your Pool?"
          tagIcon={Sparkles}
          title="Let's Build Your Dream Pool"
          description="Whether you're looking for a new above-ground pool, liner replacement, or ongoing maintenance, our owner-led team is ready to help. Contact us today for a free, no-obligation estimate."
          buttons={[
            { text: "Call Now (716) 563-4603", href: "tel:+17165634603" },
            { text: "Request Free Estimate", href: "/contact" }
          ]}
          background={{ variant: "animated-grid" }}
          useInvertedBackground={true}
        />
      </div>

      <FooterLogoEmphasis
        logoText="Precision Pools"
        columns={[
          {
            items: [
              { label: "Home", href: "/" },
              { label: "Pool Installation", href: "/pool-installation" },
              { label: "Liner Replacement", href: "/liner-replacement" }
            ]
          },
          {
            items: [
              { label: "Pool Services", href: "/pool-services" },
              { label: "Reviews", href: "/reviews" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            items: [
              { label: "Tonawanda, NY 14150" },
              { label: "(716) 563-4603", href: "tel:+17165634603" },
              { label: "51 Fillmore Ave" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}