/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
  --primary: #FF6347;
  /* Logo Orange */
  --gear-grey: #7D6B5D;
  /* Logo Grey */
  --dark: #1a1a1a;
  --white: #ffffff;
  --light-bg: #f9f9f9;
  --whatsapp-green: #25D366;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  background: var(--white);
}

section {
  scroll-margin-top: 100px;
}

/* =========================================
   STATS COUNTER SECTION STYLES
========================================= */
.stats-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 99, 71, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stats-container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #FF6347;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* =========================================
   TRUSTED BY SECTION STYLES
========================================= */
.trusted-section {
  background: #f8f9fa;
  padding: 50px 0;
  border-bottom: 1px solid #eee;
}

.trusted-container {
  flex-direction: column;
  align-items: center;
}

.trusted-title {
  font-size: 0.9rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
  font-weight: 600;
}

.trusted-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  opacity: 0.6;
  font-weight: bold;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.trust-item i {
  font-size: 2rem;
}

.trust-item span {
  font-weight: 700;
  font-size: 1.1rem;
}

/* =========================================
   2. HEADER & LOGO (TECHFORGE HOVER STYLE)
========================================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.site-header.scrolled,
.header-solid {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
}

.header-solid {
  background: var(--white) !important;
  position: sticky;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo-link img {
  height: 85px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.site-header.scrolled .logo-link img,
.header-solid .logo-link img {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: color 0.3s ease;
}

.site-header.scrolled .nav a,
.header-solid .nav a {
  color: var(--gear-grey);
  text-shadow: none;
}

.nav a:hover {
  color: var(--primary) !important;
}

/* Sliding Underline Animation */
.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  color: white !important;
  text-shadow: none !important;
}

.btn-nav::after {
  display: none;
}

/* No underline for button */
/* =========================================
   3. HERO SECTION
========================================= */
.hero {
  width: 100%;
  height: 100dvh;
  position: relative;
}

.swiper-slide {
  background-size: cover !important;
  background-position: center !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ISO Certified Badge */
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.iso-badge i {
  color: #1DA1F2;
  font-size: 1.1rem;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #ff7b63;
}

.full-width {
  width: 100%;
  display: block;
}

/* =========================================
   4. CARDS & SECTIONS (SHINE & ZOOM EFFECT)
========================================= */
.section {
  padding: 80px 20px;
}

.grey-bg {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--gear-grey);
  margin-bottom: 50px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
}

.container-small {
  max-width: 800px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card,
.product-card,
.office-card {
  position: relative;
  overflow: hidden;
  background: white;
  padding: 40px 30px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease !important;
}

/* Shine Effect */
.card::before,
.product-card::before,
.office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 99, 71, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

/* Hover Action */
.card:hover,
.product-card:hover,
.office-card:hover {
  transform: translateY(-5px) scale(1.03) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card:hover::before,
.product-card:hover::before,
.office-card:hover::before {
  left: 100%;
}

.card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}

.card h3 {
  color: var(--gear-grey);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #666;
}

/* TechForge Style for 'Why Choose Us' */
#why-us .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   5. CONTACT SECTION (HORIZONTAL FIX)
========================================= */
.contact-section {
  background-color: #f8f9fa;
  padding-bottom: 80px;
}

.contact-container-block {
  display: block !important;
  text-align: center;
}

.contact-header {
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.contact-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-top: -10px;
}

.offices-horizontal-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  width: 100%;
}

.office-card {
  flex: 1;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary);
  text-align: left;
}

.office-card h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #555;
  font-size: 1rem;
}

.detail-item i {
  color: var(--primary);
  margin-right: 15px;
  margin-top: 5px;
  font-size: 1.1rem;
}

.clickable-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.clickable-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.map-full-wrapper {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 5px solid #fff;
}

/* =========================================
   6. PROFESSIONAL BIG FOOTER
========================================= */
.site-footer-big {
  background-color: #000;
  color: #fff;
  padding-top: 60px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  align-items: start;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-top: 8px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.contact-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #aaa;
}

