"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import FooterBase from '@/components/sections/footer/FooterBase';
import HeroSplitTestimonial from '@/components/sections/hero/HeroSplitTestimonial';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import CardStack from '@/components/cardStack/CardStack';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="bounce-effect"
        defaultTextAnimation="background-highlight"
        borderRadius="rounded"
        contentWidth="mediumLarge"
        sizing="mediumLargeSizeMediumTitles"
        background="noise"
        cardStyle="subtle-shadow"
        primaryButtonStyle="primary-glow"
        secondaryButtonStyle="layered"
        headingFontWeight="medium"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        { name: "Home", id: "/" },
        { name: "About", id: "/about" },
        { name: "Services", id: "/services" },
        { name: "Projects", id: "/projects" },
        { name: "Safety", id: "/safety" },
        { name: "Contact", id: "/contact" },
      ]}
      brandName="Jasso Framing LLC"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplitTestimonial
      background={{ variant: "gradient-bars" }}
      title="Build on Quality. Driven By Precision. "
      description="Expert framing and structural wood solutions for large-scale multifamily and commercial projects across Texas and beyond."
      testimonials={[
        { name: "Mike Anderson", handle: "GC, Texas Builders", testimonial: "Jasso Framing always hits their schedule and the quality is unmatched.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/laptop-digitally-generated-paper-logistics-working_1134-928.jpg" },
      ]}
      buttons={[
        { text: "View Projects", href: "/projects" },
        { text: "Get Free Estimate", href: "/contact" },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/new-house-construction-site_23-2151933435.jpg"
      mediaAnimation="blur-reveal"
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardSeven
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={false}
      metrics={[
        { id: "m1", value: "1 M+", title: "SQFT Framed", items: ["Multifamily", "Commercial", "Residential"] },
      ]}
      title="Our Impact in Numbers"
      description="We bring years of structural expertise to every site."
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardSix
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        { title: "Multifamily Framing", description: "High-efficiency framing for large apartment communities.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-architect-wearing-helmet_23-2148815563.jpg" },
      ]}
      title="Framing Excellence"
      description="Our core services meet the highest standards of structural integrity."
    />
  </div>

  <div id="portfolio" data-section="portfolio">
      <CardStack
      animationType="slide-up"
      textboxLayout="default"
      title="Featured Projects"
      description="Gallery of our recent developments."
      gridVariant="four-items-2x2-equal-grid"
      className="py-16"
    >
      {[ { name: "Austin Multifamily Complex", title: "Lead Framer" }, { name: "Dallas Commercial", title: "Lead Carpenter" } ].map((item, i) => (
        <div key={i} className="p-4 border border-zinc-200 rounded-lg flex flex-col items-center text-center">
          <img src="http://img.b2bpic.net/free-photo/tall-office-modern-buildings_23-2148836835.jpg" alt={item.name} className="w-full h-48 object-cover rounded mb-4" />
          <h3 className="text-lg font-bold">{item.name}</h3>
          <p className="text-sm text-zinc-600">{item.title}</p>
        </div>
      ))}
    </CardStack>
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardSix
      animationType="slide-up"
      textboxLayout="split"
      title="Trusted Partners"
      description="See why developers and contractors choose Jasso Framing."
      testimonials={[]}
    />
  </div>

  <div id="contact-section" data-section="contact-section">
      <ContactCenter
      useInvertedBackground={false}
      background={{ variant: "rotated-rays-animated-grid" }}
      title="Ready to Start Your Project?"
      description="Submit a request for bid today and we will contact you immediately."
      tag="Get in Touch"
      buttonText="Get Free Estimate"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBase
      columns={[]}
      logoText="Jasso Framing LLC"
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}