"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactText from '@/components/sections/contact/ContactText';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import HeroSplitTestimonial from '@/components/sections/hero/HeroSplitTestimonial';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="hover-magnetic"
        defaultTextAnimation="background-highlight"
        borderRadius="soft"
        contentWidth="medium"
        sizing="large"
        background="grid"
        cardStyle="glass-depth"
        primaryButtonStyle="double-inset"
        secondaryButtonStyle="glass"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        { name: "About", id: "about" },
        { name: "Properties", id: "properties" },
        { name: "Contact", id: "contact" },
      ]}
      logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3DXy8yrvjnxPhDkl0lrG4JRwPo3/uploaded-1778446079029-gwdmqa3e.jpg"
      brandName="Bright View"
      button={{ text: "Get Started" }}
    />
  </div>

  <div id="hero" data-section="hero">
    <HeroSplitTestimonial
      title="Luxury Redefined for the Modern Investor"
      description="Exceptional properties curated with precision and elegance."
      background={{ variant: "gradient-bars" }}
      testimonials={[
        { name: "Elena V.", handle: "@elena_v", testimonial: "The service and attention to detail were unmatched.", rating: 5 }
      ]}
      buttons={[{ text: "View Gallery" }]}
    />
  </div>

  <div id="about" data-section="about">
      <InlineImageSplitTextAbout
      useInvertedBackground={false}
      heading={[{ type: 'text', content: "Defining Excellence in Global Luxury Real Estate" }]}
      buttons={[
        { text: "Contact Us", href: "#contact" },
      ]}
    />
  </div>

  <div id="properties" data-section="properties">
      <ProductCardFour
      animationType="slide-up"
      textboxLayout="split"
      gridVariant="bento-grid"
      useInvertedBackground={true}
      products={[
        { id: "1", name: "Skyline Penthouse", price: "$8.5M", variant: "Premium", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3DXy8yrvjnxPhDkl0lrG4JRwPo3/luxury-modern-interior-living-room-in-a--1778446111043-449abad5.png?_wi=2" },
        { id: "2", name: "Coastal Villa Estate", price: "$12.0M", variant: "Ultra", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3DXy8yrvjnxPhDkl0lrG4JRwPo3/luxury-marble-bathroom-in-a-high-end-man-1778446120861-578eaa11.png?_wi=2" },
        { id: "3", name: "Modern Urban Mansion", price: "$6.2M", variant: "Luxury", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3DXy8yrvjnxPhDkl0lrG4JRwPo3/ultra-luxury-modern-kitchen-in-a-villa-m-1778446131050-16452c77.png?_wi=2" },
      ]}
      title="Curated Luxury Portfolio"
      description="Exceptional homes for the discerning investor."
      buttons={[{ text: "View Full Portfolio" }]}
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardFourteen
      title="Market Authority"
      tag="Exclusive"
      useInvertedBackground={false}
      metrics={[
        { id: "1", value: "$500M+", description: "Portfolio Managed" },
        { id: "2", value: "150+", description: "Closed Deals" },
        { id: "3", value: "20+", description: "Active Countries" },
      ]}
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqBase
      textboxLayout="default"
      useInvertedBackground={false}
      faqs={[
        { id: "1", title: "How do I get started?", content: "Our team schedules a discovery call." },
        { id: "2", title: "What markets are covered?", content: "We cover premium markets globally." },
      ]}
      title="Common Questions"
      description="Transparency is our foundation."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="social" data-section="social">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={true}
      names={["Global Invest", "Premier Build", "Luxury Group", "Elite Finance"]}
      title="Trusted Partners"
      description="Collaborating with elite industry leaders."
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactText
      text="Begin Your Journey With Us"
      background={{ variant: "gradient-bars" }}
      useInvertedBackground={true}
      buttons={[{ text: "Inquire Today" }]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterLogoEmphasis
      logoText="Bright View"
      columns={[{ items: [{ label: "About" }, { label: "Inventory" }, { label: "Contact" }] }]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}