"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FaqBase from '@/components/sections/faq/FaqBase';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import HeroBillboardTestimonial from '@/components/sections/hero/HeroBillboardTestimonial';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import { Droplets, ShieldCheck, Zap } from "lucide-react";
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="medium"
        sizing="largeSmallSizeLargeTitles"
        background="aurora"
        cardStyle="layered-gradient"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="solid"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
          <NavbarStyleCentered
            navItems={[
              { name: "Home", id: "hero" },
              { name: "Services", id: "features" },
              { name: "About", id: "about" },
              { name: "Reviews", id: "testimonials" },
              { name: "Contact", id: "contact" },
            ]}
            brandName="Aqua Plumbing"
          />
        </div>

        <div id="hero" data-section="hero">
          <HeroBillboardTestimonial
            useInvertedBackground={false}
            background={{ variant: "plain" }}
            title="Trusted Plumbing Solutions, Fast Reliable Service"
            description="Same-day emergency repairs, licensed professionals, and transparent pricing. Available 24/7 for your plumbing emergencies."
            testimonials={[
              { name: "Sarah Miller", handle: "@smiller", testimonial: "Incredibly fast response time! Fixed our leak within an hour.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721550.jpg?_wi=1" },
              { name: "John Doe", handle: "@jdoe", testimonial: "Very professional and transparent about costs. Highly recommend.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/happy-auto-repairman-handshaking-with-customer-workshop_637285-8634.jpg?_wi=1" },
              { name: "Alice Green", handle: "@aliceg", testimonial: "The best plumbing service in town. Reliable and clean.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-plumber_23-2150746316.jpg?_wi=1" },
              { name: "Mark Evans", handle: "@marke", testimonial: "Saved the day during our bathroom emergency. Great team.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/woman-with-smartphone-near-ear-looking-sink_259150-58298.jpg" },
              { name: "Linda White", handle: "@lindaw", testimonial: "Honest quotes and quality craftsmanship every single time.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/smiley-senior-couple-holding-their-tablet_23-2148404369.jpg" }
            ]}
            buttons={[{ text: "Get Your Free Quote", href: "#contact" }]}
            imageSrc="http://img.b2bpic.net/free-photo/solution-top-view-man-plumber-overalls-fixing-breakdown-sink_259150-58267.jpg?_wi=1"
            imageAlt="Professional plumbing services provided by licensed experts"
            avatars={[
              { src: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721550.jpg", alt: "Customer Sarah" },
              { src: "http://img.b2bpic.net/free-photo/happy-auto-repairman-handshaking-with-customer-workshop_637285-8634.jpg", alt: "Customer John" },
              { src: "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-plumber_23-2150746316.jpg", alt: "Customer Alice" },
              { src: "http://img.b2bpic.net/free-photo/woman-with-smartphone-near-ear-looking-sink_259150-58298.jpg", alt: "Customer Mark" },
              { src: "http://img.b2bpic.net/free-photo/smiley-senior-couple-holding-their-tablet_23-2148404369.jpg", alt: "Customer Linda" }
            ]}
            avatarText="Trusted by 500+ happy clients"
            marqueeItems={[
              { type: "text", text: "24/7 Emergency Support" },
              { type: "text", text: "Licensed & Insured" },
              { type: "text", text: "Transparent Pricing" },
              { type: "text", text: "Quality Guaranteed" },
              { type: "text", text: "Same-Day Service" }
            ]}
          />
        </div>

        <div id="features" data-section="features">
          <FeatureBento
            animationType="slide-up"
            textboxLayout="default"
            useInvertedBackground={true}
            features={[
              { title: "Emergency Repairs", description: "Rapid 24/7 response to handle your urgent plumbing crises efficiently.", bentoComponent: "reveal-icon", icon: Zap },
              { title: "General Maintenance", description: "Preventative care to keep your systems running smoothly all year.", bentoComponent: "reveal-icon", icon: ShieldCheck },
              { title: "Drain Cleaning", description: "Advanced equipment to clear stubborn blockages and restore flow.", bentoComponent: "reveal-icon", icon: Droplets }
            ]}
            title="Our Specialized Plumbing Services"
            description="We offer comprehensive residential and commercial solutions tailored to your unique needs."
          />
        </div>

        <div id="about" data-section="about">
          <InlineImageSplitTextAbout
            useInvertedBackground={false}
            heading={[
              { type: "text", content: "Professional Plumbing Experts" },
              { type: "image", src: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721579.jpg", alt: "Plumbing service team" }
            ]}
          />
        </div>

        <div id="testimonials" data-section="testimonials">
          <TestimonialCardTen
            textboxLayout="split"
            useInvertedBackground={true}
            testimonials={[
              { id: "1", title: "Excellent Support", quote: "They arrived within an hour for our emergency. Truly reliable.", name: "Sarah M.", role: "Homeowner", imageSrc: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721550.jpg?_wi=1" },
              { id: "2", title: "Transparent Pricing", quote: "I appreciate the upfront pricing and honesty. No surprises!", name: "John D.", role: "Property Manager", imageSrc: "http://img.b2bpic.net/free-photo/happy-auto-repairman-handshaking-with-customer-workshop_637285-8634.jpg?_wi=1" },
              { id: "3", title: "Professional Work", quote: "Fast, effective, and left everything clean. Excellent job.", name: "Alice G.", role: "Homeowner", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-plumber_23-2150746316.jpg?_wi=1" }
            ]}
            title="Trusted by Our Clients"
            description="Read what our satisfied customers have to say about our professional service."
          />
        </div>

        <div id="faq" data-section="faq">
          <FaqBase
            textboxLayout="default"
            useInvertedBackground={false}
            faqs={[
              { id: "1", title: "Do you offer emergency services?", content: "Yes, we are available 24/7 for all your plumbing emergencies." },
              { id: "2", title: "Are your plumbers licensed?", content: "Absolutely, all our professionals are fully licensed and insured." },
              { id: "3", title: "How do you handle quotes?", content: "We provide transparent, upfront quotes before any work begins." }
            ]}
            title="Common Plumbing Questions"
            description="Answers to the most frequently asked questions about our services."
            faqsAnimation="slide-up"
          />
        </div>

        <div id="contact" data-section="contact">
          <ContactCenter
            useInvertedBackground={true}
            background={{ variant: "plain" }}
            tag="Get In Touch"
            title="Ready for a Quote?"
            description="Contact our team for reliable plumbing services today."
          />
        </div>

        <div id="footer" data-section="footer">
          <FooterMedia
            imageSrc="http://img.b2bpic.net/free-photo/solution-top-view-man-plumber-overalls-fixing-breakdown-sink_259150-58267.jpg?_wi=2"
            columns={[
              { title: "Services", items: [
                { label: "Emergency Repair", href: "#features" },
                { label: "Maintenance", href: "#features" },
                { label: "Drain Cleaning", href: "#features" }
              ]},
              { title: "Company", items: [
                { label: "About Us", href: "#about" },
                { label: "Contact", href: "#contact" }
              ]}
            ]}
            logoText="Aqua Plumbing"
            copyrightText="© 2025 Aqua Plumbing Services"
          />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}