"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroCentered from '@/components/sections/hero/HeroCentered';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { MessageSquare, User, Database, Cloud, Shield, Users, Workflow, Zap, BarChart3, TrendingUp, Layers, Sparkles, Crown, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="gradient-bordered"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="AI Agents"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Get Started",            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCentered
          title="AI Agents That Work for You"
          description="Deploy intelligent agents that automate complex tasks, boost productivity, and scale your operations effortlessly. Enterprise-ready AI automation built for the future."
          background={{ variant: "sparkles-gradient" }}
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/portrait-smiling-young-student-glasses-with-digital-tablet_1262-15065.jpg", alt: "User 1" },
            { src: "https://img.b2bpic.net/free-photo/blond-female-dressed-white-shirt-eyeglasses-holds-tablet-pc-grey-background_613910-14708.jpg", alt: "User 2" },
            { src: "https://img.b2bpic.net/free-photo/middle-eastern-businessman-does-daily-tasks-corporate-job_482257-116713.jpg", alt: "User 3" }
          ]}
          avatarText="Trusted by 500+ enterprises worldwide"
          buttons={[
            { text: "Start Free Trial", href: "contact" },
            { text: "View Demo", href: "features" }
          ]}
        />
      </div>

      <div id="features-bento" data-section="features-bento">
        <FeatureBento
          title="Powerful AI Agent Capabilities"
          description="Our AI agents are powered by cutting-edge machine learning and natural language processing, delivering intelligent automation across every business function."
          tag="Core Features"
          tagIcon={Sparkles}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          features={[
            {
              title: "Natural Language Understanding",              description: "Agents understand context and nuance in human communication for seamless interaction",              bentoComponent: "chat",              aiIcon: MessageSquare,
              userIcon: User,
              exchanges: [
                {
                  userMessage: "Schedule a meeting with the marketing team for next Tuesday",                  aiResponse: "I've scheduled the meeting for Tuesday, 2 PM. Invites sent to 5 team members."
                },
                {
                  userMessage: "What's our Q4 revenue projection?",                  aiResponse: "Based on current trends, Q4 projection is $2.3M, up 18% from Q3."
                }
              ],
              placeholder: "Ask your AI agent anything..."
            },
            {
              title: "Real-time Analytics",              description: "Visualize performance metrics and insights as your agents work across systems",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "Workflow Automation",              description: "Orchestrate complex multi-step processes with intelligent decision-making",              bentoComponent: "timeline",              heading: "Automated Customer Onboarding",              subheading: "Complete in minutes, not hours",              items: [
                { label: "Account Creation", detail: "30 seconds" },
                { label: "Verification", detail: "45 seconds" },
                { label: "Setup Complete", detail: "2 minutes" }
              ],
              completedLabel: "Process Complete"
            },
            {
              title: "Global Reach",              description: "Deploy agents across regions with multi-language support and local compliance",              bentoComponent: "map"
            },
            {
              title: "Integration Hub",              description: "Connect seamlessly with your existing tools and platforms",              bentoComponent: "orbiting-icons",              centerIcon: Zap,
              items: [
                { icon: Database, ring: 1 },
                { icon: Cloud, ring: 1 },
                { icon: Shield, ring: 2 },
                { icon: Users, ring: 2 },
                { icon: Workflow, ring: 3 }
              ]
            },
            {
              title: "Predictive Intelligence",              description: "Anticipate trends and anomalies with advanced ML algorithms",              bentoComponent: "line-chart"
            }
          ]}
        />
      </div>

      <div id="features-highlight" data-section="features-highlight">
        <FeatureBorderGlow
          title="Why Choose Our Platform"
          description="Industry-leading AI agents with enterprise security, scalability, and support"
          tag="Advantages"
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground="noInvert"
          features={[
            {
              icon: Zap,
              title: "Lightning Fast",              description: "Sub-second response times with optimized inference engines and distributed architecture"
            },
            {
              icon: Shield,
              title: "Enterprise Security",              description: "SOC 2 Type II certified with end-to-end encryption and compliance with GDPR, HIPAA, and more"
            },
            {
              icon: BarChart3,
              title: "ROI Guaranteed",              description: "Average 40% productivity increase and 60% cost reduction within 90 days of deployment"
            },
            {
              icon: Users,
              title: "Expert Support",              description: "24/7 dedicated support team with average response time under 5 minutes for critical issues"
            },
            {
              icon: TrendingUp,
              title: "Continuous Learning",              description: "Agents improve over time with machine learning models that adapt to your business patterns"
            },
            {
              icon: Layers,
              title: "Easy Integration",              description: "Pre-built connectors for 200+ apps and simple API for custom integrations in minutes"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Implementing their AI agents transformed our operations. What used to take our team 40 hours a week is now handled automatically. The ROI was immediate and the support team is exceptional."
          rating={5}
          author="Sarah Chen, VP Operations at TechVentures"
          useInvertedBackground="invertDefault"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/business-man-working-late-office_23-2148991382.jpg", alt: "CEO" },
            { src: "https://img.b2bpic.net/free-photo/young-handsome-man-office-center_1303-19604.jpg", alt: "CTO" },
            { src: "https://img.b2bpic.net/free-photo/blond-female-dressed-white-shirt-eyeglasses-holds-tablet-pc-grey-background_613910-3579.jpg", alt: "Product Lead" },
            { src: "https://img.b2bpic.net/free-photo/portrait-handsome-bearded-male-wearing-stylish-suit-listeni_613910-1578.jpg", alt: "Manager" }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardEight
          title="Simple, Transparent Pricing"
          description="Choose the plan that fits your needs. All plans include core AI agent features with 24/7 support."
          tag="Pricing"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "starter",              badge: "Great for Teams",              badgeIcon: Sparkles,
              price: "$499/month",              subtitle: "Up to 5 AI agents",              buttons: [{ text: "Start Trial", href: "#" }],
              features: [
                "Up to 5 concurrent agents",                "Basic integrations (50+ apps)",                "Standard API access",                "Email support",                "Monthly analytics reports",                "99.5% uptime SLA"
              ]
            },
            {
              id: "professional",              badge: "Most Popular",              badgeIcon: Zap,
              price: "$1,999/month",              subtitle: "Up to 25 AI agents",              buttons: [{ text: "Start Free Trial", href: "#" }],
              features: [
                "Up to 25 concurrent agents",                "Advanced integrations (200+ apps)",                "Priority API access",                "Phone & email support",                "Real-time analytics dashboard",                "99.9% uptime SLA",                "Custom workflows",                "Advanced security options"
              ]
            },
            {
              id: "enterprise",              badge: "For Scale",              badgeIcon: Crown,
              price: "Custom",              subtitle: "Unlimited AI agents",              buttons: [{ text: "Contact Sales", href: "#" }],
              features: [
                "Unlimited agents",                "Custom integrations",                "Dedicated API infrastructure",                "24/7 dedicated support team",                "Advanced ML customization",                "99.99% uptime SLA",                "Multi-region deployment",                "Compliance & security audits",                "Custom SLA agreements"
              ]
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          tagIcon={Mail}
          title="Ready to Transform Your Business?"
          description="Join hundreds of companies using AI agents to automate operations and drive growth. Start your free trial today with no credit card required."
          background={{ variant: "radial-gradient" }}
          useInvertedBackground="invertDefault"
          inputPlaceholder="your@company.com"
          buttonText="Get Started Free"
          termsText="We respect your privacy. Unsubscribe at any time. See our Privacy Policy."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "features" },
                { label: "Pricing", href: "pricing" },
                { label: "Security", href: "#" },
                { label: "Roadmap", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "#" },
                { label: "Blog", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Cookie Policy", href: "#" },
                { label: "Compliance", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 AI Agents Inc. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}