"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroSplit from "@/components/sections/hero/HeroSplit";
import FeatureCardSeven from "@/components/sections/feature/FeatureCardSeven";
import MetricCardSeven from "@/components/sections/metrics/MetricCardSeven";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { Layers, BarChart3 } from "lucide-react";

export default function ServicesPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Portfolio", id: "/portfolio" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" },
  ];

  const footerColumns = [
    {
      title: "Product",
      items: [
        { label: "Services", href: "/services" },
        { label: "Portfolio", href: "/portfolio" },
        { label: "Pricing", href: "#" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/about" },
        { label: "Contact", href: "/contact" },
        { label: "Blog", href: "#" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Cookie Policy", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="compact"
      sizing="mediumSizeLargeTitles"
      background="noise"
      cardStyle="gradient-bordered"
      primaryButtonStyle="flat"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={{
            text: "Book a Free Consultation",
            href: "/contact",
          }}
          brandName="Noventis"
        />
      </div>

      <div id="services-hero" data-section="services-hero">
        <HeroSplit
          title="Web Services Built for Your Success"
          description="From concept to launch, we deliver comprehensive web solutions that grow your business. Our strategic approach combines design excellence with technical expertise to create websites that convert."
          tag="Comprehensive Web Solutions"
          tagIcon={Layers}
          tagAnimation="slide-up"
          background={{ variant: "glowing-orb" }}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APnA5s66TMDvrFY10op8PHqLQP/a-web-designer-working-on-a-custom-websi-1772502994313-160c4f81.png"
          imageAlt="Our service delivery process"
          imagePosition="right"
          buttons={[
            { text: "Start Your Project", href: "/contact" },
            { text: "View Case Studies", href: "/portfolio" },
          ]}
          buttonAnimation="slide-up"
          mediaAnimation="blur-reveal"
        />
      </div>

      <div id="service-details" data-section="service-details">
        <FeatureCardSeven
          title="Our Service Process"
          description="A proven methodology that delivers exceptional results. Our step-by-step approach ensures your project is completed on time, within budget, and exceeds expectations."
          tag="Service Delivery"
          tagIcon={Layers}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              title: "Discovery & Strategy",
              description: "We begin by understanding your business goals, target audience, and competitive landscape. Our team conducts thorough research to craft a strategic foundation for your website.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APnA5s66TMDvrFY10op8PHqLQP/a-web-designer-working-on-a-custom-websi-1772502994313-160c4f81.png",
              imageAlt: "Discovery phase",
            },
            {
              id: 2,
              title: "Design & Prototyping",
              description: "Our designers create stunning, user-centric designs with interactive prototypes. We iterate based on your feedback to ensure the design perfectly captures your brand vision.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APnA5s66TMDvrFY10op8PHqLQP/a-web-designer-working-on-a-custom-websi-1772502994313-160c4f81.png",
              imageAlt: "Design phase",
            },
            {
              id: 3,
              title: "Development & Integration",
              description: "Our developers build fast, responsive, and secure websites using modern technologies. We integrate all necessary functionality and ensure seamless performance across devices.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3APnA5s66TMDvrFY10op8PHqLQP/a-technical-support-team-monitoring-and--1772502994329-39eab7ac.png",
              imageAlt: "Development phase",
            },
          ]}
        />
      </div>

      <div id="service-metrics" data-section="service-metrics">
        <MetricCardSeven
          title="Service Quality Metrics"
          description="We maintain industry-leading standards across all our services to ensure your success."
          tag="Quality Assurance"
          tagIcon={BarChart3}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground={true}
          metrics={[
            {
              id: "1",
              value: "98%",
              title: "Client Satisfaction",
              items: ["Long-term partnerships", "Repeat business", "Referral recommendations"],
            },
            {
              id: "2",
              value: "100%",
              title: "On-Time Delivery",
              items: ["Agile project management", "Regular communication", "Clear timelines"],
            },
            {
              id: "3",
              value: "24/7",
              title: "Post-Launch Support",
              items: ["Immediate bug fixes", "Performance monitoring", "Continuous optimization"],
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2025 Noventis. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}