"use client"

import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { TrendingUp, Users, Globe, Shield, Code, Zap, MessageSquare, Lock } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="circleGradient"
      cardStyle="elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          navItems={[
            { name: 'Services', id: 'services' },
            { name: 'About', id: 'about' },
            { name: 'Features', id: 'features' },
            { name: 'Pricing', id: 'pricing' },
            { name: 'Contact', id: 'contact' }
          ]}
          brandName="NestJS Enterprise"
          button={{
            text: 'Get Started',
            href: 'contact'
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Enterprise-Grade NestJS Solutions"
          description="Build scalable, maintainable Node.js applications with our professional NestJS development services. Trusted by leading companies worldwide."
          tag="Professional Services"
          tagIcon={Shield}
          imagePosition="right"
          imageSrc="/images/header-2.50296714-1768998558849.jpg"
          imageAlt="NestJS Enterprise Development"
          buttons={[
            { text: 'Start Your Project', href: 'contact' },
            { text: 'View Services', href: 'services' }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="Trusted by industry leaders worldwide, we deliver enterprise-grade NestJS solutions that scale with your business needs"
          useInvertedBackground="invertDefault"
          metrics={[
            { icon: TrendingUp, label: 'Projects Delivered', value: '500+' },
            { icon: Users, label: 'Enterprise Clients', value: '150+' },
            { icon: Globe, label: 'Countries Served', value: '25+' },
            { icon: Shield, label: 'Years of Experience', value: '8+' }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardOne
          title="Why Choose Our NestJS Services"
          description="Comprehensive enterprise solutions built with industry best practices"
          tag="Key Features"
          tagIcon={Code}
          textboxLayout="default"
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          features={[
            {
              title: 'Scalable Architecture",              description: 'Enterprise-ready applications designed to handle millions of requests with optimal performance and reliability.',
              imageSrc: '/images/big-data.88454030-1768998558656.svg',
              imageAlt: 'Scalable Architecture'
            },
            {
              title: 'Security First",              description: 'Implementation of industry-standard security practices including authentication, authorization, and data protection.',
              imageSrc: '/images/protect.5939735a-1768998558659.svg',
              imageAlt: 'Security Implementation'
            },
            {
              title: 'Rapid Development",              description: 'Accelerate your time-to-market with our proven development methodologies and reusable components.',
              imageSrc: '/images/puzzle.a43aa4b7-1768998558663.svg',
              imageAlt: 'Rapid Development'
            },
            {
              title: 'Expert Consultation",              description: 'Get guidance from NestJS experts with deep knowledge of enterprise patterns and best practices.',
              imageSrc: '/images/conversation.2689303c-1768998558664.svg',
              imageAlt: 'Expert Consultation'
            }
          ]
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="Trusted by 150+ enterprise clients worldwide who rely on our NestJS expertise for mission-critical applications"
          cardTag="Client Success"
          useInvertedBackground="invertDefault"
          testimonials={[
            { id: '1', name: 'GitLab', imageSrc: '/images/gitlab.4f9d2995-1768998558580.png', imageAlt: 'GitLab' },
            { id: '2', name: 'Adidas', imageSrc: '/images/adidas.718f26f2-1768998558589.svg', imageAlt: 'Adidas' },
            { id: '3', name: 'BMW', imageSrc: '/images/bmw.0ce4c05c-1768998558637.svg', imageAlt: 'BMW' },
            { id: '4', name: 'TotalEnergies', imageSrc: '/images/totalenergies.5a993082-1768998558602.svg', imageAlt: 'TotalEnergies' },
            { id: '5', name: 'Roche', imageSrc: '/images/roche-logo.979d9061-1768998558649.png', imageAlt: 'Roche' },
            { id: '6', name: 'IBM', imageSrc: '/images/ibm.b8c76e06-1768998558659.svg', imageAlt: 'IBM' }
          ]
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Enterprise NestJS Packages"
          description="Choose the right solution for your business needs"
          tag="Pricing"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          plans={[
            {
              id: 'consulting',
              badge: 'Most Popular',
              badgeIcon: TrendingUp,
              price: '$5,000/mo',
              subtitle: 'Perfect for growing companies',
              buttons: [
                { text: 'Get Started', href: 'contact' },
                { text: 'Schedule Call', href: 'contact' }
              ],
              features: [
                'Expert NestJS consultation',
                'Architecture review & optimization',
                'Code quality assessment',
                'Performance optimization',
                'Security audit & recommendations',
                '24/7 priority support'
              ]
            },
            {
              id: 'development',
              badge: 'Enterprise',
              badgeIcon: Shield,
              price: '$15,000/mo',
              subtitle: 'For large-scale enterprise projects',
              buttons: [
                { text: 'Contact Sales', href: 'contact' },
                { text: 'View Details', href: 'services' }
              ],
              features: [
                'Full-stack development team',
                'Custom enterprise solutions',
                'Microservices architecture',
                'Cloud deployment & DevOps',
                'Quality assurance & testing',
                'Dedicated project manager',
                'SLA guarantee'
              ]
            }
          ]
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          tagIcon={MessageSquare}
          title="Ready to Transform Your Backend?"
          description="Join 150+ enterprise clients who trust us with their NestJS development. Let's discuss your project requirements and build something amazing together."
          useInvertedBackground="invertDefault"
          buttonText="Start Your Project"
          inputPlaceholder="Enter your business email"
          termsText="By signing up, you agree to receive updates about our NestJS enterprise services."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="NestJS Enterprise"
          columns={[
            {
              title: 'Services',
              items: [
                { label: 'Consultation', href: 'services' },
                { label: 'Development', href: 'services' },
                { label: 'Architecture Review', href: 'services' },
                { label: 'Security Audit', href: 'services' }
              ]
            },
            {
              title: 'Company',
              items: [
                { label: 'About Us', href: 'about' },
                { label: 'Case Studies', href: 'about' },
                { label: 'Careers', href: 'about' }
              ]
            },
            {
              title: 'Resources',
              items: [
                { label: 'Documentation', href: 'https://nestjs.com' },
                { label: 'Best Practices', href: 'https://nestjs.com' },
                { label: 'Support', href: 'contact' }
              ]
            }
          ]}
          copyrightText="© 2025 NestJS Enterprise. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
