"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroSignup from '@/components/sections/hero/HeroSignup';
import FeatureCardTwentyTwo from '@/components/sections/feature/FeatureCardTwentyTwo';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import PricingCardFive from '@/components/sections/pricing/PricingCardFive';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Sparkles, Zap, TrendingUp, DollarSign, Crown, MessageSquare } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" },
            { name: "Blog", id: "https://blog.example.com" }
          ]}
          brandName="SaasHub"
          bottomLeftText="Global Platform"
          bottomRightText="hello@saashub.io"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSignup
          title="The Future of SaaS is Here"
          description="Streamline your workflow with intelligent automation, real-time analytics, and seamless integrations. Join thousands of teams already transforming their productivity."
          background={{ variant: "sparkles-gradient" }}
          tag="AI-Powered Platform"
          tagIcon={Sparkles}
          inputPlaceholder="Enter your email"
          buttonText="Get Early Access"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyTwo
          title="Powerful Features Built for Teams"
          description="Everything you need to automate workflows, track performance, and scale your operations without friction."
          tag="Core Features"
          tagIcon={Zap}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          features={[
            {
              id: "1",              title: "Intelligent Workflow Automation",              category: ["Automation", "AI"],
              imageSrc: "https://img.b2bpic.net/free-photo/information-technology-connection-graphics-concept_53876-121040.jpg",              imageAlt: "Workflow automation interface"
            },
            {
              id: "2",              title: "Real-Time Analytics Dashboard",              category: ["Analytics", "Insights"],
              imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg",              imageAlt: "Analytics dashboard with charts"
            },
            {
              id: "3",              title: "Seamless Tool Integration",              category: ["Integration", "API"],
              imageSrc: "https://img.b2bpic.net/free-photo/african-american-company-employees-handling-financial-planning_482257-128572.jpg",              imageAlt: "Integration ecosystem"
            },
            {
              id: "4",              title: "Enterprise-Grade Security",              category: ["Security", "Compliance"],
              imageSrc: "https://img.b2bpic.net/free-photo/information-technology-connection-graphics-concept_53876-121040.jpg",              imageAlt: "Security features"
            }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Why Teams Choose SaasHub"
          description="Built by product teams, for product teams. We understand your challenges."
          tabs={[
            {
              id: "speed",              label: "Lightning Fast",              description: "Deploy and scale instantly with our cloud-native infrastructure. No complicated setup, no endless configuration. Start automating in minutes, not days."
            },
            {
              id: "support",              label: "Expert Support",              description: "Our dedicated team of product specialists are available 24/7 to ensure your success. We're not just a tool—we're your growth partner."
            },
            {
              id: "security",              label: "Bank-Level Security",              description: "Enterprise-grade encryption, SOC 2 compliance, and multi-region redundancy keep your data safe. Your security is our priority."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/man-wheelchair-having-office-job_23-2149571066.jpg"
          imageAlt="Team collaboration"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Trusted by Industry Leaders"
          description="Our platform powers teams across Fortune 500 companies and innovative startups."
          tag="Impact"
          tagIcon={TrendingUp}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",              value: "50K+",              description: "Active Teams Worldwide"
            },
            {
              id: "2",              value: "98%",              description: "Uptime Guarantee"
            },
            {
              id: "3",              value: "10M+",              description: "Workflows Automated"
            },
            {
              id: "4",              value: "24/7",              description: "Expert Support"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardFive
          title="Simple, Transparent Pricing"
          description="Choose the perfect plan for your team. No hidden fees, cancel anytime."
          tag="Pricing"
          tagIcon={DollarSign}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: "starter",              tag: "Starter Plan",              tagIcon: Zap,
              price: "$49",              period: "/month",              description: "Perfect for individuals and small teams just getting started.",              button: { text: "Start Free Trial", href: "#contact" },
              featuresTitle: "What's Included:",              features: [
                "Up to 5 team members",                "Basic automation workflows",                "Standard analytics dashboard",                "Email support",                "1GB data storage"
              ]
            },
            {
              id: "professional",              tag: "Professional Plan",              tagIcon: Sparkles,
              price: "$199",              period: "/month",              description: "Best for growing teams with advanced automation needs.",              button: { text: "Get Started", href: "#contact" },
              featuresTitle: "Everything in Starter, plus:",              features: [
                "Up to 50 team members",                "Advanced automation workflows",                "Custom integrations",                "Priority support",                "100GB data storage",                "API access"
              ]
            },
            {
              id: "enterprise",              tag: "Enterprise Plan",              tagIcon: Crown,
              price: "Custom",              period: "/quote",              description: "For large organizations with complex requirements.",              button: { text: "Contact Sales", href: "#contact" },
              featuresTitle: "Everything in Professional, plus:",              features: [
                "Unlimited team members",                "White-label solution",                "Dedicated account manager",                "24/7 premium support",                "Unlimited storage",                "Custom security & compliance",                "SLA guarantee"
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Loved by Product Leaders"
          description="See what teams are saying about SaasHub and their transformation."
          tag="Testimonials"
          tagIcon={MessageSquare}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          gridVariant="uniform-all-items-equal"
          carouselMode="buttons"
          testimonials={[
            {
              id: "1",              name: "Sarah Chen",              role: "Product Director",              company: "TechScale",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Sarah Chen portrait"
            },
            {
              id: "2",              name: "Marcus Rodriguez",              role: "CEO",              company: "InnovateLabs",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg",              imageAlt: "Marcus Rodriguez portrait"
            },
            {
              id: "3",              name: "Emily Watson",              role: "Ops Manager",              company: "GrowthCo",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-competitive-employee_1098-2870.jpg",              imageAlt: "Emily Watson portrait"
            },
            {
              id: "4",              name: "David Kim",              role: "VP Engineering",              company: "CloudFirst",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-handsome-middle-aged-business-leader_1262-4822.jpg",              imageAlt: "David Kim portrait"
            },
            {
              id: "5",              name: "Jessica Liu",              role: "Founder",              company: "StartupXYZ",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-young-professional-posing-office_1262-21170.jpg",              imageAlt: "Jessica Liu portrait"
            },
            {
              id: "6",              name: "Alex Thompson",              role: "Operations Lead",              company: "Digital Agency Pro",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg",              imageAlt: "Alex Thompson portrait"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to transform your team's productivity? Start your free trial today—no credit card required."
          animationType="entrance-slide"
          background={{ variant: "plain" }}
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Start Free Trial", href: "#" },
            { text: "Schedule Demo", href: "#" }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="SaasHub"
          copyrightText="© 2025 SaasHub. All rights reserved."
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "features" },
                { label: "Pricing", href: "pricing" },
                { label: "Security", href: "#" },
                { label: "Roadmap", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "about" },
                { label: "Blog", href: "https://blog.saashub.io" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Documentation", href: "#" },
                { label: "API Reference", href: "#" },
                { label: "Community", href: "#" },
                { label: "Support", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}