.contact-row i {
  color: var(--primary);
  margin-top: 5px;
}

.social-icons-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons-row a {
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons-row a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  background: #111;
  padding: 20px 0;
  border-top: 1px solid #222;
  font-size: 0.85rem;
  color: #888;
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.developer-credit {
  color: #888;
}

.developer-credit a {
  color: #888 !important;
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition);
}

.developer-credit a:hover {
  color: var(--primary) !important;
}

/* =========================================
   7. MOBILE RESPONSIVENESS
========================================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--white);
  cursor: pointer;
}

.site-header.scrolled .menu-toggle,
.header-solid .menu-toggle {
  color: var(--gear-grey);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transition: 0.4s ease;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    color: var(--gear-grey);
    font-size: 1.2rem;
    margin: 20px 0;
  }

  .offices-horizontal-row {
    flex-direction: column;
  }

  .footer-grid {
    text-align: left;
  }

  .bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .info-grid,
  .vision-mission-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Page Hero */
.page-hero {
  background: url('https://images.unsplash.com/photo-1565514020176-892eb5badeef?auto=format&fit=crop&q=80') center/cover;
  height: 40vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: -85px;
  padding-top: 85px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 45, 0.8);
}

/* FIXED: Added flex-direction: column to stack H1 and P */
.page-hero .container {
  position: relative;
  z-index: 2;
  flex-direction: column !important;
  justify-content: center;
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Modern Form Inputs */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 20px !important;
  background: #fff !important;
  border: 2px solid #eee !important;
  border-radius: 12px !important;
  color: #333 !important;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 99, 71, 0.1) !important;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-green);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
}

/* =========================================
   8. CAPABILITIES PAGE STYLES
========================================= */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

/* Alternating Layout: Reverse every second row */
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-image {
  flex: 1;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.feature-image:hover img {
  transform: scale(1.05);
}

/* Mobile Fix for Feature Row */
@media (max-width: 900px) {

  .feature-row,
  .feature-row:nth-child(even) {
    flex-direction: column-reverse;
    gap: 30px;
    margin-bottom: 60px;
  }

  .feature-image {
    height: 300px;
    width: 100%;
  }
}

/* =========================================
   9. PRODUCT IMAGE CARDS (NEW)
========================================= */
/* Specific style for cards with images */
.image-card {
  padding: 0 !important;
  /* Remove padding so image touches edges */
  text-align: left !important;
  display: flex;
  flex-direction: column;
}

.card-image-wrapper {
  width: 100%;
  height: 220px;
  /* Fixed height for uniformity */
  overflow: hidden;
  border-bottom: 3px solid var(--light-bg);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-card:hover .card-image-wrapper img {
  transform: scale(1.1);
  /* Zoom effect on hover */
}

.card-content-wrapper {
  padding: 25px;
  flex-grow: 1;
  /* Pushes content to fill space */
}

.card-content-wrapper h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--gear-grey);
}

.card-content-wrapper p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

/* =========================================
   10. NEW MODERN PRODUCT LAYOUT
========================================= */
/* Pill Filters */
.filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-pill {
  padding: 10px 25px;
  border-radius: 50px;
  background: #e5e7eb;
  /* Light Gray */
  color: #374151;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.filter-pill:hover {
  background: #d1d5db;
}

.filter-pill.active {
  background: var(--primary);
  /* Red/Orange */
  color: white;
  box-shadow: 0 4px 6px rgba(255, 99, 71, 0.3);
}

/* Modern Card Design */
.product-card-modern {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
}

.product-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Top Image Section */
/* 1. The Image Container */
.card-img-box {
  width: 100%;
  height: 220px;
  /* Fixed height for uniformity */
  padding: 0;
  /* REMOVED PADDING so image touches edges */
  background: #f4f4f4;
  /* Light grey background while loading */
  display: block;
  overflow: hidden;
  /* Cuts off any image overflow */
  border-bottom: 1px solid #eee;
}

