"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import PricingCardThree from '@/components/sections/pricing/PricingCardThree';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Award, Sparkles, TrendingUp, Users, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="medium"
      sizing="mediumSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="SaaSPro"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Get Started",            href: "https://app.saaspro.com/signup"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Transform Your Business with Intelligent Automation"
          description="Streamline workflows, boost productivity, and scale effortlessly with our enterprise-grade SaaS platform."
          tag="Next-Gen Platform"
          tagIcon={Zap}
          background={{ variant: "sparkles-gradient" }}
          buttons={[
            { text: "Start Free Trial", href: "https://app.saaspro.com/trial" },
            { text: "View Demo", href: "https://demo.saaspro.com" }
          ]}
          mediaItems={[
            { imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg", imageAlt: "SaaS dashboard interface" },
            { imageSrc: "https://img.b2bpic.net/free-photo/close-up-digital-tablet-with-bar-graph_1098-3523.jpg", imageAlt: "Analytics dashboard" },
            { imageSrc: "https://img.b2bpic.net/free-photo/two-women-entrepreneurs-working-together-office_93675-134471.jpg", imageAlt: "Integration workflow" },
            { imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg", imageAlt: "Automation engine" },
            { imageSrc: "https://img.b2bpic.net/free-photo/woman-watching-business-conference-computer-screen-looking-statistics_482257-125563.jpg", imageAlt: "Security protocols" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNine
          title="Powerful Features for Modern Teams"
          description="Everything you need to succeed, from advanced analytics to seamless integrations."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          showStepNumbers={true}
          features={[
            {
              id: 1,
              title: "Real-Time Analytics",              description: "Monitor performance metrics instantly with our intuitive dashboard. Track KPIs, user behavior, and conversion metrics in one unified view.",              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/close-up-digital-tablet-with-bar-graph_1098-3523.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/close-up-digital-tablet-with-bar-graph_1098-3523.jpg" }
            },
            {
              id: 2,
              title: "Seamless Integration",              description: "Connect with your favorite tools and services. Our API-first architecture supports 500+ integrations with your existing tech stack.",              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/two-women-entrepreneurs-working-together-office_93675-134471.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/two-women-entrepreneurs-working-together-office_93675-134471.jpg" }
            },
            {
              id: 3,
              title: "Intelligent Automation",              description: "Automate repetitive tasks and workflows. Save hours of manual work and focus on strategic initiatives that drive growth.",              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg" }
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardThree
          title="Transparent Pricing for Every Scale"
          description="Choose the perfect plan for your team. All plans include core features with flexible scaling."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          plans={[
            {
              id: "starter",              price: "$29/mo",              name: "Starter",              buttons: [
                { text: "Get Started", href: "https://app.saaspro.com/signup?plan=starter" },
                { text: "Learn More", href: "#contact" }
              ],
              features: [
                "Up to 5 team members",                "Basic analytics dashboard",                "Email support",                "5GB storage",                "Standard integrations"
              ]
            },
            {
              id: "professional",              badge: "Most Popular",              badgeIcon: Sparkles,
              price: "$79/mo",              name: "Professional",              buttons: [
                { text: "Start Trial", href: "https://app.saaspro.com/trial?plan=professional" },
                { text: "Chat Sales", href: "#contact" }
              ],
              features: [
                "Up to 25 team members",                "Advanced analytics & AI insights",                "Priority support",                "100GB storage",                "Advanced automations",                "Custom integrations"
              ]
            },
            {
              id: "enterprise",              price: "Custom",              name: "Enterprise",              buttons: [
                { text: "Contact Sales", href: "https://calendly.com/saaspro/demo" },
                { text: "Request Demo", href: "#contact" }
              ],
              features: [
                "Unlimited team members",                "Enterprise analytics",                "24/7 dedicated support",                "Unlimited storage",                "Custom workflows",                "SSO & advanced security",                "SLA guarantees"
              ]
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Trusted by Industry Leaders"
          description="See the impact our platform has on thousands of businesses worldwide."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="scale-rotate"
          metrics={[
            {
              id: "1",              icon: Users,
              title: "Active Users",              value: "50,000+"
            },
            {
              id: "2",              icon: TrendingUp,
              title: "Growth Rate",              value: "127%"
            },
            {
              id: "3",              icon: Zap,
              title: "Tasks Automated",              value: "2.3M+"
            },
            {
              id: "4",              icon: Award,
              title: "Uptime SLA",              value: "99.99%"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Loved by Teams Worldwide"
          description="Hear from customers who've transformed their workflows with SaaSPro."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="uniform-all-items-equal"
          animationType="blur-reveal"
          testimonials={[
            {
              id: "1",              name: "Sarah Chen",              role: "VP Product",              company: "TechVenture Inc",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/positive-confident-businessman-posing-outside_74855-1183.jpg",              imageAlt: "Sarah Chen"
            },
            {
              id: "2",              name: "Marcus Rodriguez",              role: "Operations Lead",              company: "Growth Systems Co",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/senior-businessman-with-arms-crossed-outside-modern-office-building_1139-1074.jpg",              imageAlt: "Marcus Rodriguez"
            },
            {
              id: "3",              name: "Emma Walsh",              role: "Founder & CEO",              company: "Digital Studio Pro",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1674.jpg",              imageAlt: "Emma Walsh"
            },
            {
              id: "4",              name: "James Park",              role: "Director of Engineering",              company: "CloudScale Labs",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-businessman-with-tie_1098-2867.jpg",              imageAlt: "James Park"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Stay Updated with Product News"
          description="Get early access to new features, tips from industry experts, and exclusive offers delivered to your inbox."
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-vector/user-panel-business-dashboard_23-2148358960.jpg"
          imageAlt="Team collaboration"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe Now"
          termsText="We respect your privacy. Unsubscribe at any time."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "features" },
                { label: "Pricing", href: "pricing" },
                { label: "Security", href: "https://saaspro.com/security" },
                { label: "Roadmap", href: "https://saaspro.com/roadmap" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "https://saaspro.com/about" },
                { label: "Blog", href: "https://saaspro.com/blog" },
                { label: "Careers", href: "https://saaspro.com/careers" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "https://saaspro.com/privacy" },
                { label: "Terms of Service", href: "https://saaspro.com/terms" },
                { label: "Cookie Policy", href: "https://saaspro.com/cookies" }
              ]
            }
          ]}
          copyrightText="© 2025 SaaSPro. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}