"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import FeatureBento from '@/components/sections/feature/FeatureBento';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import ContactText from '@/components/sections/contact/ContactText';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { 
  Cloud, 
  Code, 
  Database, 
  DollarSign, 
  Eye, 
  Headphones, 
  Heart, 
  Mail, 
  MessageSquare, 
  Settings, 
  Shield, 
  Sparkles, 
  Star, 
  TrendingUp, 
  Users, 
  Zap, 
  Book 
} from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="mediumLargeSizeMediumTitles"
      background="aurora"
      cardStyle="soft-shadow"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple 
          brandName="SaaS Pro"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard 
          logoText="SaaS Pro"
          description="Empower your team with intelligent automation, seamless integration, and real-time collaboration tools designed for modern software teams."
          buttons={[
            { text: "Start Free Trial", href: "#contact" },
            { text: "View Demo", href: "https://example.com/demo" }
          ]}
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-photo/close-up-modern-laptop-with-rate-charts-display-while-man-woman-working-business-project-design-computer-screen-with-data-chart-information-finance-analysis-desk_482257-40065.jpg"
          imageAlt="SaaS Pro Dashboard"
          frameStyle="browser"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBento 
          title="Powerful Features Built for Scale"
          description="Everything you need to streamline workflows, boost productivity, and drive business growth with our comprehensive platform."
          tag="Features"
          tagIcon={Sparkles}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          features={[
            {
              title: "Advanced Analytics",              description: "Get real-time insights into your business performance with customizable dashboards and detailed reporting.",              bentoComponent: "animated-bar-chart"
            },
            {
              title: "Seamless Integration",              description: "Connect all your favorite tools and services with our comprehensive API and pre-built integrations.",              bentoComponent: "orbiting-icons",              centerIcon: Zap,
              items: [
                { icon: Code, ring: 1 },
                { icon: Cloud, ring: 1 },
                { icon: Database, ring: 2 },
                { icon: Shield, ring: 2 },
                { icon: Users, ring: 3 },
                { icon: Settings, ring: 3 }
              ]
            },
            {
              title: "Enterprise Security",              description: "Bank-grade encryption, SOC 2 compliance, and advanced access controls keep your data safe.",              bentoComponent: "globe"
            },
            {
              title: "Team Collaboration",              description: "Work together seamlessly with instant notifications, shared workspaces, and activity tracking.",              bentoComponent: "3d-task-list",              title: "Team Collaboration",              items: [
                { icon: Users, label: "Team Members", time: "Active now" },
                { icon: MessageSquare, label: "Chat & Comments", time: "Live updates" },
                { icon: Eye, label: "Activity Log", time: "Real-time" }
              ]
            },
            {
              title: "Intelligent Automation",              description: "Automate repetitive tasks and workflows with intelligent rules, triggers, and custom logic.",              bentoComponent: "line-chart"
            },
            {
              title: "24/7 Expert Support",              description: "Dedicated support team ready to help you succeed with priority response times and technical guidance.",              bentoComponent: "3d-stack-cards",              items: [
                { icon: Headphones, title: "Live Chat", subtitle: "Chat Support", detail: "Instant assistance" },
                { icon: Mail, title: "Email", subtitle: "Email Support", detail: "24-hour response" },
                { icon: Book, title: "Docs", subtitle: "Knowledge Base", detail: "Self-service help" }
              ]
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne 
          title="Simple, Transparent Pricing"
          description="Choose the perfect plan for your team. Scale up anytime with no hidden fees or long-term contracts."
          tag="Pricing"
          tagIcon={DollarSign}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "starter",              badge: "Popular for Teams",              badgeIcon: Star,
              price: "$49/mo",              subtitle: "Perfect for growing teams starting their automation journey",              features: [
                "Up to 10 team members",                "5,000 automation runs/month",                "Basic analytics and reporting",                "Email support",                "Core integrations (50+)",                "API access"
              ]
            },
            {
              id: "professional",              badge: "Most Popular",              badgeIcon: Sparkles,
              price: "$149/mo",              subtitle: "Ideal for established teams with advanced needs",              features: [
                "Up to 50 team members",                "50,000 automation runs/month",                "Advanced analytics and custom dashboards",                "Priority email & chat support",                "Premium integrations (200+)",                "Custom workflows and logic",                "SSO and advanced security"
              ]
            },
            {
              id: "enterprise",              badge: "For Large Orgs",              badgeIcon: Zap,
              price: "Custom",              subtitle: "Enterprise-grade solution with dedicated support",              features: [
                "Unlimited team members",                "Unlimited automation runs",                "Custom reporting and analytics",                "Dedicated account manager",                "All integrations available",                "Custom development support",                "99.99% SLA guarantee",                "White-label options"
              ]
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo 
          title="Trusted by Industry Leaders"
          description="Join thousands of companies that have transformed their operations with SaaS Pro"
          tag="Results"
          tagIcon={TrendingUp}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          gridVariant="uniform-all-items-equal"
          metrics={[
            {
              id: "1",              value: "10,000+",              description: "Active Users Worldwide"
            },
            {
              id: "2",              value: "500M+",              description: "Automations Completed"
            },
            {
              id: "3",              value: "99.99%",              description: "Uptime Guarantee"
            },
            {
              id: "4",              value: "4.9/5",              description: "Customer Satisfaction"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve 
          cardTitle="Over 10,000 teams trust SaaS Pro to power their automation and drive business growth"
          cardTag="See what customers are saying"
          cardTagIcon={Heart}
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-millennial-man-looking-camera-cafe-headshot-portrait_1163-5163.jpg"
            },
            {
              id: "2",              name: "Michael Chen",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-childish-african-student-male-with-funky-hair-blowing-his-cheeks_273609-14065.jpg"
            },
            {
              id: "3",              name: "Emma Rodriguez",              imageSrc: "https://img.b2bpic.net/free-photo/selfie-portrait-videocall_23-2149186122.jpg"
            },
            {
              id: "4",              name: "David Kim",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-man_1098-15443.jpg"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText 
          text="Ready to transform your workflow? Start your free 14-day trial today and experience the power of intelligent automation. No credit card required."
          animationType="entrance-slide"
          buttons={[
            { text: "Start Free Trial", href: "https://example.com/signup" },
            { text: "Schedule a Demo", href: "https://example.com/demo" }
          ]}
          background={{ variant: "gradient-bars" }}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple 
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "#features" },
                { label: "Pricing", href: "#pricing" },
                { label: "Security", href: "https://example.com/security" },
                { label: "Integrations", href: "https://example.com/integrations" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "https://example.com/about" },
                { label: "Blog", href: "https://example.com/blog" },
                { label: "Careers", href: "https://example.com/careers" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Documentation", href: "https://example.com/docs" },
                { label: "Help Center", href: "https://example.com/help" },
                { label: "API Reference", href: "https://example.com/api" },
                { label: "Community", href: "https://example.com/community" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "https://example.com/privacy" },
                { label: "Terms of Service", href: "https://example.com/terms" },
                { label: "Cookie Policy", href: "https://example.com/cookies" },
                { label: "Status Page", href: "https://example.com/status" }
              ]
            }
          ]}
          bottomLeftText="© 2025 SaaS Pro. All rights reserved."
          bottomRightText="Designed & Built for Modern Teams"
        />
      </div>
    </ThemeProvider>
  );
}