"use client";
import { useTranslator } from "@/contexts/TranslatorContext";
import PartnersSection from "@/components/Home/PartnersSection";
import CustomerOpinions from "@/components/Home/CustomerOpinions";
import HeroSection2 from "@/components/HeroSection/HeroSection2";
const PartnersPage = () => {
  const { translations } = useTranslator();
  return (
    <>
      <HeroSection2
        title={
          translations?.["navigation.company.items.partners.title"] ||
          translations?.partners_title ||
          "Our Partners"
        }
        description={
          translations?.["navigation.company.items.partners.description"] ||
          translations?.partners_subdescription ||
          "Explore our network of trusted partners."
        }
        secondaryButtonText={
          translations?.["navigation.company.items.payment_methods.title"] ||
          "Payment Methods"
        }
        imageLeft="/images/Hero/partners/left-shap.svg"
        imageLeftClass="translate-y-[-135.9px] translate-x-[-24px] z-[999]"
        imageCenter="/images/Hero/partners/center-shap.svg"
        imageCenterClass="translate-y-[-80px] translate-x-[-70px] z-[999]"
        imageCenterStyle={{ height: "540px", width: "260px" }}
        hideCenterImageOnMobile
        imageRight="/images/Hero/partners/right-shap.svg"
        imageRightClass="translate-y-[60px] translate-x-[-40px] z-[999]"
        centerIconSrc="/images/Hero/partners/center-icon.svg"
        centerIconX={660}
        centerIconY={560}
        centerIconWidth={120}
        centerIconHeight={120}
        centerIconMobileWidth={70}
        centerIconMobileHeight={70}
        centerIconSrcClass="z-[1000] animate-float"
        leftIconSrc="/images/Hero/partners/left-icon.svg"
        leftIconX={270}
        leftIconY={350}
        leftIconWidth={60}
        leftIconHeight={60}
        leftIconSrcClass="z-[1000] animate-float animate-float-delay-2"
        rightIconSrc="/images/Hero/partners/right-icon.svg"
        rightIconX={1120}
        rightIconY={330}
        rightIconWidth={60}
        rightIconHeight={60}
        rightIconSrcClass="z-[1000] animate-float animate-float-delay-1"
        mobileImage1Style={{ width: "40%" }}
      />
      <div className="container mx-auto px-4 sm:px-6 lg:px-10 py-6 sm:py-8 lg:py-10 lg:-mt-16">
        {/* Success Partners Section */}
        <div className="text-center mb-12">
          <h2 className="text-3xl font-bold text-gray-800 mb-8">
            {translations?.partners_title || "Success Partners"}
          </h2>

          {/* Partners Cards */}
          <div className="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto">
            {/* Sucuri Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/SuCURI.svg"
                    alt="Sucuri Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Softaculous Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/CenterCardText.svg"
                    alt="Softaculous Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Linux Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/Linux.png"
                    alt="Linux Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Duplicate Cards - Second Row */}
            {/* Sucuri Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/SuCURI.svg"
                    alt="Sucuri Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Softaculous Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/CenterCardText.svg"
                    alt="Softaculous Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Linux Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/Linux.png"
                    alt="Linux Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Duplicate Cards - Third Row */}
            {/* Sucuri Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/SuCURI.svg"
                    alt="Sucuri Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Softaculous Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/CenterCardText.svg"
                    alt="Softaculous Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>

            {/* Linux Card */}
            <div className="bg-white rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
              <div className="flex justify-start mb-4">
                <div className="w-32 h-20 flex items-center justify-start">
                  <img
                    src="/images/pages/Linux.png"
                    alt="Linux Logo"
                    className="max-w-full max-h-full object-contain"
                  />
                </div>
              </div>
              <h3 className="text-xl font-bold text-black uppercase mb-4 text-right">
                SUCURI
              </h3>
              <p className="text-gray-600 text-sm leading-relaxed text-right">
                {translations?.partners_subdescription ||
                  "We rely on official partnerships with global technology and infrastructure providers in our services, ensuring the highest standards of quality, security, and stability in hosting and domain services."}
              </p>
            </div>
          </div>
        </div>
      </div>
      <PartnersSection />
      <CustomerOpinions />
    </>
  );
};

export default PartnersPage;