/* 2. The Image Itself */
.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* MAGIC LINE: Forces image to fill the box completely */
  object-position: center;
  /* Centers the image */
  border-radius: 12px 12px 0 0;
  /* Rounds top corners only, matches card */
  transition: transform 0.5s ease;
}

/* 3. Hover Zoom Effect */
.product-card-modern:hover .card-img-box img {
  transform: scale(1.1);
  /* Smooth zoom on hover */
}

/* Card Body */
.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111827;
  font-family: 'Inter', sans-serif;
}

.card-size {
  color: #6b7280;
  /* Gray text */
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Footer (Inquire Button Row) */
.card-footer {
  margin-top: auto;
  /* Pushes to bottom */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-quote-text {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-inquire {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-inquire:hover {
  background: #e55a40;
  transform: scale(1.05);
}

/* =========================================
   11. RESPONSIVE MATRIX GRID (AUTO-LAYOUT)
========================================= */
.matrix-grid {
  display: grid;
  /* Magic Line: Fits as many 260px cards as possible, then stretches them */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Modern Card Tweaks for Matrix */
.product-card-modern {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  height: 100%;
  /* Ensures all cards in a row are same height */
}

.product-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-box {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 99, 71, 0.05);
}

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Filter Button Styles */
.filter-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-pill {
  background: #e5e7eb;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
  font-size: 0.95rem;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 99, 71, 0.3);
}

/* =========================================
   12. SOFT BRAND GLOW (REFINED)
========================================= */
/* 1. Subtle Shine Animation */
.product-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* Very faint orange shine */
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 99, 71, 0.1),
      /* Reduced opacity from 0.2 to 0.1 */
      transparent);
  transition: left 0.6s ease;
  z-index: 2;
  pointer-events: none;
}

.product-card-modern:hover::before {
  left: 100%;
}

/* 2. Soft Orange Shadow (Reduced Intensity) */
.product-card-modern:hover {
  transform: translateY(-5px);
  /* Reduced shadow opacity from 0.25 to 0.12 (Much softer) */
  box-shadow: 0 15px 30px rgba(255, 99, 71, 0.12) !important;
  /* Reduced border opacity */
  border-color: rgba(255, 99, 71, 0.3);
}

