"use client"

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 { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Sparkles, Shield, Zap, Code2, Database, Users, Lock, Bell, MessageSquare, CheckSquare, Calendar, FileText, BarChart3, Settings, HelpCircle, GitBranch, Crown, Building, 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="CloudFlow"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Get Started",            href: "#"
          }}
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroCentered
          title="The Future of Cloud Collaboration is Here"
          description="Empower your team with intelligent automation, real-time collaboration, and enterprise-grade security. Build faster, collaborate smarter."
          background={{ variant: "downward-rays-animated" }}
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/close-up-young-person-barbeque_23-2149271990.jpg", alt: "Happy customer 1" },
            { src: "https://img.b2bpic.net/free-photo/portrait-employee-happy-be-back-work_23-2148727615.jpg", alt: "Happy customer 2" },
            { src: "https://img.b2bpic.net/free-photo/confident-european-businesswoman-mockup-psd-smiling-closeup-port_53876-143277.jpg", alt: "Happy customer 3" }
          ]}
          avatarText="Trusted by 5,000+ companies worldwide"
          buttons={[
            { text: "Start Free Trial", href: "#pricing" },
            { text: "Watch Demo", href: "#" }
          ]}
        />
      </div>
      
      <div id="features-bento" data-section="features-bento">
        <FeatureBento
          title="Powerful Features Built for Scale"
          description="Discover the tools that make CloudFlow the choice for high-performing teams"
          tag="Capabilities"
          tagIcon={Sparkles}
          features={[
            {
              title: "Global Infrastructure",              description: "Deploy worldwide with 99.99% uptime guarantee",              bentoComponent: "globe"
            },
            {
              title: "Advanced Analytics",              description: "Real-time insights into your team's productivity and performance metrics",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "Smart Integrations",              description: "Connect all your favorite tools seamlessly",              bentoComponent: "orbiting-icons",              centerIcon: Zap,
              items: [
                { icon: Code2, ring: 1 },
                { icon: Database, ring: 1 },
                { icon: Shield, ring: 2 },
                { icon: Users, ring: 2 }
              ]
            },
            {
              title: "Mobile Ready",              description: "Full-featured mobile experience on iOS and Android",              bentoComponent: "phone",              statusIcon: Lock,
              alertIcon: Bell,
              alertTitle: "New Collaboration Request",              alertMessage: "Sarah invited you to Project Alpha",              apps: [
                { name: "Messages", icon: MessageSquare },
                { name: "Tasks", icon: CheckSquare },
                { name: "Calendar", icon: Calendar },
                { name: "Files", icon: FileText },
                { name: "Analytics", icon: BarChart3 },
                { name: "Settings", icon: Settings },
                { name: "Team", icon: Users },
                { name: "Support", icon: HelpCircle }
              ]
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
        />
      </div>
      
      <div id="features-border-glow" data-section="features-border-glow">
        <FeatureBorderGlow
          title="Enterprise-Grade Features"
          description="Security, reliability, and performance that enterprise teams demand"
          tag="Enterprise"
          tagIcon={Shield}
          features={[
            {
              icon: Lock,
              title: "End-to-End Encryption",              description: "Military-grade encryption protects your data at rest and in transit"
            },
            {
              icon: BarChart3,
              title: "Advanced Analytics",              description: "Comprehensive insights with customizable dashboards and reports"
            },
            {
              icon: Users,
              title: "Team Management",              description: "Granular permissions, roles, and audit logs for complete control"
            },
            {
              icon: Zap,
              title: "Lightning Fast",              description: "Sub-second response times with intelligent caching and optimization"
            },
            {
              icon: GitBranch,
              title: "Version Control",              description: "Track changes, manage versions, and collaborate seamlessly"
            },
            {
              icon: Bell,
              title: "Smart Notifications",              description: "Intelligent alerts keep your team in sync without noise"
            }
          ]}
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="testimonial" data-section="testimonial">
        <TestimonialCardFifteen
          testimonial="CloudFlow has transformed how our team collaborates. The intuitive interface and powerful features have increased our productivity by 40%. It's simply the best investment we've made for our workflow."
          rating={5}
          author="Sarah Mitchell, VP of Operations at TechCorp"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/front-view-smiley-woman-with-earbuds_23-2148613052.jpg", alt: "CEO testimonial" },
            { src: "https://img.b2bpic.net/free-photo/portrait-beautiful-redhead-woman_23-2148339229.jpg", alt: "Manager testimonial" },
            { src: "https://img.b2bpic.net/free-photo/portrait-pretty-woman-smiling_23-2148729681.jpg", alt: "Director testimonial" },
            { src: "https://img.b2bpic.net/free-photo/beautiful-woman-with-curly-blonde-hair-smiling_23-2148911874.jpg", alt: "Executive testimonial" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="pricing" data-section="pricing">
        <PricingCardEight
          title="Simple, Transparent Pricing"
          description="Choose the perfect plan for your team's needs. All plans include 30-day free trial."
          tag="Pricing"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "starter",              badge: "Great Starter",              badgeIcon: Zap,
              price: "$29",              subtitle: "per user/month",              buttons: [{ text: "Start Free Trial", href: "#" }],
              features: [
                "Up to 10 team members",                "5GB storage per user",                "Basic analytics",                "Email support",                "Core integrations",                "Mobile apps"
              ]
            },
            {
              id: "professional",              badge: "Most Popular",              badgeIcon: Crown,
              price: "$79",              subtitle: "per user/month",              buttons: [{ text: "Start Free Trial", href: "#" }],
              features: [
                "Unlimited team members",                "1TB storage per user",                "Advanced analytics",                "Priority support",                "All integrations",                "Mobile apps",                "Custom workflows",                "API access"
              ]
            },
            {
              id: "enterprise",              badge: "Enterprise",              badgeIcon: Building,
              price: "Custom",              subtitle: "Contact sales",              buttons: [{ text: "Schedule Demo", href: "#" }],
              features: [
                "Unlimited everything",                "Unlimited storage",                "Custom analytics",                "24/7 phone support",                "Dedicated account manager",                "Custom integrations",                "On-premise option",                "SLA guarantee"
              ]
            }
          ]}
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Newsletter"
          title="Stay Updated with CloudFlow News"
          description="Get the latest product updates, industry insights, and exclusive tips delivered to your inbox."
          tagIcon={Mail}
          background={{ variant: "rotated-rays-static-grid" }}
          useInvertedBackground="noInvert"
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. By subscribing, you agree to 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: "Enterprise", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#" },
                { label: "Blog", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Documentation", href: "#" },
                { label: "API Reference", href: "#" },
                { label: "Community", href: "#" },
                { label: "Status Page", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 CloudFlow. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}