"use client";

import Image from "next/image";
import Link from "next/link";
import { FaArrowRight } from "react-icons/fa6";
import {
  LuGauge,
  LuSlidersHorizontal,
  LuNetwork,      // Changed from LuCompass to explicitly represent multi-port networking
  LuCompass,      // Kept uniquely for 4-Quadrant vector graphing
  LuShuffle,
  LuRefreshCw,
  LuHardDrive,
  LuTriangleAlert // Resolved react-icons/lu modern export naming mismatch
} from "react-icons/lu";
import Breadcrumb from "@/components/Common/Breadcrumb";

export default function ThreePhaseHtctMultiPortMeterDetail() {
  const featureList = [
    {
      title: "Class 0.2s Ultra-Precision",
      desc: "Engineered to deliver high-tier Class 0.2s measurement accuracy, strictly adhering to relevant IS and IEC standards for high-tension utility nodes.",
      icon: <LuGauge className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    },
    {
      title: "CT-Operated Architecture",
      desc: "Optimized for complex high-tension consumers and feeders, supporting specialized 1A and 5A secondary current rating configurations.",
      icon: <LuSlidersHorizontal className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    },
    {
      title: "Multi-Port Communication Core",
      desc: "Equipped with simultaneous multiple communication channels including a local optical port, RS-232, RS-485, and native TCP/IP integration.",
      icon: <LuNetwork className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    },
    {
      title: "4-Quadrant Measurement",
      desc: "Advanced true 4-quadrant measurement capability, tracking active, reactive, and apparent energy streams across all load variants.",
      icon: <LuCompass className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    },
    {
      title: "Bidirectional Energy Flows",
      desc: "Features continuous bidirectional energy recording blocks, ideal for tracking bulk inter-utility power exchanges or co-generation links.",
      icon: <LuShuffle className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    },
    {
      title: "Time of Day (TOD) Tariff",
      desc: "Integrated multi-tariff tracking maps consumer consumption trends to customizable temporal billing slots during peak and off-peak hours.",
      icon: <LuRefreshCw className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    },
    {
      title: "Deep Load Survey Data",
      desc: "Houses robust non-volatile internal data registers that continuously capture interval information for load profiling and energy analysis.",
      icon: <LuHardDrive className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    },
    {
      title: "Tamper & Self Diagnostics",
      desc: "Outfitted with smart self-diagnostic validation loops and advanced hardware tamper recording to safeguard against fraudulent supply line interventions.",
      icon: <LuTriangleAlert className="w-5 h-5 text-cyan-500 group-hover:text-white transition-colors duration-300" />
    }
  ];

  return (
    <>
      <Breadcrumb
        pageName="Three Phase HTCT Multi-Port Meter"
        description="Three Phase HTCT Multi-Port Meter is a premium, current transformer-operated trivector instrument explicitly engineered for high-tension (HT) consumer distribution nodes and utility sub-station feeders."
      />

      <div className="min-h-screen bg-white text-slate-800 py-16 lg:py-24 xl:py-28 3xl:py-32 selection:bg-cyan-100 selection:text-cyan-900 w-full">
        {/* 👑 Grid Infrastructure Automation Substation Workspace Viewport Layer bounds up to 1560px */}
        <div className="container mx-auto px-4 max-w-7xl 2xl:max-w-[1440px] 3xl:max-w-[1560px]">

          {/* ─── HERO DESCRIPTION & ASSET SECTOR ────────────────────── */}
          <div className="grid grid-cols-1 lg:grid-cols-2 gap-12 xl:gap-16 items-center mb-24 3xl:mb-32">

            {/* Left Block: Core Technical Specifications */}
            <div className="space-y-6 order-2 lg:order-1">
              {/* <span className="inline-flex items-center gap-1.5 rounded-full bg-slate-50 px-4 py-1.5 text-xs font-bold tracking-wider text-slate-600 uppercase border border-slate-200/60">
                <span className="h-2 w-2 rounded-full bg-cyan-500 animate-pulse" />
                Inter-Utility &amp; Substation Grid Systems
              </span> */}

              <h1 className="text-3xl md:text-4xl xl:text-5xl 3xl:text-6xl font-black tracking-tight text-slate-900 leading-tight">
                Three Phase HTCT Multi-Port Meter <br />
                <span className="text-cyan-500 font-extrabold text-xl md:text-2xl xl:text-3xl 3xl:text-4xl block mt-2">
                  ER300P Bulk Inter-Utility Billing &amp; Energy Monitor
                </span>
              </h1>

              <div className="space-y-4 text-slate-600 text-sm md:text-base xl:text-lg leading-relaxed font-semibold">
                <p>
                  The <strong className="text-slate-900 font-bold">ER300P Multi-Port Meter</strong> is a highly customizable, current transformer-operated trivector instrument designed specifically for the advanced monitoring of HT consumers, distribution feeders, and bulk inter-utility power exchanges.
                </p>
                <p>
                  Configured with a versatile 3-Phase 4-Wire architecture, this model stands out with its array of concurrent physical communication links. Supported by specialized software for data collection, load survey analytics, and macro energy management applications, it serves as a flexible, drop-in solution for integration into digital sub-station control panels and SCADA environments.
                </p>
              </div>
            </div>

            {/* Right Block: Pure White High-Tension Instrument Asset Card */}
            <div className="order-1 lg:order-2 flex justify-center">
              <div className="relative w-full max-w-[440px] xl:max-w-[500px] 3xl:max-w-[540px] aspect-[4/3] rounded-3xl bg-white p-6 border border-slate-200/80 shadow-[0_8px_30px_rgba(0,0,0,0.015)] group hover:border-cyan-300 transition-all duration-300 flex items-center justify-center">
                <div className="relative w-full h-full min-h-[260px] xl:min-h-[300px]">
                  <Image
                    src="/images/Knudsen/img_7328.jpg"
                    alt="ER300P Three Phase HTCT Multi-Port Smart Metering System Interface"
                    fill
                    priority
                    className="object-contain filter drop-shadow-[0_6px_16px_rgba(0,0,0,0.02)] group-hover:scale-102 transition-transform duration-500"
                    sizes="(max-width: 768px) 100vw, (max-width: 1440px) 500px, 540px"
                  />
                </div>
              </div>
            </div>
          </div>

          {/* ─── GRID BLOCK: COMPREHENSIVE ENGINE FEATURES (Clean White Layout Matrix) ─── */}
          <div className="mb-24 xl:mb-32">
            <h2 className="text-xl xl:text-2xl font-bold text-slate-900 mb-8 flex items-center gap-3 border-b border-slate-100 pb-4">
              <span className="h-5 w-1 rounded-full bg-cyan-500" />
              Core Engineering &amp; Architectural Features
            </h2>

            <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 xl:gap-8">
              {featureList.map((feat, idx) => (
                <div
                  key={idx}
                  className="bg-white text-slate-800 rounded-2xl p-6 xl:p-8 transition-all duration-300 border border-slate-200/80 hover:border-cyan-300 hover:shadow-[0_15px_40px_rgba(6,182,212,0.03)] flex flex-col justify-between group"
                >
                  <div>
                    <div className="flex items-center justify-between mb-4">
                      <h3 className="text-sm xl:text-base font-black text-slate-900 tracking-tight">{feat.title}</h3>
                      {/* Micro-Vector high-tension calibration data node allocation box */}
                      <div className="p-2.5 bg-slate-50 border border-slate-200/60 shadow-2xs rounded-xl transition-all duration-300 group-hover:bg-cyan-500 group-hover:border-cyan-500 group-hover:text-white text-cyan-500">
                        {feat.icon}
                      </div>
                    </div>
                    <p className="text-xs xl:text-sm text-slate-500 leading-relaxed font-semibold">
                      {feat.desc}
                    </p>
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* ─── CALL TO ACTION FRAME: ENQUIRY CTA (Premium Clean Uniform Layout Card) ─── */}
          <div className="flex justify-center">
            <Link
              href="/contact"
              className="inline-flex items-center gap-2 bg-cyan-500 hover:bg-cyan-600 text-white text-xs xl:text-sm font-bold px-10 py-4 rounded-full transition-all duration-200 active:scale-95 shadow-md shadow-cyan-500/10 w-full sm:w-auto justify-center uppercase tracking-wider"
            >
              Send Enquiry
              <FaArrowRight className="w-3.5 h-3.5" />
            </Link>
          </div>


        </div>
      </div>
    </>
  );
}