<?php
require_once 'config/config.php';
require_once 'includes/functions.php';
startSecureSession();
$pageTitle = 'Precision Machining & Industrial Workshop Services Islamabad';
$metaDesc = "Specialized industrial workshop services in Islamabad. Precision lathe works, milling, ASME-standard fabrication, and heavy machinery overhaul with 16+ years of engineering excellence.";
$pageKeywords = "Lathe Works Islamabad, CNC Machining Pakistan, Industrial Fabrication, Hydraulic Repair, ASME Welding, Precision Engineering Services";
include 'includes/header.php';
?>

<div class="max-w-7xl mx-auto px-4 py-20">
  <div class="text-center mb-20 fade-in">
    <div class="section-tag">🏭 Precision Engineering</div>
    <h1 class="section-title">Industrial Workshop <span class="text-orange-500">Mastery</span></h1>
    <div class="section-divider mx-auto"></div>
    <p class="text-gray-400 max-w-2xl mx-auto text-lg italic">16+ years of specialized experience in Islamabad, delivering precision at scale for Pakistan's most critical industrial sectors.</p>
  </div>

  <?php
  $services = [
    ['id'=>'lathe','icon'=>'⚙️','title'=>'Lathe Works','desc'=>'Extreme precision turning, boring, and threading operations. Our workshop handles massive industrial shafts and delicate components with equal mastery.','features'=>['CNC & conventional lathes','Diameter up to 1200mm','Length up to 4000mm','Tolerances to ±0.01mm']],
    ['id'=>'milling','icon'=>'🔩','title'=>'Milling Works','desc'=>'Complex profile and gear cutting using sophisticated vertical and horizontal milling infrastructure for high-performance industrial spare parts.','features'=>['Horizontal & vertical milling','CNC machining centers','Keyway & spline cutting','Surface grinding']],
    ['id'=>'fabrication','icon'=>'🔥','title'=>'Fabrication','desc'=>'Heavy-duty structural fabrication and ASME-standard welding (TIG/MIG/ARC) for pressure vessels, frames, and custom industrial architectures.','features'=>['Structural steel fabrication','Pressure vessel fabrication','TIG / MIG / ARC welding','Stainless & alloy steel']],
    ['id'=>'overhaul','icon'=>'🛠️','title'=>'Machine Overhaul','desc'=>'Deep-level reconditioning of industrial machinery. We revive earth-moving, mining, and hydraulic hardware to factory-new performance levels.','features'=>['Earth moving machinery','Mining equipment','Hydraulic machinery','Asphalt plant equipment']],
    ['id'=>'machining','icon'=>'🎯','title'=>'Precision Machining','desc'=>'Aerospace-grade tolerance management for critical-path components. Our CNC centers deliver absolute accuracy for your most demanding operations.','features'=>['CNC turning & milling','Bore sizing & honing','Thread repair','Custom part manufacturing']],
    ['id'=>'hydraulic','icon'=>'💧','title'=>'Hydraulic Repair','desc'=>'Total system diagnosis and overhaul for high-pressure hydraulic infrastructure. We rebuild cylinders, pumps, and motors with zero-leakage guarantee.','features'=>['Cylinder reboring & sleeving','Pump & motor overhaul','Control valve repair','Hose fabrication']],
  ];
  foreach ($services as $i => $svc): ?>
  <div id="<?= $svc['id'] ?>" class="grid grid-cols-1 lg:grid-cols-2 gap-16 items-center mb-28 fade-in">
    <div class="<?= $i % 2 === 1 ? 'lg:order-last' : '' ?>">
      <div class="text-6xl mb-6 bg-navy-800 w-24 h-24 rounded-2xl flex items-center justify-center border border-white/5"><?= $svc['icon'] ?></div>
      <h2 class="text-3xl font-black mb-4 text-white uppercase tracking-tight"><?= $svc['title'] ?></h2>
      <p class="text-gray-400 leading-relaxed mb-8 text-lg"><?= $svc['desc'] ?></p>
      <div class="grid grid-cols-1 sm:grid-cols-2 gap-4 mb-10">
        <?php foreach ($svc['features'] as $f): ?>
        <div class="flex items-center gap-3 text-sm text-gray-400 font-medium">
          <span class="w-1.5 h-1.5 rounded-full bg-orange-500"></span><?= $f ?>
        </div>
        <?php endforeach; ?>
      </div>
      <a href="/repair-request.php" class="btn-primary px-8 py-4 font-black uppercase tracking-widest text-xs">Initiate Technical Request</a>
    </div>
    <div class="glass-panel aspect-video rounded-3xl flex items-center justify-center relative overflow-hidden group">
      <div class="absolute inset-0 bg-gradient-to-tr from-orange-600/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-700"></div>
      <div class="text-9xl transition-transform duration-700 group-hover:scale-125 group-hover:rotate-12"><?= $svc['icon'] ?></div>
      <!-- Technical overlay effect -->
      <div class="absolute inset-0 border border-white/5 m-4 rounded-2xl pointer-events-none"></div>
    </div>
  </div>
  <?php endforeach; ?>

  <!-- CTA -->
  <div class="text-center py-20 glass-panel rounded-3xl fade-in relative overflow-hidden">
    <div class="absolute inset-0 bg-orange-600/5 backdrop-blur-3xl"></div>
    <div class="relative z-10">
      <h2 class="text-3xl font-black text-white mb-4 uppercase tracking-tighter">Machine Component Failure?</h2>
      <p class="text-gray-400 max-w-xl mx-auto mb-10 text-lg">Transmit your technical specs and component images. Our engineers will perform a rapid assessment and provide a formalized quotation.</p>
      <a href="/repair-request.php" class="btn-primary px-12 py-5 text-sm font-black uppercase tracking-widest shadow-2xl shadow-orange-600/20">Submit Technical Audit Request</a>
    </div>
  </div>
</div>

<?php include 'includes/footer.php'; ?>