/* 3. Icon Pulse (Subtle) */
.product-card-modern:hover .card-img-box i {
  transform: scale(1.08);
  /* Very soft glow on the icon itself */
  filter: drop-shadow(0 0 5px rgba(255, 99, 71, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* 4. Base Card Style */
.product-card-modern {
  background: white !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   14. CAPABILITIES PAGE (WIDER IMAGES)
========================================= */
/* The Row Container */
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  /* Reduced gap slightly to give more room to content */
  padding: 30px 0;
}

/* Text Side (Takes approx 40% width) */
.feature-text {
  flex: 0.8;
  /* Reduced flex value (0.8 vs 1.2) makes this narrower */
  min-width: 300px;
  /* Prevents text from getting too squished */
}

/* Image Side (Takes approx 60% width - WIDER) */
.feature-image {
  flex: 1.2;
  /* Higher flex value makes the image wider */
  height: 450px;
  /* Increased height slightly to match new width */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image Styling */
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Image Hover Zoom */
.feature-image:hover img {
  transform: scale(1.05);
}

/* List Styling */
.check-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.check-list li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list li i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Divider Line */
.feature-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 60px 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .feature-row {
    flex-direction: column-reverse;
    /* Image moves to top */
    gap: 30px;
    text-align: left;
  }

  .feature-image {
    width: 100%;
    height: 300px;
    /* Standard mobile height */
    flex: auto;
    /* Reset width on mobile */
  }

  .feature-text {
    flex: auto;
    /* Reset width on mobile */
  }
}

/* =========================================
   16. CAPABILITIES PAGE (FULL ZIG-ZAG LAYOUT)
========================================= */
/* Hero Section Base */
.page-hero {
  position: relative;
  height: 60vh;
  /* Taller Hero */
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay */
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.page-hero p {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* Feature Row Layout (Zig-Zag) */
.cap-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 60px 0;
}

/* Reverse every even row (2nd, 4th...) */
.cap-feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* Text Side */
.cap-text {
  flex: 1;
}

.cap-label {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.cap-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cap-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

/* List Styling */
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cap-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
  font-size: 1.05rem;
  color: #333;
  border-bottom: 1px solid #eee;
}

.cap-list li i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Image Side */
.cap-image-wrapper {
  flex: 1.2;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
}

.cap-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cap-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .page-hero {
    height: auto;
    padding: 120px 0 80px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  /* Reset layout on mobile */
  .cap-feature-row,
  .cap-feature-row:nth-child(even) {
    flex-direction: column-reverse;
    gap: 30px;
    text-align: left;
    padding: 30px 0;
  }

  .cap-image-wrapper {
    width: 100%;
    height: 300px;
    flex: auto;
  }

  .cap-text h2 {
    font-size: 1.8rem;
  }
}

/* =========================================
   17. CAPABILITIES PAGE (FIXED HERO & LAYOUT)
========================================= */
/* --- 1. Hero Section Styling --- */
.page-hero {
  position: relative;
  height: 60vh;
  /* Taller Hero */
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  text-align: center;
  color: white;
  /* Default background is overridden by inline style in HTML */
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay */
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.page-hero p {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* --- 2. Capabilities Layout (Stacked Uniformly) --- */
.cap-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
  /* Divider line between rows */
}

/* Remove border from last item */
.cap-feature-row:last-child {
  border-bottom: none;
}

/* Text Side */
.cap-text {
  flex: 1;
}

.cap-label {
  display: inline-block;
  background: var(--primary);
  /* Orange */
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.cap-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cap-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

/* List Styling */
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cap-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
  font-size: 1.05rem;
  color: #333;
  border-bottom: 1px solid #eee;
}

.cap-list li i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Image Side */
.cap-image-wrapper {
  flex: 1.2;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
}

.cap-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cap-image-wrapper:hover img {
  transform: scale(1.05);
}

/* --- 3. Mobile Responsiveness --- */
@media (max-width: 900px) {
  .page-hero {
    height: auto;
    padding: 120px 0 80px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  /* Stack vertically: Image on Top, Text Below */
  .cap-feature-row {
    flex-direction: column-reverse;
    gap: 30px;
    text-align: left;
    padding: 30px 0;
  }

  .cap-image-wrapper {
    width: 100%;
    height: 300px;
    flex: auto;
  }

  .cap-text h2 {
    font-size: 1.8rem;
  }
}

/* =========================================
   18. CAPABILITIES PAGE (COLUMN GRID LAYOUT)
========================================= */
/* Hero Section Base */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 0;
  /* Background set inline in HTML */
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* --- GRID CONTAINER --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 Equal Columns */
  gap: 30px;
  margin-bottom: 60px;
}

/* --- CARD STYLING --- */
.cap-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cap-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image on Top */
.cap-card-image {
  height: 250px;
  width: 100%;
  overflow: hidden;
  background: #f4f4f4;
}

.cap-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cap-card:hover .cap-card-image img {
  transform: scale(1.1);
}

/* Content Below */
.cap-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cap-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  /* Orange */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.cap-card-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 15px;
}

.cap-card-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* List inside Card */
.cap-list-small {
  list-style: none;
  margin-top: auto;
  /* Pushes list to bottom */
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.cap-list-small li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cap-list-small li i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* --- CTA Section --- */
.cta-simple {
  background: #111;
  text-align: center;
  padding: 80px 0;
  color: white;
}

.btn-primary-cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: 0.3s;
}

.btn-primary-cta:hover {
  background: #e65538;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    /* Stack 1 column on mobile */
    max-width: 500px;
    margin: 0 auto;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }
}

/* =========================================
   20. COMPREHENSIVE MOBILE RESPONSIVENESS - HOME PAGE
========================================= */

/* === TABLET BREAKPOINT (768px - 900px) === */
@media (max-width: 900px) {

  /* Container Adjustments */
  .container {
    padding: 0 15px;
    flex-wrap: wrap;
  }

  /* Section Padding */
  .section {
    padding: 60px 15px;
  }

  /* Section Title */
  .section-title {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }

  /* Product Grid - 2 columns on tablet */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Capabilities Grid - 2 columns on tablet */
  #capabilities [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Why Choose Us Grid */
  #why-us [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* === MOBILE BREAKPOINT (max-width: 768px) === */
@media (max-width: 768px) {

  /* Hero Section */
  .hero {
    height: 80vh !important;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    padding: 0 10px;
  }

  .hero-content p {
    font-size: 0.95rem !important;
    padding: 0 15px;
    margin-bottom: 25px !important;
  }

  .btn-primary {
    padding: 12px 30px !important;
    font-size: 0.9rem;
  }

  /* Swiper Navigation - Hide on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  .swiper-pagination {
    bottom: 20px !important;
  }

  /* Stats Counter Section - Mobile */
  .stats-section {
    padding: 40px 0 !important;
  }

  .stats-container {
    flex-direction: column !important;
    gap: 25px !important;
    padding: 0 20px !important;
  }

  .stat-item {
    min-width: auto !important;
    width: 100%;
  }

  .stat-number {
    font-size: 2.2rem !important;
  }

  .stat-label {
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
  }

  /* Trusted By Section - Mobile */
  .trusted-section {
    padding: 35px 15px !important;
  }

  .trusted-title {
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    margin-bottom: 20px !important;
  }

  .trusted-grid {
    gap: 20px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .trust-item {
    flex-direction: column !important;
    align-items: center !important;
    min-width: calc(50% - 15px) !important;
    text-align: center;
    gap: 5px !important;
  }

  .trust-item i {
    font-size: 1.5rem !important;
  }

  .trust-item span {
    font-size: 0.9rem !important;
  }

  /* About Section */
  #about .about-wrapper {
    padding: 0 10px;
  }

  #about .about-wrapper p[style*="font-size: 1.2rem"] {
    font-size: 1rem !important;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 30px !important;
  }

  /* Why Choose Us Section */
  #why-us {
    padding: 50px 15px !important;
  }

  #why-us [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #why-us .card {
    padding: 25px 20px !important;
  }

  #why-us .card i {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }

  #why-us .card h3 {
    font-size: 1.1rem;
  }

  #why-us .card p {
    font-size: 0.9rem;
  }

  /* Products Section */
  #products .product-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #products .product-card {
    padding: 30px 20px !important;
  }

  #products .product-card h3 {
    font-size: 1.1rem;
  }

  #products .product-card p {
    font-size: 0.9rem;
  }

  #products [style*="display: inline-flex"] {
    padding: 14px 30px !important;
    font-size: 0.9rem !important;
  }

  /* Capabilities Section */
  #capabilities {
    padding: 50px 15px !important;
  }

  #capabilities [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #capabilities .card {
    padding: 25px 20px !important;
  }

  #capabilities .card i {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }

  #capabilities .card h3 {
    font-size: 1.1rem;
  }

  #capabilities .card p {
    font-size: 0.9rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 50px 15px 60px !important;
  }

  .contact-header {
    margin-bottom: 30px !important;
  }

  .contact-subtitle {
    font-size: 0.95rem !important;
  }

  .offices-horizontal-row {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .office-card {
    padding: 25px 20px !important;
  }

  .office-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
  }

  .detail-item {
    font-size: 0.9rem !important;
  }

  .map-full-wrapper {
    border-radius: 10px !important;
  }

  .map-full-wrapper iframe {
    height: 300px !important;
  }

  /* Footer */
  .site-footer-big {
    padding-top: 40px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    text-align: left;
  }

  .footer-col h3 {
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
  }

  .footer-links li {
    margin-bottom: 10px !important;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .contact-row {
    font-size: 0.85rem;
  }

  .social-icons-row {
    justify-content: flex-start !important;
  }

  .social-icons-row a {
    width: 35px !important;
    height: 35px !important;
  }

  .footer-bottom {
    padding: 15px 0 !important;
  }

  .bottom-content {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center;
  }

  /* WhatsApp Float */
  .whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 20px !important;
    right: 20px !important;
    font-size: 24px !important;
  }

  /* Fix inline styles for badges/labels */
  [style*="display: inline-block"][style*="border-radius: 50px"][style*="font-size: 0.85rem"] {
    font-size: 0.75rem !important;
    padding: 6px 16px !important;
    margin-bottom: 15px !important;
  }

  /* Fix paragraph max-widths */
  [style*="max-width: 600px"] {
    max-width: 100% !important;
    padding: 0 10px;
  }
}

