"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactText from '@/components/sections/contact/ContactText';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Sparkles, Zap, Shield, Settings, TrendingUp, Users, Globe, Rocket, Star, Crown } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="compact"
      sizing="mediumLargeSizeLargeTitles"
      background="floatingGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="SaasFlow"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Get Started",            href: "https://app.saasflow.com/signup"
          }}
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Powerful SaaS Platform for Modern Teams"
          description="Streamline your workflow, automate repetitive tasks, and unlock productivity with our intuitive platform built for enterprises and startups alike."
          background={{ variant: "sparkles-gradient" }}
          tag="Next Generation"
          tagIcon={Sparkles}
          imageSrc="https://img.b2bpic.net/free-vector/user-panel-template-infographic-dashboard_23-2148378206.jpg"
          imageAlt="SaaS dashboard interface showing analytics and metrics"
          buttons={[
            { text: "Start Free Trial", href: "https://app.saasflow.com/trial" },
            { text: "View Demo", href: "#features" }
          ]}
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/inspiring-new-boss_1098-93.jpg", alt: "User 1" },
            { src: "https://img.b2bpic.net/free-photo/portrait-businessman-with-folded-arms-looking-camera_23-2147955314.jpg", alt: "User 2" },
            { src: "https://img.b2bpic.net/free-photo/man-portrait-posing-loft-modern-space_158595-5367.jpg", alt: "User 3" }
          ]}
          avatarText="Trusted by 5,000+ companies worldwide"
        />
      </div>
      
      <div id="features" data-section="features">
        <FeatureHoverPattern
          title="Powerful Features"
          description="Everything you need to transform your business operations with cutting-edge technology"
          tag="Capabilities"
          tagIcon={Zap}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          features={[
            {
              icon: Zap,
              title: "Lightning Fast Performance",              description: "Optimized for speed with sub-second response times and blazing fast data processing capabilities"
            },
            {
              icon: Shield,
              title: "Enterprise Security",              description: "Bank-level encryption, SOC 2 compliance, and advanced threat protection built in"
            },
            {
              icon: Settings,
              title: "Seamless Integration",              description: "Connect with 500+ tools and services using our robust API and pre-built integrations"
            },
            {
              icon: TrendingUp,
              title: "Advanced Analytics",              description: "Real-time insights and predictive analytics to drive data-informed decision making"
            },
            {
              icon: Users,
              title: "Team Collaboration",              description: "Built-in collaboration tools for real-time teamwork and seamless communication"
            },
            {
              icon: Globe,
              title: "Global Scalability",              description: "Deploy worldwide with 99.99% uptime SLA and automatic failover protection"
            }
          ]}
        />
      </div>
      
      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Proven Results"
          description="See the impact our platform delivers to thousands of customers"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          metrics={[
            { id: "1", value: "99.99%", description: "Platform Uptime" },
            { id: "2", value: "5,000+", description: "Enterprise Customers" },
            { id: "3", value: "40%", description: "Average Productivity Increase" },
            { id: "4", value: "$2.5M+", description: "Annual Cost Savings for Customers" }
          ]}
        />
      </div>
      
      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Simple, Transparent Pricing"
          description="Choose the perfect plan for your team size and needs"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          plans={[
            {
              id: "starter",              badge: "Starter",              badgeIcon: Rocket,
              price: "$49/mo",              subtitle: "Perfect for small teams getting started",              buttons: [
                { text: "Get Started", href: "https://app.saasflow.com/signup?plan=starter" },
                { text: "Learn More", href: "#" }
              ],
              features: [
                "Up to 5 team members",                "50GB storage",                "Basic analytics",                "Email support",                "Core integrations"
              ]
            },
            {
              id: "professional",              badge: "Professional",              badgeIcon: Star,
              price: "$199/mo",              subtitle: "Best for growing teams with advanced needs",              buttons: [
                { text: "Get Started", href: "https://app.saasflow.com/signup?plan=professional" },
                { text: "Chat with Sales", href: "#contact" }
              ],
              features: [
                "Up to 50 team members",                "1TB storage",                "Advanced analytics & reporting",                "Priority support",                "500+ integrations",                "Custom workflows",                "API access"
              ]
            },
            {
              id: "enterprise",              badge: "Enterprise",              badgeIcon: Crown,
              price: "Custom",              subtitle: "For large organizations with unique requirements",              buttons: [
                { text: "Contact Sales", href: "#contact" },
                { text: "Request Demo", href: "#" }
              ],
              features: [
                "Unlimited team members",                "Unlimited storage",                "Advanced security & compliance",                "24/7 dedicated support",                "Custom integrations",                "White-label options",                "SLA guarantee",                "On-premise deployment"
              ]
            }
          ]}
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Loved by Teams Everywhere"
          description="See what our customers have to say about transforming their operations"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          speed={40}
          testimonials={[
            {
              id: "1",              name: "Sarah Chen",              handle: "CEO @ TechFlow",              testimonial: "SaasFlow transformed how our team collaborates. We've cut project delivery time by 40% and our team couldn't be happier.",              imageSrc: "https://img.b2bpic.net/free-photo/inspiring-new-boss_1098-93.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "2",              name: "Marcus Johnson",              handle: "CTO @ CloudFirst",              testimonial: "The integration capabilities are unmatched. Connecting all our tools was seamless and saved us months of development time.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-businessman-with-folded-arms-looking-camera_23-2147955314.jpg",              imageAlt: "Marcus Johnson"
            },
            {
              id: "3",              name: "Emily Rodriguez",              handle: "Product Lead @ Growth Co",              testimonial: "Outstanding support and a product that actually listens to user feedback. This is what enterprise software should be.",              imageSrc: "https://img.b2bpic.net/free-photo/man-portrait-posing-loft-modern-space_158595-5367.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              name: "David Kim",              handle: "Founder @ StartupXYZ",              testimonial: "From day one, the platform was intuitive and powerful. We're able to scale faster than we ever thought possible.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-happy-businessman-with-crossed-arms_23-2147955274.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              name: "Jennifer Lee",              handle: "Director @ InnovateLab",              testimonial: "The analytics dashboard gives us insights we never had before. It's become critical to our strategy and operations.",              imageSrc: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg",              imageAlt: "Jennifer Lee"
            },
            {
              id: "6",              name: "Robert Martinez",              handle: "VP @ Enterprise Solutions",              testimonial: "Security and compliance were paramount for us. SaasFlow exceeded all our requirements and then some.",              imageSrc: "https://img.b2bpic.net/free-photo/content-indian-ceo-standing-smiling-portrait-successful-pensive-bearded-businessman-glasses-posing-office-room-business-expression-management-concept_74855-11642.jpg",              imageAlt: "Robert Martinez"
            }
          ]}
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to transform your team's productivity? Start your free trial today and experience the SaasFlow difference."
          animationType="entrance-slide"
          background={{ variant: "plain" }}
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Start Free Trial", href: "https://app.saasflow.com/trial" },
            { text: "Schedule Demo", href: "#" }
          ]}
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterSimple
          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: "Resources",              items: [
                { label: "Documentation", href: "#" },
                { label: "API Reference", href: "#" },
                { label: "Guides", href: "#" },
                { label: "Community", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Cookie Policy", href: "#" },
                { label: "Compliance", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 SaasFlow. All rights reserved."
          bottomRightText="Made with passion for productivity"
        />
      </div>
    </ThemeProvider>
  );
}