"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import MetricCardThree from "@/components/sections/metrics/MetricCardThree";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal";
import { Cog, TrendingUp, Clock, Users, Award } from "lucide-react";

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

  const footerColumns = [
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/about" },
        { label: "Services", href: "/services" },
        { label: "Products", href: "/products" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      title: "Resources",
      items: [
        { label: "Technical Specs", href: "#" },
        { label: "Case Studies", href: "#" },
        { label: "Industry News", href: "#" },
        { label: "Support", href: "#" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Compliance", href: "#" },
        { label: "Careers", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="mediumSizeLargeTitles"
      background="fluid"
      cardStyle="gradient-radial"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Thermion"
          navItems={navItems}
          button={{ text: "Get Quote", href: "/contact" }}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Product Solutions"
          description="Industrial-grade thermal spray equipment and coating materials engineered for precision, reliability, and superior performance."
          tag="Featured"
          tagIcon={Cog}
          tagAnimation="slide-up"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",
              name: "ARC-3000 Spray System",
              price: "Contact for pricing",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/industrial-thermal-spray-equipment-in-a--1772479505804-301dce49.png?_wi=1",
              imageAlt: "ARC-3000 thermal spray system",
            },
            {
              id: "2",
              name: "Precision Coating Materials",
              price: "Contact for pricing",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/industrial-thermal-spray-equipment-in-a--1772479505804-301dce49.png?_wi=2",
              imageAlt: "Premium coating material selection",
            },
            {
              id: "3",
              name: "Technical Support Package",
              price: "Contact for pricing",
              imageSrc:
                "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AP1XdPm7J17R50P9CrKAiQvAjO/industrial-thermal-spray-equipment-in-a--1772479505804-301dce49.png?_wi=3",
              imageAlt: "Expert technical support services",
            },
          ]}
        />
      </div>

      <div id="product-metrics" data-section="product-metrics">
        <MetricCardThree
          title="Product Performance"
          description="Our products deliver measurable performance improvements across all industrial applications. Engineered for excellence and built to last."
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          metrics={[
            { id: "1", icon: TrendingUp, title: "Performance Boost", value: "300%+" },
            { id: "2", icon: Clock, title: "Downtime Reduction", value: "45%" },
            { id: "3", icon: Users, title: "Global Clients", value: "500+" },
            { id: "4", icon: Award, title: "Years Experience", value: "25+" },
          ]}
        />
      </div>

      <div id="product-cta" data-section="product-cta">
        <ContactText
          text="Interested in learning more about our products? Our sales team can provide detailed specifications, pricing, and customization options tailored to your specific requirements."
          animationType="entrance-slide"
          background={{ variant: "fluid" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Request Product Information", href: "/contact" },
            { text: "View Services", href: "/services" },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2025 Thermion Inc. All rights reserved. Advanced Thermal Arc Spray Solutions."
        />
      </div>
    </ThemeProvider>
  );
}