/* === SMALL MOBILE BREAKPOINT (max-width: 480px) === */
@media (max-width: 480px) {

  /* Container */
  .container {
    padding: 0 12px;
  }

  /* Hero */
  .hero {
    height: 75vh !important;
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
  }

  .hero-content p {
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
  }

  .btn-primary {
    padding: 10px 25px !important;
    font-size: 0.85rem !important;
  }

  /* Stats Section - 2x2 grid on small mobile */
  .stats-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }

  .stats-section {
    padding: 30px 0 !important;
  }

  .stat-number {
    font-size: 1.8rem !important;
    margin-bottom: 5px !important;
  }

  .stat-label {
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.3rem !important;
  }

  /* Section Padding */
  .section {
    padding: 40px 12px;
  }

  /* Cards */
  .card,
  .product-card,
  .office-card {
    padding: 20px 15px !important;
  }

  .card i,
  #why-us .card i,
  #capabilities .card i {
    font-size: 1.8rem !important;
  }

  .card h3 {
    font-size: 1rem !important;
  }

  .card p {
    font-size: 0.85rem !important;
  }

  /* Footer - Single column */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    text-align: center;
  }

  .footer-col h3::after {
    margin: 8px auto 0 !important;
  }

  .social-icons-row {
    justify-content: center !important;
  }

  .contact-row {
    justify-content: center !important;
    text-align: center;
  }

  /* Office Cards */
  .office-card {
    text-align: left;
  }

  /* Map */
  .map-full-wrapper iframe {
    height: 250px !important;
  }

  /* About Section */
  #about .about-wrapper p {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }

  /* Buttons on mobile */
  [style*="margin-top: 50px"] a {
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
  }
}

