"use client";

import ReactLenis from "lenis/react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroSplitDoubleCarousel from "@/components/sections/hero/HeroSplitDoubleCarousel";
import AboutMetric from "@/components/sections/about/AboutMetric";
import TeamCardFive from "@/components/sections/team/TeamCardFive";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterBase from "@/components/sections/footer/FooterBase";
import { Sparkles, Award, Users, TrendingUp } from "lucide-react";

export default function NosotrosPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="glass-elevated"
      primaryButtonStyle="metallic"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <ReactLenis root>
        <NavbarLayoutFloatingOverlay
          brandName="Webild"
          navItems={[
            { name: "Trabajo", id: "work" },
            { name: "Servicios", href: "/servicios" },
            { name: "Nosotros", href: "/nosotros" },
            { name: "Contacto", id: "contact" },
          ]}
          button={{ text: "Empezar", href: "#contact" }}
        />

        <HeroSplitDoubleCarousel
          title="Sobre MGL: Su Socio Estratégico Digital"
          description="En MGL, somos más que una agencia digital; somos su socio en la construcción de una presencia en línea impactante y el motor para conseguir más clientes. Transformamos visiones en éxitos digitales."
          tag="Construyendo Éxitos Digitales"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          background={{ variant: "canvas-reveal" }}
          buttons={[
            { text: "Nuestros Servicios", href: "/servicios" },
            { text: "Contáctenos", href: "#contact" },
          ]}
          buttonAnimation="slide-up"
          carouselPosition="right"
          leftCarouselItems={[
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-1.webp", imageAlt: "UI UX Design - Daily Life app" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-4.webp", imageAlt: "UI UX Design - SaaS platform" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-6.webp", imageAlt: "UI UX Design - Luminé skincare" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-7.webp", imageAlt: "UI UX Design - Online courses" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-9.webp", imageAlt: "UI UX Design - Business coach" },
          ]}
          rightCarouselItems={[
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-2.webp", imageAlt: "UI UX Design - Luxuria travel" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-5.webp", imageAlt: "UI UX Design - Dental practice" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-3.webp", imageAlt: "UI UX Design - AI product builder" },
            { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/shot-8.webp", imageAlt: "UI UX Design - AI automation" },
          ]}
          carouselItemClassName="!aspect-[4/5]"
        />

        <AboutMetric
          title="Nuestra Misión y Experiencia"
          metricsAnimation="slide-up"
          useInvertedBackground={false}
          metrics={[
            {
              icon: Award,
              label: "Misión",              value: "Transformar su visión en una realidad digital que genera resultados tangibles y crecimiento sostenido."},
            {
              icon: TrendingUp,
              label: "Experiencia",              value: "Más de 8 años creando experiencias web excepcionales y estrategias digitales de alto impacto."},
            {
              icon: Users,
              label: "Impacto",              value: "Ayudando a negocios de todos los tamaños a conectar con su audiencia y conseguir más clientes."},
          ]}
        />

        <TeamCardFive
          title="Conozca a Nuestro Equipo"
          description="Las mentes creativas y estratégicas detrás de su próximo gran proyecto."
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          mediaClassName="object-[65%_center]"
          team={[
            { id: "1", name: "Sarah Miller", role: "Lead Developer", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/team-1.webp", imageAlt: "Sarah Miller" },
            { id: "2", name: "Valentina Reyes", role: "Creative Director", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/team-2.webp", imageAlt: "Valentina Reyes" },
            { id: "3", name: "Carlos Mendoza", role: "UX Designer", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/templates/web-agency-2/team-3.webp", imageAlt: "Carlos Mendoza" },
          ]}
        />

        <ContactCTA
          tag="Contáctenos"
          title="¿Listo para Transformar su Presencia Digital?"
          description="Construyamos algo extraordinario juntos. Póngase en contacto y hablemos de su próximo proyecto."
          background={{ variant: "rotated-rays-animated" }}
          buttons={[
            { text: "Iniciar Proyecto", href: "#contact" },
            { text: "Ver Nuestro Trabajo", href: "#work" },
          ]}
          buttonAnimation="slide-up"
          useInvertedBackground={false}
        />

        <FooterBase
          logoText="Webild"
          copyrightText="© 2026 | Webild"
          columns={[
            {
              title: "Empresa",              items: [
                { label: "Nosotros", href: "/nosotros" },
                { label: "Servicios", href: "/servicios" },
                { label: "Trabajo", id: "work" },
                { label: "Contacto", id: "contact" },
              ],
            },
            {
              title: "Servicios",              items: [
                { label: "Desarrollo Web", href: "/servicios" },
                { label: "SEO", href: "/servicios" },
                { label: "Branding", href: "/servicios" },
                { label: "Diseño UI/UX", href: "/servicios" },
              ],
            },
            {
              title: "Conectar",              items: [
                { label: "Twitter", href: "#" },
                { label: "LinkedIn", href: "#" },
                { label: "Instagram", href: "#" },
                { label: "Dribbble", href: "#" },
              ],
            },
          ]}
        />
      </ReactLenis>
    </ThemeProvider>
  );
}
