"use client";

import React from "react";
import Image from "next/image";
import Link from "next/link";
import { FaDownload, FaEnvelope, FaChevronRight, FaArrowRight } from "react-icons/fa6";
import {
  LuShieldCheck,
  LuCpu,
  LuThermometerSun,
  LuDroplets,
  LuActivity,
  LuHourglass
} from "react-icons/lu";
import Breadcrumb from "@/components/Common/Breadcrumb";

interface TechAdvantage {
  icon: React.ReactNode;
  title: string;
  detail: string;
}

export default function PolycabControlCablesDetail() {

  const specifications = [
    { label: "Standard Compliance", val: "IS 7098-P1 Certified" },
    { label: "Voltage Grade", val: "Up to & Including 1100V AC" },
    { label: "Configuration Type", val: "Armoured & Unarmoured" },
    { label: "Core Availability", val: "2, 3, 4, and Multicore" }
  ];

  const technicalAdvantages: TechAdvantage[] = [
    {
      icon: <LuThermometerSun className="w-5 h-5 text-cyan-600" />,
      title: "Thermosetting Insulation",
      detail: "Cross-linked polyethylene (XLPE) core preserves superior structural stability under continuous heat."
    },
    {
      icon: <LuActivity className="w-5 h-5 text-cyan-600" />,
      title: "1000x Insulation Resistance",
      detail: "Delivers an electrical insulation ceiling up to 1000 times greater than traditional standard PVC cables."
    },
    {
      icon: <LuDroplets className="w-5 h-5 text-cyan-600" />,
      title: "Moisture & Chemical Shield",
      detail: "Engineered with highly refined resistance compounds against water penetration and corrosive atmospheric elements."
    },
    {
      icon: <LuCpu className="w-5 h-5 text-cyan-600" />,
      title: "Low Dielectric Loss",
      detail: "Optimized current dynamics ensure clean signal transmissions across interconnected automated processes."
    },
    {
      icon: <LuShieldCheck className="w-5 h-5 text-cyan-600" />,
      title: "Thermal Tolerance Thresholds",
      detail: "Maintains standard structural cable operations at 90°C and transient short-circuit safety margins up to 250°C."
    },
    {
      icon: <LuHourglass className="w-5 h-5 text-cyan-600" />,
      title: "Extended Service Lifecycle",
      detail: "Heavy-duty architecture built to withstand mechanical wear and minimize degradation over decades."
    }
  ];

  return (
    <>
      <Breadcrumb pageName="Polycab LT Control Cables" />
      <div className="min-h-screen bg-slate-50 text-slate-800 py-12 md:py-16 lg:py-24 xl:py-32 selection:bg-cyan-100 selection:text-cyan-950">
        <div className="container mx-auto px-4 sm:px-6 lg:px-8 xl:px-16 max-w-[1800px]">

          {/* ─── HERO & OVERVIEW CONTENT GRID ────────────────────── */}
          <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 xl:gap-16 items-center mb-16 lg:mb-24 xl:mb-32">

            {/* Left Column: Product Imagery */}
            <div className="lg:col-span-5 flex justify-center order-2 lg:order-1">
              <div className="relative w-full max-w-[420px] lg:max-w-full aspect-square rounded-3xl overflow-hidden bg-white border border-slate-200 p-6 sm:p-8 xl:p-12 shadow-xs group hover:border-cyan-500 transition-colors duration-300">
                <div className="relative w-full h-full">
                  <Image
                    src="/images/polycab/LV-Control-Cable-IS.png"
                    alt="Polycab Low Tension XLPE Insulated Control Cable Cross-Section"
                    fill
                    priority
                    className="object-contain group-hover:scale-103 transition-transform duration-500"
                    sizes="(max-width: 640px) 100vw, (max-width: 1024px) 420px, 600px"
                  />
                </div>
              </div>
            </div>

            {/* Right Column: Text Information & Specifications */}
            <div className="lg:col-span-7 space-y-6 xl:space-y-8 order-1 lg:order-2">
              <span className="inline-flex items-center gap-1.5 rounded-full bg-cyan-50 px-4 py-1.5 text-xs font-bold tracking-wider text-cyan-700 uppercase border border-cyan-200">
                Low Tension Systems
              </span>

              <h1 className="text-2xl sm:text-3xl md:text-4xl xl:text-5xl font-black tracking-tight text-slate-900 leading-tight uppercase">
                Polycab Low Tension Control Cables <br />
                <span className="text-cyan-500 font-extrabold text-lg sm:text-xl md:text-2xl xl:text-3xl block mt-2 normal-case tracking-wide">
                  Conforming to IS 7098-P1 Standards
                </span>
              </h1>

              <div className="space-y-4 xl:space-y-6 text-slate-600 text-sm md:text-base xl:text-lg leading-relaxed font-medium">
                <p>
                  This Indian Standard baseline covers the performance specifications for both armored and unarmored two, three, four, and multi-core cross-linked polyethylene (XLPE) insulated and PVC sheathed cables designed specifically for automation and process control networks.
                </p>
                <p>
                  Engineered for voltage grades up to and including 1100V AC, these premium low-tension lines are widely deployed across high-precision industrial sectors to reliably measure and regulate transmissions of automated processes.
                </p>
              </div>

              {/* Quick Metrics Reference Array */}
              <div className="grid grid-cols-2 sm:grid-cols-4 gap-3 xl:gap-4 bg-white border border-slate-200 p-4 rounded-2xl shadow-xs">
                {specifications.map((spec, idx) => (
                  <div key={idx} className="bg-slate-50/60 border border-slate-100 p-3 xl:p-4 rounded-xl text-center flex flex-col justify-center group hover:border-cyan-500 transition-colors duration-300">
                    <span className="text-[10px] text-slate-400 group-hover:text-cyan-500 font-bold uppercase tracking-wider block mb-1 transition-colors duration-200">
                      {spec.label}
                    </span>
                    <span className="text-xs xl:text-sm font-black text-slate-900 leading-tight">
                      {spec.val}
                    </span>
                  </div>
                ))}
              </div>

              {/* Action Buttons */}
              <div className="flex flex-col sm:flex-row flex-wrap gap-4 pt-2">
                <Link
                  href="https://realswitchgears.com/assets/images/products/polycab-cable/lv-power-cable/pdf/LV-Power-Cable-IS-1.pdf"
                  target="_blank"
                  className="inline-flex items-center justify-center gap-2 bg-slate-900 hover:bg-slate-800 text-white text-xs xl:text-sm font-bold px-6 py-4 rounded-xl transition-all group w-full sm:w-auto uppercase tracking-wider shadow-sm"
                >
                  <FaDownload className="w-3.5 h-3.5 group-hover:translate-y-0.5 transition-transform" />
                  Download Catalogue
                </Link>
                <Link
                  href="/contact"
                  className="inline-flex items-center justify-center gap-2 bg-cyan-500 hover:bg-cyan-600 text-white text-xs xl:text-sm font-bold px-6 py-4 rounded-xl transition-all shadow-md shadow-cyan-500/10 w-full sm:w-auto uppercase tracking-wider"
                >
                  Send Enquiry <FaEnvelope className="w-3.5 h-3.5" />
                </Link>
              </div>
            </div>

          </div>

          {/* ─── TECHNICAL ADVANTAGES GRID ───────────────────────────── */}
          <div className="mb-16 lg:mb-24 xl:mb-32">
            <div className="flex items-center gap-3 mb-10 border-b border-slate-200/60 pb-4">
              <div className="p-2.5 bg-cyan-50 border border-cyan-100 text-cyan-600 rounded-xl shadow-xs">
                <LuCpu className="w-5 h-5 xl:w-6 xl:h-6" />
              </div>
              <div>
                <h2 className="text-base sm:text-lg xl:text-xl font-black text-slate-900 uppercase tracking-wide">Engineering &amp; Hardware Benefits</h2>
                <p className="text-xs xl:text-sm text-slate-500 font-medium">
                  Technical advantages of XLPE cross-linked structures compared to standard insulation materials.
                </p>
              </div>
            </div>

            <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 xl:gap-8">
              {technicalAdvantages.map((item, idx) => (
                <div
                  key={idx}
                  className="bg-white border border-slate-200 hover:border-cyan-500/40 rounded-2xl p-6 xl:p-8 shadow-xs flex flex-col justify-between transition-all group"
                >
                  <div className="space-y-4">
                    <div className="p-3 bg-cyan-50/60 border border-cyan-100/40 rounded-xl w-fit group-hover:bg-cyan-50 group-hover:scale-105 transition-all duration-300">
                      {item.icon}
                    </div>
                    <div className="space-y-1.5">
                      <h3 className="text-sm xl:text-base font-black text-slate-900 group-hover:text-cyan-600 transition-colors duration-200 uppercase tracking-wide">
                        {item.title}
                      </h3>
                      <p className="text-xs xl:text-sm text-slate-500 font-medium leading-relaxed">
                        {item.detail}
                      </p>
                    </div>
                  </div>
                  <div className="mt-6 pt-3 border-t border-slate-100 text-[10px] text-slate-400 font-bold uppercase tracking-wider group-hover:text-cyan-500/70 transition-colors">
                    IS 7098 Part-1 Compliant
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* ─── PROCUREMENT CALL TO ACTION ─────────────────────────── */}

          <div className="flex flex-col sm:flex-row justify-center items-center gap-4 w-full">
            <Link
              href="https://realswitchgears.com/assets/images/products/polycab-cable/lv-power-cable/pdf/LV-Power-Cable-IS-1.pdf"
              target="_blank"
              className="inline-flex items-center justify-center gap-2 bg-slate-100 hover:bg-slate-200 text-slate-900 text-xs font-bold px-8 py-4 rounded-full transition-all w-full sm:w-auto uppercase tracking-wider border border-slate-200 shadow-xs"
            >
              <FaDownload className="w-3.5 h-3.5" />
              View Technical PDF
            </Link>

            <Link
              href="/contact"
              className="inline-flex items-center justify-center gap-2 bg-cyan-500 hover:bg-cyan-600 text-white text-xs xl:text-sm font-bold px-8 sm:px-10 py-4 rounded-full transition-all duration-200 active:scale-95 shadow-md shadow-cyan-500/10 w-full sm:w-auto uppercase tracking-wider"
            >
              Send Enquiry
              <FaArrowRight className="w-3.5 h-3.5 transition-transform group-hover:translate-x-0.5" />
            </Link>
          </div>
        </div>
      </div>
    </>
  );
}