/* ==========================================================================
   MG INDUSTRIAL SOLUTIONS (PVT) LTD - Custom Stylesheet
   Corporate Identity: Royal Precision Blue & Deep Corporate Navy
   Strict Pure-CSS-and-Raster Implementation - Zero Vector Dependencies
   ========================================================================== */

:root {
  /* Official Logo Palette */
  --mg-primary: #0563A9;
  --mg-primary-dark: #0e202e;
  --mg-primary-deep: #0a1824;
  --mg-primary-light: #0a7ecf;
  --mg-primary-soft: #eaf3fa;
  
  /* Vibrant Cyan / Light Accent */
  --mg-cyan-accent: #38b6ff;
  --mg-cyan-light: #e6f6ff;
  
  /* Brand CTA & Highlights */
  --mg-brand-blue: #0563A9;
  --mg-brand-hover: #044f88;
  --mg-brand-soft: #edf6fd;
  
  /* Neutrals & Surfaces */
  --mg-surface-ice: #f4f8fb;
  --mg-border-ice: #d8e6f1;
  --mg-card-border: #dce7f0;
  --mg-text-dark: #14222e;
  --mg-text-muted: #516577;
  --mg-text-light: #a4c2d9;
  
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--mg-text-dark);
  background-color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ==========================================================================
   LOGO PRELOADER (Light Theme & Mobile Responsive - Strict Pure-CSS-and-Raster)
   ========================================================================== */

#sitePreloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f6fa 100%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
  padding: max(20px, env(safe-area-inset-top, 20px)) max(20px, env(safe-area-inset-right, 20px)) max(20px, env(safe-area-inset-bottom, 20px)) max(20px, env(safe-area-inset-left, 20px));
}

#sitePreloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90vw;
  width: 100%;
}

.preloader-logo-wrap {
  position: relative;
  margin-bottom: 20px;
}

.preloader-logo {
  max-width: 165px;
  width: 45vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(5, 99, 169, 0.15));
  animation: preloaderPulseLight 2s ease-in-out infinite;
}

@keyframes preloaderPulseLight {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(5, 99, 169, 0.12));
  }
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 14px 28px rgba(5, 99, 169, 0.22));
  }
}

/* Pure CSS Animated Dual-Ring Spinner on Light Background (No SVG) */
.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid #dce8f2;
  border-top: 3.5px solid #0563A9;
  border-right: 3.5px solid #38b6ff;
  border-radius: 50%;
  animation: preloaderSpin 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  margin-bottom: 16px;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-tagline {
  color: #14222e;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.preloader-subtext {
  color: #0563A9;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.3;
}

/* Preloader Mobile Responsive Scaling */
@media (max-width: 575.98px) {
  .preloader-logo {
    max-width: 130px;
    width: 42vw;
  }
  .preloader-spinner {
    width: 36px;
    height: 36px;
    border-width: 3px;
    margin-bottom: 14px;
  }
  .preloader-tagline {
    font-size: 11.5px;
  }
  .preloader-subtext {
    font-size: 9.5px;
    letter-spacing: 0.6px;
  }
}

/* ==========================================================================
   PURE CSS ICONS & BADGES (STRICT Pure-CSS-and-Raster)
   ========================================================================== */

.css-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-style: normal;
  vertical-align: middle;
}

/* Blue circle icon badge */
.icon-badge-blue {
  width: 40px;
  height: 40px;
  background-color: #0563A9;
  border-radius: 50%;
  color: #ffffff;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(5, 99, 169, 0.25);
}

.icon-badge-teal {
  width: 40px;
  height: 40px;
  background-color: #0563A9;
  border-radius: 50%;
  color: #ffffff;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(5, 99, 169, 0.25);
}

/* CSS Hamburger Icon */
.css-hamburger {
  display: inline-block;
  width: 24px;
  height: 18px;
  position: relative;
}
.css-hamburger span {
  display: block;
  position: absolute;
  height: 2.5px;
  width: 100%;
  background: var(--mg-primary);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: .25s ease-in-out;
}
.css-hamburger span:nth-child(1) { top: 0px; }
.css-hamburger span:nth-child(2) { top: 7px; }
.css-hamburger span:nth-child(3) { top: 14px; }

/* CSS Caret / Dropdown Indicator */
.css-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */

.top-bar {
  background-color: var(--mg-primary-dark);
  color: #b5cddf;
  font-size: 11.5px;
  letter-spacing: 0.2px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #b5cddf;
}

.top-bar a:hover {
  color: #ffffff;
}

