"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import AboutMetric from '@/components/sections/about/AboutMetric';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Globe, Rocket, Sparkles, Star, TrendingUp, Users, Zap } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="solid"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="SaaS Pro"
          navItems={[
            { name: "Features", id: "features" },
            { name: "Pricing", id: "pricing" },
            { name: "Testimonials", id: "testimonials" },
            { name: "FAQ", id: "faq" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="SaaS Pro"
          description="Empower your business with intelligent automation, real-time analytics, and seamless collaboration. Build faster, scale smarter."
          buttons={[
            { text: "Start Free Trial", href: "#contact" },
            { text: "View Demo", href: "#features" }
          ]}
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-vector/professional-dashboard-user-panel_23-2148368370.jpg"
          imageAlt="SaaS dashboard showcase"
          frameStyle="browser"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNine
          features={[
            {
              id: 1,
              title: "Smart Automation",              description: "Automate repetitive tasks and workflows with intelligent rules. Save hours every week and focus on what matters most.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-vector/dashboard-admin-panel-template_23-2148372587.jpg",                imageAlt: "automation workflow efficiency technology process"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-vector/dashboard-user-panel_23-2148370944.jpg",                imageAlt: "analytics data chart insights reporting"
              }
            },
            {
              id: 2,
              title: "Real-Time Collaboration",              description: "Work together seamlessly with team members in real-time. Track changes, share feedback, and stay aligned on goals.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-vector/user-panel-business-dashboard_23-2148358960.jpg",                imageAlt: "collaboration teamwork communication workspace"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-vector/dashboard-user-panel-template_52683-29382.jpg",                imageAlt: "integration connect api tools ecosystem"
              }
            },
            {
              id: 3,
              title: "Enterprise Security",              description: "Bank-grade encryption and compliance standards. Your data is protected with the highest security protocols available.",              phoneOne: {
                imageSrc: "https://img.b2bpic.net/free-vector/professional-dashboard-user-panel_23-2148358961.jpg",                imageAlt: "security protection lock encryption shield"
              },
              phoneTwo: {
                imageSrc: "https://img.b2bpic.net/free-vector/dashboard-admin-panel-template_23-2148372587.jpg",                imageAlt: "automation workflow efficiency technology process"
              }
            }
          ]}
          showStepNumbers={true}
          title="Powerful Features for Modern Teams"
          description="Everything you need to streamline workflows, boost productivity, and drive growth."
          tag="Core Capabilities"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <AboutMetric
          title="Trusted by industry leaders to drive results and accelerate growth across enterprises worldwide"
          metrics={[
            { icon: Users, label: "Active Users", value: "50,000+" },
            { icon: TrendingUp, label: "Growth Rate", value: "300%" },
            { icon: Zap, label: "Tasks Automated", value: "10M+" },
            { icon: Globe, label: "Countries", value: "120+" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardEight
          plans={[
            {
              id: "starter",              badge: "Popular for Teams",              badgeIcon: Sparkles,
              price: "$29",              subtitle: "per user/month",              buttons: [{ text: "Get Started", href: "#contact" }],
              features: [
                "Up to 10 team members",                "1,000 monthly automations",                "Basic analytics and reporting",                "Email support",                "5GB file storage",                "Standard integrations"
              ]
            },
            {
              id: "professional",              badge: "Most Popular",              badgeIcon: Star,
              price: "$79",              subtitle: "per user/month",              buttons: [{ text: "Start Free Trial", href: "#contact" }],
              features: [
                "Unlimited team members",                "Unlimited automations",                "Advanced analytics",                "Priority support",                "500GB storage",                "Advanced integrations",                "Custom workflows",                "API access"
              ]
            },
            {
              id: "enterprise",              badge: "For Large Teams",              badgeIcon: Zap,
              price: "Custom",              subtitle: "contact sales",              buttons: [{ text: "Contact Sales", href: "#contact" }],
              features: [
                "Unlimited everything",                "Dedicated account manager",                "24/7 priority support",                "Unlimited storage",                "Custom integrations",                "White-label options",                "SLA guarantee",                "On-premises deployment"
              ]
            }
          ]}
          animationType="slide-up"
          title="Simple, Transparent Pricing"
          description="Choose the plan that fits your needs. Scale up or down anytime without long-term contracts."
          tag="Pricing"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          testimonials={[
            {
              id: "1",              name: "Sarah Chen, VP Product at TechCorp",              date: "Date: 15 January 2025",              title: "Transformed our entire workflow",              quote: "SaaS Pro helped us reduce manual tasks by 70% in just three months. The automation capabilities are unmatched, and our team is more productive than ever.",              tag: "Professional Plan",              avatarSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              avatarAlt: "professional headshot business portrait person",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "professional headshot business portrait person"
            },
            {
              id: "2",              name: "Marcus Johnson, CEO at Growth Ventures",              date: "Date: 18 December 2024",              title: "Best investment in our operations",              quote: "The ROI was immediate. We've cut operational costs significantly while improving team collaboration and transparency across departments.",              tag: "Enterprise Plan",              avatarSrc: "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",              avatarAlt: "professional headshot business portrait person",              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: "professional headshot business portrait person"
            },
            {
              id: "3",              name: "Elena Rodriguez, Director of Operations",              date: "Date: 10 December 2024",              title: "Seamless implementation and support",              quote: "The onboarding process was incredibly smooth. The support team answered every question and helped us maximize our investment from day one.",              tag: "Professional Plan",              avatarSrc: "https://img.b2bpic.net/free-photo/close-up-competitive-employee_1098-2870.jpg",              avatarAlt: "professional headshot business portrait person",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-competitive-employee_1098-2870.jpg",              imageAlt: "professional headshot business portrait person"
            },
            {
              id: "4",              name: "David Park, Founder at InnovateLab",              date: "Date: 05 December 2024",              title: "Scaled our business effortlessly",              quote: "From startup to 50 employees, SaaS Pro scaled with us perfectly. The flexibility and reliability are exactly what we needed to focus on growth.",              tag: "Starter Plan",              avatarSrc: "https://img.b2bpic.net/free-photo/closeup-handsome-middle-aged-business-leader_1262-4822.jpg",              avatarAlt: "professional headshot business portrait person",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-handsome-middle-aged-business-leader_1262-4822.jpg",              imageAlt: "professional headshot business portrait person"
            },
            {
              id: "5",              name: "Jessica Martinez, Project Manager at CreativeCo",              date: "Date: 01 December 2024",              title: "Our team's productivity multiplied",              quote: "We've never been more organized. Real-time collaboration features bring our distributed team together like we're in the same office.",              tag: "Professional Plan",              avatarSrc: "https://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg",              avatarAlt: "professional headshot business portrait person",              imageSrc: "https://img.b2bpic.net/free-photo/positive-middle-aged-business-leader-window_1262-5388.jpg",              imageAlt: "professional headshot business portrait person"
            },
            {
              id: "6",              name: "Alex Kumar, CTO at FinanceFlow",              date: "Date: 28 November 2024",              title: "Enterprise-grade reliability",              quote: "The security and stability are enterprise-level. We trust SaaS Pro with critical business processes and it has never let us down.",              tag: "Enterprise Plan",              avatarSrc: "https://img.b2bpic.net/free-photo/happy-young-professional-posing-office_1262-21170.jpg",              avatarAlt: "professional headshot business portrait person",              imageSrc: "https://img.b2bpic.net/free-photo/happy-young-professional-posing-office_1262-21170.jpg",              imageAlt: "professional headshot business portrait person"
            }
          ]}
          title="What Our Customers Say"
          description="See how leading teams are transforming their workflows with SaaS Pro"
          tag="Testimonials"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          faqs={[
            {
              id: "1",              title: "What is the free trial period?",              content: "We offer a 14-day free trial with full access to all Professional plan features. No credit card required. You can upgrade or downgrade anytime before the trial ends."
            },
            {
              id: "2",              title: "Can I change plans anytime?",              content: "Yes, you can upgrade or downgrade your plan at any time. Changes take effect immediately, and we'll automatically adjust your billing."
            },
            {
              id: "3",              title: "What happens to my data if I cancel?",              content: "Your data remains accessible for 30 days after cancellation. You can export all data in standard formats. After 30 days, data is permanently deleted."
            },
            {
              id: "4",              title: "Do you offer API access?",              content: "Yes, API access is included in Professional and Enterprise plans. We provide comprehensive documentation and SDKs for popular languages."
            },
            {
              id: "5",              title: "Is there a setup fee?",              content: "No setup fees. Professional and Starter plans can be activated immediately. Enterprise customers work with our sales team for custom implementation."
            },
            {
              id: "6",              title: "What security certifications do you have?",              content: "We maintain SOC 2 Type II, ISO 27001, and GDPR compliance. All data is encrypted both in transit and at rest using industry-standard protocols."
            }
          ]}
          title="Frequently Asked Questions"
          description="Find answers to common questions about SaaS Pro features, pricing, and implementation"
          tag="Help & Support"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Ready to Get Started?"
          tagIcon={Rocket}
          title="Join thousands of teams using SaaS Pro"
          description="Start your 14-day free trial today. No credit card required. Scale your business and transform your operations."
          buttons={[
            { text: "Start Free Trial", href: "https://app.example.com/signup" },
            { text: "Schedule Demo", href: "https://calendly.com/demo" }
          ]}
          background={{ variant: "radial-gradient" }}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="SaaS Pro"
          copyrightText="© 2025 SaaS Pro. All rights reserved."
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "features" },
                { label: "Pricing", href: "pricing" },
                { label: "Security", href: "https://example.com/security" },
                { label: "Roadmap", href: "https://example.com/roadmap" }
              ]
            },
            {
              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://docs.example.com" },
                { label: "API Reference", href: "https://api.example.com" },
                { label: "Integrations", href: "https://example.com/integrations" },
                { label: "Support", href: "https://support.example.com" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}