"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="medium"
        sizing="largeSmallSizeLargeTitles"
        background="blurBottom"
        cardStyle="soft-shadow"
        primaryButtonStyle="radial-glow"
        secondaryButtonStyle="solid"
        headingFontWeight="bold"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
            <NavbarLayoutFloatingInline
            navItems={[
                { name: "Home", id: "/" },
                { name: "Fleet", id: "/fleet" },
                { name: "Pricing", id: "/pricing" },
                { name: "Get My Free Estimate", id: "/estimate" },
                { name: "Contact us", id: "/contact-us" },
            ]}
            brandName="CleanScene"
            button={{ text: "Get Quote" }}
            />
        </div>

        <div id="hero" data-section="hero">
            <HeroSplitKpi
            background={{ variant: "gradient-bars" }}
            title="Set the Scene for a Flawless Event"
            titleClassName="text-[#0a7039]"
            description="Our premium restroom trailers offer the comfort of a quality interior space to provide modern hospitality."
            kpis={[
                { value: "10+", label: "Counties Served" },
                { value: "100%", label: "Guest Comfort" },
                { value: "100%", label: "Rental Satisfaction" },
            ]}
            enableKpiAnimation={true}
            buttons={[
                { text: "Get My Free Estimate", href: "/estimate" },
                { text: "View The Fleet", href: "/fleet" },
            ]}
            imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Cr9i1HT3S4vLNiV9XJ6S4fk81W/uploaded-1777135032652-q27squi7.jpg"
            mediaAnimation="slide-up"
            />
        </div>

        <div id="about" data-section="about">
            <TextSplitAbout
            useInvertedBackground={false}
            title="The CleanScene Difference"
            titleClassName="text-[#0a7039]"
            description={[
                "We believe restrooms shouldn't just be functional - they should be part of the event design and experience.", "Our trailers offer the comfort of a premium interior space with a touch of modern hospitality."
            ]}
            />
        </div>

        <div id="fleet-preview" data-section="fleet-preview">
            <ProductCardTwo
            animationType="slide-up"
            textboxLayout="split-description"
            gridVariant="asymmetric-60-wide-40-narrow"
            useInvertedBackground={false}
            products={[
                { id: "p1", brand: "CleanScene", name: "3 Station, Private Floorplan Restroom Trailer", price: "$1,375 per day", rating: 5, reviewCount: "128", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Cr9i1HT3S4vLNiV9XJ6S4fk81W/uploaded-1777832277795-ebq2l26f.png?_wi=2", onProductClick: () => window.location.href = "/fleet/p1" },
                { id: "p2", brand: "CleanScene", name: "4 Station, Community Floorplan Restroom Trailer", price: "$1,825 per day", rating: 5, reviewCount: "95", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Cr9i1HT3S4vLNiV9XJ6S4fk81W/uploaded-1777832470445-mr4qosuh.png?_wi=1", onProductClick: () => window.location.href = "/fleet/p2" },
            ]}
            title="Our Premium Fleet"
            textBoxTitleClassName="text-[#0a7039]"
            description="Made-in-USA trailers designed for peak comfort."
            buttons={[{ text: "View Details" }]}
            />
        </div>

        <div id="features" data-section="features">
            <FeatureCardOne
            animationType="slide-up"
            textboxLayout="default"
            gridVariant="uniform-all-items-equal"
            useInvertedBackground={false}
            title="Let us elevate your event"
            cardTitleClassName="text-[#0a7039]"
            description="Our premium rental fleet is designed to fit seamlessly into any event and leave a lasting impression."
            features={[
                { title: "Weddings & Private Parties", description: "", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Cr9i1HT3S4vLNiV9XJ6S4fk81W/uploaded-1777134554820-hv8fxndc.jpg" },
                { title: "Community Events", description: "", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Cr9i1HT3S4vLNiV9XJ6S4fk81W/uploaded-1777134554820-rdizvwfd.jpg?_wi=2" },
                { title: "Corporate Events", description: "", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Cr9i1HT3S4vLNiV9XJ6S4fk81W/uploaded-1777134554820-klkyjyqk.jpg" },
            ]}
            />
        </div>

        <div id="footer" data-section="footer">
            <FooterLogoEmphasis
            columns={[
                { items: [{ label: "Home", href: "/" }, { label: "Fleet", href: "/fleet" }, { label: "Pricing", href: "/pricing" }, { label: "Get My Free Estimate", href: "/estimate" }] },
                { items: [{ label: "Contact Us", href: "/contact-us" }, { label: "Privacy Policy", href: "/privacy" }, { label: "Terms", href: "/terms" }] },
            ]}
            logoText=""
            />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}