"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import FooterCard from '@/components/sections/footer/FooterCard';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import { Award, Droplet, Droplets, Facebook, Instagram, LifeBuoy, Linkedin, ShieldCheck, Snowflake, Star, Wrench, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="entrance-slide"
        borderRadius="rounded"
        contentWidth="mediumLarge"
        sizing="largeSizeMediumTitles"
        background="circleGradient"
        cardStyle="layered-gradient"
        primaryButtonStyle="diagonal-gradient"
        secondaryButtonStyle="solid"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        {
          name: "Home",
          id: "#home",
        },
        {
          name: "Services",
          id: "#services",
        },
        {
          name: "About Us",
          id: "#about",
        },
        {
          name: "Testimonials",
          id: "#testimonials",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      brandName="Piranha Plumbing & Gas"
      button={{
        text: "Get a Free Quote",
        href: "#contact",
      }}
    />
  </div>

  <div id="home" data-section="home">
      <HeroLogoBillboard
      background={{
        variant: "rotated-rays-static",
      }}
      logoText="Piranha Plumbing & Gas"
      description="Brisbane's trusted choice for premium plumbing and gas solutions. Fast response, honest service, and quality workmanship you can rely on."
      buttons={[
        {
          text: "Get a Free Quote",
          href: "#contact",
        },
        {
          text: "Call Us Now",
          href: "tel:+61730000000",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/small-bathroom-with-window-apartment_181624-19696.jpg"
      imageAlt="Luxurious modern kitchen with elegant plumbing fixtures and a subtle Piranha Plumbing & Gas service vehicle visible through the window."
      mediaAnimation="slide-up"
    />
  </div>

  <div id="about" data-section="about">
      <TextSplitAbout
      useInvertedBackground={true}
      title="Trusted Local Expertise, Premium Service"
      description={[
        "As a proudly Brisbane-owned and operated company, Piranha Plumbing & Gas brings owner-led expertise to every job. Our commitment to reliability, honesty, and quality workmanship is at the core of everything we do.",
        "We understand the unique needs of Brisbane homeowners, especially when it comes to preserving the value and comfort of high-end properties. From urgent repairs to complex installations, our certified professionals deliver tailored solutions with meticulous attention to detail.",
      ]}
      buttons={[
        {
          text: "Meet Our Team",
          href: "#about",
        },
      ]}
    />
  </div>

  <div id="services" data-section="services">
      <FeatureHoverPattern
      animationType="scale-rotate"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          icon: Wrench,
          title: "Expert Plumbing Repairs",
          description: "From leaky faucets to burst pipes, we handle all plumbing emergencies and routine repairs with speed and precision.",
        },
        {
          icon: LifeBuoy,
          title: "Certified Gas Fitting",
          description: "Safe and compliant installation, repair, and maintenance for all residential gas systems and appliances.",
        },
        {
          icon: Droplets,
          title: "Luxury Bathroom Renovations",
          description: "Transform your bathroom with our expert plumbing services for high-end renovations and new installations.",
        },
        {
          icon: Droplets,
          title: "Kitchen & Fixture Upgrades",
          description: "Modernise your kitchen with professional fixture installations, including sinks, taps, and dishwashers.",
        },
        {
          icon: Snowflake,
          title: "Hot Water System Solutions",
          description: "Installation, repair, and servicing for all types of hot water systems, ensuring reliable comfort.",
        },
        {
          icon: Droplet,
          title: "Advanced Leak Detection",
          description: "Utilising cutting-edge technology to accurately locate and repair hidden leaks, preventing costly damage.",
        },
      ]}
      title="Comprehensive Plumbing & Gas Services"
      description="Piranha Plumbing & Gas offers a full spectrum of premium services designed for Brisbane's discerning homeowners."
    />
  </div>

  <div id="trust" data-section="trust">
      <MetricCardThree
      animationType="depth-3d"
      textboxLayout="default"
      useInvertedBackground={true}
      metrics={[
        {
          id: "m1",
          icon: Award,
          title: "Years in Service",
          value: "15+",
        },
        {
          id: "m2",
          icon: ShieldCheck,
          title: "Licensed & Insured",
          value: "Fully Compliant",
        },
        {
          id: "m3",
          icon: Zap,
          title: "Rapid Response",
          value: "24/7 Availability",
        },
        {
          id: "m4",
          icon: Star,
          title: "5-Star Reviews",
          value: "Consistent Quality",
        },
      ]}
      title="Why Brisbane Homeowners Trust Piranha"
      description="Our commitment to excellence is reflected in every service call, ensuring peace of mind for our clients."
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={false}
      names={[
        "Brisbane Luxury Homes",
        "Riverbend Estates",
        "Elite Property Group",
        "Cityview Residences",
        "Prestige Living QLD",
        "Harbourfront Developers",
        "Signature Properties",
        "Apex Asset Management",
      ]}
      title="Trusted by Leading Brisbane Properties"
      description="Our dedication to high standards has earned us the confidence of numerous prestigious clients and property managers across Brisbane."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={true}
      testimonials={[
        {
          id: "1",
          name: "Sarah J.",
          role: "Homeowner",
          company: "Hamilton",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/male-plumber-working-with-client-fix-kitchen-problems_23-2150990680.jpg",
          videoAriaLabel: "Sarah J. Testimonial",
        },
        {
          id: "2",
          name: "Michael D.",
          role: "Property Developer",
          company: "New Farm",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/closeup-happy-good-looking-young-man_1262-3489.jpg",
          videoAriaLabel: "Michael D. Testimonial",
        },
        {
          id: "3",
          name: "Emily R.",
          role: "Estate Manager",
          company: "Ascot",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-women-reading-cellphone-messages_23-2150273387.jpg",
          videoAriaLabel: "Emily R. Testimonial",
        },
        {
          id: "4",
          name: "David K.",
          role: "Client",
          company: "Paddington",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/front-view-real-estate-agent-holding-tablet_23-2150225237.jpg",
          videoAriaLabel: "David K. Testimonial",
        },
        {
          id: "5",
          name: "Jessica L.",
          role: "Homeowner",
          company: "Bulimba",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/portrait-bald-senior-dressed-stylish-suit-posing-against-dark-background_613910-17578.jpg",
          videoAriaLabel: "Jessica L. Testimonial",
        },
        {
          id: "6",
          name: "Chris B.",
          role: "Builder",
          company: "Toowong",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/business-woman-green-suit-using-phone-outside-street_1303-29546.jpg",
          videoAriaLabel: "Chris B. Testimonial",
        },
      ]}
      title="What Our Valued Clients Say"
      description="Hear directly from Brisbane homeowners about their Piranha Plumbing & Gas experience."
    />
  </div>

  <div id="emergency" data-section="emergency">
      <ProductCardFour
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      products={[
        {
          id: "p1",
          name: "Emergency Plumbing",
          price: "Call for Quote",
          variant: "Burst Pipes, Blocked Drains",
          imageSrc: "http://img.b2bpic.net/free-photo/delivery-man-employee-red-cap-blank-tshirt-uniform-talking-mobile-phone-being-angry-frustrated-raising-arm-yelling-standing-blue-background_141793-134285.jpg",
          imageAlt: "Plumber quickly fixing a burst pipe during an emergency callout.",
        },
        {
          id: "p2",
          name: "Hot Water Systems",
          price: "Call for Quote",
          variant: "Repair, Installation, Service",
          imageSrc: "http://img.b2bpic.net/free-photo/man-drinking-hot-beverage-energy-crisis_23-2150061897.jpg",
          imageAlt: "Professional installing a modern hot water system in a neat utility area.",
        },
        {
          id: "p3",
          name: "Drainage Solutions",
          price: "Call for Quote",
          variant: "Unblocking, Repairs, Inspections",
          imageSrc: "http://img.b2bpic.net/free-photo/full-shot-environmental-engineer-taking-water-sample_23-2149354041.jpg",
          imageAlt: "Plumber using high-pressure jetting equipment to unblock a drain.",
        },
        {
          id: "p4",
          name: "Fixture & Tapware",
          price: "Call for Quote",
          variant: "Installation & Replacement",
          imageSrc: "http://img.b2bpic.net/free-photo/black-faucet-with-steel-sink-stylish-modern-kitchen_169016-20011.jpg",
          imageAlt: "Elegant kitchen faucet being expertly installed by a plumber.",
        },
        {
          id: "p5",
          name: "Leak Detection",
          price: "Call for Quote",
          variant: "Precision Leak Detection & Repair",
          imageSrc: "http://img.b2bpic.net/free-photo/photo-wall-texture-pattern_58702-15367.jpg",
          imageAlt: "Advanced tools used for precise leak detection in a wall.",
        },
        {
          id: "p6",
          name: "Gas Compliance & Inspection",
          price: "Call for Quote",
          variant: "Safety Checks & Certificates",
          imageSrc: "http://img.b2bpic.net/free-photo/beautiful-blonde-girl-cooking-food-frying-pan-use-mobile-phone-smiling-while-cooking-kitchen-home_231208-1425.jpg",
          imageAlt: "Gas fitter performing a safety inspection with specialized equipment.",
        },
      ]}
      title="Urgent Solutions, Unmatched Reliability"
      description="When plumbing and gas emergencies strike, Piranha is ready with rapid, professional response across Brisbane."
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCenter
      useInvertedBackground={true}
      background={{
        variant: "radial-gradient",
      }}
      tag="Get Your Free Quote Today"
      title="Connect with Brisbane's Premier Plumbing & Gas Experts"
      description="Ready for reliable, high-quality plumbing and gas services? Contact Piranha Plumbing & Gas for a no-obligation quote or urgent assistance."
      inputPlaceholder="Your Email Address"
      buttonText="Request Quote"
      termsText="By clicking Request Quote, you agree to our terms and privacy policy."
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterCard
      logoText="Piranha Plumbing & Gas"
      copyrightText="© 2024 Piranha Plumbing & Gas. All rights reserved."
      socialLinks={[
        {
          icon: Facebook,
          href: "#",
          ariaLabel: "Facebook",
        },
        {
          icon: Instagram,
          href: "#",
          ariaLabel: "Instagram",
        },
        {
          icon: Linkedin,
          href: "#",
          ariaLabel: "LinkedIn",
        },
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
