"use client";
import Link from 'next/link';
import { Sparkles } from 'lucide-react';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSignup from '@/components/sections/hero/HeroSignup';
import InlineImageSplitTextAbout from '@/components/sections/about/InlineImageSplitTextAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="medium"
      sizing="large"
      background="none"
      cardStyle="soft-shadow"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="McLaren Labs"
          navItems={[
            { name: "What We Do", id: "about" },
            { name: "Work", id: "case-studies" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Let's Talk", href: "contact" }}
          className="fixed top-4 left-4 right-4 z-50"
          buttonClassName="bg-[#2B4CED] hover:bg-[#1f3cbd] text-white"
          logoHref="#"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSignup
          title="We operate in the shadows so you can shine in the light."
          description="McLaren Labs is the growth partner startups call when they're ready to scale."
          tag="Growth Partner"
          background={{ variant: "plain" }}
          inputPlaceholder="your@email.com"
          buttonText="Let's Talk"
          tagIcon={Sparkles}
          containerClassName="bg-[#E8923A]"
          titleClassName="text-white text-5xl md:text-6xl font-bold"
          descriptionClassName="text-white text-lg md:text-xl"
          tagClassName="text-white border-white"
          inputClassName="bg-white text-[#1a1a1a] border-none"
          buttonClassName="bg-[#2B4CED] hover:bg-[#1f3cbd] text-white font-semibold"
        />
      </div>

      <div id="about" data-section="about">
        <InlineImageSplitTextAbout
          heading={[{ type: "text", content: "Strategy. Systems. Scale." }]}
          useInvertedBackground={false}
          buttons={[{ text: "Explore Our Approach", href: "#case-studies" }]}
          containerClassName="py-20 px-6 md:px-12"
          headingClassName="text-4xl md:text-5xl font-bold text-[#1a1a1a]"
        />
      </div>

      <div id="case-studies" data-section="case-studies">
        <ProductCardTwo
          title="Playground for Profit"
          description="Real results from startups we've scaled."
          tag="Case Studies"
          products={[
            {
              id: "1",
              brand: "Health Tech",
              name: "1.2M+ Downloads",
              price: "$74K → $3.5M ARR",
              rating: 5,
              reviewCount: "12 months",
              imageSrc: "https://img.b2bpic.net/free-vector/interface-goals-habits-tracking-application_23-2148632020.jpg",
              imageAlt: "mobile app health growth chart success"
            },
            {
              id: "2",
              brand: "SaaS Platform",
              name: "500% Revenue Growth",
              price: "$150K → $900K MRR",
              rating: 5,
              reviewCount: "18 months",
              imageSrc: "https://img.b2bpic.net/free-photo/business-leader-trader-searching-new-investment-solution_482257-116895.jpg",
              imageAlt: "saas dashboard analytics data software"
            },
            {
              id: "3",
              brand: "Marketplace",
              name: "10x User Acquisition",
              price: "$2M → $20M GMV",
              rating: 5,
              reviewCount: "24 months",
              imageSrc: "https://img.b2bpic.net/free-photo/teammates-working-late-office_23-2148991369.jpg",
              imageAlt: "startup growth team collaboration scaling business"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="opacity"
          textboxLayout="default"
          useInvertedBackground={false}
          containerClassName="py-20 px-6 md:px-12"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Ready to Scale?"
          title="We only take on a handful of partners at a time."
          description="If you're serious about scaling, let's talk."
          background={{ variant: "plain" }}
          useInvertedBackground={true}
          inputPlaceholder="your@email.com"
          buttonText="Start Conversation"
          termsText="We respect your privacy. We'll only reach out to serious founders."
          containerClassName="bg-[#1a1a1a] text-white py-20 px-6 md:px-12"
          titleClassName="text-white text-4xl md:text-5xl font-bold"
          descriptionClassName="text-gray-300 text-lg"
          tagClassName="text-[#E8923A]"
          inputClassName="bg-white text-[#1a1a1a] border-none"
          buttonClassName="bg-[#E8923A] hover:bg-[#d4772f] text-white font-semibold"
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",
            items: [
              { label: "About", href: "about" },
              { label: "Work", href: "case-studies" },
              { label: "Contact", href: "contact" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "https://example.com/privacy" },
              { label: "Terms of Service", href: "https://example.com/terms" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Twitter", href: "https://twitter.com" },
              { label: "LinkedIn", href: "https://linkedin.com" }
            ]
          }
        ]}
        copyrightText="© 2025 McLaren Labs. All rights reserved."
        containerClassName="bg-[#1a1a1a] text-white"
      />
    </ThemeProvider>
  );
}