"use client"

import { ThemeProvider } from '@/providers/themeProvider/ThemeProvider'
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'
import HeroBillboard from '@/components/sections/hero/HeroBillboard'
import SplitAbout from '@/components/sections/about/SplitAbout'
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne'
import MetricCardOne from '@/components/sections/metrics/MetricCardOne'
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix'
import ContactCenter from '@/components/sections/contact/ContactCenter'
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard'
import { Building, Users, Clock, Shield, Code, Zap } from 'lucide-react'

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="medium"
      sizing="mediumLarge"
      background="circleGradient"
      cardStyle="elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          navItems={[
            { name: "Services", id: "services" },
            { name: "About", id: "about" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="NestJS Enterprise"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Official NestJS Enterprise Support"
          description="Our experts become your development partner to eliminate project risk, tackling the most ambitious projects right by your side."
          tag="Official Support"
          tagIcon={Shield}
          buttons={[
            { text: "Get in Touch", href: "contact" },
            { text: "Read More", href: "about" }
          ]}
          imageSrc="https://enterprise.nestjs.com/logo-small-gradient.76616405.svg"
          imageAlt="NestJS Logo"
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Accelerate Your Development"
          description="We work alongside you to meet your deadlines while avoiding costly tech debt. Challenging issue? We've got you covered. Our goal is to help you get to market faster."
          tag="Partnership"
          tagIcon={Users}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          bulletPoints={[
            {
              title: "Technical Guidance",              description: "Providing architectural reviews and best practices",              icon: Code
            },
            {
              title: "Team Mentoring",              description: "Mentoring team members and knowledge transfer",              icon: Users
            },
            {
              title: "Security & Performance",              description: "Addressing security concerns and performance optimization",              icon: Shield
            }
          ]}
          imageSrc="https://enterprise.nestjs.com/conversation.2689303c.svg"
          imageAlt="Technical consultation"
          buttons={[
            { text: "Contact Us", href: "contact" }
          ]}
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardOne
          features={[
            {
              title: "Development Support",              description: "Achieve your goals faster with Nest experts on your team tackling challenging issues right by your side.",              imageSrc: "https://enterprise.nestjs.com/startup.b4dbf43d.svg",              imageAlt: "Development support"
            },
            {
              title: "Technical Guidance",              description: "Enable your team to get the most out of the technology. Ensure your solutions are secure and reliable.",              imageSrc: "https://enterprise.nestjs.com/big-data.88454030.svg",              imageAlt: "Technical guidance"
            },
            {
              title: "Migration Assistance",              description: "We provide comprehensive migration assistance, ensuring you are using the latest and greatest.",              imageSrc: "https://enterprise.nestjs.com/puzzle.a43aa4b7.svg",              imageAlt: "Migration assistance"
            },
            {
              title: "Code Reviews",              description: "Frequent code reviews can eliminate potentially hazardous bugs and issues at an early stage while enforcing best practices.",              imageSrc: "https://enterprise.nestjs.com/protect.5939735a.svg",              imageAlt: "Code reviews"
            }
          ]}
          title="Enterprise Services"
          description="How can we help you be successful? Nest Enterprise Consulting includes a broad range of services to empower your team."
          tag="Services"
          tagIcon={Building}
          textboxLayout="default"
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardOne
          metrics={[
            {
              id: "1",              value: "500+",              title: "Enterprises",              description: "Large ecosystem of enterprises using Nest",              icon: Building
            },
            {
              id: "2",              value: "10M+",              title: "Downloads",              description: "Monthly downloads on npm",              icon: Zap
            }
          ]}
          title="Trusted by Industry Leaders"
          description="Nest is proudly powering a large ecosystem of enterprises and products out there."
          tag="Impact"
          tagIcon={Users}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          testimonials={[
            {
              id: "1",              name: "Sanofi",              handle: "@sanofi",              testimonial: "NestJS helped us build scalable enterprise applications with confidence and reliability."
            },
            {
              id: "2", 
              name: "Adidas",              handle: "@adidas",              testimonial: "The framework's architecture and enterprise support made our development process much more efficient."
            },
            {
              id: "3",              name: "Mercedes-Benz",              handle: "@mercedes",              testimonial: "Outstanding support and guidance from the NestJS core team throughout our project."
            },
            {
              id: "4",              name: "GitLab",              handle: "@gitlab",              testimonial: "The enterprise consulting services helped us scale our Node.js applications effectively."
            },
            {
              id: "5",              name: "Red Hat",              handle: "@redhat",              testimonial: "Professional support and best practices guidance made all the difference in our implementation."
            },
            {
              id: "6",              name: "BMW",              handle: "@bmw",              testimonial: "NestJS enterprise support provided the expertise we needed for our mission-critical applications."
            },
            {
              id: "7",              name: "IBM",              handle: "@ibm",              testimonial: "The technical guidance and code reviews helped us maintain high code quality standards."
            },
            {
              id: "8",              name: "JetBrains",              handle: "@jetbrains",              testimonial: "Excellent collaboration and support from the NestJS team on our enterprise project."
            }
          ]}
          title="Who is using Nest?"
          description="Nest is proudly powering a large ecosystem of enterprises and products out there."
          tag="Testimonials"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Get Started"
          title="Explore enterprise services today"
          description="Let's achieve your most ambitious goals - together. Subscribe to stay up to date with the latest Nest updates, features, and videos!"
          useInvertedBackground="invertDefault"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="Subscribe to stay up to date with the latest Nest updates, features, and videos!"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="NestJS"
          columns={[
            {
              title: "Services",              items: [
                { label: "Development", href: "services" },
                { label: "Technical Guidance", href: "services" },
                { label: "Migration", href: "services" },
                { label: "Code Reviews", href: "services" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "about" },
                { label: "Consulting", href: "https://trilon.io" },
                { label: "Newsletter", href: "contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Documentation", href: "https://docs.nestjs.com" },
                { label: "Courses", href: "https://courses.nestjs.com" },
                { label: "Blog", href: "https://blog.nestjs.com" }
              ]
            }
          ]}
          copyrightText="© 2017-2026 Kamil Mysliwiec"
        />
      </div>
    </ThemeProvider>
  )
}