"use client";

import Image from "next/image";
import Link from "next/link";
import { FaArrowRight, FaCheckCircle, FaNetworkWired, FaTools, FaBrain } from "react-icons/fa";
import { LuActivity, LuShieldCheck } from "react-icons/lu";
import Breadcrumb from "@/components/Common/Breadcrumb";
export default function ServoMotorsDetail() {

  const coreSpecs = [
    { label: "Wide Power Range", value: "0.1kW to 15kW" },
    { label: "Control Modes", value: "Pulse / Analog or Network (EtherCAT)" },
    { label: "Rugged Architecture", value: "Conformal Coating, IP65 Protection Grade" },
    { label: "Hardware Options", value: "Integrated Oil Seal, Dynamic Brake variant options" },
    { label: "Safety Protocols", value: "Safe Torque Off (STO) Mode available in Network models" }
  ];

  const networkFeatures = [
    "Built-in EtherCAT Interface for high-speed industrial routing",
    "100BASE-TX (100Mbps) Ethernet-based synchronized real-time control",
    "Supports up to 100m spacing between architecture nodes via dual RJ45 ports",
    "High-speed position capture integration (Touch Probe 1 & Touch Probe 2)",
    "Modbus RTU Protocol support via RS-422 interface with HMI parameter control"
  ];

  const tuningFeatures = [
    "Dedicated PC Software Tool for rapid configuration, adaptive tuning, and debugging",
    "Easy gain tuning featuring automatic inertia estimating mechanism",
    "On-board manual Rotary Switch to instantly assign Drive node network addresses"
  ];

  const processingFeatures = [
    "Embedded Position Controls with up to 64 independent Index Tables",
    "Advanced Notch Filter for comprehensive system resonance suppression",
    "4-step configurable notch filter combined with 2-step load vibration suppression",
    "Real-time Fast Fourier Transform (FFT) analysis function for frequency profiling"
  ];

  return (
    <>
      <Breadcrumb
        pageName="M5 Series Servo Drives & Motors"
        description="M5 Series Servo Drives & Motors is a high-performance servo drive system architecture. It offers a comprehensive solution for controlling and monitoring industrial processes, equipment, and systems."
      />
      <div className="min-h-screen bg-gradient-to-b from-[#f8fafc] via-white to-[#f1f5f9] text-slate-800 py-16 lg:py-24 xl:py-28 3xl:py-32 selection:bg-cyan-500 selection:text-white w-full">
        {/* 👑 CRITICAL LARGE SCREEN REPAIR: Container bounded tightly up to 1560px with relative scaling */}
        <div className="container mx-auto px-4 max-w-7xl 2xl:max-w-[1440px] 3xl:max-w-[1560px]">

          {/* ─── टॉप सेक्शन: मुख्य विवरण और इमेज ────────────────────── */}
          <div className="grid grid-cols-1 lg:grid-cols-2 gap-12 xl:gap-16 items-center mb-20 xl:mb-24 3xl:mb-28">

            {/* लेफ्ट साइड: इंट्रो */}
            <div className="space-y-6 order-2 lg:order-1">
              <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-100">
                {/* <span className="h-2 w-2 rounded-full bg-cyan-500 animate-pulse" />
                Motion &amp; Control Systems */}
              </span>

              <h1 className="text-3xl md:text-4xl xl:text-5xl 3xl:text-6xl font-black tracking-tight text-slate-900 leading-tight">
                High-Precision Motion <br />
                <span className="text-cyan-600 font-extrabold text-2xl md:text-3xl xl:text-4xl 3xl:text-5xl">M5 Series Servo Drives &amp; Motors</span>
              </h1>

              <div className="space-y-4 text-slate-600 text-base xl:text-lg leading-relaxed font-normal">
                <p>
                  Motion systems are guided by efficient command, signal, and control mechanisms. The <strong className="text-slate-900 font-semibold">M5 Series</strong> offers a complete family of Servo Drives and Motors, packed with advanced control technologies that provide comprehensive motion solutions for high-tier machine automation.
                </p>
                <p>
                  Engineered for precision torque and speed response, these systems seamlessly fulfill the stringent demands of robotics, high-speed packaging, bottling plants, and diverse general-purpose machine operations, boosting your asset's competitive advantage.
                </p>
                <p>
                  With multi-functional intelligence, the controller effortlessly runs sophisticated motions including precise positioning, synchronization parameters, continuous cam profiles, and strict speed/torque regulations.
                </p>
              </div>
            </div>

            {/* राइट साइड: प्रोडक्ट इमेज कंटेनर (आइसोलेटेड लाइट रिफ्लेक्टर बॉक्स) */}
            <div className="order-1 lg:order-2 flex justify-center">
              <div className="relative w-full max-w-[460px] xl:max-w-[520px] 3xl:max-w-[580px] aspect-[4/3] rounded-3xl bg-white border border-slate-100 p-6 shadow-[0_20px_50px_rgba(6,182,212,0.06)] group hover:border-slate-200 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/m5-series-servo-systems-architecture.jpg"
                    alt="M5 Series Servo Systems Architecture"
                    fill
                    priority
                    className="object-contain opacity-90 group-hover:scale-103 group-hover:opacity-100 transition-all duration-500 filter drop-shadow-[0_10px_20px_rgba(0,0,0,0.03)]"
                    sizes="(max-width: 768px) 100vw, (max-width: 1440px) 520px, 580px"
                  />
                </div>
              </div>
            </div>
          </div>

          {/* ─── मिडिल सेक्शन 1: क्विक टेक्निकल डेटा ग्रिड (5 Columns Fixed) ────────────────── */}
          <div className="mb-20 xl:mb-24">
            <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 Performance Matrix
            </h2>

            <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-4">
              {coreSpecs.map((spec, idx) => (
                <div key={idx} className="bg-white border border-slate-150 p-5 rounded-2xl shadow-[0_4px_20px_rgba(0,0,0,0.01)] hover:border-cyan-200 hover:bg-slate-50/50 transition-all duration-200">
                  <p className="text-[10px] xl:text-[11px] uppercase font-bold tracking-widest text-slate-400 mb-1">{spec.label}</p>
                  <p className="text-sm xl:text-base font-bold text-slate-800 leading-snug">{spec.value}</p>
                </div>
              ))}
            </div>
          </div>

          {/* ─── मिडिल सेक्शन 2: एडवांस्ड टेक्निकल आर्किटेक्चर (3 Column Block) ────────────── */}
          <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16 xl:mb-20">

            {/* कार्ड 1: नेटवर्किंग और रियल-टाइम बस */}
            <div className="bg-white border border-slate-150 rounded-2xl p-6 xl:p-8 shadow-[0_4px_25px_rgba(0,0,0,0.01)] hover:border-cyan-200 transition-colors duration-300">
              <div className="flex items-center gap-2.5 text-cyan-700 font-bold text-sm xl:text-base uppercase tracking-wider mb-5 border-b border-slate-100 pb-3">
                <FaNetworkWired className="w-4 h-4 text-cyan-500" />
                EtherCAT Communication Bus
              </div>
              <ul className="space-y-3.5 text-xs xl:text-sm text-slate-600 font-medium">
                {networkFeatures.map((f, i) => (
                  <li key={i} className="flex items-start gap-2.5 leading-relaxed">
                    <FaCheckCircle className="w-4 h-4 text-cyan-500 shrink-0 mt-0.5" />
                    <span>{f}</span>
                  </li>
                ))}
              </ul>
            </div>

            {/* कार्ड 2: कॉन्फ़िगरेशन और ट्यूनिंग */}
            <div className="bg-white border border-slate-150 rounded-2xl p-6 xl:p-8 shadow-[0_4px_25px_rgba(0,0,0,0.01)] hover:border-cyan-200 transition-colors duration-300">
              <div className="flex items-center gap-2.5 text-cyan-700 font-bold text-sm xl:text-base uppercase tracking-wider mb-5 border-b border-slate-100 pb-3">
                <FaTools className="w-4 h-4 text-cyan-500" />
                Configuration &amp; Tuning Tools
              </div>
              <ul className="space-y-3.5 text-xs xl:text-sm text-slate-600 font-medium">
                {tuningFeatures.map((f, i) => (
                  <li key={i} className="flex items-start gap-2.5 leading-relaxed">
                    <FaCheckCircle className="w-4 h-4 text-cyan-500 shrink-0 mt-0.5" />
                    <span>{f}</span>
                  </li>
                ))}
              </ul>
            </div>

            {/* कार्ड 3: रेजोनेंस और इंटेलिजेंट कंट्रोल */}
            <div className="bg-white border border-slate-150 rounded-2xl p-6 xl:p-8 shadow-[0_4px_25px_rgba(0,0,0,0.01)] hover:border-cyan-200 transition-colors duration-300 md:col-span-2 lg:col-span-1">
              <div className="flex items-center gap-2.5 text-cyan-700 font-bold text-sm xl:text-base uppercase tracking-wider mb-5 border-b border-slate-100 pb-3">
                <FaBrain className="w-4 h-4 text-cyan-500" />
                Intelligent Signal Processing
              </div>
              <ul className="space-y-3.5 text-xs xl:text-sm text-slate-600 font-medium">
                {processingFeatures.map((f, i) => (
                  <li key={i} className="flex items-start gap-2.5 leading-relaxed">
                    <FaCheckCircle className="w-4 h-4 text-cyan-500 shrink-0 mt-0.5" />
                    <span>{f}</span>
                  </li>
                ))}
              </ul>
            </div>

          </div>


          {/* ─── बॉटम सेक्शन: कॉल टू Action (Enquiry CTA) ────────────── */}
          <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 >
    </>
  );
}