"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import FeatureCardTwentySix from '@/components/sections/feature/FeatureCardTwentySix';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Crown, Headphones, Plug, Rocket, Shield, Sparkles, TrendingUp, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeLargeTitles"
      background="floatingGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <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">
        <HeroCarouselLogo
          logoText="SAAS PRO"
          description="Streamline your workflow with our intelligent platform. Built for modern teams who demand excellence."
          buttons={[
            { text: "Start Free Trial", href: "#contact" },
            { text: "View Demo", href: "https://example.com/demo" }
          ]}
          slides={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/goal-oriented-entrepreneur-luxurious-corporate-office-plans-strategy_482257-128191.jpg",              imageAlt: "SaaS dashboard interface"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/determined-ceo-works-office-analyzing-infographics-setting-business-goals_482257-123120.jpg",              imageAlt: "Team collaboration workspace"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg",              imageAlt: "Analytics and metrics dashboard"
            }
          ]}
          autoplayDelay={5000}
          showDimOverlay={true}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentySix
          title="Powerful Features"
          description="Everything you need to succeed in one unified platform"
          tag="Capabilities"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          features={[
            {
              title: "Smart Automation",              description: "Automate repetitive tasks and focus on what matters most",              imageSrc: "https://img.b2bpic.net/free-photo/information-technology-connection-graphics-concept_53876-121040.jpg",              imageAlt: "Automation features",              buttonIcon: Zap
            },
            {
              title: "Bank-Level Security",              description: "Enterprise-grade encryption to protect your sensitive data",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-collage-concept_23-2149595844.jpg",              imageAlt: "Security features",              buttonIcon: Shield
            },
            {
              title: "Real-Time Analytics",              description: "Gain actionable insights with beautiful, interactive dashboards",              imageSrc: "https://img.b2bpic.net/free-photo/automation-production-system-operation-precess-concept_53876-138637.jpg",              imageAlt: "Analytics features",              buttonIcon: TrendingUp
            },
            {
              title: "Seamless Integration",              description: "Connect with 500+ tools and services you already use",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-concept-m_23-2150041843.jpg",              imageAlt: "Integration features",              buttonIcon: Plug
            },
            {
              title: "24/7 Support",              description: "Expert support team ready to help you succeed every step of the way",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-collage-concept_23-2149595849.jpg",              imageAlt: "Support features",              buttonIcon: Headphones
            },
            {
              title: "Unlimited Scalability",              description: "Grow without limits as your business scales and evolves",              imageSrc: "https://img.b2bpic.net/free-photo/programming-background-with-html_23-2150038862.jpg",              imageAlt: "Scalability features",              buttonIcon: Rocket
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Choose Your Plan"
          description="Select the perfect plan for your team size and budget"
          tag="Pricing"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          carouselMode="buttons"
          plans={[
            {
              id: "starter",              badge: "Starter Plan",              badgeIcon: Sparkles,
              price: "$29/mo",              subtitle: "Perfect for small teams getting started",              buttons: [
                { text: "Get Started", href: "#contact" },
                { text: "Learn More", href: "https://example.com/docs" }
              ],
              features: [
                "Up to 5 team members",                "5GB storage",                "Basic analytics",                "Email support",                "Monthly reports"
              ]
            },
            {
              id: "professional",              badge: "Professional",              badgeIcon: Sparkles,
              price: "$79/mo",              subtitle: "Best for growing teams and businesses",              buttons: [
                { text: "Get Started", href: "#contact" },
                { text: "Chat to Sales", href: "https://example.com/sales" }
              ],
              features: [
                "Up to 50 team members",                "100GB storage",                "Advanced analytics",                "Priority support",                "Custom integrations",                "API access"
              ]
            },
            {
              id: "enterprise",              badge: "Enterprise",              badgeIcon: Crown,
              price: "Custom",              subtitle: "For large organizations with complex needs",              buttons: [
                { text: "Contact Sales", href: "#contact" },
                { text: "Schedule Demo", href: "https://example.com/demo" }
              ],
              features: [
                "Unlimited team members",                "Unlimited storage",                "Real-time analytics",                "Dedicated support",                "Custom development",                "SLA guarantee",                "On-premise option"
              ]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Loved by Teams"
          description="See what our customers have to say about transforming their business"
          tag="Social Proof"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              title: "Increased productivity by 40%",              quote: "SaaS Pro has completely transformed how our team works. The automation features alone saved us 20 hours per week. Highly recommended!",              name: "Sarah Johnson",              role: "CEO",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Sarah Johnson"
            },
            {
              id: "2",              title: "Best investment we've made",              quote: "The ROI was immediate. Within the first month, we recovered our annual subscription cost through improved efficiency. Outstanding value.",              name: "Michael Chen",              role: "Operations Manager",              imageSrc: "https://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              title: "Finally, a platform that scales",              quote: "We grew from 10 to 200 employees and SaaS Pro scaled seamlessly with us. No migration headaches, just continuous growth support.",              name: "Emily Rodriguez",              role: "Founder",              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: "Emily Rodriguez"
            },
            {
              id: "4",              title: "Customer support is unmatched",              quote: "The team went above and beyond to help us integrate with our legacy systems. Exceptional service and genuine commitment to our success.",              name: "David Kim",              role: "CTO",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",              imageAlt: "David Kim"
            },
            {
              id: "5",              title: "Security and compliance made easy",              quote: "We needed GDPR and HIPAA compliance. SaaS Pro handled everything. Peace of mind knowing our data is completely secure.",              name: "Lisa Anderson",              role: "Compliance Officer",              imageSrc: "https://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",              imageAlt: "Lisa Anderson"
            },
            {
              id: "6",              title: "Simple pricing, no surprises",              quote: "What sold us was the transparent pricing. No hidden fees, no surprises. Just honest, fair pricing that scales with your usage.",              name: "James Wilson",              role: "Finance Manager",              imageSrc: "https://img.b2bpic.net/free-photo/happy-young-professional-posing-office_1262-21170.jpg",              imageAlt: "James Wilson"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardFourteen
          title="Trusted by leading companies worldwide. Our platform powers innovation across industries."
          tag="Impact"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",              value: "10,000+",              description: "Active teams using SaaS Pro to streamline their operations daily"
            },
            {
              id: "2",              value: "99.99%",              description: "Uptime guarantee ensures your business never stops running"
            },
            {
              id: "3",              value: "$500M+",              description: "In annual value created for our customers through efficiency gains"
            },
            {
              id: "4",              value: "150+",              description: "Countries where SaaS Pro is trusted by businesses of all sizes"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitMedia
          title="Frequently Asked Questions"
          description="Find answers to common questions about our platform, pricing, and support"
          tag="Help"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          mediaPosition="left"
          imageSrc="https://img.b2bpic.net/free-vector/web-contact-form-template_23-2147608998.jpg"
          imageAlt="Support and help resources"
          faqs={[
            {
              id: "1",              title: "Is there a free trial available?",              content: "Yes! We offer a 14-day free trial of our Professional plan with no credit card required. You get full access to all features to see if SaaS Pro is right for your team."
            },
            {
              id: "2",              title: "How long does implementation take?",              content: "Most teams are up and running within 24 hours. Our onboarding team guides you through the setup process, and we provide comprehensive documentation and video tutorials for quick adoption."
            },
            {
              id: "3",              title: "Can I export my data?",              content: "Absolutely. You have full ownership of your data. We provide one-click exports in CSV, JSON, and Excel formats. You can also access your data through our REST API at any time."
            },
            {
              id: "4",              title: "What happens if I cancel my subscription?",              content: "Your data remains yours. You can export everything before canceling, or we can keep it on file for 90 days in case you change your mind. No penalties or long-term commitments."
            },
            {
              id: "5",              title: "Do you offer API access?",              content: "Yes. Our API is available on Professional and Enterprise plans. Full documentation and SDK support for popular languages are included. Developers love our clean, RESTful API design."
            },
            {
              id: "6",              title: "What security certifications do you have?",              content: "We maintain SOC 2 Type II, ISO 27001, and GDPR compliance certifications. We also support HIPAA for healthcare organizations. Regular third-party audits ensure the highest security standards."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Ready to get started?"
          description="Join thousands of teams who are already transforming their workflow with SaaS Pro. Get a personalized demo or start your free trial today."
          useInvertedBackground="noInvert"
          mediaPosition="right"
          imageSrc="https://img.b2bpic.net/free-vector/web-contact-form-template_23-2147608998.jpg"
          imageAlt="Contact our team"
          buttonText="Send Message"
          inputs={[
            {
              name: "fullName",              type: "text",              placeholder: "Your Full Name",              required: true
            },
            {
              name: "email",              type: "email",              placeholder: "your@email.com",              required: true
            },
            {
              name: "company",              type: "text",              placeholder: "Company Name",              required: false
            },
            {
              name: "phone",              type: "tel",              placeholder: "(555) 123-4567",              required: false
            }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your needs and how we can help...",            rows: 5,
            required: true
          }}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="SaaS Pro"
          leftLink={{
            text: "Privacy Policy",            href: "https://example.com/privacy"
          }}
          rightLink={{
            text: "Terms of Service",            href: "https://example.com/terms"
          }}
        />
      </div>
    </ThemeProvider>
  );
}