"use client";

import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import FeatureCardMedia from '@/components/sections/feature/FeatureCardMedia';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Zap, Mail } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="largeSizeMediumTitles"
      background="circleGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Link AI"
          navItems={[
            { name: "Home", id: "/" },
            { name: "How It Works", id: "/how-it-works" },
            { name: "Features", id: "/features" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Start Free Trial",
            href: "https://app.linkaitech.com/signup"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroOverlay
          title="Automate Your Customer Conversations Across WhatsApp & Instagram"
          description="Link AI deploys intelligent AI agents to handle customer inquiries, support tickets, and lead qualification 24/7. Boost response times, reduce support costs, and never miss a customer message again."
          tag="AI-Powered Automation"
          tagIcon={Zap}
          imageSrc="https://img.b2bpic.net/free-photo/representation-user-experience-interface-design_23-2150169863.jpg"
          imageAlt="AI automation across WhatsApp and Instagram"
          textPosition="bottom-left"
          showBlur={true}
          showDimOverlay={true}
          buttons={[
            { text: "Start Free Trial", href: "https://app.linkaitech.com/signup" },
            { text: "View Demo", href: "/how-it-works" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardMedia
          title="Powerful Features Built for Growth"
          description="Everything you need to automate customer conversations and scale support without growing your team"
          features={[
            {
              id: "1",
              title: "WhatsApp Integration",
              description: "Deploy AI agents directly into WhatsApp Business. Handle customer inquiries, send promotional messages, and manage conversations from one unified dashboard.",
              tag: "Messaging",
              imageSrc: "https://img.b2bpic.net/free-photo/easy-wireless-yechnology-payment_23-2149105216.jpg",
              buttons: [{ text: "Learn More", href: "/features" }]
            },
            {
              id: "2",
              title: "Instagram Automation",
              description: "Automatically respond to Instagram DMs and comments with AI-generated replies. Engage followers 24/7 and convert inquiries into customers instantly.",
              tag: "Social Media",
              imageSrc: "https://img.b2bpic.net/free-psd/social-media-phone_23-2151938413.jpg",
              buttons: [{ text: "Learn More", href: "/features" }]
            },
            {
              id: "3",
              title: "Intelligent AI Responses",
              description: "Natural language processing ensures every reply feels human. AI learns from your conversation history, brand voice, and customer preferences to generate contextually accurate responses.",
              tag: "AI Technology",
              imageSrc: "https://img.b2bpic.net/free-psd/car-sharing-service-instagram-posts_23-2150432191.jpg",
              buttons: [{ text: "Learn More", href: "/features" }]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardFourteen
          title="Proven Results: Thousands of Businesses Trust Link AI to Transform Their Customer Engagement"
          tag="Impact Metrics"
          metrics={[
            {
              id: "1",
              value: "87%",
              description: "Average reduction in response time. Link AI agents reply instantly, 24/7, eliminating message delays."
            },
            {
              id: "2",
              value: "5,000+",
              description: "Active customers across 40+ countries automating conversations and scaling customer support."
            },
            {
              id: "3",
              value: "4.2x",
              description: "Average increase in conversation volume handled. Serve more customers with the same team size."
            },
            {
              id: "4",
              value: "92%",
              description: "Customer satisfaction rate. Intelligent AI responses keep customers happy and engaged."
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="See how businesses like yours are automating conversations and scaling support with Link AI"
          testimonials={[
            {
              id: "1",
              name: "Marcus Chen",
              handle: "@mchen_ventures",
              testimonial: "Link AI cut our support response time in half. Our team now focuses on complex issues while AI handles the routine questions. Game-changer for our SaaS product.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg"
            },
            {
              id: "2",
              name: "Sarah Williams",
              handle: "@sarahw_digital",
              testimonial: "We integrated Link AI with our Instagram account and saw a 3x increase in customer engagement. The AI responses feel natural and our conversion rate improved significantly.",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg"
            }
          ]}
          showRating={true}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          title="Ready to Automate Your Customer Conversations?"
          description="Join thousands of businesses using Link AI to handle customer inquiries 24/7. Start your free 14-day trial today—no credit card required."
          tagIcon={Mail}
          useInvertedBackground="noInvert"
          inputPlaceholder="Enter your work email"
          buttonText="Start Free Trial"
          termsText="By signing up, you agree to our Terms of Service and Privacy Policy. We'll send you a confirmation email shortly."
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Product",
            items: [
              { label: "Features", href: "/features" },
              { label: "How It Works", href: "/how-it-works" },
              { label: "Security", href: "#" },
              { label: "Updates", href: "#" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "How It Works", href: "/how-it-works" },
              { label: "Blog", href: "#" },
              { label: "Careers", href: "#" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            title: "Resources",
            items: [
              { label: "Documentation", href: "#" },
              { label: "API Reference", href: "#" },
              { label: "Community", href: "#" },
              { label: "Support", href: "#" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "#" },
              { label: "Terms of Service", href: "#" },
              { label: "Cookie Policy", href: "#" },
              { label: "Compliance", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Link AI. All rights reserved."
        bottomRightText="Automating conversations, scaling support."
      />
    </ThemeProvider>
  );
}