"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Zap, BarChart3, Shield, Users, Headphones, TrendingUp, Sparkles } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="large"
      background="none"
      cardStyle="gradient-bordered"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" },
            { name: "Dashboard", id: "https://dashboard.example.com" }
          ]}
          brandName="SaaS Pro"
          bottomLeftText="Global Platform"
          bottomRightText="hello@saaspro.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="SaaS Pro"
          description="Transform your business with intelligent automation, real-time analytics, and enterprise-grade security built for modern teams"
          buttons={[
            { text: "Start Free Trial", href: "https://app.saaspro.com/signup" },
            { text: "Watch Demo", href: "#features" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/determined-ceo-works-office-analyzing-infographics-setting-business-goals_482257-123120.jpg"
          imageAlt="SaaS dashboard showcase"
          showDimOverlay={true}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureHoverPattern
          features={[
            {
              icon: Zap,
              title: "Lightning Fast",              description: "Optimized performance with sub-second response times ensures your team stays productive without delays"
            },
            {
              icon: BarChart3,
              title: "Advanced Analytics",              description: "Real-time insights and customizable dashboards give you complete visibility into your business metrics"
            },
            {
              icon: Shield,
              title: "Enterprise Security",              description: "Bank-level encryption and compliance with SOC 2, GDPR, and HIPAA standards protect your data"
            },
            {
              icon: Zap,
              title: "Seamless Integration",              description: "Connect with 500+ apps including Slack, Salesforce, and HubSpot through powerful APIs"
            },
            {
              icon: Users,
              title: "Team Collaboration",              description: "Built-in collaboration tools enable your team to work together efficiently from anywhere"
            },
            {
              icon: Headphones,
              title: "24/7 Premium Support",              description: "Dedicated support team available around the clock to ensure your success"
            }
          ]}
          title="Everything You Need to Succeed"
          description="Powerful tools designed to streamline workflows, amplify productivity, and drive measurable business results"
          tag="Core Features"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          title="Our Impact"
          description="Trusted by thousands of businesses worldwide to drive growth and efficiency"
          metrics={[
            {
              id: "1",              value: "10K+",              title: "Active Users",              description: "Growing community of satisfied customers",              icon: Users
            },
            {
              id: "2",              value: "$500M",              title: "Processed",              description: "Total transaction value handled annually",              icon: TrendingUp
            },
            {
              id: "3",              value: "99.9%",              title: "Uptime",              description: "Industry-leading reliability and availability",              icon: Shield
            },
            {
              id: "4",              value: "50+",              title: "Integrations",              description: "Seamless connections with your favorite tools",              icon: Zap
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Simple, Transparent Pricing"
          description="Choose the perfect plan for your team. All plans include a 14-day free trial with full feature access"
          tag="Pricing"
          plans={[
            {
              id: "starter",              badge: "Starter",              badgeIcon: Sparkles,
              price: "$29",              subtitle: "Perfect for getting started",              buttons: [
                { text: "Start Free Trial", href: "https://app.saaspro.com/signup?plan=starter" },
                { text: "Learn More", href: "#" }
              ],
              features: [
                "Up to 5 team members",                "5,000 monthly transactions",                "Basic analytics and reporting",                "Email support",                "Single workspace",                "Standard integrations"
              ]
            },
            {
              id: "pro",              badge: "Pro",              badgeIcon: Sparkles,
              price: "$99",              subtitle: "Most popular choice",              buttons: [
                { text: "Start Free Trial", href: "https://app.saaspro.com/signup?plan=pro" },
                { text: "Learn More", href: "#" }
              ],
              features: [
                "Up to 50 team members",                "100,000 monthly transactions",                "Advanced analytics and dashboards",                "Priority email & chat support",                "Unlimited workspaces",                "500+ app integrations",                "Custom workflows",                "API access"
              ]
            },
            {
              id: "enterprise",              badge: "Enterprise",              badgeIcon: Sparkles,
              price: "Custom",              subtitle: "For large-scale operations",              buttons: [
                { text: "Contact Sales", href: "https://calendly.com/saaspro/demo" },
                { text: "View Features", href: "#" }
              ],
              features: [
                "Unlimited team members",                "Unlimited transactions",                "Custom analytics and reporting",                "24/7 dedicated support",                "Advanced security features",                "Single sign-on (SSO)",                "Custom integrations",                "SLA guarantee",                "Dedicated account manager"
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="SaaS Pro transformed how our team manages workflows. The intuitive interface, powerful automation, and exceptional support helped us increase productivity by 40% in just three months. It's an investment that pays dividends."
          rating={5}
          author="Sarah Chen, VP of Operations at TechFlow"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg", alt: "Sarah Chen" },
            { src: "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", alt: "Michael Johnson" },
            { src: "https://img.b2bpic.net/free-photo/happy-young-professional-posing-office_1262-21170.jpg", alt: "Emily Rodriguez" },
            { src: "https://img.b2bpic.net/free-photo/positive-confident-businessman-posing-outside_74855-1183.jpg", alt: "David Kim" },
            { src: "https://img.b2bpic.net/free-photo/close-up-competitive-employee_1098-2870.jpg", alt: "Jessica Martinez" },
            { src: "https://img.b2bpic.net/free-photo/closeup-handsome-middle-aged-business-leader_1262-4822.jpg", alt: "James Wilson" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to transform your business? Join thousands of successful teams using SaaS Pro today. Start your free 14-day trial with full access to all features."
          animationType="entrance-slide"
          buttons={[
            { text: "Start Free Trial", href: "https://app.saaspro.com/signup" },
            { text: "Schedule Demo", href: "https://calendly.com/saaspro/demo" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "features" },
                { label: "Pricing", href: "pricing" },
                { label: "Security", href: "#" },
                { label: "Roadmap", href: "#" },
                { label: "Updates", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "#" },
                { label: "Blog", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "contact" },
                { label: "Partners", href: "#" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Documentation", href: "#" },
                { label: "API Reference", href: "#" },
                { label: "Community", href: "#" },
                { label: "Status", href: "#" },
                { label: "Support", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 SaaS Pro. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}