"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroOverlayTestimonial from '@/components/sections/hero/HeroOverlayTestimonial';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import SplitAbout from '@/components/sections/about/SplitAbout';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="elastic-effect"
        defaultTextAnimation="reveal-blur"
        borderRadius="pill"
        contentWidth="medium"
        sizing="largeSmallSizeLargeTitles"
        background="none"
        cardStyle="solid"
        primaryButtonStyle="flat"
        secondaryButtonStyle="solid"
        headingFontWeight="medium"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleCentered
      navItems={[
        { name: "Shop", id: "products" },
        { name: "Our Story", id: "about" },
        { name: "Reviews", id: "testimonials" },
        { name: "Contact", id: "contact" },
      ]}
      brandName="Radiance"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroOverlayTestimonial
      title="Perfection in Every Corner"
      description="Experience the art of fine dining and artisanal coffee in the heart of Buraydah. Designed for the senses, crafted for the soul."
      testimonials={[]}
      buttons={[
        { text: "Reserve a Table" },
        { text: "Explore the Menu" }
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/ecofriendly-beauty-product_23-2150669167.jpg"
      imageAlt="luxury skincare product photography"
    />
  </div>

  <div id="about" data-section="about">
      <SplitAbout
      title="Natural Beauty, Science-Backed"
      description="We believe in the power of plants to heal and protect. Our formulas are meticulously crafted to provide clinical results while maintaining the purity of raw, natural ingredients."
      bulletPoints={[
        { title: "Plant-Powered", description: "Derived from sustainable, nature-based ingredients." },
        { title: "Clinical Efficacy", description: "Results verified through rigorous dermatological testing." },
        { title: "Ethically Sourced", description: "Respecting the planet and those who cultivate our ingredients." },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/water-wave-texture-background-white-design_53876-145213.jpg"
      textboxLayout="split"
      useInvertedBackground={false}
      mediaAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardSixteen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      negativeCard={{ items: ["No Synthetic Fragrances", "No Harsh Chemicals", "No Plastic Microbeads", "No Silicones", "No Artificial Colors"] }}
      positiveCard={{ items: ["Paraben-Free", "Sulfate-Free", "Cruelty-Free", "Vegan Formula", "Dermatologist Tested"] }}
      title="Why Your Skin Loves Radiance"
      description="Transparency is at the heart of our mission."
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardOne
      animationType="slide-up"
      textboxLayout="split"
      gridVariant="four-items-2x2-equal-grid"
      useInvertedBackground={false}
      products={[
        { id: "p1", name: "Hydrating Serum", price: "$45", imageSrc: "http://img.b2bpic.net/free-photo/open-compact-powder-stacked-sponge-wooden-table_23-2148031374.jpg" },
        { id: "p2", name: "Radiance Oil", price: "$52", imageSrc: "http://img.b2bpic.net/free-photo/close-up-floating-water_23-2150963082.jpg" },
        { id: "p3", name: "Calming Mist", price: "$28", imageSrc: "http://img.b2bpic.net/free-photo/nude-beautiful-blonde-girl-with-fresh-perfect-skin-smiling-holding-cosmetology-spray-bottle_176420-9349.jpg" },
        { id: "p4", name: "Night Recovery Cream", price: "$65", imageSrc: "http://img.b2bpic.net/free-photo/ecofriendly-beauty-product_23-2150669110.jpg" },
      ]}
      title="Discover Your Essentials"
      description="Curated skincare to fit every step of your ritual."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={true}
      testimonials={[
        { id: "t1", name: "Jane Doe", role: "User", company: "Happy Fan", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/green-eyed-woman-white-t-shirt-pink-jacket-with-snow-white-smile-looks-front-posing-street_197531-17040.jpg" },
        { id: "t2", name: "John Smith", role: "User", company: "Skincare Enthusiast", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-young-fit-woman-doing-sports-exercises-home-drinks-water-from-bottle-sm_1258-182451.jpg" },
        { id: "t3", name: "Alice Chen", role: "User", company: "Customer", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/two-caucasian-girls-different-ages-cosmetic-facial-procedures-light-room-wellness-self-care-concept_197531-31432.jpg" },
      ]}
      title="Trusted by Thousands"
      description="Join our growing community of happy customers."
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={true}
      faqs={[
        { id: "f1", title: "Are your products organic?", content: "Yes, we prioritize organic and ethically sourced ingredients." },
        { id: "f2", title: "Is shipping free?", content: "We offer free shipping on orders over $50." },
        { id: "f3", title: "Can I return products?", content: "We offer a 30-day money-back guarantee." },
      ]}
      sideTitle="Your Questions, Answered"
      sideDescription="Not sure where to start? We're here to help."
      faqsAnimation="slide-up"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplitForm
      useInvertedBackground={false}
      title="Need Help? Reach Out"
      description="Our skincare specialists are ready to guide you to your ideal routine."
      inputs={[
        { name: "name", type: "text", placeholder: "Your Name", required: true },
        { name: "email", type: "email", placeholder: "Your Email", required: true },
      ]}
      textarea={{ name: "message", placeholder: "Ask us anything!", required: true, rows: 4 }}
      imageSrc="http://img.b2bpic.net/free-photo/top-view-flowers-with-copy-space_23-2148172550.jpg"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoText="Radiance"
      columns={[
        { title: "Shop", items: [{ label: "All Products", href: "#products" }] },
        { title: "Support", items: [{ label: "Contact", href: "#contact" }, { label: "FAQ", href: "#faq" }] },
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}