.top-bar .top-icon {
  color: var(--mg-cyan-accent);
  margin-right: 6px;
  font-size: 13px;
  display: inline-block;
  vertical-align: -1px;
}

.top-bar .top-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
}

/* ==========================================================================
   MAIN NAVIGATION
   ========================================================================== */

.main-navbar {
  background-color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 2px 15px rgba(5, 99, 169, 0.06);
}

.main-navbar .navbar-brand img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.main-navbar .nav-link {
  color: #243545;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 16px !important;
  transition: all 0.2s ease;
}

.main-navbar .nav-link:hover {
  color: var(--mg-primary);
}

/* Active navigation pill (matches Logo Royal Blue) */
.nav-link.nav-pill-active {
  background-color: var(--mg-primary) !important;
  color: #ffffff !important;
  border-radius: 20px;
  font-weight: 600;
  padding: 6px 20px !important;
  box-shadow: 0 3px 10px rgba(5, 99, 169, 0.25);
}

.nav-link.nav-pill-active:hover {
  background-color: var(--mg-brand-hover) !important;
  color: #ffffff !important;
}

.dropdown-menu {
  border-radius: 8px;
  border: 1px solid #dce7f0;
  box-shadow: 0 10px 25px rgba(5, 99, 169, 0.08);
  padding: 8px 0;
}

.dropdown-item {
  font-size: 13.5px;
  padding: 8px 18px;
  color: #243545;
}

.dropdown-item:hover {
  background-color: var(--mg-primary-soft);
  color: var(--mg-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--mg-primary-dark);
  background-image: 
    linear-gradient(90deg, #0e202e 0%, rgba(14, 32, 46, 0.96) 42%, rgba(14, 32, 46, 0.72) 65%, rgba(14, 32, 46, 0.25) 100%),
    url('../images/hero-industrial.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 65px 0 75px;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.text-gold {
  color: var(--mg-cyan-accent);
}

.hero-gold-line {
  width: 48px;
  height: 3.5px;
  background-color: var(--mg-primary);
  border-radius: 2px;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 0.98rem;
  font-weight: 600;
  color: #cce4f7;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 0.88rem;
  color: #9ec5e4;
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* Hero Action Buttons */
.btn-gold {
  background-color: var(--mg-primary);
  color: #ffffff;
  border: 1px solid var(--mg-primary);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(5, 99, 169, 0.3);
}

.btn-gold:hover {
  background-color: var(--mg-brand-hover);
  border-color: var(--mg-brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-hero-outline {
  background-color: rgba(5, 99, 169, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 13.5px;
  padding: 9px 22px;
  transition: all 0.25s ease;
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
}

/* ==========================================================================
   STATS & TRUST STRIP (Ice Surface with Subtle Industrial Texture)
   ========================================================================== */

.stats-strip {
  position: relative;
  background-color: var(--mg-surface-ice);
  background-image: 
    linear-gradient(rgba(244, 248, 251, 0.93), rgba(244, 248, 251, 0.93)),
    url('../images/bg-engineering.jpg');
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--mg-border-ice);
  border-bottom: 1px solid var(--mg-border-ice);
  padding: 22px 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  font-size: 26px;
  color: var(--mg-primary);
  line-height: 1;
  display: inline-block;
}

.stat-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mg-primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 11.5px;
  color: var(--mg-text-muted);
  font-weight: 500;
}

.strip-divider {
  width: 1px;
  height: 32px;
  background-color: var(--mg-border-ice);
}

.line-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mg-primary-dark);
  white-space: nowrap;
}

.line-item .line-icon {
  font-size: 20px;
  color: var(--mg-primary);
  display: inline-block;
}

/* ==========================================================================
   SECTION COMMON ELEMENTS
   ========================================================================== */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.section-tag .tag-bar {
  display: inline-block;
  width: 22px;
  height: 3px;
  background-color: var(--mg-primary);
  border-radius: 2px;
}

.section-tag .tag-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--mg-primary);
  border-radius: 50%;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--mg-primary-dark);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.section-subtitle-green {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mg-primary);
  margin-bottom: 14px;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */

.about-section {
  position: relative;
  background-color: #ffffff;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 251, 0.92) 50%, rgba(255, 255, 255, 0.97) 100%),
    url('../images/bg-factory-ambient.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 0 50px;
}

.about-img-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(5, 99, 169, 0.1);
  height: 100%;
  min-height: 240px;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  font-size: 13px;
  color: var(--mg-text-muted);
  line-height: 1.6;
}

