import React from "react";
import Pagination from "@/components/common/Pagination";
import { services } from "@/data/services";
import { products } from "@/data/services";
import Link from "next/link";
import Image from "next/image";
import AnimatedText from "@/components/common/AnimatedText";
export default function Products() {
  return (
    <section className="service-section fix section-padding">
      <div className="container">
        <div className="section-title text-center">
          <h6 className="wow fadeInUp">
            <i className="fa-regular fa-arrow-left-long"></i>Products
            <i className="fa-regular fa-arrow-right-long"></i>
          </h6>
          <h2 className="splt-txt wow">
            <AnimatedText text="Our Products" /> <br />
            {/* <AnimatedText text="You Want Here" /> */}
          </h2>
        </div>
        <div className="row">
          {products.map((product) => (
            <div
              key={product.id}
              className="col-xl-4 col-lg-6 col-md-6 wow fadeInUp"
              data-wow-delay={product.delay}
            >
              <div className="service-box-items items-bg">
                <div className="service-thumb">
                  <Image
                    src={product.image}
                    width={346}
                    height={236}
                    alt="img"
                  />
                  <div className="icon">
                    <Image
                      src={product.icon}
                      width={32}
                      height={32}
                      alt="img"
                    />
                  </div>
                </div>
                <div className="service-content">
                  <h2 className="number">{product.number}</h2>
                  <h3>
                    <Link href={`/service-details/${product.id}`}>
                      {product.title}
                    </Link>
                  </h3>
                  <p>{product.description}</p>
                  <Link
                    href={`/service-details/${product.id}`}
                    className="link-btn"
                  >
                    Explore More <i className="fa-solid fa-arrow-right" />
                  </Link>
                </div>
              </div>
            </div>
          ))}
        </div>
        <div
          className="page-nav-wrap pt-5 text-center wow fadeInUp"
          data-wow-delay=".3s"
        >
          <ul>
            <Pagination />
          </ul>
        </div>
      </div>
    </section>
  );
}
