"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import { Square, PenTool, Palette } from "lucide-react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroBillboardTestimonial from '@/components/sections/hero/HeroBillboardTestimonial';
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-stagger"
        defaultTextAnimation="reveal-blur"
        borderRadius="rounded"
        contentWidth="mediumLarge"
        sizing="large"
        background="floatingGradient"
        cardStyle="inset"
        primaryButtonStyle="diagonal-gradient"
        secondaryButtonStyle="radial-glow"
        headingFontWeight="semibold"
    >
      <ReactLenis root>
        <div id="nav" data-section="nav">
          <NavbarStyleCentered
            navItems={[
              { name: "Materials", id: "features" },
              { name: "Collection", id: "products" },
              { name: "Artist Voice", id: "testimonials" },
              { name: "Contact", id: "contact" },
            ]}
            brandName="[FK]"
          />
        </div>

        <div id="hero" data-section="hero">
          <HeroBillboardTestimonial
            useInvertedBackground={false}
            background={{ variant: "plain" }}
            title="The Boundary of Expression."
            description="FK provides raw, honest materiality for the professional artist. Elevating the act of creation through unfiltered texture and precision."
            testimonials={[
              { name: "Elara Vance", handle: "@evance", testimonial: "The honesty of the materials at FK is unparalleled. It changes how I approach the canvas.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/gray-abstract-texture-background_1373-454.jpg", imageAlt: "raw canvas texture high resolution" },
              { name: "Marc Lemaire", handle: "@mlemaire", testimonial: "Brutal, beautiful, and essential for my editorial work. FK is the new standard.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/various-sizes-paint-brushes_23-2148662963.jpg", imageAlt: "raw canvas texture high resolution" },
              { name: "Sarah Chen", handle: "@schenart", testimonial: "Finally, professional grade linen that respects the artist's touch.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/brushes-trio-with-paint_23-2148143522.jpg", imageAlt: "raw canvas texture high resolution" },
              { name: "Jonas Thorne", handle: "@jthorne", testimonial: "Everything I need, nothing I don't. The iron-oxide red is a revelation.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/still-life-drawing-equipment_23-2149371270.jpg", imageAlt: "raw canvas texture high resolution" },
              { name: "Beatrix von S.", handle: "@bvsstudio", testimonial: "Raw. Authentic. The frame of my artistic journey.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/pencils-leather-bag_23-2148023567.jpg", imageAlt: "raw canvas texture high resolution" },
            ]}
            imageSrc="http://img.b2bpic.net/free-photo/gray-abstract-texture-background_1373-454.jpg"
            imageAlt="Raw canvas texture high resolution"
            mediaAnimation="blur-reveal"
            avatars={[
              { src: "http://img.b2bpic.net/free-photo/pale-gray-blank-plain-background_53876-129504.jpg", alt: "Pale gray blank plain background" },
              { src: "http://img.b2bpic.net/free-photo/paper-texture-with-dots_23-2147786512.jpg", alt: "Paper texture with dots" },
              { src: "http://img.b2bpic.net/free-photo/photo-fabric-texture-pattern_58702-13338.jpg", alt: "Photo of fabric texture pattern" },
              { src: "http://img.b2bpic.net/free-photo/texture-wall-background_158595-7184.jpg", alt: "texture wall background" },
              { src: "http://img.b2bpic.net/free-photo/gray-abstract-texture-background_1373-454.jpg", alt: "Raw canvas texture" },
            ]}
            avatarText="Trusted by 500+ professional studios worldwide."
            marqueeItems={[
              { type: "text", text: "ARCHIVAL GRADE" },
              { type: "text", text: "ETHICALLY SOURCED" },
              { type: "text", text: "BRUTALIST DESIGN" },
              { type: "text", text: "ARTIST APPROVED" },
              { type: "text", text: "RAW LUXURY" },
            ]}
          />
        </div>

        <div id="features" data-section="features">
          <FeatureHoverPattern
            animationType="slide-up"
            textboxLayout="split"
            useInvertedBackground={false}
            features={[
              { icon: Square, title: "Canvas Framing", description: "Raw linen and heavy-weight cotton canvas designed for structural longevity." },
              { icon: PenTool, title: "Precision Brushes", description: "Hand-forged brushes that maintain tension and responsiveness." },
              { icon: Palette, title: "Iron-Oxide Pigments", description: "Earth-derived pigments with high saturation and archival stability." },
            ]}
            title="Material Integrity"
            description="Honest components for the discerning artist."
          />
        </div>

        <div id="products" data-section="products">
          <ProductCardTwo
            animationType="blur-reveal"
            textboxLayout="split-description"
            gridVariant="bento-grid"
            useInvertedBackground={false}
            products={[
              { id: "p1", brand: "FK", name: "Iron-Oxide Red Pigment", price: "$120", rating: 5, reviewCount: "42", imageSrc: "http://img.b2bpic.net/free-photo/brushes-trio-with-paint_23-2148143522.jpg" },
              { id: "p2", brand: "FK", name: "Raw Linen Stretcher", price: "$340", rating: 5, reviewCount: "89", imageSrc: "http://img.b2bpic.net/free-photo/still-life-drawing-equipment_23-2149371270.jpg" },
              { id: "p3", brand: "FK", name: "Charcoal Editorial Set", price: "$85", rating: 4, reviewCount: "120", imageSrc: "http://img.b2bpic.net/free-photo/pencils-leather-bag_23-2148023567.jpg" },
              { id: "p4", brand: "FK", name: "Fiber Brush #12", price: "$65", rating: 5, reviewCount: "56", imageSrc: "http://img.b2bpic.net/free-photo/pastel-brushes-near-sketchbook_23-2147804589.jpg" },
              { id: "p5", brand: "FK", name: "Forged Palette Knife", price: "$95", rating: 5, reviewCount: "34", imageSrc: "http://img.b2bpic.net/free-photo/front-view-paint-brushes-transparent-jar_23-2148591262.jpg" },
              { id: "p6", brand: "FK", name: "Raw Canvas Roll", price: "$210", rating: 4, reviewCount: "72", imageSrc: "http://img.b2bpic.net/free-photo/blank-canvas-painting-indoors-still-life_23-2150542295.jpg" },
            ]}
            title="The Collection"
            description="Limited series art supplies for professional studios."
          />
        </div>

        <div id="testimonials" data-section="testimonials">
          <TestimonialCardFifteen
            useInvertedBackground={false}
            testimonial="The materiality of FK is what I have been searching for my entire career. It frames my work as much as it supports it."
            rating={5}
            author="Jean-Luc Moreau, Fine Artist"
            avatars={[
              { src: "http://img.b2bpic.net/free-photo/lovely-art-composition-with-happy-female-model_23-2147868252.jpg", alt: "Jean-Luc Moreau" },
              { src: "http://img.b2bpic.net/free-photo/blonde-young-woman-sitting-workshop-painting-easel_23-2147889952.jpg", alt: "Jean-Luc Moreau portrait" },
              { src: "http://img.b2bpic.net/free-photo/water-palette-near-painting_23-2147863714.jpg", alt: "Jean-Luc Moreau atelier" },
              { src: "http://img.b2bpic.net/free-photo/woman-posing-with-brushes-canvas-black-high-quality-photo_114579-63520.jpg", alt: "Jean-Luc Moreau workspace" },
              { src: "http://img.b2bpic.net/free-photo/empty-artistic-space-studio-with-nobody-it-ready-students-attend-drawing-class-school-classroom-equipped-with-painting-canvas-drawing-professional-tools-creative-concept_482257-38986.jpg", alt: "Empty artistic space studio" },
            ]}
            ratingAnimation="slide-up"
            avatarsAnimation="blur-reveal"
          />
        </div>

        <div id="contact" data-section="contact">
          <ContactSplitForm
            useInvertedBackground={false}
            title="Inquire"
            description="Exclusive access for professional inquiries."
            inputs={[
              { name: "name", type: "text", placeholder: "Name", required: true },
              { name: "email", type: "email", placeholder: "Email Address", required: true },
            ]}
            textarea={{ name: "message", placeholder: "Tell us about your practice.", rows: 4, required: true }}
            imageSrc="http://img.b2bpic.net/free-photo/male-artist-painting-studio-with-watercolors_23-2149908447.jpg"
            imageAlt="Male artist painting at studio with watercolors"
          />
        </div>

        <div id="footer" data-section="footer">
          <FooterBaseCard
            logoText="[FK]"
            columns={[
              {
                title: "Supply",                items: [
                  { label: "Archive", href: "#" },
                  { label: "Collection", href: "#products" },
                ],
              },
              {
                title: "Legal",                items: [
                  { label: "Terms", href: "#" },
                  { label: "Privacy", href: "#" },
                ],
              },
            ]}
          />
        </div>
      </ReactLenis>
    </ThemeProvider>
  );
}