/* Company Profile Card */
.company-profile-card {
  background-color: #ffffff;
  border: 1px solid var(--mg-card-border);
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 4px 15px rgba(5, 99, 169, 0.05);
}

.profile-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mg-primary-dark);
  margin-bottom: 2px;
}

.profile-card-reg {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mg-primary);
  margin-bottom: 16px;
}

.profile-feature {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-feature:last-child {
  margin-bottom: 0;
}

.profile-feature-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mg-primary-dark);
  margin-bottom: 2px;
}

.profile-feature-desc {
  font-size: 11.5px;
  color: var(--mg-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   VISION & MISSION BANNER
   ========================================================================== */

.vision-mission-section {
  padding: 20px 0;
}

.vision-mission-box {
  background: var(--mg-primary-dark);
  background-image: 
    linear-gradient(90deg, rgba(14, 32, 46, 0.4) 0%, rgba(14, 32, 46, 0.94) 28%, #0e202e 100%),
    url('../images/vision-globe.jpg');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 8px;
  padding: 28px 35px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(14, 32, 46, 0.2);
}

.vm-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.vm-icon-box {
  font-size: 28px;
  color: var(--mg-cyan-accent);
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.vm-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.vm-desc {
  font-size: 12px;
  color: #cce2f2;
  line-height: 1.55;
  margin: 0;
}

.vm-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

/* ==========================================================================
   PRODUCT SOURCING & CATEGORIES
   ========================================================================== */

.products-section {
  position: relative;
  background-color: #f8fafc;
  background-image: 
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(240, 245, 249, 0.92) 50%, rgba(248, 250, 252, 0.97) 100%),
    url('../images/bg-engineering.jpg');
  background-size: cover;
  background-position: center top;
  padding: 55px 0 65px;
}

.products-quote {
  font-size: 13.5px;
  font-weight: 600;
  font-style: italic;
  color: var(--mg-primary);
  text-align: right;
  line-height: 1.4;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--mg-card-border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(5, 99, 169, 0.04);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(5, 99, 169, 0.12);
  border-color: var(--mg-primary);
}

.product-img-wrapper {
  height: 110px;
  background-color: #f2f5f8;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-body {
  padding: 12px 14px 16px;
  flex-grow: 1;
}

.product-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mg-primary-dark);
  margin-bottom: 2px;
}

.product-sub {
  font-size: 11px;
  color: var(--mg-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11.5px;
  color: #405060;
}

.product-list li {
  position: relative;
  padding-left: 10px;
  margin-bottom: 4px;
  line-height: 1.35;
}

.product-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mg-primary);
  font-size: 12px;
}

/* ==========================================================================
   INDUSTRIES WE SERVE (SECTORS)
   ========================================================================== */

.industries-section {
  position: relative;
  background-color: #ffffff;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 246, 250, 0.92) 100%),
    url('../images/bg-factory-ambient.jpg');
  background-size: cover;
  background-position: center bottom;
  padding: 50px 0 65px;
}

.sector-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(5, 99, 169, 0.08);
  transition: all 0.25s ease;
  background-color: var(--mg-primary-dark);
}

.sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 99, 169, 0.18);
}

.sector-thumb {
  height: 100px;
  overflow: hidden;
}

.sector-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sector-card:hover .sector-thumb img {
  transform: scale(1.06);
}

.sector-label {
  background-color: var(--mg-primary-dark);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 7px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   COMMITMENT & CONTACT SECTION
   ========================================================================== */

.commitment-contact-section {
  position: relative;
  background-color: #f7fafd;
  background-image: 
    linear-gradient(180deg, rgba(247, 250, 253, 0.96) 0%, rgba(240, 246, 250, 0.93) 100%),
    url('../images/bg-supply-chain.jpg');
  background-size: cover;
  background-position: center;
  padding: 50px 0 70px;
}

/* Numbered Steps */
.promise-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  width: 22px;
  height: 22px;
  background-color: var(--mg-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(5, 99, 169, 0.25);
}

.step-text {
  font-size: 12.5px;
  color: #314251;
  line-height: 1.4;
}

.step-text strong {
  color: var(--mg-primary-dark);
}

.handshake-img-box {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(5, 99, 169, 0.12);
  width: 160px;
  height: 195px;
  flex-shrink: 0;
}

.handshake-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Side Contact & Form */
.contact-container-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(5, 99, 169, 0.1);
  border: 1px solid var(--mg-card-border);
}

