"use client";

import Image from "next/image";
import Link from "next/link";
import { FaArrowRight } from "react-icons/fa6";
import { LuLayoutDashboard, LuCloudLightning, LuRadio, LuShieldCheck, LuWallet, LuFileSpreadsheet, LuLayers } from "react-icons/lu";
import Breadcrumb from "@/components/Common/Breadcrumb";
export default function SmartCommEmsDetail() {

  const featureList = [
    {
      title: "Real-Time Plant Overviews",
      desc: "Get an immediate, high-level snapshot of total energy consumption metrics across your entire facility footprint directly on the primary dashboard.",
      icon: <LuLayoutDashboard className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    },
    {
      title: "Quick Performance Benchmarking",
      desc: "Easily analyze baseline configurations against real-time operational data to establish and track energy efficiency benchmarks.",
      icon: <LuCloudLightning className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    },
    {
      title: "Flexible Deployment Models",
      desc: "Adapts cleanly to modern network architectures with flexible licensing models available for either on-premises servers or secure cloud host platforms.",
      icon: <LuCloudLightning className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    },
    {
      title: "Prepaid Utility Management",
      desc: "Features an integrated prepayment module that dynamically manages automated remote supply connections or disconnections based on active account credits.",
      icon: <LuWallet className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    },
    {
      title: "Wireless LoRaWAN Scale",
      desc: "Engineered around LoRaWAN protocol standards to deploy long-range, wireless smart metering networks across vast commercial or residential areas.",
      icon: <LuRadio className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    },
    {
      title: "Advanced Data Reporting",
      desc: "Generates custom analytical reports, including Specific Energy Consumption (SEC) data, exported as password-protected Excel charts.",
      icon: <LuFileSpreadsheet className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    },
    {
      title: "Role-Based Security Layers",
      desc: "Protects critical configuration layers by assigning software access rights, parameter changes, and feature visibilities matching verified user roles.",
      icon: <LuShieldCheck className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    },
    {
      title: "Native Native Meter Integration",
      desc: "Comes out-of-the-box with standard E&A digital energy meters preconfigured inside the software profile library for instant field commissioning.",
      icon: <LuLayers className="w-5 h-5 text-cyan-500 group-hover:text-white" />
    }
  ];

  return (
    <>
      <Breadcrumb
        pageName="SmartComm EMS"
        description="SmartComm EMS is a high-performance, real-time energy management solution from L&T Electrical & Automation. It offers a comprehensive range of features and performance capabilities to meet the specific needs of industrial applications."
      />
      <div className="min-h-screen bg-white text-slate-800 py-16 lg:py-24 xl:py-28 3xl:py-32 selection:bg-cyan-500 selection:text-cyan-500 w-full">
        {/* 👑 CRITICAL LARGE SCREEN REPAIR: Max-width thresholds locked securely up to 1560px for high-end wide setups */}
        <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-28">

            {/* Left Block: Technical Context */}
            <div className="space-y-6 order-2 lg:order-1">
              {/* <span className="inline-flex items-center gap-1.5 rounded-full bg-slate-100 px-4 py-1.5 text-xs font-bold tracking-wider text-slate-600 uppercase border border-slate-200"> */}
              {/* <span className="h-2 w-2 rounded-full bg-emerald-500 animate-pulse" />
                Enterprise Energy Management */}
              {/* </span> */}

              <h1 className="text-3xl md:text-4xl xl:text-5xl 3xl:text-6xl font-black tracking-tight text-slate-900 leading-tight">
                SmartComm EMS Software <br />
                <span className="text-cyan-500 font-extrabold text-xl md:text-2xl xl:text-3xl 3xl:text-4xl block mt-2">
                  Real-Time Efficiency &amp; Digital Power Analytics
                </span>
              </h1>

              <div className="space-y-4 text-slate-600 text-sm md:text-base xl:text-lg leading-relaxed font-normal">
                <p>
                  As ecological landscapes require sharper scrutiny of our energy footprint, <strong className="text-slate-900 font-bold">SmartComm EMS</strong> delivers a sophisticated, unified answer for managing energy optimization targets across modern commercial structures and production industrial hubs.
                </p>
                <p>
                  Engineered by L&amp;T Electrical &amp; Automation (E&amp;A), this powerful energy software package provides facility administrators with continuous, 24x7 monitoring frameworks. By rendering clear visual maps of hardware loads, tracking down specific areas of utility wastage, and simplifying multi-location meter data collection, it equips managers to execute definitive carbon-reduction initiatives.
                </p>
              </div>
            </div>

            {/* Right Block: Image Wrapping Container (Protects Software UI Screenshot Aspect Sizing) */}
            <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-slate-50 p-6 border border-slate-200/60 shadow-xs group hover:border-cyan-500 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/main-picture-of-smart-comm.png"
                    alt="SmartComm EMS Energy Management System Dashboard Visuals"
                    fill
                    priority
                    className="object-contain filter drop-shadow-[0_6px_16px_rgba(0,0,0,0.03)] 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 (Transforms Fluidly up to 4-Columns) ─── */}
          <div className="mb-24 xl:mb-28">
            <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-emerald-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 3xl:grid-cols-4 gap-6">
              {featureList?.map((feat, idx) => (
                <div
                  key={idx}
                  className="bg-slate-50/50 hover:bg-white text-slate-800 rounded-2xl p-6 xl:p-8 transition-all duration-300 border border-slate-200/60 hover:border-emerald-200 hover:shadow-[0_15px_40px_rgba(0,0,0,0.02)] 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>
                      <div className="p-2.5 bg-white border border-slate-200/60 shadow-xs rounded-xl transition-all duration-300 group-hover:bg-cyan-500 group-hover:border-cyan-500 group-hover:text-white text-slate-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 (Wide Layout Protection Block) ─── */}
          <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 >
    </>
  );
}