/* === HEADER MOBILE IMPROVEMENTS === */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 0 !important;
  }

  .logo-link img {
    height: 60px !important;
  }

  .site-header.scrolled .logo-link img {
    height: 55px !important;
  }

  .menu-toggle {
    font-size: 24px !important;
    padding: 5px;
  }

  .nav {
    width: 80% !important;
    padding: 0 30px;
  }

  .nav a {
    font-size: 1.1rem !important;
    margin: 15px 0 !important;
    text-align: center;
  }

  .nav .btn-nav {
    margin-top: 30px !important;
    padding: 12px 30px !important;
  }
}

/* === SCROLLBAR AND OVERFLOW FIXES === */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* === TOUCH IMPROVEMENTS === */
@media (max-width: 768px) {

  .btn-primary,
  .btn-nav,
  .btn-inquire,
  .filter-pill,
  a[href*="quote"],
  .nav a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Increase touch targets */
  .nav a {
    padding: 10px 15px !important;
  }

  .social-icons-row a {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* === LANDSCAPE MODE FIXES === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto !important;
    min-height: 100vh !important;
    padding: 80px 20px 40px !important;
  }

  .hero-content h1 {
    font-size: 1.5rem !important;
    margin-bottom: 10px !important;
  }

  .hero-content p {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
  }
}