.contact-info-panel {
  position: relative;
  background-color: var(--mg-primary-dark);
  background-image: 
    linear-gradient(135deg, rgba(14, 32, 46, 0.94) 0%, rgba(10, 24, 36, 0.97) 100%),
    url('../images/bg-supply-chain.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 30px 24px;
}

.contact-panel-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--mg-cyan-accent);
  margin-bottom: 4px;
}

.contact-panel-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-panel-desc {
  font-size: 12px;
  color: #bcd5e8;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #e5f1fa;
}

.contact-detail-row a {
  color: #e5f1fa;
}

.contact-detail-row a:hover {
  color: var(--mg-cyan-accent);
}

.contact-detail-icon {
  color: var(--mg-cyan-accent);
  font-size: 15px;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(56, 182, 255, 0.12);
  border: 1px solid rgba(56, 182, 255, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  color: #ffffff;
  margin-top: 15px;
}

/* Contact Form Panel */
.contact-form-panel {
  background-color: #ffffff;
  padding: 24px;
}

.form-label-custom {
  font-size: 11.5px;
  font-weight: 600;
  color: #3b4d5e;
  margin-bottom: 3px;
}

.form-control-custom {
  width: 100%;
  border: 1px solid #d4e1ec;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: #1f2d39;
  transition: border-color 0.2s ease;
  background-color: #f9fbfd;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--mg-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(5, 99, 169, 0.18);
}

/* Pure CSS Captcha Box */
.css-captcha-box {
  background-color: #f9fbfd;
  border: 1px solid #d4e1ec;
  border-radius: 3px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px;
}

.captcha-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #bdcedc;
  border-radius: 2px;
  cursor: pointer;
  background: #ffffff;
  position: relative;
}

.captcha-checkbox.checked::after {
  content: "✔";
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 16px;
  color: var(--mg-primary);
  font-weight: bold;
}

.captcha-text {
  font-size: 12.5px;
  color: #243545;
}

.captcha-logo-badge {
  text-align: center;
  font-size: 9px;
  color: #6a8094;
  line-height: 1.1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  position: relative;
  background-color: var(--mg-primary-deep);
  background-image: 
    linear-gradient(180deg, rgba(14, 32, 46, 0.95) 0%, rgba(10, 24, 36, 0.98) 100%),
    url('../images/bg-factory-ambient.jpg');
  background-size: cover;
  background-position: center bottom;
  color: #b5cddf;
  padding: 55px 0 25px;
  overflow: hidden;
  border-top: 3px solid var(--mg-primary);
}

