<?php
require_once 'config/config.php';
require_once 'includes/functions.php';
startSecureSession();
$pageTitle = 'Rig N Dig | 16+ Years of Industrial Engineering Excellence';
$metaDesc = "Learn about Rig N Dig's 16-year legacy in Pakistan's industrial sector. From API-certified equipment supply to precision workshop engineering and machine overhaul.";
$pageKeywords = "Rig N Dig Profile, Industrial Engineering Pakistan, API 6A Supplier History, Islamabad Machine Shop, Oilfield Equipment Experts";
include 'includes/header.php';
?>

<div class="relative overflow-hidden pt-20">
  <!-- Dynamic Background Elements -->
  <div class="absolute top-0 left-0 w-full h-[800px] bg-gradient-to-b from-navy-800 to-navy-900 pointer-events-none -z-10"></div>
  <div class="absolute top-40 right-[-10%] w-[500px] h-[500px] bg-orange-600/5 rounded-full blur-[120px] pointer-events-none"></div>
  
  <div class="max-w-7xl mx-auto px-4">
    <!-- ── PHASE I: HERO NARRATIVE ─────────────────────────────────────────── -->
    <div class="grid grid-cols-1 lg:grid-cols-2 gap-16 items-center mb-32 fade-in">
      <div class="relative z-10">
        <div class="section-tag mb-4 shadow-xl shadow-orange-500/10">⚙️ Corporate Profile</div>
        <h1 class="text-5xl sm:text-7xl font-black font-display leading-[0.9] mb-8">
          <span class="text-white">Built on</span><br>
          <span class="text-orange-500 text-glow">Precision.</span><br>
          <span class="text-white">Driven by</span><br>
          <span class="text-orange-500 text-glow">Integrity.</span>
        </h1>
        <div class="w-24 h-1.5 bg-orange-600 mb-8 rounded-full"></div>
        <p class="text-gray-300 leading-relaxed text-xl mb-6 font-medium">
          For over 16 years, Rig N Dig has stood as a bastion of technical excellence in Pakistan’s industrial landscape. 
        </p>
        <p class="text-gray-400 leading-relaxed text-sm mb-10 max-w-xl">
          Founded on the principles of absolute reliability and technical mastery, we have evolved from a strategic joint-venture partner into a standalone powerhouse for API-standard industrial equipment. Our journey is one of collaboration, engineering rigor, and an unwavering commitment to the industrial "backbone" of the nation.
        </p>
        
        <div class="flex flex-wrap gap-4">
          <div class="flex items-center gap-3 bg-navy-800/50 p-4 rounded-xl border border-white/5 shadow-2xl">
            <div class="text-3xl">🏅</div>
            <div>
              <div class="text-sm font-bold text-white uppercase tracking-wider">API 6A Certified</div>
              <div class="text-[10px] text-gray-500 tracking-widest">Global Standards</div>
            </div>
          </div>
          <div class="flex items-center gap-3 bg-navy-800/50 p-4 rounded-xl border border-white/5 shadow-2xl">
            <div class="text-3xl">🏗️</div>
            <div>
              <div class="text-sm font-bold text-white uppercase tracking-wider">16+ Years</div>
              <div class="text-[10px] text-gray-500 tracking-widest">Operational Mastery</div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="relative">
        <div class="glass-panel aspect-[4/5] rounded-[40px] overflow-hidden flex items-center justify-center p-12 group">
          <div class="absolute inset-0 bg-navy-800/40"></div>
          <div class="absolute inset-0 bg-gradient-to-tr from-orange-600/10 to-transparent"></div>
          
          <!-- Abstract Technical SVG -->
          <svg class="absolute inset-0 w-full h-full opacity-5 pointer-events-none" viewBox="0 0 100 100" fill="currentColor">
            <pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse">
              <path d="M 10 0 L 0 0 0 10" fill="none" stroke="currentColor" stroke-width="0.5"/>
            </pattern>
            <rect width="100" height="100" fill="url(#grid)" />
          </svg>

          <div class="relative z-10 text-center">
            <div class="w-32 h-32 bg-orange-600 rounded-full flex items-center justify-center mx-auto mb-8 shadow-2xl shadow-orange-600/20 group-hover:scale-110 transition-transform duration-700">
               <span class="text-6xl">🏭</span>
            </div>
            <h3 class="text-3xl font-black text-white tracking-tighter mb-2">RIG N DIG</h3>
            <p class="text-xs font-bold uppercase tracking-[0.4em] text-orange-500">INDUSTRIAL SOLUTIONS</p>
            <div class="mt-8 pt-8 border-t border-white/10 text-gray-400 text-xs leading-relaxed max-w-xs mx-auto">
              Precision Machining • API Flanges • Workshop Overhaul • Mining Spares
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- ── PHASE II: THE HISTORICAL ARCH (16 YEARS) ────────────────────────── -->
    <div class="mb-32">
      <div class="text-center mb-16">
        <div class="section-tag mx-auto">🕰️ Our Strategic Journey</div>
        <h2 class="text-4xl font-black text-white mt-4">A Legacy of Collaboration</h2>
      </div>

      <div class="relative">
        <div class="absolute left-1/2 top-0 bottom-0 w-px bg-gradient-to-b from-transparent via-orange-600/50 to-transparent hidden lg:block"></div>
        
        <div class="space-y-20">
          <!-- 2008 - 2012 -->
          <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
            <div class="lg:text-right fade-in">
              <div class="text-5xl font-black text-orange-500/20 mb-2">2008 - 2012</div>
              <h3 class="text-2xl font-bold text-white mb-4 uppercase tracking-tight">The Era of Foundation & Joint Ventures</h3>
              <p class="text-gray-400 leading-relaxed text-sm">
                Rig N Dig was born from a singular vision: to bring world-class industrial standards to the doorstep of Pakistan’s largest projects. In these formative years, we recognized that the fastest path to excellence was through strategic partnerships. We operated as a silent technical force, partnering with established giants to deliver high-stakes equipment. 
              </p>
              <p class="text-gray-400 leading-relaxed text-sm mt-4">
                This era was defined by "Learning through Doing." While we were part of a larger team, our specific contributions were always the technical core: the flanges that didn't leak, the valves that never failed, and the engineering advice that saved projects millions. We focused on mastering the ASME and API standards that differentiate a reseller from a true engineering house.
              </p>
            </div>
            <div class="flex justify-center lg:justify-start fade-in">
              <div class="w-20 h-20 rounded-full bg-navy-800 border-4 border-navy-900 shadow-2xl flex items-center justify-center text-4xl shadow-orange-600/5 relative z-10">🤝</div>
            </div>
          </div>

          <!-- 2013 - 2018 -->
          <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center lg:flex-row-reverse">
             <div class="order-2 lg:order-1 flex justify-center lg:justify-end fade-in">
                <div class="w-20 h-20 rounded-full bg-navy-800 border-4 border-navy-900 shadow-2xl flex items-center justify-center text-4xl shadow-orange-600/5 relative z-10">🔧</div>
            </div>
            <div class="order-1 lg:order-2 fade-in">
              <div class="text-5xl font-black text-orange-500/20 mb-2">2013 - 2018</div>
              <h3 class="text-2xl font-bold text-white mb-4 uppercase tracking-tight">Expansion of Technical Arsenal</h3>
              <p class="text-gray-400 leading-relaxed text-sm">
                As our reputation for precision grew, so did our independence. We shifted focus from pure supply to value-added engineering. This was the period where Rig N Dig invested heavily in its own technical workshop in Islamabad. We brought in specialized lathe operators, certified welders, and precision machining experts.
              </p>
              <p class="text-gray-400 leading-relaxed text-sm mt-4">
                We became more than a supplier; we became a solution provider. Our workshop began performing complete overhauls of industrial machinery that previously had to be sent abroad for repair. By localizing this expertise, we drastically reduced downtime for our B2B partners in the Mining and Asphalt sectors. This era marked our transition from "Partner" to "Pioneer."
              </p>
            </div>
          </div>

          <!-- 2019 - Present -->
          <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
            <div class="lg:text-right fade-in">
              <div class="text-5xl font-black text-orange-500/20 mb-2">2019 - 2026</div>
              <h3 class="text-2xl font-bold text-white mb-4 uppercase tracking-tight">Standalone Authority & Digitalization</h3>
              <p class="text-gray-400 leading-relaxed text-sm">
                Today, Rig N Dig stands as a standalone authority in industrial equipment. We no longer just support projects; we lead them. Our procurement network spans the globe, giving Pakistan's industries exclusive access to high-spec components from the US, EU, and Asian markets. 
              </p>
              <p class="text-gray-400 leading-relaxed text-sm mt-4">
                With the launch of our digital Quote Terminal and professional technical procurement system, we are bringing a "Premium" experience to a traditionally heavy-duty industry. We have successfully completed hundreds of standalone projects, proving that technical mastery can be achieved right here in Pakistan. Our future is focused on 100% digital integration and expanding our workshop to support even larger industrial demands.
              </p>
            </div>
             <div class="flex justify-center lg:justify-start fade-in">
                <div class="w-20 h-20 rounded-full bg-navy-800 border-4 border-navy-900 shadow-2xl flex items-center justify-center text-4xl shadow-orange-600/5 relative z-10">⚡</div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- ── PHASE III: TECHNICAL RIGOR (THE API STANDARD) ───────────────────── -->
    <div class="bg-navy-800/50 border border-white/5 rounded-[40px] p-8 lg:p-20 mb-32 fade-in relative overflow-hidden">
      <!-- Decorative element -->
      <div class="absolute bottom-0 right-0 p-12 opacity-[0.03] pointer-events-none">
        <svg class="w-96 h-96 text-orange-600" viewBox="0 0 100 100" fill="currentColor">
          <path d="M50 0L61.8 38.2H100L69.1 61.8L80.9 100L50 76.4L19.1 100L30.9 61.8L0 38.2H38.2L50 0Z" />
        </svg>
      </div>

      <div class="grid grid-cols-1 lg:grid-cols-3 gap-16 relative z-10">
        <div class="lg:col-span-1">
          <div class="section-tag mb-4">📘 Technical Standards</div>
          <h2 class="text-3xl font-black text-white mb-6 uppercase tracking-tight leading-none">The Science<br>Behind the<br>Solution</h2>
          <p class="text-gray-400 text-sm leading-relaxed mb-8">
            In the world of high-pressure industrial operations, "good enough" is a catastrophic failure waiting to happen. At Rig N Dig, we adhere to a "Zero-Error" protocol that begins the moment an order is placed.
          </p>
          <ul class="space-y-4 text-xs font-bold text-gray-300">
            <li class="flex items-center gap-3"><span class="text-orange-500">▶</span> API 6A Spec Compliant</li>
            <li class="flex items-center gap-3"><span class="text-orange-500">▶</span> ASME B16.5 / B16.47 Standards</li>
            <li class="flex items-center gap-3"><span class="text-orange-500">▶</span> Full Mill Traceability (MTRs)</li>
            <li class="flex items-center gap-3"><span class="text-orange-500">▶</span> Positive Material Identification (PMI)</li>
          </ul>
        </div>

        <div class="lg:col-span-2 space-y-10">
          <div>
            <h3 class="text-xl font-bold text-white mb-4">1. Flange & Fitting Authority</h3>
            <p class="text-sm text-gray-400 leading-relaxed italic border-l-2 border-orange-500 pl-6 py-2">
              "A flange is more than just metal; it is the sealing point of an entire operation's integrity." 
            </p>
            <p class="text-sm text-gray-400 leading-relaxed mt-4">
              We specalize in high-pressure API and ANSI flanges. Our supply range includes Weld Neck, Blind, Slip-On, and Threaded configurations in grades such as ASTM A105, A350 LF2, and Stainless Steel. We understand the specific metallurgical requirements for sour service and cryogenic applications, ensuring your pipeline stays secure under the harshest conditions.
            </p>
          </div>
          <div>
            <h3 class="text-xl font-bold text-white mb-4">2. Valving & Control Systems</h3>
            <p class="text-sm text-gray-400 leading-relaxed">
              From Gate, Globe, and Check valves to high-performance Ball and Butterfly valving, our technical desk vets every manufacturer we partner with. We ensure all valves meet API 6D and API 600 standards, featuring fire-safe designs and NACE MR0175 compliance where required. We don't just sell valves; we engineer fluid control pathways that last for decades.
            </p>
          </div>
          <div>
            <h3 class="text-xl font-bold text-white mb-4">3. Mining & Earthmoving Spares</h3>
            <p class="text-sm text-gray-400 leading-relaxed">
              The attrition of mining operations demands parts with superior wear resistance. Our spares for crushers, drills, and heavy-duty earthmovers are sourced from manufacturers who utilize advanced heat-treatment processes and manganese-steel alloys to ensure maximum service life.
            </p>
          </div>
        </div>
      </div>
    </div>

    <!-- ── PHASE IV: THE WORKSHOP ADVANTAGE ────────────────────────────────── -->
    <div class="mb-32">
      <div class="text-center mb-16">
        <div class="section-tag mx-auto">⚙️ In-House Capabilities</div>
        <h2 class="text-4xl font-black text-white mt-4 uppercase">Workshop Engineering</h2>
        <div class="section-divider mx-auto"></div>
        <p class="text-gray-400 text-sm max-w-2xl mx-auto mt-6">
          While many are simple traders, Rig N Dig is a true machine shop. Our Islamabad workshop serves as the tactical hub for rapid response and custom fabrication.
        </p>
      </div>

      <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
        <?php foreach ([
          ['🔩','Precision Lathe','Turning components up to 500mm diameter with tolerances to 0.01mm.'],
          ['⚙️','Milling & Shaping','Full capability for gear cutting (spur/helical) and spline shaping.'],
          ['🔥','Fabrication','TIG/MIG/ARC welding for structural skids and pressure vessels.'],
          ['🏹','Hydraulic Bench','Testing and repair of high-pressure cylinders and pumps.'],
          ['🎯','Quality Inspection','Hardness testing and ultrasonic thickness gauging.'],
          ['🔨','Machine Overhaul','Complete teardown, part-replacement, and commission of industrial assets.'],
          ['🔧','Refurbishment','Sandblasting, epoxy coating, and component restoration.'],
          ['🚚','Emergency Support','On-site repair teams for critical plant shutdowns.'],
        ] as [$icon,$title,$desc]): ?>
        <div class="card-dark p-8 group hover:border-orange-500/50 transition-all duration-300">
          <div class="text-4xl mb-6 bg-navy-800 w-16 h-16 rounded-xl flex items-center justify-center border border-white/5 group-hover:scale-110 transition-transform"><?= $icon ?></div>
          <h4 class="font-bold text-white mb-3 text-sm uppercase tracking-wider"><?= $title ?></h4>
          <p class="text-xs text-gray-500 leading-relaxed"><?= $desc ?></p>
        </div>
        <?php endforeach; ?>
      </div>
    </div>

    <!-- ── PHASE V: VALUES & LEADERSHIP ────────────────────────────────────── -->
    <div class="grid grid-cols-1 lg:grid-cols-2 gap-20 items-center mb-32">
      <div class="fade-in">
        <div class="section-tag">💎 The Rig N Dig Promise</div>
        <h2 class="text-4xl font-black text-white mt-4 uppercase tracking-tighter">Integrity is our<br><span class="text-orange-500">Core Component</span></h2>
        <p class="text-gray-400 leading-relaxed text-sm mt-8">
          In an industry where corners are often cut, our leadership has maintained a 16-year clean record. We believe that a partnership is built on the transparency of the supply chain. When we say a part is API 6A, we provide the certificate to prove it. 
        </p>
        <p class="text-gray-400 leading-relaxed text-sm mt-4">
          Our collaborative heritage has taught us that we succeed when our clients succeed. We aren't looking for one-time transactions; we are looking to become the long-term strategic support for your most ambitious projects. Whether we are working alone or as part of a consortium, the Rig N Dig stamp on a project is a guarantee of quality.
        </p>
        
        <div class="mt-12 space-y-6">
           <div class="flex items-start gap-4">
             <div class="w-2 h-2 rounded-full bg-orange-600 mt-2"></div>
             <div>
               <h5 class="text-white font-bold text-sm">Empowering Local Industry</h5>
               <p class="text-xs text-gray-500 mt-1">We are dedicated to building Pakistan's industrial self-reliance by localizing technical expertise.</p>
             </div>
           </div>
           <div class="flex items-start gap-4">
             <div class="w-2 h-2 rounded-full bg-orange-600 mt-2"></div>
             <div>
               <h5 class="text-white font-bold text-sm">Uncompromising Safety</h5>
               <p class="text-xs text-gray-500 mt-1">Because heavy industry is high-risk, we never compromise on material specs or testing protocols.</p>
             </div>
           </div>
        </div>
      </div>
      
      <div class="glass-panel p-10 rounded-[40px] border border-white/10 fade-in">
        <div class="text-6xl mb-8">🗣️</div>
        <p class="text-2xl font-light text-white italic leading-relaxed mb-8">
          "Our history of partnership has been our greatest teacher. It has allowed us to witness the complexities of world-class projects from the inside, and we have applied every lesson to build the standalone authority you see today."
        </p>
        <div class="flex items-center gap-4">
          <div class="w-12 h-12 rounded-full bg-orange-600 flex items-center justify-center font-bold">R</div>
          <div>
            <div class="text-sm font-bold text-white uppercase tracking-widest">The Leadership Team</div>
            <div class="text-xs text-gray-500">Rig N Dig Industrial Solutions</div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <!-- ── FINAL CALL TO ACTION ────────────────────────────────────────────── -->
  <section class="py-24 bg-gradient-to-r from-orange-600 to-orange-700 relative overflow-hidden">
     <!-- Abstract gear in BG -->
     <svg class="absolute right-[-100px] bottom-[-100px] w-96 h-96 text-orange-800 opacity-20 pointer-events-none" viewBox="0 0 100 100" fill="currentColor">
        <path d="M50 15a35 35 0 100 70A35 35 0 0050 15zm0 52a17 17 0 110-34 17 17 0 010 34z"/>
     </svg>
     
     <div class="max-w-4xl mx-auto px-4 text-center relative z-10">
       <h2 class="text-4xl font-black font-display mb-6 text-white uppercase tracking-tight">Partner with the Backbone of Industry</h2>
       <p class="text-orange-100 mb-10 text-lg">Whether you need a single API flange or a complete workshop overhaul, our 16 years of expertise are at your service.</p>
       <div class="flex flex-wrap gap-4 justify-center">
         <a href="/shop.php" class="bg-white text-orange-600 font-bold px-10 py-4 rounded-xl hover:bg-orange-50 transition-all shadow-2xl">Project Catalog</a>
         <a href="/contact.php" class="border-2 border-white text-white font-bold px-10 py-4 rounded-xl hover:bg-orange-700 transition-all">Consult Our Tech Desk</a>
       </div>
     </div>
  </section>
</div>

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