/* Watermark Decorative Gear on Footer Right */
.footer-watermark-gear {
  position: absolute;
  right: -50px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  border: 24px dashed rgba(5, 99, 169, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.footer-logo img {
  max-height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--mg-cyan-accent);
  font-style: italic;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #9cbcd4;
  margin-bottom: 10px;
}

.footer-reg {
  font-size: 11px;
  color: var(--mg-cyan-accent);
  font-weight: 600;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--mg-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: #b5cddf;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-links .f-icon {
  color: var(--mg-cyan-accent);
  font-size: 13px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: #b5cddf;
}

.footer-contact-item a {
  color: #b5cddf;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-contact-icon {
  color: var(--mg-cyan-accent);
  font-size: 15px;
  margin-top: 3px;
}

/* Copyright Sub-bar */
.copyright-bar {
  background-color: #07131d;
  color: #7997b0;
  font-size: 11.5px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-bar a {
  color: #7997b0;
}

.copyright-bar .slogan-right {
  color: var(--mg-cyan-accent);
  font-style: italic;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .strip-divider {
    display: none;
  }
  .vm-divider {
    display: none;
  }
  .vision-mission-box {
    background-size: cover;
  }
  .handshake-img-box {
    max-width: 100%;
    margin-top: 15px;
  }
  .products-quote {
    text-align: left;
    margin-top: 8px;
    margin-bottom: 18px;
  }
}

@media (max-width: 767.98px) {
  .top-bar {
    text-align: center;
  }
  .top-bar .top-divider {
    display: inline;
  }
  .hero-section {
    padding: 40px 0;
    min-height: auto;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .stat-item {
    justify-content: center;
    margin-bottom: 12px;
  }
  .line-item {
    justify-content: center;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   ADVANCED ANIMATIONS & MICRO-INTERACTIONS (Strict Pure-CSS-and-Raster)
   ========================================================================== */

/* 1. SCROLL-TRIGGERED REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-up {
  transform: translateY(32px);
}

.reveal.reveal-down {
  transform: translateY(-32px);
}

.reveal.reveal-left {
  transform: translateX(-36px);
}

.reveal.reveal-right {
  transform: translateX(36px);
}

.reveal.reveal-zoom {
  transform: scale(0.94);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* 2. HERO ENTRANCE KEYFRAMES */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLineGrow {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 48px;
    opacity: 1;
  }
}

.hero-animate-title {
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

.hero-animate-line {
  animation: heroLineGrow 0.75s ease 0.35s backwards;
}

.hero-animate-sub {
  animation: heroFadeInUp 0.75s ease 0.45s backwards;
}

.hero-animate-tagline {
  animation: heroFadeInUp 0.75s ease 0.55s backwards;
}

.hero-animate-desc {
  animation: heroFadeInUp 0.75s ease 0.65s backwards;
}

.hero-animate-cta {
  animation: heroFadeInUp 0.75s ease 0.75s backwards;
}

/* 3. SUBTLE AMBIENT ROTATING INDUSTRIAL GEARS (Pure CSS - Zero SVG) */
.hero-gear-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-gear-ambient-1 {
  top: -60px;
  right: 6%;
  width: 360px;
  height: 360px;
  border: 22px dashed rgba(255, 255, 255, 0.045);
  animation: rotateContinuous 55s linear infinite;
}

.hero-gear-ambient-2 {
  bottom: -40px;
  right: 28%;
  width: 200px;
  height: 200px;
  border: 14px dashed rgba(56, 182, 255, 0.06);
  animation: rotateCounterContinuous 38s linear infinite;
}

@keyframes rotateContinuous {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterContinuous {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Continuous rotation for footer watermark gear */
.footer-watermark-gear {
  animation: rotateContinuous 45s linear infinite !important;
}

/* 4. BUTTON HOVER SHIMMER & ELEVATION */
.btn-gold,
.btn-hero-outline {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold::after,
.btn-hero-outline::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.btn-gold:hover::after,
.btn-hero-outline:hover::after {
  left: 150%;
  transition: left 0.75s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 99, 169, 0.38) !important;
}

.btn-gold:active,
.btn-hero-outline:active {
  transform: translateY(0) scale(0.97) !important;
}

/* 5. PRODUCT CARDS INTERACTIVE HOVER */
.product-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease !important;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0563A9, #38b6ff);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 32px rgba(5, 99, 169, 0.14) !important;
  border-color: var(--mg-primary) !important;
}

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

.product-card .product-img-wrapper img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08) !important;
}

.product-card:hover .product-title {
  color: var(--mg-primary);
  transition: color 0.25s ease;
}

/* 6. INDUSTRY SECTORS MICRO-ANIMATION */
.sector-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
}

.sector-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 24px rgba(5, 99, 169, 0.22) !important;
}

.sector-card .sector-thumb img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sector-card:hover .sector-thumb img {
  transform: scale(1.1) !important;
}

.sector-card .sector-label {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sector-card:hover .sector-label {
  background-color: var(--mg-primary);
  color: #ffffff;
}

/* 7. STATS & FEATURES HOVER */
.stat-item {
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-number.counting {
  color: var(--mg-primary);
  text-shadow: 0 0 12px rgba(5, 99, 169, 0.25);
}

.profile-feature {
  transition: transform 0.25s ease;
  border-radius: 6px;
  padding: 4px;
}

.profile-feature:hover {
  transform: translateX(4px);
  background-color: rgba(5, 99, 169, 0.03);
}

.profile-feature .icon-badge-teal {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.profile-feature:hover .icon-badge-teal {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 6px 16px rgba(5, 99, 169, 0.35);
}

.promise-step {
  transition: transform 0.25s ease;
}

.promise-step:hover {
  transform: translateX(4px);
}

.promise-step .step-num {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, color 0.25s ease;
}

.promise-step:hover .step-num {
  transform: scale(1.18);
  background-color: var(--mg-cyan-accent);
  color: #0e202e;
}

/* 8. VISION & MISSION FLOATING ICONS */
@keyframes iconFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

.vm-icon-box {
  animation: iconFloat 3.5s ease-in-out infinite alternate;
}

.vision-mission-box {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.vision-mission-box:hover {
  box-shadow: 0 12px 30px rgba(14, 32, 46, 0.3);
}

/* 9. FLOATING BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  background-color: var(--mg-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 16px rgba(5, 99, 169, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background-color: #034b82;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(5, 99, 169, 0.5);
  color: #ffffff;
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* 10. NAVBAR SCROLLED GLASS EFFECT */
.main-navbar {
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.main-navbar.navbar-scrolled {
  padding: 6px 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(5, 99, 169, 0.12);
}

/* 11. ACCESSIBILITY & PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
