/* ==========================================================================
   APJ 3D DESIGN SOLUTIONS — PREMIUM LIGHT THEME STYLE SHEET
   Core Typography: Inter (General), JetBrains Mono (Technical Metadata)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. ROOT CONFIGURATION & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Harmonious Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f5;
  --bg-dark-navy: #040814;
  --bg-dark-navy-alt: #0a1128;
  
  --primary-deep: #1b1564; /* Brand Deep Navy */
  --primary-bright: #1b1564; /* Brand Mid-Blue */
  --accent-cyan: #29abe3; /* Brand Electric Cyan */
  --accent-cyan-text: #147199; /* Darker cyan for text on light backgrounds — meets WCAG AA 4.5:1 (base cyan is 2.62:1 on white); use var(--accent-cyan) as-is for backgrounds/borders/icons and on dark backgrounds */
  --accent-cyan-glow: rgba(31, 168, 223, 0.4);
  
  --text-primary: #1f2937; /* High-contrast Charcoal */
  --text-secondary: #4b5563; /* Medium Grey */
  --text-muted: #646b78; /* Muted Grey — darkened from #8e96a3 for WCAG AA text contrast (was ~2.7:1, now 4.8:1+ on light backgrounds) */
  --text-white: #ffffff;
  
  --border-light: rgba(18, 22, 90, 0.08);
  --border-focus: rgba(31, 168, 223, 0.4);
  
  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #12165A 0%, #103591 50%, #1FA8DF 100%);
  --gradient-blue-strip: linear-gradient(90deg, #12165A 0%, #103591 50%, #1FA8DF 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-card-overlay: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 40%, #ffffff 85%);
  --gradient-card-hud: radial-gradient(circle, rgba(31, 168, 223, 0.05) 0%, rgba(255, 255, 255, 0) 70%);

  /* Spacing System */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* UI Tokens */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "SFMono-Regular", Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;   /* Matches nav bar pill radius */
  --radius-lg: 12px;
  --radius-card: 12px; /* === Standard card/box/CTA radius site-wide ===*/
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 36, 114, 0.05);
  --shadow-lg: 0 16px 48px rgba(26, 36, 114, 0.08);
  --shadow-hud: 0 0 20px rgba(41, 171, 226, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --site-header-height: 96px; /* 24px initial top + 72px initial height */
}

/* --------------------------------------------------------------------------
   1. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  /* removed overflow */ /* FIX: clip instead of hidden to allow position: sticky */
}

/* Enable native smooth scroll only when Lenis is not active (e.g. mobile/tablet) */
html:not(.lenis) {
  scroll-behavior: smooth;
}

/* Lenis smooth scrolling integration */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  zoom: 90%;
  -moz-transform: scale(0.9);
  -moz-transform-origin: top center;
  /* removed overflow */
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* The reset above removes outline unconditionally, which also silently
   removes it for keyboard focus -- with no replacement, someone tabbing
   through any form on the site has zero visual indication of where focus
   currently is (fails WCAG 2.4.7 Focus Visible). :focus-visible restores it
   only for keyboard/programmatic focus, not mouse clicks, so this doesn't
   bring back the "outline flashes on every click" look the original reset
   was presumably written to avoid. */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-cyan, #29abe3);
  outline-offset: 2px;
}

/* Bypass Blocks (WCAG 2.4.1) -- lets keyboard/screen-reader users jump
   past the header, mega-menu, and page-section tabs straight to the
   content instead of tabbing through all of it on every single page. */
.skip-to-content {
  position: absolute;
  top: -60px;
  left: 0;
  z-index: 10000;
  background: var(--primary-deep);
  color: #ffffff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Prevent accidental browser text selection and mobile tap highlight color overlaps on Interactive elements */
a, button, select, input, textarea,
.mobile-drawer,
.mobile-logo-tag, .mobile-acc-trigger, .mobile-l2-title, .mobile-l3-link,
.logo-mark, .logo-mark-accent, .logo-divider, .logo-tag,
.nav-link, .btn, .nav-toggle, .chevron, .mobile-drawer-close {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+/Edge */
  user-select: none;         /* Standard */
  -webkit-tap-highlight-color: transparent; /* Remove default mobile blue click overlay */
}

/* Ensure inputs and textareas remain fully selectable and editable */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* --------------------------------------------------------------------------
   2. REUSABLE UTILITIES & LAYOUTS
   -------------------------------------------------------------------------- */
.container {
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

.section-padding {
  padding: 60px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-bright);
  margin-bottom: var(--space-xs);
  display: inline-block;
  position: relative;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--primary-bright);
  vertical-align: middle;
  margin-right: 12px;
}

.section-h2 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-intro {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.text-center {
  text-align: center;
}

.margin-center {
  margin-left: auto;
  margin-right: auto;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px; /* 8px to match nav bar */
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--primary-bright);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 36, 114, 0.25);
}

.btn-ghost {
  border: 1px solid var(--border-light);
  color: var(--primary-deep);
}

.btn-ghost:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-deep);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--primary-deep) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-nav {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  background-color: var(--primary-deep);
  color: var(--text-white);
}

.btn-nav:hover {
  background-color: var(--primary-bright);
  box-shadow: 0 4px 10px rgba(0, 82, 204, 0.15);
}

/* Hide floating site header and shift it out when mobile drawer is open to prevent curved capsule artifacts sticking out on the side */
body.drawer-open .site-header {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -20px) !important;
}

/* Frosted glass backdrop overlay when drawer is open */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(4, 8, 20, 0.45); /* translucent cool dark navy */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000; /* sits exactly behind the drawer which is 1001 */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

body.drawer-open::after {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open {
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   3. HEADER & MEGA-MENU NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 24px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 auto !important;
  /* Matches .services-subnav's width/max-width exactly so the two floating
     bars always share the same left/right edges. */
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  height: 72px;
  /* Frosted glass applied directly to the element (matches .services-subnav)
     instead of a ::before layer -- backdrop-filter on a ::before of a
     position:fixed element renders inconsistently once the page has many
     other blur layers competing for compositing, leaving the header looking
     fully transparent. */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow:
    0 8px 32px 0 rgba(18, 22, 90, 0.08),
    0 1px 0 0 rgba(255, 255, 255, 0.25) inset;
  z-index: 1000;
  transition: top var(--transition-normal), height var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal), border-radius var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  top: 12px;
  height: 60px;
  border-color: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: 
    0 12px 40px -4px rgba(18, 22, 90, 0.12), 
    0 1px 0 0 rgba(255, 255, 255, 0.25) inset;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* positioning context for centered nav-links */
  padding-left: 2.25rem !important; /* perfectly aligned with 36px header corner curve */
  padding-right: 2.25rem !important;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* Without this, the flexbox treats the logo as compressible (default
     flex-shrink:1) and squeezes it below its specified height whenever the
     nav items don't all fit at full width -- the nav-links row already
     shrinks its own font-size/padding/gaps at several breakpoints, so let
     that absorb tight space instead of the logo. */
  flex-shrink: 0;
}

.brand-logo-img {
  height: 46px;
  display: block;
  object-fit: contain;
  /* Removed brightness/invert filter to preserve colored logo */
  opacity: 0.98;
  mix-blend-mode: multiply;
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  justify-content: center;
  flex: 1;
  gap: 0.6rem;
  height: 100%;
  margin: 0 1.5rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--primary-deep) !important; /* Premium brand navy for high readability */
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.simple-dropdown:hover > .nav-link,
.simple-dropdown.is-active > .nav-link,
.simple-dropdown.page-active > .nav-link,
.nav-item-dropdown.is-active > .nav-link,
.nav-item-dropdown.page-active > .nav-link {
  background-color: var(--primary-deep);
  color: #ffffff !important;
}

/* CAE navigation colour */
a.nav-link[href="#pane-cae"] {
  color: var(--primary-deep) !important;
}
a.nav-link[href="#pane-cae"].active {
  background-color: var(--primary-deep);
  color: #ffffff !important;
}

.dropdown-chevron {
  transition: transform var(--transition-fast);
}

/* Chevron rotates only when the dropdown is actually open via hover */
.nav-item-dropdown.is-active .dropdown-chevron,
.simple-dropdown.is-active .dropdown-chevron,
.simple-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}
/* Page-level active does NOT rotate chevron (dropdown is not open) */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  z-index: 1002;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--primary-deep);
}

.nav-toggle svg {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-fast);
}

.nav-toggle:active svg {
  transform: scale(0.9);
}

.site-header .btn-nav {
  padding: 10px 16px;
  font-size: 0.85rem;
  background-color: var(--primary-deep);
  color: var(--text-white);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.site-header .btn-nav:hover {
  background-color: var(--accent-cyan);
  color: var(--primary-deep);
  box-shadow: 0 4px 12px var(--accent-cyan-glow);
}

/* Desktop Mega Menu Dropdown Setup */
.nav-item-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.mega-menu {
  position: fixed;
  z-index: 999;
  top: 100px; /* 24px header top + 72px header height + 4px gap */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 95vw;
  max-width: 1280px;
  background: rgba(245, 247, 250, 0.75); /* premium light smoky glass */
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--border-light);
  border-radius: 8px; /* match nav bar corner radius */
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  /* Cap the whole panel to the viewport so it can never grow taller than the
     screen. Without this, L1 categories with a lot of L2/L3 links (Automotive
     Benchmarking, Product Benchmarking, etc.) made the menu overflow past the
     bottom of the screen with nothing to scroll it -- while short categories
     fit fine, which is why the dropdown looked scrollable on some pages and
     silently cut off on others. overflow:hidden here clips at the rounded
     corners; the actual scrolling happens in .mega-l1-list and
     .mega-panes-container below, each independently. */
  max-height: calc(100vh - 140px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal), top var(--transition-normal);
  z-index: 999;
}

.site-header.scrolled ~ .mega-menu {
  top: 76px; /* 12px scrolled top + 60px scrolled height + 4px gap */
}

.mega-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 520px;
  max-height: calc(100vh - 180px);
  gap: var(--space-md);
}

/* L1 Items List (Left Side Menu) */
.mega-l1-list {
  border-right: 1px solid var(--border-light);
  padding-right: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Thin custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 22, 90, 0.4) transparent;
}

/* Webkit scrollbar */
.mega-l1-list::-webkit-scrollbar {
  width: 6px;
}
.mega-l1-list::-webkit-scrollbar-track {
  background: transparent;
}
.mega-l1-list::-webkit-scrollbar-thumb {
  background-color: rgba(18, 22, 90, 0.4);
  border-radius: 4px;
}
.mega-l1-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(18, 22, 90, 0.7);
}

.mega-l1-item {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-l1-item::after {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-fast);
  color: var(--primary-bright);
}

.mega-l1-item:hover, .mega-l1-item.active {
  background-color: var(--bg-secondary);
  color: var(--primary-bright);
}

.mega-l1-item:hover::after, .mega-l1-item.active::after {
  opacity: 1;
  transform: translateX(0);
}

/* Right Content Area (Level 2 & 3 content panes) */
.mega-panes-container {
  padding-left: var(--space-sm);
  position: relative;
  height: 100%;
  /* Independent scroll for the active pane's content, so an L1 category with
     many L2/L3 links (e.g. Automotive Benchmarking) scrolls internally
     instead of pushing the menu taller than the viewport. Mirrors
     .mega-l1-list's own scroll on the left so both sides behave the same
     way everywhere the mega-menu appears. Capped in vh (not % of the grid
     row) because .mega-menu-inner's row height is itself content-driven --
     a percentage here would resolve against a moving target. */
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 22, 90, 0.4) transparent;
}

.mega-panes-container::-webkit-scrollbar {
  width: 6px;
}
.mega-panes-container::-webkit-scrollbar-track {
  background: transparent;
}
.mega-panes-container::-webkit-scrollbar-thumb {
  background-color: rgba(18, 22, 90, 0.4);
  border-radius: 4px;
}
.mega-panes-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(18, 22, 90, 0.7);
}

.mega-pane {
  position: absolute;
  top: 0;
  left: var(--space-sm);
  width: calc(100% - var(--space-sm));
  height: 100%;
  /* Clip inactive panes to their own box. All 12 panes exist in the DOM at
     once (only one is shown), sharing .mega-panes-container as their
     absolute-position containing block -- without this, a long inactive
     pane's content (e.g. Automotive/Product Benchmarking) overflows its own
     height:100% box and inflates the *container's* scrollable area even
     while hidden, which is why the dropdown's scroll extent looked wrong/
     unrelated to whichever category was actually open. */
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.mega-pane.active {
  position: relative;
  left: 0;
  width: 100%;
  /* Let this pane's real content height show through so
     .mega-panes-container's scrollbar reflects it accurately. */
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-pane-grid {
  columns: 3 240px;
  column-gap: var(--space-lg);
  height: max-content;
  align-content: start;
}

.mega-l2-section {
  display: flex;
  flex-direction: column;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--space-lg);
  width: 100%;
}

.mega-l2-heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-deep);
  margin-bottom: var(--space-sm);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent-cyan);
  display: inline-block;
  align-self: start;
}

.mega-l3-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-l3-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  display: block;
  position: relative;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  margin-left: -12px; /* Pull left to offset padding and align text with heading */
}

.simple-dropdown-menu .mega-l3-link {
  margin-left: 0; /* Reset margin in simple dropdowns where there is no heading to align with */
}

.mega-l3-link:hover {
  color: var(--accent-cyan-text);
  background: transparent;
  border-color: transparent;
  transform: translateX(4px);
}

.mega-l3-link.active {
  background-color: var(--primary-deep);
  color: #ffffff !important;
  border-color: transparent;
  transform: none;
  font-weight: 700;
  border-radius: 6px;
}

.mega-l3-link.active:hover {
  background-color: var(--primary-deep);
  color: #ffffff !important;
  transform: none;
}

.simple-dropdown-menu .mega-l3-link.active {
  background-color: var(--primary-deep);
  color: #ffffff !important;
  border-radius: 6px;
  font-weight: 700;
}




.mega-pane-promo {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: fit-content;
  max-width: 320px;
}

.promo-title {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 8px;
  font-size: 1rem;
}

.promo-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. MOBILE ACCORDION DRAWER NAVIGATION
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: rgba(245, 247, 250, 0.98); /* premium light smoky glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-light);
  box-shadow: none;
  z-index: 1001;
  transform: translateX(105%);
  transition: transform var(--transition-normal);
  display: none; /* Hidden on desktop viewports by default */
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: -8px 0 32px rgba(18, 22, 90, 0.1);
}

.mobile-drawer-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-drawer-top {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-logo-tag {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
}

.mobile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover, .mobile-drawer-close:focus-visible {
  background-color: var(--primary-deep);
  color: var(--text-white);
  border-color: var(--primary-deep);
  transform: rotate(90deg);
}

.mobile-drawer-close:active {
  transform: scale(0.9) rotate(90deg);
}

.mobile-nav-scroller {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-acc-group {
  border-bottom: 1px solid var(--border-light) !important;
}

.mobile-acc-group a {
  color: var(--text-primary) !important;
}

.mobile-acc-group a:hover {
  color: var(--primary-bright) !important;
}

.mobile-acc-trigger {
  width: calc(100% + 1rem);
  text-align: left;
  padding: 0.85rem 0.5rem;
  margin: 0 -0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast), padding var(--transition-fast);
}

.mobile-acc-trigger:hover, .mobile-acc-trigger:focus-visible {
  color: var(--primary-bright) !important;
  background-color: rgba(26, 36, 114, 0.02);
}

.mobile-acc-trigger:active {
  background-color: rgba(26, 36, 114, 0.05);
}

.mobile-acc-trigger .chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.mobile-acc-group.open .mobile-acc-trigger {
  color: var(--primary-bright) !important;
  background-color: rgba(0, 82, 204, 0.03);
  padding-left: 0.75rem;
}

.mobile-acc-group.open .mobile-acc-trigger .chevron {
  transform: rotate(-135deg) translate(0, 0);
  border-color: var(--primary-bright) !important;
}

.mobile-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding-left: var(--space-sm);
}

.mobile-l2-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-deep);
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
  margin-bottom: 8px;
}

.mobile-l3-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
}

.mobile-l3-links a {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-l3-links a:hover, .mobile-l3-links a:focus-visible {
  color: var(--primary-bright) !important;
  background-color: rgba(0, 82, 204, 0.03);
  padding-left: 12px;
}

.mobile-l3-links a:active {
  background-color: rgba(0, 82, 204, 0.06);
}

/* --------------------------------------------------------------------------
   5. HERO & CREDIBILITY BAND
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--site-header-height) + 40px);
  padding-bottom: 50px;
  width: 100%;
  aspect-ratio: 21 / 9; /* Sleek widescreen aspect ratio */
  height: auto;
  display: flex;
  align-items: center;
  background-color: #000B1E;
  color: #ffffff;
  overflow: hidden;
}

/* 14" laptop fix ONLY (769px-1366px): the fixed 21/9 aspect-ratio above
   sizes hero height purely from width, e.g. ~549px at 1280px wide. Longer
   hero headings/paragraphs need more room than that, and since content is
   vertically centered (align-items: center), the overflow gets clipped
   top (badge/heading hidden behind the navbar) and bottom (CTA row
   disappears). Desktop widths above 1366px already compute enough height
   from the aspect-ratio and must stay untouched; mobile below 769px has
   its own separate reset already. This band drops the aspect-ratio and
   lets the box grow to fit its content instead, anchored to the top so
   nothing can overflow off either edge. */
@media (min-width: 769px) and (max-width: 1366px) {
  section.hero,
  section[class*="hero"]:not(.hero-carousel-section),
  .hero-section,
  [id="hero"],
  .hero {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 640px !important;
    align-items: flex-start !important;
    padding-top: calc(var(--site-header-height, 96px) + 60px) !important;
    padding-bottom: 60px !important;
  }

  body:has(#services-subnav) section.hero,
  body:has(.services-subnav) section.hero,
  body:has(#services-subnav) [id="hero"],
  body:has(.services-subnav) [id="hero"] {
    padding-top: calc(var(--site-header-height, 96px) + 90px) !important;
  }
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115%; /* taller to clip the bottom AI watermark */
  background-image: url('../images/hero_image.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right 0px top -140px;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Soft dark gradient that makes white text highly readable across the complete background */
  background: linear-gradient(
    90deg,
    rgba(0, 11, 30, 0.85) 0%,
    rgba(0, 11, 30, 0.5) 45%,
    rgba(0, 11, 30, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  
  /* Perfectly align with the APJ 3D logo in the main header */
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

#hero .hero-left-column,
.hero .hero-left-column {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#hero .hero-content,
#hero .container,
.hero .container,
.hero-content {
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.hero-left-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background-color: #29abe3;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.65rem; /* Reduced by 1 point */
  font-weight: 700;
  color: #1b1564;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 127, 255, 0.25);
}

.hero-h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.2vw, 3.4rem); /* Reduced proportionally */
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: left;
}

.hero-h1-underline {
  width: 60px;
  height: 3px;
  background-color: #007FFF;
  margin-bottom: 24px;
  border-radius: 1.5px;
}

.hero-subhead {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem); /* Reduced by 1 point */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 540px;
  text-align: left;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-sm);
  width: 100%;
}

.hero-ctas .btn {
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
}

.hero-ctas .btn-primary {
  background-color: #29abe3;
  color: #1b1564;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 127, 255, 0.35);
}

.hero-ctas .btn-primary:hover {
  background-color: #1b1564;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 127, 255, 0.5);
}

.hero-ctas .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background-color: transparent;
}

.hero-ctas .btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hero-scroll-hint:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(41, 171, 226, 0.3);
}

.scroll-arrow {
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-2px); }
}
/* Credibility Band below Hero — Continuous Ticker */
.cred-band {
  background: linear-gradient(135deg, #000B1E 0%, #05122b 50%, #0a1a3a 100%);
  border-top: 1px solid rgba(41, 171, 226, 0.15);
  border-bottom: 1px solid rgba(41, 171, 226, 0.15);
  padding: 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Ticker track wrapper */
.cred-ticker-wrap {
  display: flex;
  width: max-content;
  animation: cred-scroll 28s linear infinite;
}

.cred-ticker-wrap:hover {
  animation-play-state: paused;
}

@keyframes cred-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* One copy of the items list (duplicated in HTML for seamless loop) */
.cred-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 1.85rem 0;
  flex-shrink: 0;
}

.cred-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0 2.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.cred-item strong {
  color: #1b1564;
  font-weight: 700;
}

.cred-item svg {
  color: #1b1564;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Dot separator between items */
.cred-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: rgba(41, 171, 226, 0.5);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Premium Credibility Banner Grid */
.cred-banner-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #020612 0%, #050d22 100%);
  border-top: 1px solid rgba(31, 168, 223, 0.15);
  border-bottom: 1px solid rgba(31, 168, 223, 0.15);
  position: relative;
  z-index: 10;
}

.cred-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cred-banner-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cred-banner-item:hover {
  transform: translateY(-4px);
  background: rgba(31, 168, 223, 0.04);
  border-color: rgba(31, 168, 223, 0.25);
  box-shadow: 0 8px 30px rgba(31, 168, 223, 0.1);
}

.cred-banner-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(31, 168, 223, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.cred-banner-item:hover .cred-banner-icon-box {
  background: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.cred-banner-icon-box svg {
  width: 20px;
  height: 20px;
}

.cred-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-banner-val {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cred-banner-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* Responsive Credibility Banner */
@media (max-width: 1024px) {
  .cred-banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .cred-banner-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cred-banner-section {
    padding: 3rem 0;
  }
}


/* --------------------------------------------------------------------------
   6. POSITIONING SECTION (PROBLEM STATEMENT)
   -------------------------------------------------------------------------- */
.positioning {
  padding: var(--space-xl) 0;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.positioning .container {
  position: relative;
  z-index: 2;
}

.positioning, .technology, .deliverables, .workflow, .industries {
  position: relative;
  overflow: hidden;
}

.positioning .container,
.technology .container,
.deliverables .container,
.workflow .container,
.industries .container {
  position: relative;
  z-index: 2;
}

.side-sweep {
  display: none !important;
}

.positioning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: stretch;
}

.pos-accent-line {
  width: 80px;
  height: 4px;
  background: var(--gradient-blue);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.pos-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.pos-highlights {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-hl {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-deep);
}

.pos-hl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(41, 171, 226, 0.1);
  border-radius: 50%;
  color: var(--accent-cyan-text);
  font-size: 0.75rem;
}



.pos-stat:hover {
  border-color: var(--primary-bright);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pos-stat-val {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--primary-deep);
  line-height: 1.1;
  margin-bottom: 4px;
}

.pos-stat-unit {
  font-size: 1rem;
  color: var(--accent-cyan-text);
  margin-left: 2px;
}

.pos-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.pos-stat-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.pos-case-note {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--primary-bright);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md);
}

.case-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-deep);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-note-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. METROLOGY FLEET (ZEISS & CREAFORM CARDS)
   -------------------------------------------------------------------------- */
.technology {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.tech-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan);
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-sm);
}

.tech-badge-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-bright);
}

.tech-badge-acc {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan-text);
  text-transform: uppercase;
}

.tech-brand {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tech-h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: var(--space-xs);
}

.tech-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.tech-specs {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-spec {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.spec-k {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-v {
  color: var(--primary-deep);
  font-weight: 700;
  font-family: var(--font-mono);
}

.tech-card-featured {
  background-color: var(--bg-primary);
  border: 2px solid var(--primary-bright);
  position: relative;
}

.tech-card-featured::before {
  content: 'FLAGSHIP';
  position: absolute;
  top: -10px;
  right: 15px;
  background-color: var(--primary-bright);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   8. EIGHT INTERACTIVE SERVICES CARDS (PREMIUM HYBRID THEME)
   -------------------------------------------------------------------------- */
.services {
  padding: 90px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

#services, 
#about, 
#technology, 
#deliverables, 
#industries, 
#comparison, 
#faq, 
#contact, 
#careers, 
#investors,
section[id] {
  scroll-margin-top: 140px;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Base Interactive Card Setup */
.svc-interactive-card {
  background: #ffffff;
  border: 1px solid rgba(16, 53, 145, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.svc-interactive-card:hover {
  transform: translateY(-8px);
  border-color: rgba(41, 171, 226, 0.6);
  box-shadow: 0 20px 40px rgba(16, 53, 145, 0.12), 0 0 24px rgba(41, 171, 226, 0.15);
}

.card-visual-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #040814;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  filter: contrast(1.05);
}

.svc-interactive-card:hover .card-img {
  transform: scale(1.08);
  opacity: 0.75;
}

/* Card Domain Badge (top left) */
.card-domain-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 14;
  background: rgba(4, 8, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(41, 171, 226, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Metrology HUD overlay */
.card-metrology-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  z-index: 10;
  background-image: radial-gradient(circle, rgba(31, 168, 223, 0.08) 0%, rgba(4, 8, 20, 0.4) 100%);
}

.svc-interactive-card:hover .card-metrology-hud {
  opacity: 1;
  visibility: visible;
}

.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-cyan);
  border-style: solid;
  border-width: 0;
}

.hud-corner.top-left { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.top-right { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bottom-left { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.bottom-right { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

.hud-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(41, 171, 226, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hud-crosshair::before, .hud-crosshair::after {
  content: '';
  position: absolute;
  background-color: var(--accent-cyan);
}

.hud-crosshair::before { top: 50%; left: -6px; width: 36px; height: 1px; transform: translateY(-50%); }
.hud-crosshair::after { left: 50%; top: -6px; height: 36px; width: 1px; transform: translateX(-50%); }

.hud-coordinates {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  background: rgba(4, 8, 20, 0.7);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(41, 171, 226, 0.3);
  text-shadow: 0 0 5px rgba(41,171,226,0.6);
  letter-spacing: 0.02em;
}

/* Laser Scanner Sweep Line */
.laser-scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
  z-index: 12;
}

.svc-interactive-card:hover .laser-scanner-beam {
  opacity: 1;
  animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* Card Content Area - Clean, High Readability White Box */
.card-content-area {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
  position: relative;
  z-index: 5;
}

.card-content-area .card-title {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.card-content-area .card-title a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.svc-interactive-card:hover .card-content-area .card-title a {
  color: #103591;
}

.card-detail-desc {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

/* Capability Pills */
.card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  list-style: none;
  padding: 0;
}

.card-tag-pill {
  font-size: 0.74rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.svc-interactive-card:hover .card-tag-pill {
  background: rgba(31, 168, 223, 0.08);
  border-color: rgba(31, 168, 223, 0.25);
  color: #0f172a;
}

/* Dedicated Explore CTA Button */
.card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: rgba(31, 168, 223, 0.08);
  color: #103591;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(31, 168, 223, 0.25);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.card-action-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.svc-interactive-card:hover .card-action-btn {
  background: linear-gradient(135deg, #103591 0%, #1FA8DF 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(31, 168, 223, 0.3);
}

.svc-interactive-card:hover .card-action-btn i {
  transform: translateX(4px);
}

@media (max-width: 1200px) {
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .service-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .card-visual-wrapper {
    height: 180px;
  }
}
/* --------------------------------------------------------------------------
   9. WHAT WE DELIVER SECTION
   -------------------------------------------------------------------------- */
.deliverables {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-secondary);
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.del-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-normal);
}

.del-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-bright);
  box-shadow: var(--shadow-md);
}

.del-icon-wrap {
  width: 44px;
  height: 44px;
  background-color: rgba(0, 82, 204, 0.06);
  color: var(--primary-bright);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.del-h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.del-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.del-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-xs);
}

.fmt-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  background-color: var(--bg-secondary);
  color: var(--primary-deep);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   10. CONTROLLED PROCESS WORKFLOW
   -------------------------------------------------------------------------- */
.workflow {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-primary);
}

.workflow-h2-light {
  color: var(--primary-deep);
}

.wf-intro-light {
  color: var(--text-secondary);
}

.wf-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
}

.wf-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  align-items: center;
  transition: all var(--transition-normal);
}

.wf-step:hover {
  background-color: var(--bg-primary);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.wf-step-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(26, 36, 114, 0.15);
  line-height: 1;
}

.wf-step:hover .wf-step-num {
  color: var(--accent-cyan);
}

.wf-step-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.wf-step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.wf-step-detail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wf-connector {
  position: absolute;
  left: 39px;
  bottom: -24px;
  width: 2px;
  height: 24px;
  background-color: var(--border-light);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   11. SECTOR DEPLOYMENTS
   -------------------------------------------------------------------------- */
.industries {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-secondary);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.ind-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-normal);
}

.ind-card:hover {
  border-color: var(--primary-bright);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.ind-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-sm);
}

.ind-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(41, 171, 226, 0.08);
  color: var(--accent-cyan-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ind-h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.ind-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.ind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ind-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   12. CONTACT / PREMIUM BLUE GRADIENT CTA STRIP
   -------------------------------------------------------------------------- */
.blue-cta-strip-section {
  background: var(--bg-secondary);
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xxl);
}

.blue-cta-strip {
  background: var(--gradient-blue-strip);
  border-radius: var(--radius-md);
  padding: 2.5rem var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  color: var(--text-white);
  box-shadow: 0 10px 30px rgba(0, 82, 204, 0.15);
}

.strip-left {
  flex: 1;
}

.strip-title {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-xs);
  color: var(--text-white);
}

.strip-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.strip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.strip-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-strip-white {
  background-color: var(--bg-primary);
  color: var(--primary-bright);
  font-size: 0.78rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 800;
}

.btn-strip-white:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.btn-strip-trans {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-white);
  font-size: 0.78rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-strip-trans:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.strip-locations {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   14. APJ3D PREMIUM PROPORTIONED & BALANCED ENGINEERING FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border-top: 1px solid #e2e8f0;
  padding: 68px 0 0 0;
  overflow: hidden;
  z-index: 5;
}

/* No Grid Overlay on Pure White Footer */
.footer-grid-overlay,
.footer-mesh-texture,
.footer-wave-sweep,
.footer-particles {
  display: none !important;
}

/* Edge-to-Edge Corner-to-Corner Container */
.footer-container {
  width: calc(100% - 64px);
  max-width: 1760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Modern Uncluttered 5-Column Enterprise Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.15fr 1.15fr 1.05fr 1.25fr;
  gap: 40px;
  padding-bottom: 8px;
  align-items: stretch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Aligned Column Header for Perfect Baseline */
.footer-col-header {
  height: 48px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.footer-col-label {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 900 !important;
  color: #0f174a !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2.5px solid rgba(27, 21, 100, 0.12);
  width: 100%;
}

.footer-col-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 54px;
  height: 3.5px;
  background: linear-gradient(90deg, #1b1564 0%, #0096ff 60%, #00f3ff 100%);
  border-radius: 3px;
  box-shadow: 0 1px 6px rgba(0, 150, 255, 0.35);
}

/* Col 1: Brand & Contact */
.brand-col .footer-logo {
  display: flex;
  align-items: center;
}

.footer-tagline {
  font-size: 1.15rem;
  font-weight: 900 !important;
  color: #0f174a !important;
  margin-bottom: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.footer-subtagline {
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569 !important;
  display: block;
  margin-top: 6px;
  line-height: 1.55;
}

.footer-address-block {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(27, 21, 100, 0.12) !important;
  border-left: 4px solid #0096ff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.addr-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 900 !important;
  color: #0f174a !important;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.addr-label i {
  color: #0096ff;
  font-size: 0.88rem;
}

.addr-text {
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a !important;
  line-height: 1.45;
}

.addr-text a {
  color: #0f172a !important;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.addr-text a:hover {
  color: #0096ff !important;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 0;
  gap: 10px;
}

.contact-link-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a !important;
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.3;
}

.contact-link-item span {
  color: #0f172a !important;
  transition: color var(--transition-fast);
}

.contact-link-item i {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 150, 255, 0.12);
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-link-item:hover {
  transform: translateX(3px);
}

.contact-link-item:hover span {
  color: #0f174a !important;
}

.contact-link-item:hover i {
  background: #0f174a;
  color: #ffffff;
}

/* Single-Column Clean Nav Lists */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.footer-nav-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1.4;
  transition: all var(--transition-fast);
}

.footer-nav-list a span {
  color: #0f172a !important;
  transition: color var(--transition-fast);
}

.footer-nav-list a i {
  font-size: 0.74rem;
  color: #0096ff !important;
  font-weight: 900;
  opacity: 0.95;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-nav-list a:hover {
  transform: translateX(4px);
}

.footer-nav-list a:hover span {
  color: #0f174a !important;
}

.footer-nav-list a:hover i {
  color: #0f174a !important;
  transform: translateX(2px);
}

.footer-nav-list a.highlight-link-quote,
.footer-nav-list a.highlight-link-quote span,
.highlight-link-quote,
.highlight-link-quote span {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

.footer-nav-list a.highlight-link-quote i,
.highlight-link-quote i {
  color: #0284c7 !important;
  font-size: 0.95rem !important;
}

.footer-nav-list a.highlight-link-quote:hover,
.footer-nav-list a.highlight-link-quote:hover span,
.footer-nav-list a.highlight-link-quote:hover i {
  color: #0f174a !important;
}

.footer-nav-list a.highlight-link-wa,
.footer-nav-list a.highlight-link-wa span,
.highlight-link-wa,
.highlight-link-wa span {
  color: #16a34a !important;
  font-weight: 800 !important;
}

.footer-nav-list a.highlight-link-wa i,
.highlight-link-wa i {
  color: #25D366 !important;
  font-size: 1.05rem !important;
}

.footer-nav-list a.highlight-link-wa:hover,
.footer-nav-list a.highlight-link-wa:hover span,
.footer-nav-list a.highlight-link-wa:hover i {
  color: #15803d !important;
}

/* Seamless Strategic Locations & Official Channels Utility Strip */
.footer-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(27, 21, 100, 0.08);
  border-bottom: 1px solid rgba(27, 21, 100, 0.08);
}

.utility-locations-group,
.utility-social-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-bar-label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f174a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.utility-bar-label i {
  color: #0096ff;
  font-size: 0.82rem;
}

.utility-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.utility-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(27, 21, 100, 0.14);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.utility-loc-pill:hover {
  background: #ffffff;
  border-color: #0096ff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 150, 255, 0.2);
}

.utility-loc-pill.hq-pill {
  border-color: #0f174a;
  background: linear-gradient(135deg, rgba(27, 21, 100, 0.03) 0%, rgba(0, 150, 255, 0.07) 100%);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0096ff;
  box-shadow: 0 0 5px rgba(0, 150, 255, 0.7);
  flex-shrink: 0;
}

.pill-dot.hq-dot {
  background: #0f174a;
  box-shadow: 0 0 5px rgba(15, 23, 74, 0.6);
}

.pill-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f174a;
  letter-spacing: 0.02em;
}

.pill-sub {
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
  padding-left: 8px;
  border-left: 1.5px solid rgba(27, 21, 100, 0.15);
}

.pill-arrow {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-left: 2px;
  transition: all 0.2s ease;
}

.utility-loc-pill:hover .pill-arrow {
  color: #0096ff;
  transform: translate(1.5px, -1.5px);
}

/* Social Icon Buttons in Utility Bar */
.utility-social-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(27, 21, 100, 0.14);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f174a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.utility-social-btn svg {
  display: block;
  width: 15px;
  height: 15px;
}

.utility-social-btn.linkedin-btn:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.35);
  transform: translateY(-3px);
}

.utility-social-btn.instagram-btn:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
  border-color: #d6249f;
  box-shadow: 0 4px 16px rgba(214, 36, 159, 0.4);
  transform: translateY(-3px);
}

.utility-social-btn.youtube-btn:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.35);
  transform: translateY(-3px);
}

.utility-social-btn.x-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.utility-social-btn.facebook-btn:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.35);
  transform: translateY(-3px);
}

/* Col 5: India Map in the Corner */
.presence-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.presence-container {
  width: 100%;
  max-width: 250px;
  position: relative;
  margin: 0 auto;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.presence-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presence-base-visual {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.presence-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.presence-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: pointer;
}

.node-hq .pin-core {
  width: 8px;
  height: 8px;
  background: #00f3ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f3ff, 0 0 16px rgba(0, 243, 255, 0.8);
  border: 1.5px solid #ffffff;
  position: relative;
  z-index: 5;
}

.node-hq .pin-pulse-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid rgba(0, 243, 255, 0.45);
  border-radius: 50%;
  animation: hqPulseOuter 2.5s infinite ease-out;
  pointer-events: none;
}

.node-hq .pin-pulse-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: rgba(0, 243, 255, 0.25);
  border: 1px solid rgba(0, 243, 255, 0.6);
  border-radius: 50%;
  animation: hqPulseInner 1.8s infinite ease-out;
  pointer-events: none;
}

@keyframes hqPulseOuter {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@keyframes hqPulseInner {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.node-secondary .pin-core-secondary {
  width: 6px;
  height: 6px;
  background: #0096ff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 150, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 5;
}

.node-secondary .pin-pulse-secondary {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: rgba(0, 150, 255, 0.2);
  border: 1px solid rgba(0, 150, 255, 0.45);
  border-radius: 50%;
  animation: nodePulse 3s infinite ease-out;
  pointer-events: none;
}

@keyframes nodePulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.pin-tooltip {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: #1b1564;
  border: 1px solid rgba(41, 171, 227, 0.4);
  padding: 3px 7px;
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
  pointer-events: none;
}

.node-hq .pin-tooltip {
  border-color: #29abe3;
  color: #00f3ff;
  opacity: 1;
}

.pin-tooltip.tooltip-right {
  left: 12px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.pin-tooltip.tooltip-left {
  right: 12px;
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.conn-path {
  stroke-dasharray: 6, 6;
  animation: strokeDashMove 30s linear infinite;
}

@keyframes strokeDashMove {
  to { stroke-dashoffset: -1000; }
}

.pan-india-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.pan-india-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1b1564 0%, #103591 100%);
  border: 1px solid #1b1564;
  padding: 7px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(27, 21, 100, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pan-india-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 21, 100, 0.28);
}

.pan-india-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: #00f3ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #00f3ff;
  animation: badgeDotPulse 1.8s infinite ease-in-out;
}

@keyframes badgeDotPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

.pan-india-badge .badge-text {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.08em;
}

.presence-tagline {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.45;
  margin-top: auto;
  margin-bottom: 0;
  text-align: center;
}

/* Generous Footer Bottom Strip */
.footer-bottom {
  position: relative;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 22px 0;
  z-index: 2;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-text {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-link {
  font-size: 0.88rem;
  color: #1b1564;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: #29abe3;
}

/* Footer Responsive Breakpoints */
@media (max-width: 1400px) {
  .footer-container {
    width: calc(100% - 48px);
  }
  .footer-main-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.15fr;
    gap: 28px;
  }
}

@media (max-width: 1200px) {
  .footer-deck-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 1100px) {
  .footer-container {
    width: calc(100% - 36px);
  }
  .footer-main-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px 28px;
  }
  .deck-hubs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-container {
    width: calc(100% - 32px);
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .deck-hubs-grid {
    grid-template-columns: 1fr;
  }
  .deck-social-grid {
    grid-template-columns: 1fr 1fr;
  }
  .presence-container {
    margin: 0;
  }
  .presence-tagline {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .footer-container {
    width: calc(100% - 24px);
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .deck-social-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE MEDIA BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Large Desktop */
@media (max-width: 1366px) {
  /* Removed burger hide */
  /* Removed nav-toggle flex */
  .mobile-drawer {
    display: block !important;
  }
}

@media (max-width: 1200px) {
  .service-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (Landscape / Portrait) */
@media (max-width: 991px) {
  :root {
    --site-header-height: 76px; /* 16px top + 60px height */
  }
  
  .site-header {
    top: 16px;
    width: calc(100% - 32px);
    height: 60px;
    border-radius: 8px;
    background: rgba(210, 215, 225, 0.72);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 
      0 8px 32px 0 rgba(18, 22, 90, 0.08), 
      0 1px 0 0 rgba(255, 255, 255, 0.25) inset;
  }
  
  .site-header.scrolled {
    top: 8px;
    height: 54px;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 
      0 12px 40px -4px rgba(18, 22, 90, 0.12), 
      0 1px 0 0 rgba(255, 255, 255, 0.25) inset;
  }

  .brand-logo-img {
    height: 32px !important;
    width: auto !important;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
  }

  .nav-inner {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  /* Removed burger hide */
  
  /* Removed nav-toggle flex */
  
  .positioning-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blue-cta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .strip-right {
    align-items: flex-start;
    width: 100%;
  }
  
  .strip-buttons {
    width: 100%;
  }
  
  .btn-strip-white, .btn-strip-trans {
    flex: 1;
    text-align: center;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .hero-left-column {
    max-width: 100%;
  }

  .hero {
    aspect-ratio: auto;
    height: auto;
    min-height: 480px;
  }

  .hero-bg-overlay {
    background: linear-gradient(180deg, 
      rgba(0, 11, 30, 0.9) 0%, 
      rgba(0, 11, 30, 0.8) 50%, 
      rgba(0, 11, 30, 0.95) 100%
    );
  }
    .mobile-drawer {
    display: block;
  }
}
.positioning-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--space-md);
}

.pos-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: 0;
  flex-grow: 1;
}

.pos-stat {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.dark-mode .cookie-banner {
  background-color: var(--bg-dark-navy);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cookie-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cookie-icon {
  font-size: 24px;
  color: var(--accent-cyan-text);
  background-color: rgba(31, 168, 223, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-text .cookie-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

body.dark-mode .cookie-text .cookie-title {
  color: #fff;
}

.cookie-text p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

body.dark-mode .cookie-text p {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-text a {
  color: var(--accent-cyan-text);
  text-decoration: none;
  font-weight: 500;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.cookie-decline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

body.dark-mode .cookie-decline {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.cookie-decline:hover {
  background-color: var(--bg-tertiary);
}

body.dark-mode .cookie-decline:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cookie-accept {
  background-color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  color: #fff;
}

.cookie-accept:hover {
  background-color: var(--primary-bright);
  border-color: var(--primary-bright);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px;
  }
}

/* Chatbot Toggle Button */
.chatbot-toggle {
  position: fixed;
  bottom: 160px; /* Above WhatsApp */
  right: 30px;
  width: 55px;
  height: 55px;
  background-color: var(--accent-cyan);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(31, 168, 223, 0.4);
}

.chatbot-toggle .tooltip {
  position: absolute;
  right: 70px;
  background-color: rgba(0, 11, 30, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-toggle:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Chatbot Window */
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 95px;
  width: 350px;
  height: 500px;
  background-color: var(--bg-primary); /* Light theme default */
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .chatbot-container {
  background-color: var(--bg-dark-navy);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.chatbot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: 16px 20px;
  background-color: var(--primary-deep);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark-mode .chatbot-header {
  background-color: rgba(26, 35, 90, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.chatbot-title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-title i {
  color: var(--accent-cyan);
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.chatbot-close:hover {
  color: #fff;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-secondary);
}

body.dark-mode .chatbot-messages {
  background-color: rgba(0, 11, 30, 0.4);
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(31, 168, 223, 0.15);
  color: var(--accent-cyan-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.user-msg .msg-avatar {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

body.dark-mode .user-msg .msg-avatar {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.msg-bubble {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

body.dark-mode .msg-bubble {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.user-msg .msg-bubble {
  background-color: var(--accent-cyan);
  color: #fff;
  border-color: var(--accent-cyan);
  border-radius: 12px 0 12px 12px;
}

body.dark-mode .user-msg .msg-bubble {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.chatbot-input-area {
  padding: 16px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
}

body.dark-mode .chatbot-input-area {
  background-color: var(--bg-dark-navy);
  border-top-color: rgba(255, 255, 255, 0.1);
}

#chatbot-input {
  flex: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

body.dark-mode #chatbot-input {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#chatbot-input:focus {
  border-color: var(--accent-cyan);
}

#chatbot-send {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--accent-cyan);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

#chatbot-send:hover {
  background-color: var(--primary-bright);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 95px; /* Above the back-to-top button */
  right: 30px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 70px;
  background-color: rgba(0, 11, 30, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: rgba(0, 11, 30, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(41, 171, 226, 0.4), 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.top-arrow {
  transition: transform 0.3s ease;
}

.back-to-top:hover .top-arrow {
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-xxl: 3.5rem;
  }
  
  .nav-inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  
  .logo-divider, .logo-tag {
    display: none;
  }
  
  .hero {
    aspect-ratio: auto;
    height: auto;
    min-height: auto;
    padding-top: calc(var(--site-header-height) + var(--space-lg));
    padding-bottom: var(--space-xl);
  }
  
  .hero-bg-overlay {
    background: linear-gradient(180deg, 
      rgba(0, 11, 30, 0.95) 0%, 
      rgba(0, 11, 30, 0.85) 60%, 
      rgba(0, 11, 30, 0.98) 100%
    );
  }
  
  .hero-bg-image {
    /* This background image is positioned to sit beside a left-aligned
       text column on desktop (image on the right, text on the left, with
       a gradient fading between them). On mobile the text takes the full
       width too, so the image renders directly behind the heading,
       making it unreadable across ~42 pages that use this hero pattern.
       Repositioning alone isn't enough - fade it down significantly so
       text stays legible while still hinting at the imagery. !important
       is required because ~23 pages set opacity:1 inline on this element,
       which otherwise silently defeats this rule (inline styles beat
       external stylesheet rules of any specificity). */
    opacity: 0.15 !important;
  }
  
  .hero-schematic {
    display: none;
  }
  
  .hero-proof-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .proof-div {
    display: none;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  

  
  .service-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .svc-interactive-card {
    height: 380px;
  }
  
  .pos-stat-grid {
    grid-template-columns: 1fr;
    flex-grow: 0;
  }
  
  .pos-stat {
    height: auto;
    padding: var(--space-md);
  }
  
  .wf-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .wf-connector {
    display: none;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Hero Banner Styles */
.svc-hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Premium Elegant Scroll Reveal Animations */
.js-enabled .reveal-on-scroll {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal-on-scroll.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Premium Elegant Preloader & Seamless Transitions - REMOVED */
#preloader,
.preloader-overlay,
.preloader-hidden .preloader-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 300px;
  width: 90%;
  text-align: center;
}

.preloader-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.preloader-logo {
  width: 80px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(31, 168, 223, 0.3)) brightness(0) invert(1);
  animation: logoPulse 2s ease-in-out infinite;
}

.logo-glow-ring {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #1FA8DF; /* Electric Cyan */
  border-bottom-color: rgba(31, 168, 223, 0.2);
  animation: ringRotate 1.5s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.preloader-progress-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #103591, #1FA8DF);
  box-shadow: 0 0 12px #1FA8DF;
  transition: width 0.3s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.preloader-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #8e96a3;
}

.status-text {
  color: rgba(255, 255, 255, 0.6);
  animation: textPulse 1.5s infinite alternate;
}

.status-percent {
  color: #1b1564;
  font-weight: 600;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 4px rgba(31, 168, 223, 0.2)) brightness(0) invert(1);
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(31, 168, 223, 0.6)) brightness(0) invert(1);
  }
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes textPulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}


/* ==========================================================================
   SERVICES PAGE — SECONDARY IN-PAGE NAVIGATION
   Exact HCLTech pattern:
   • Soft brand-tinted full-width bar
   • Active tab = floating white pill with shadow
   • Tabs evenly distributed across full width
   • No ink-bar, no bottom border, no CTA
   ========================================================================== */

/* ── Outer bar: fixed, travels with the header, floating boxed layout ── */
.services-subnav {
  position: fixed;
  top: 80px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 auto !important;
  z-index: 989;
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;

  /* Match the primary header's background effect with distinct floating box */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* Independent floating box styling with border on all sides */
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px 0 rgba(18, 22, 90, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: top var(--transition-normal), opacity 0.25s ease, visibility 0.25s ease;
  
  /* Hidden by default until scrolled past hero */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── When primary header is in compact scrolled mode (height 60px + top 12px) ── */
body:has(.site-header.scrolled) .services-subnav {
  top: 80px;
}

/* ── Visible state (toggled via JS only when scrolled down) ── */
.services-subnav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Independent floating header styling ── */
body:has(.services-subnav.is-visible) .site-header {
  border-radius: 8px !important;
}

/* ── Scroll-driven Header Hiding: header hides up, subnav glides to top: 16px in perfect unison ── */
.site-header.header-hidden {
  top: -120px !important;
}

body:has(.site-header.header-hidden) .services-subnav {
  top: 16px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* ── Inner row: full-width flex, centred vertically, 6px padding all round ── */
.services-subnav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 56px !important;
  padding: 0 1.5rem !important;
  width: 100% !important;
  max-width: 1380px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

/* ── Tab strip: evenly distributed across the entire subnav bar ── */
.subnav-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  gap: 0.5rem !important;
  padding: 0 !important;
}
.subnav-tabs::-webkit-scrollbar { display: none; }

/* ── Each tab: proportional flex with centered text and matching pill geometry ── */
.subnav-tab {
  flex: 1 1 0 !important;
  max-width: 220px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--primary-deep, #1b1564) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  transition: all 0.18s ease !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
}

/* Hover: dark navy box matching the main nav bar */
.subnav-tab:hover {
  background-color: var(--primary-deep, #1b1564) !important;
  color: #ffffff !important;
}

/* Active: dark navy box matching the main nav bar exactly */
.subnav-tab.is-active,
a[data-subnav-section].is-active {
  background-color: var(--primary-deep, #1b1564) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  height: 38px !important;
  box-shadow: 0 2px 8px rgba(27, 21, 100, 0.2) !important;
}

/* Hide ink-bar (not used in this design) */

.subnav-ink-bar {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 3px 3px 0 0;
    transition: left var(--transition-fast), width var(--transition-fast), background-color var(--transition-fast);
    pointer-events: none;
}


/* Show CTA */
.subnav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .services-subnav { 
    width: calc(100% - 32px) !important;
    max-width: 1380px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
  }
  .services-subnav-inner { 
    height: 52px;
    padding: 0 0.5rem; 
  }
}

@media (max-width: 768px) {
  .services-subnav {
    width: calc(100% - 32px) !important;
    max-width: 1380px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
  }
  .services-subnav-inner { 
    height: 52px; 
    padding: 0 0.25rem; 
  }
  .subnav-tab { 
    font-size: 0.85rem; 
    flex: 0 0 auto; 
    padding: 6px 14px; 
  }
}

@media (max-width: 480px) {
  .subnav-tab { 
    font-size: 0.8rem; 
    padding: 6px 12px; 
  }
}


/* ==========================================================================
   ABOUT US PAGE SPECIFIC STYLES
   ========================================================================== */

/* Brand Red Override for Specific Elements */


/* SECTION 1: HERO */
.about-hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    background: var(--bg-primary);
    overflow: hidden;
}

.about-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 991px) {
    .about-hero-container {
        grid-template-columns: 1fr;
    }
}

.scanner-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}

.scanner-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px 5px var(--accent-cyan-glow);
    z-index: 2;
    animation: scan-sweep 3s ease-in-out infinite alternate;
}

@keyframes scan-sweep {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.cad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(31, 168, 223, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(31, 168, 223, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* COMBINED WHO WE ARE & METRICS */
.metric-card-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent-cyan);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.metric-card-inline:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-deep);
}

.metric-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(0, 168, 222, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.metric-info .metric-number,
.metric-info .metric-value {
    font-size: 1.6rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-deep);
    line-height: 1.1;
}

.metric-info .metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* SECTION 4: NEW TIMELINE SECTION */
.new-timeline-section {
    background-color: var(--bg-secondary);
    font-family: var(--font-primary);
    position: relative;
    z-index: 1;
}

/* Expand the container specifically for the timeline to allow wider cards */
.new-timeline-section .container {
    max-width: 92%; /* Massively stretches the container horizontally */
}

.new-timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-deep);
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(
        0 0, 
        calc(50% + 80px) 0, 
        calc(50% - 80px) 100%, 
        0 100%
    );
}

.timeline-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    height: 450px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.timeline-left {
    width: 50%; /* Exactly half container */
    position: relative;
}

/* Ruler */
.timeline-ruler {
    display: none;
}

.ruler-tick {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.ruler-tick.short { width: 60px; }
.ruler-tick.medium { width: 100px; }
.ruler-tick.long { 
    width: 160px; /* Extended to perfectly bridge the gap to the moved circle */
    background-color: var(--accent-cyan); 
    height: 3px; 
    box-shadow: 0 0 10px rgba(31, 168, 223, 0.6);
}

/* Timeline Decorations */
.timeline-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Hanging APJ3D Tag */
.timeline-hanging-tag {
    position: absolute;
    top: -5px;
    left: 90px;
    width: 200px;
    height: 380px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    border-bottom: 6px solid var(--accent-cyan);
    border-radius: 0 0 100px 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.4), 
        0 0 30px rgba(31, 168, 223, 0.15),
        inset 0 -15px 30px rgba(31, 168, 223, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(120%);
    z-index: 10;
    animation: gentleFloatTag 6s ease-in-out infinite;
}

@keyframes gentleFloatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hanging-tag-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.decor-nodes .decor-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    opacity: 0.5;
}

.decor-nodes .decor-node::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 1px solid rgba(31, 168, 223, 0.3);
    border-radius: 50%;
}

.decor-line-h {
    position: absolute;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 168, 223, 0.15), transparent);
}

.decor-line-v {
    position: absolute;
    top: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(31, 168, 223, 0.15), transparent);
}

/* Years Stack */
.timeline-years {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.timeline-circle {
    position: absolute;
    top: 50%;
    left: auto;
    right: 160px; /* Moved further left into the dark zone */
    transform: translateY(-50%);
    width: 240px;
    height: 240px;
    border: 1px solid rgba(31, 168, 223, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 168, 223, 0.05) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(31, 168, 223, 0.2), inset 0 0 20px rgba(31, 168, 223, 0.1);
    pointer-events: none;
    z-index: 1;
}

.timeline-circle::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: timelineSpin 30s linear infinite;
}

@keyframes timelineSpin {
    100% { transform: rotate(360deg); }
}

.year-list-container {
    position: absolute;
    top: 0;
    left: auto;
    right: 280px; /* Centered perfectly inside the shifted circle (160px + 120px radius) */
    transform: translateX(50%); /* Shift right by half its own width to center align */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the years */
    gap: 50px;
    transition: top 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

.timeline-year {
    font-family: 'Times New Roman', Times, serif;
    font-size: 130px;
    font-weight: 700;
    letter-spacing: -2px;
    color: rgba(255, 255, 255, 0.15);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.4s ease;
    line-height: 1;
    text-align: center;
}

.timeline-year.active {
    font-size: 160px;
    color: var(--accent-cyan);
    opacity: 1;
    text-shadow: 0 0 25px rgba(31, 168, 223, 0.5);
}

.timeline-year:hover {
    color: white;
    opacity: 0.8;
}

/* Right Column */
.timeline-right {
    width: 50%; /* Exactly half container */
    padding: 60px 20px 60px 90px; /* Reduced left padding to gain width */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.milestone-scroll-area {
    min-height: 300px; /* Keep height so it doesn't collapse */
    /* Removed overflow-y: auto to prevent scroll trapping! */
}

.new-milestone-card {
    background: var(--bg-primary);
    padding: 30px 50px; /* Reduced vertical padding to enforce a horizontal shape */
    border-radius: 0; /* Rectangular card */
    width: 100%; /* Fill the newly expanded container perfectly */
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
    border-left: 6px solid var(--accent-cyan);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.5s forwards;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.new-milestone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.new-milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.new-milestone-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.new-milestone-metric {
    font-size: 0.75rem;
    background: rgba(0, 168, 222, 0.1);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-milestone-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--primary-deep);
    margin-bottom: 15px;
    font-weight: 700;
}

.new-milestone-text {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* The Morph Section Container */
.kpit-morph-section {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  
  /* Restored from inline styles */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  min-height: 100vh;
  padding: 75px 4% 25px;
  box-sizing: border-box;
  overflow: visible;
  z-index: 20;
}

/* SECTION 5 & 6 & 9 & 10: CARDS */
.service-card-premium, .feature-card, .blog-card, .location-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.service-card-premium:hover, .feature-card:hover, .blog-card:hover, .location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-deep);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--primary-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.service-card-premium h3, .feature-card h4, .location-card h3 {
    font-size: 1.25rem;
    color: var(--primary-deep);
    margin-bottom: 15px;
}

.service-card-premium p, .feature-card p, .location-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link, .read-more {
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.blog-image {
    height: 200px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.blog-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* SECTION 7: INDUSTRIES WE SERVE */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .industries-grid { grid-template-columns: 1fr; }
}

.industry-card {
    position: relative;
    height: 250px;
    background: var(--bg-dark-navy-alt);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.industry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(4,8,20,0.9), transparent);
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.industry-card:hover {
    border-color: var(--accent-cyan);
}

.industry-card:hover .industry-content {
    background: rgba(4,8,20,0.85);
}

.industry-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.industry-card:hover h3 {
    transform: translateY(-10px);
    color: var(--accent-cyan);
}

.hover-reveal {
    color: rgba(255,255,255,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
    max-height: 0;
    overflow: hidden;
}

.industry-card:hover .hover-reveal {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
}

/* SECTION 8: PAN INDIA COVERAGE */
.pan-india-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 991px) {
    .pan-india-layout { grid-template-columns: 1fr; }
}

.cities-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.cities-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-primary);
    font-weight: 500;
}

.cities-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.map-container-large {
    position: relative;
}

.map-pulse-point {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.map-pulse-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* SECTION 11: FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-deep);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-cyan-text);
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: var(--bg-secondary);
}

.faq-question.active + .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* SECTION 12: FINAL CTA */
.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(4,8,20,0.8), rgba(4,8,20,0.9)), url('../images/hero_image.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 1;
}

.inline-link {
    color: var(--accent-cyan-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.inline-link:hover {
    color: var(--primary-deep);
}

/* ==========================================================================
   GLOBAL DESIGN SYSTEM — BORDER RADIUS STANDARDISATION
   All cards, boxes, buttons and CTAs must use --radius-card (12px)
   This matches the nav bar scrolled pill radius for visual consistency.
   ========================================================================== */

/* --- Cards & Boxes --- */
.svc-interactive-card,
.del-card,
.ind-card,
.tech-card,
.tech-card-featured,
.metric-card-inline,
.new-milestone-card,
.service-card-premium,
.feature-card,
.blog-card,
.location-card,
.industry-card,
.blue-cta-strip,
.pan-india-badge,
.hero-badge,
.svc-hero-badge {
    border-radius: 8px;
}

/* --- Buttons & CTAs --- */
.card-cta-btn,
.btn-strip-white,
.btn-strip-trans,
.btn,
.cta-btn,
[class*="btn-"],
[class*="-btn"] {
    border-radius: var(--radius-card) !important;
}

/* --- Badges & Tags (keep slightly smaller) --- */
.tech-badge,
.tech-badge-acc,
.card-num-tag,
.new-milestone-metric {
    border-radius: 8px;
}


/* Desktop: hover for simple dropdown */
.simple-dropdown-menu .mega-l3-link:hover {
  background-color: var(--primary-deep) !important;
  color: #ffffff !important;
  border-radius: 6px;
  transform: none !important;
  font-weight: 700;
}

/* Mobile drawer — hover state */
.mobile-l3-link:hover,
.mobile-l3-link:focus-visible {
  background-color: rgba(18, 22, 90, 0.07) !important;
  color: var(--primary-bright) !important;
  padding-left: 12px;
}


/* ==========================================================================
   FEA SIMULATION & MOULD FLOW ANALYSIS PAGE
   ========================================================================== */

/* GLOBAL COMPONENT THEME */
:root {
  --fea-dark: #070f20;
  --fea-blue: #103591;
  --fea-accent: #00f3ff;
  --fea-glass: rgba(15, 23, 42, 0.6);
  --fea-border: rgba(255, 255, 255, 0.1);
  --fea-gradient: linear-gradient(135deg, rgba(16, 53, 145, 0.8) 0%, rgba(31, 168, 223, 0.6) 100%);
}

/* SECTION 1: HERO */
.fea-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--fea-dark);
  color: white;
  overflow: hidden;
  padding: 100px 0 60px 0;
}

.fea-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.fea-hero-mesh {
  position: absolute;
  top: -10%; left: -10%; width: 120%; height: 120%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: meshMove 20s linear infinite;
}

@keyframes meshMove {
  0% { transform: perspective(1000px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(1000px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.fea-hero-gradient {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(31, 168, 223, 0.15), transparent 60%);
}

.fea-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fea-hero-visual-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--fea-border);
}

.fea-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.fea-float-label {
  position: absolute;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--fea-accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: floatLabel 4s ease-in-out infinite alternate;
}

.label-1 { top: 15%; left: -5%; animation-delay: 0s; }
.label-2 { top: 75%; left: 5%; animation-delay: 1s; }
.label-3 { top: 25%; right: -5%; animation-delay: 2s; }
.label-4 { bottom: 15%; right: 10%; animation-delay: 0.5s; }

@keyframes floatLabel {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
  .fea-hero-content { grid-template-columns: 1fr; }
  .fea-float-label { display: none; }
}

/* SECTION 2: TIMELINE */
.fea-risk-timeline {
  padding: 100px 0;
  background: var(--bg-light);
  overflow: hidden;
}

.fea-timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.fea-timeline-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}

.fea-timeline-track::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 4px;
  background: #e2e8f0;
  transform: translateY(-50%);
  z-index: 1;
}

.fea-timeline-node {
  position: relative;
  z-index: 2;
  text-align: center;
}

.node-title {
  display: block;
  margin-bottom: 15px;
  font-weight: 700;
  color: #334155;
  font-size: 1.1rem;
}

.node-dot {
  width: 20px; height: 20px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto;
}

.fea-path-without, .fea-path-with {
  position: absolute;
  height: 4px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  font-size: 0.85rem;
  font-weight: 600;
}

.fea-path-without {
  top: 50%; left: 0; width: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 1.5s ease;
  color: #ef4444;
}

.fea-path-with {
  top: 50%; left: 0; width: 60%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 1.5s ease 0.5s;
  color: #10b981;
}

.fea-risk-timeline:hover .fea-path-without,
.fea-risk-timeline:hover .fea-path-with {
  transform: translateY(-50%) scaleX(1);
}

.fea-path-without span { position: absolute; bottom: 15px; right: 0; }
.fea-path-with span { position: absolute; top: 15px; right: 0; }

.fea-timeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fea-timeline-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fea-timeline-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fea-stat-card {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-weight: 600;
  color: var(--primary);
  border-left: 4px solid var(--accent-cyan);
  transition: transform 0.3s;
}

.fea-stat-card:hover { transform: translateY(-5px); }

@media (max-width: 768px) {
  .fea-timeline-content { grid-template-columns: 1fr; }
  .fea-timeline-stats { grid-template-columns: 1fr; }
  .fea-timeline-track { flex-direction: column; align-items: flex-start; gap: 40px; }
  .fea-timeline-track::before, .fea-path-without, .fea-path-with { display: none; }
}

/* SECTION 3: ECOSYSTEM */
.fea-ecosystem {
  padding: 100px 0;
  background: #0f172a;
  color: white;
  overflow: hidden;
}

.fea-orbit-container {
  position: relative;
  height: 600px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fea-orbit-bg-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.fea-orbit-center {
  position: relative;
  z-index: 2;
  background: var(--fea-gradient);
  padding: 30px;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 40px rgba(31, 168, 223, 0.4);
  border: 2px solid rgba(255,255,255,0.2);
}

.fea-orbit-node {
  position: absolute;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3;
  transition: all 0.3s;
  cursor: pointer;
  white-space: nowrap;
}

.fea-orbit-node:hover {
  background: var(--fea-accent);
  color: var(--fea-dark);
  transform: scale(1.1);
}

.node-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 30%; right: 5%; }
.node-3 { bottom: 20%; right: 15%; }
.node-4 { bottom: 20%; left: 15%; }
.node-5 { top: 30%; left: 5%; }

@media (max-width: 768px) {
  .fea-orbit-container { height: auto; flex-direction: column; gap: 20px; padding: 40px 0; }
  .fea-orbit-node { position: static; transform: none !important; width: 100%; text-align: center; }
  .fea-orbit-center { width: 180px; height: 180px; font-size: 1rem; margin-bottom: 30px; }
}

/* SECTION 4: LAB TABS */
.fea-lab { padding: 100px 0; background: var(--bg-body); }
.fea-lab-split { display: flex; gap: 40px; background: white; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid var(--border-light); }
.fea-lab-tabs { flex: 0 0 300px; background: #f8fafc; border-right: 1px solid #e2e8f0; }
.fea-lab-tab { padding: 20px 25px; font-weight: 600; color: #475569; cursor: pointer; border-bottom: 1px solid #e2e8f0; transition: all 0.3s; }
.fea-lab-tab:hover { background: #f1f5f9; }
.fea-lab-tab.active { background: white; color: var(--primary); border-left: 4px solid var(--accent-cyan); }
.fea-lab-content { flex: 1; padding: 40px; }
.fea-lab-panel { display: none; animation: fadeIn 0.5s ease; }
.fea-lab-panel.active { display: block; }
.fea-lab-panel h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary); }
.fea-lab-panel p { font-size: 1.1rem; margin-bottom: 15px; color: #475569; }
.fea-lab-img { width: 100%; max-width: 500px; border-radius: 12px; margin-top: 30px; border: 1px solid #e2e8f0; }

@media (max-width: 768px) { .fea-lab-split { flex-direction: column; } .fea-lab-tabs { flex: none; border-right: none; border-bottom: 1px solid #e2e8f0; display: flex; overflow-x: auto; } .fea-lab-tab { white-space: nowrap; border-bottom: none; border-right: 1px solid #e2e8f0; border-left: none; } .fea-lab-tab.active { border-bottom: 4px solid var(--accent-cyan); border-left: none; } }

/* SECTION 5: WORKFLOW CONVEYOR */
.fea-workflow { padding: 100px 0; background: #f8fafc; }
.fea-conveyor { position: relative; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.fea-conveyor-line { position: absolute; left: 24px; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--primary) 0%, var(--accent-cyan) 100%); border-radius: 2px; }
.fea-step { position: relative; padding-left: 60px; font-size: 1.2rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; min-height: 50px; }
.fea-step::before { content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background: white; border: 4px solid var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px rgba(31, 168, 223, 0.2); transition: all 0.3s; z-index: 2; }
.fea-step:hover::before { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.fea-software-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 30px 60px; }
.fea-software-tags span { background: white; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: #475569; border: 1px solid #cbd5e1; }
.fea-workflow-img { width: 100%; border-radius: 12px; margin-left: 60px; max-width: calc(100% - 60px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* SECTION 6: VAULT */
.fea-vault { padding: 100px 0; background: white; }
.fea-vault-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.fea-vault-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 30px 20px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--primary); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; position: relative; overflow: hidden; }
.fea-vault-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--fea-gradient); opacity: 0; transition: opacity 0.3s; z-index: 1; }
.fea-vault-card span { position: relative; z-index: 2; }
.fea-vault-card:hover { transform: translateY(-10px); color: white; border-color: transparent; }
.fea-vault-card:hover::after { opacity: 1; }
.fea-vault-img { width: 100%; max-width: 800px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }

/* SECTION 7: MATRIX */
.fea-matrix { padding: 100px 0; background: #f1f5f9; position: relative; overflow: hidden; }
.fea-matrix-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fea-matrix-left { position: relative; z-index: 2; }
.fea-matrix-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; z-index: 2; }
.fea-matrix-block { background: white; padding: 40px 20px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 1.2rem; color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; min-height: 150px; border-bottom: 4px solid var(--accent-cyan); }
.fea-matrix-ribbon { margin-top: 60px; padding: 20px; background: white; border-radius: 100px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); position: relative; z-index: 2; border: 1px solid #e2e8f0; }
.fea-matrix-ribbon span { font-weight: 600; color: #64748b; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.fea-matrix-ribbon span::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent-cyan); border-radius: 50%; }

@media (max-width: 991px) { .fea-matrix-split { grid-template-columns: 1fr; } .fea-matrix-ribbon { border-radius: 16px; } }
@media (max-width: 576px) { .fea-matrix-right { grid-template-columns: 1fr; } }

/* SECTION 8: WAR ROOM CTA */
.fea-war-room { position: relative; padding: 120px 0; background: var(--fea-dark); overflow: hidden; }
.fea-war-room-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.2; background-image: radial-gradient(circle at 50% 50%, rgba(31, 168, 223, 0.4), transparent 70%); z-index: 1; }
.fea-war-room-content { position: relative; z-index: 2; }
.fea-war-cards { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 50px; flex-wrap: wrap; }
.fea-war-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 20px 30px; border-radius: 12px; color: white; font-weight: 600; font-size: 1.1rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

@media (max-width: 768px) { .fea-war-cards { flex-direction: column; width: 100%; } .fea-war-card, .fea-war-btn-wrap { width: 100%; text-align: center; } .fea-war-btn-wrap .btn { width: 100%; } }

/* JS SUPPORT FOR TABS */

/* --- GLOBAL RESPONSIVE STYLES --- */

@media (max-width: 1024px) {
  /* Removed burger hide */
  /* Removed nav-toggle flex */
  body:not(.scrolled) .site-header { padding: 15px 0 !important; }
  
  /* Common grid conversions */
  .mega-pane-grid, .grid-container, .features-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 992px) {
  /* Typography */
  .hero-h1, .section-heading, h1, h2 {
    font-size: calc(1.5rem + 2vw) !important;
    line-height: 1.2 !important;
  }
  
  /* Footer - Tablet (2 columns) */
  .footer-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
  }
  .footer-bottom-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 15px !important;
  }
  .footer-legal-links {
    justify-content: center !important;
    flex-wrap: wrap;
  }
  .footer-services-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  /* Footer - Mobile (1 column) */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Extra .nav-col ancestor qualifier for specificity: the universal
     "stack any class containing -grid" rule below also matches this class
     name (nav-col-grid contains "-grid"), forces display:flex, and comes
     later in the file, so a bare .nav-col-grid selector here would lose
     even inside its own narrower breakpoint. */
  .nav-col .nav-col-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Same universal reset also forces any [class*="-grid"] > * child to
     grid-column: 1 / -1 (full-width span, for stacking bento-style
     cards) -- undo that specifically for these three plain link lists so
     they actually sit in the 2 columns set above instead of each one
     spanning both and stacking anyway. */
  .nav-col .nav-col-grid > .nav-subcol {
    grid-column: auto !important;
    width: auto !important;
  }
  .footer-services-grid {
    grid-template-columns: 1fr !important;
  }

  /* General Grid Layouts -> 1 Column */
  .mega-pane-grid,
  .kpit-grid,
  .fea-matrix-split,
  .fea-matrix-right,
  .features-grid,
  .services-grid,
  .content-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* General Flex Layouts -> Column */
  .split-panel,
  .fea-lab-split,
  .content-split {
    flex-direction: column !important;
  }
  
  /* Spacing */
  section, .panel, .site-footer {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  /* Containers */
  .hero-content, .text-content, .image-content {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .hero-container, .hero-content {
    text-align: center !important;
    align-items: center !important;
  }
  .hero-h1, .hero-subhead {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-ctas {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    margin: 5px 0 !important;
  }
  
  .container {
    width: calc(100% - 32px) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  img, canvas, video, iframe {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .presence-wrapper {
    overflow-x: visible;
  }
  .presence-base-visual {
    min-width: auto; 
    width: 100%;
  }
  .presence-container {
    margin: 10px auto 0; /* Center the map */
    max-width: 100%; /* Let it grow slightly if needed, bounded by grid padding */
  }
  
  /* Mobile padding for header */
  .site-header { padding: 10px 0 !important; }
}

@media (max-width: 576px) {
  .hero-h1 {
    font-size: 2rem !important;
  }
  .hero-subhead {
    font-size: 1rem !important;
  }
  section, .panel, .site-footer {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  /* Footer sizing reductions & strict left alignment */
  .footer-inner { gap: 32px !important; }
  .brand-logo-img { height: 32px !important; }

  /* Hosur/Coimbatore pins sit only ~5% apart on the presence map; at this
     width their always-visible tooltips collide. Hide the secondary-node
     tooltips (Chennai, Coimbatore) here and rely on the "Locations:" pill
     list right below the map, which already spells out every city name. */
  .presence-pin.node-secondary .pin-tooltip {
    display: none;
  }
  .footer-tagline, .addr-text, .contact-link-item, .footer-col.nav-col ul li a { font-size: 0.8rem !important; }
  .footer-col-label, .addr-label { font-size: 0.7rem !important; margin-bottom: 8px !important; }
  .office-loc-item { font-size: 0.75rem !important; padding: 6px 10px !important; }
  .connect-icon-link { width: 34px !important; height: 34px !important; }
  
  .footer-address-block, .footer-contact-links {
    text-align: left;
    align-items: flex-start;
  }
  .footer-connect-row {
    justify-content: flex-start;
    gap: 12px;
  }
  .presence-container {
    max-width: 280px !important;
    margin: 10px 0 0 0 !important; /* Left align the map container */
  }
}

/* --- RESPONSIVE FINAL POLISH (MOBILE-FIRST PRINCIPLES) --- */
@media (max-width: 1024px) {
  /* 1. Global Touch Targets & Media Constraints */
  img, video, canvas, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Base Interactive elements touch padding */
  a, button, input, select, textarea {
    min-height: 44px;
  }

  /* Remove 44px min height for extremely generic elements that break */
  .mobile-acc-trigger { min-height: 44px !important; display: flex; align-items: center; justify-content: space-between; }
  .cookie-btn { min-height: 44px !important; }
}

@media (max-width: 1024px) {
  /* Navigation: Slide-in/overlay drawer handled by .mobile-drawer */
}

@media (max-width: 768px) {
  /* 1. HERO SECTION */
  .hero-h1, h1, .section-heading, .typed-cursor, .line-inner {
    font-size: clamp(1.75rem, 6vw, 3.5rem) !important;
    line-height: 1.2 !important;
  }
  
  .hero-actions, .dual-buttons, .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .hero-actions .btn-primary, 
  .hero-actions .btn-secondary,
  .hero-ctas .btn {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
  }

  /* 2. FOOTER */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  .footer-contact-links a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 0 !important;
  }
  
  .presence-base-visual img, .network-map-img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 3. FAQ SECTION */
  .faq-filters, .svc-faq-sidebar, .faq-category-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 15px !important;
    scrollbar-width: none;
  }
  .faq-filters::-webkit-scrollbar, .svc-faq-sidebar::-webkit-scrollbar {
    display: none;
  }
  
  .faq-question, .sia-faq-trigger {
    min-height: 48px !important;
    padding: 12px 16px !important;
    align-items: center;
    display: flex;
  }

  /* 4. FLOATING WIDGETS (Stacked from bottom up) */
  .back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;
  }

  .whatsapp-float {
    bottom: 80px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 28px !important;
    z-index: 9999 !important;
  }
  
  #chat-widget, .chat-widget {
    bottom: 145px !important;
    right: 20px !important;
    z-index: 9998 !important;
  }
  
  .chatbot-toggle {
    bottom: 145px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
  }

  .cookie-banner {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    padding: 15px !important;
    margin: 0 !important;
    z-index: 9997 !important;
  }
  .cookie-content {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .cookie-actions {
    width: 100% !important;
    justify-content: space-between !important;
    margin-top: 15px !important;
  }

  /* 5. GENERAL GRIDS & COMPREHENSIVE RESPONSIVENESS */
  .about-hero-container, .cities-list, .content-grid, .cred-banner-grid, 
  .deliverable-grid, .fea-hero-content, .fea-matrix-right, .fea-matrix-split, 
  .fea-timeline-content, .fea-timeline-stats, .fea-vault-grid, .features-grid, 
  .footer-inner, .grid-container, .industry-grid, .industries-grid, .kpit-grid, 
  .mega-menu-inner, .mega-pane-grid, .portfolio-grid, .pos-stat-grid, 
  .positioning-grid, .service-cards-grid, .services-grid, .svc-grid, .tech-grid, 
  .wf-step, .pan-india-layout, .card-visual-wrapper {
    grid-template-columns: 1fr !important;
  }
  
  /* Prevent Card Text Overflows */
  .card-title, .card-detail-desc, .card, .svc-interactive-card {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    height: auto !important;
    min-height: min-content !important;
  }

  /* Prevent horizontal scrolling on body */
  body {
    overflow-x: hidden !important;
  }
}

/* Master Tablet & Mobile Overrides */
@media (max-width: 991px) {
  .service-cards-grid, .features-grid, .fea-vault-grid, .portfolio-grid, .svc-grid, .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Morph Section Mobile Fix - the pinned WebGL/GSAP scroll story is
     desktop-only (see interactive-home.js), so on mobile this section just
     needs to lay out as a normal static, un-pinned block: the 3D HUD spacer
     is hidden and every stage card is shown stacked instead of crossfaded. */
  .kpit-morph-section {
    height: auto !important;
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
    justify-content: flex-start !important;
  }
  .morph-content-row {
    flex-direction: column !important;
    gap: 16px !important;
    height: auto !important;
    flex: 1 0 auto !important;
    margin-top: 15px;
    justify-content: flex-start !important;
  }
  .morph-showcase-container, .morph-showcase-card {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
    margin-top: 0 !important;
  }
  .morph-visual-spacer {
    display: none !important;
  }
  .morph-stage-content {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 16px !important;
  }
  .morph-stage-content:last-child {
    margin-bottom: 0 !important;
  }

  /* "Who We Work With" partner split hub (about.html) - the inline
     grid-template-columns: 340px 1fr has no mobile fallback, which squeezes
     the right-side detail card into a sliver and creates a huge broken gap. */
  .partner-split-container {
    grid-template-columns: 1fr !important;
  }

  /* Site-wide: several service/benchmarking detail pages define their own
     page-local fixed-pixel-column grids (dashboards, split hubs, meter rows,
     comparison tables) with no mobile fallback, squeezing content into a
     sliver the same way .partner-split-container did. Stack them all. */
  .eq-split-system,
  .holo-hub-system,
  .dive-grid,
  .hub-layout,
  .pipeline-grid,
  .cr-layout,
  .meter-row,
  .dash-layout,
  .dashboard-grid,
  .ind-mesh-grid,
  .bp-grid,
  .mstack-wrap,
  .sub-layout,
  .tb-wrap,
  .orbit-console,
  .matrix-hud,
  .c-row,
  .me-layout,
  .re-projects-interactive-container {
    grid-template-columns: 1fr !important;
  }

  /* "Five Strengths" interactive orbital wheel (about.html) - a 2-column
     fr-based grid (not px, so it slipped past the earlier fixed-grid fix)
     squeezes the 440px circular diagram + absolutely-positioned satellite
     nodes into a ~200px column, scrambling the whole diagram. Stack it. */
  .orbital-layout-container {
    grid-template-columns: 1fr !important;
  }

  /* Site-wide: hundreds of sections across ~90 pages use an ANONYMOUS
     inline two/three-column grid (style="display:grid; grid-template-
     columns: 1fr 1fr; ...") with no class name and no mobile fallback at
     all - so none of the class-based fixes above ever reach them. This
     attribute-selector list catches every distinct fr-column combination
     found in the codebase and stacks them to one column on mobile. */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1.1fr 0.9fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 0.9fr 1.1fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns: 1.15fr 0.85fr"],
  [style*="grid-template-columns: 6fr 4fr"],
  [style*="grid-template-columns: 3fr 2fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 2.5fr 1fr"],
  [style*="grid-template-columns: 1fr 1.8fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 1fr 1.15fr"],
  [style*="grid-template-columns: 1fr 0.9fr"],
  [style*="grid-template-columns: 1.25fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1.3fr"],
  [style*="grid-template-columns: 1.08fr 1.32fr"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns: repeat(6, 1fr)"],
  [style*="grid-template-columns: repeat(7, 1fr)"],
  [style*="grid-template-columns: repeat(8, 1fr)"],
  [style*="grid-template-columns: repeat(12, 1fr)"],
  /* Same list again but WITHOUT the space after the colon - the codebase
     is inconsistent (some inline styles are "property:value", others are
     "property: value") and attribute selectors do literal substring
     matching, so both spacing forms are needed to catch every instance. */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns:1.1fr 0.9fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns:0.9fr 1.1fr"],
  [style*="grid-template-columns:1.2fr 0.8fr"],
  [style*="grid-template-columns:1.15fr 0.85fr"],
  [style*="grid-template-columns:6fr 4fr"],
  [style*="grid-template-columns:3fr 2fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:1fr 1.1fr"],
  [style*="grid-template-columns:2.5fr 1fr"],
  [style*="grid-template-columns:1fr 1.8fr"],
  [style*="grid-template-columns:1fr 1.3fr"],
  [style*="grid-template-columns:1fr 1.15fr"],
  [style*="grid-template-columns:1fr 0.9fr"],
  [style*="grid-template-columns:1.25fr 1fr"],
  [style*="grid-template-columns:1.1fr 1.3fr"],
  [style*="grid-template-columns:1.08fr 1.32fr"],
  [style*="grid-template-columns:repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(5, 1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns:repeat(6, 1fr)"],
  [style*="grid-template-columns:repeat(6,1fr)"],
  [style*="grid-template-columns:repeat(7, 1fr)"],
  [style*="grid-template-columns:repeat(7,1fr)"],
  [style*="grid-template-columns:repeat(8, 1fr)"],
  [style*="grid-template-columns:repeat(8,1fr)"],
  [style*="grid-template-columns:repeat(12, 1fr)"],
  [style*="grid-template-columns:repeat(12,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Site-wide: repeat(auto-fit, minmax(Npx, 1fr)) grids where N is wider
     than a phone's usable width (viewport minus container padding). Grid
     tracks never shrink below the minmax minimum, so these force the whole
     grid (and page) to overflow horizontally on mobile. Anything with a
     210px+ minimum is unsafe at 375-414px viewports once padding is
     subtracted, so collapse those to a plain single column. */
  [style*="minmax(210px"],
  [style*="minmax(220px"],
  [style*="minmax(230px"],
  [style*="minmax(240px"],
  [style*="minmax(250px"],
  [style*="minmax(260px"],
  [style*="minmax(280px"],
  [style*="minmax(300px"],
  [style*="minmax(320px"],
  [style*="minmax(340px"],
  [style*="minmax(350px"],
  [style*="minmax(360px"],
  [style*="minmax(400px"],
  [style*="minmax(440px"],
  [style*="minmax(450px"],
  [style*="minmax(460px"] {
    grid-template-columns: 1fr !important;
  }

  /* cae-npd-integration-services.html: .stats-ribbon is a class-based
     (not inline) 5-column grid; its own page-local media-query override
     mysteriously doesn't take effect even with !important, so fix it here
     in the global sheet instead, which is confirmed reliable. */
  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Catch-all safety net: dozens of pages define inline grids mixing a
     fixed-pixel column with 1fr (e.g. "1fr 420px", "300px 1fr", even
     "250px 400px") in every combination of values - too many distinct
     literal strings to enumerate individually. Any element whose inline
     style contains both "grid-template-columns" and a "px" value gets
     stacked to one column on mobile; harmless for grids that are already
     single-column or handled by a more specific rule above. */
  [style*="grid-template-columns"][style*="px"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Hide non-essential trust badges / collapse state ticker */
  .trust-avatars {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
  }
  .hero-trust {
    flex-direction: column !important;
    text-align: center !important;
  }
  .hero-badge, .ribbon-i {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
  }
}


/* Added by Font Update */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .display-font, .numeric, .stat-value, .value { font-family: 'Outfit', sans-serif !important; }


/* ==========================================================================
   RESPONSIVE SIDE MENU HEADER STYLES
   ========================================================================== */

/* Toggle Button in Header Bar */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dark, #0d1424);
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 1001;
  padding: 0;
}

.nav-toggle:hover, .nav-toggle:focus-visible {
  background: rgba(0, 180, 255, 0.12);
  border-color: rgba(0, 180, 255, 0.4);
  color: #1b1564;
}

.site-header.scrolled .nav-toggle {
  color: #0d1424;
}

@media (max-width: 1024px) {
  .nav-links, .nav-right-actions {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
}

@media (min-width: 1025px) {
  .nav-toggle {
    display: none !important;
  }
  .side-menu-overlay, .side-menu-drawer {
    display: none !important;
  }
}

/* Side Menu Overlay Background */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 25, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  pointer-events: none;
}

.side-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Side Menu Drawer Panel */
.side-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 25vw !important;
  max-width: 25vw !important;
  min-width: 200px !important;
  height: 100vh;
  height: 100dvh;
  background: rgba(11, 17, 30, 0.96);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f0f4f8;
  visibility: hidden;
  pointer-events: none;
}

.side-menu-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
}

/* Side Menu Header */
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.side-menu-logo .side-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.side-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: rgba(240, 244, 248, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.side-menu-close:hover {
  background: transparent;
  border: none;
  color: #00b4ff;
  transform: scale(1.15);
}

/* Side Menu Body Scrollable */
.side-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.side-menu-body::-webkit-scrollbar {
  width: 5px;
}
.side-menu-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Side Accordion Navigation */
.side-acc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-acc-item {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.side-acc-link, .side-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: none;
  color: #f0f4f8;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.side-acc-link:hover, .side-acc-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #1b1564;
}

.side-acc-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(240, 244, 248, 0.5);
  flex-shrink: 0;
}

.side-acc-item.active > .side-acc-trigger .side-acc-chevron {
  transform: rotate(180deg);
  color: #1b1564;
}

.side-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.18);
}

.side-acc-links {
  display: flex;
  flex-direction: column;
  padding: 6px 0 10px 0;
}

.side-acc-links a {
  display: block;
  padding: 10px 18px 10px 24px;
  font-size: 0.92rem;
  color: rgba(240, 244, 248, 0.75);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.side-acc-links a:hover, .side-acc-links a.active {
  color: #1b1564;
  background: rgba(0, 180, 255, 0.08);
  border-left-color: #00b4ff;
  padding-left: 28px;
}

.side-highlight-link {
  font-weight: 700 !important;
  color: #1b1564 !important;
  border-bottom: 1px solid rgba(0, 180, 255, 0.2);
  margin-bottom: 4px;
}

/* Side Menu Footer */
.side-menu-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 20, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.btn-side-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00b4ff 0%, #0066ff 100%);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 180, 255, 0.35);
  transition: all 0.25s ease;
  text-align: center;
}

.btn-side-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 180, 255, 0.5);
}

.btn-side-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f4f8 !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-side-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Body Drawer Lock */
body.side-menu-open {
  overflow: hidden !important;
}


/* ==========================================================================
   FORCE HIGH-VISIBILITY CONTRAST FOR RESPONSIVE SIDE MENU
   ========================================================================== */
.side-menu-drawer {
  background: #0b111e !important;
  color: #ffffff !important;
}

.side-menu-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.side-menu-close {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #ffffff !important;
}

.side-menu-close:hover {
  background: transparent !important;
  color: #00b4ff !important;
  border: none !important;
  transform: scale(1.15) !important;
}

.side-acc-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 4px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.side-acc-link, .side-acc-trigger {
  color: #ffffff !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.side-acc-trigger span {
  color: #ffffff !important;
}

.side-acc-link:hover, .side-acc-trigger:hover {
  background: rgba(0, 180, 255, 0.12) !important;
  color: #1b1564 !important;
}

.side-acc-link:hover span, .side-acc-trigger:hover span {
  color: #1b1564 !important;
}

.side-acc-chevron {
  color: rgba(255, 255, 255, 0.7) !important;
  stroke: rgba(255, 255, 255, 0.7) !important;
}

.side-acc-item.active > .side-acc-trigger .side-acc-chevron {
  color: #1b1564 !important;
  stroke: #00b4ff !important;
}

.side-acc-panel {
  background: rgba(0, 0, 0, 0.25) !important;
}

.side-acc-links a {
  color: rgba(240, 244, 248, 0.85) !important;
  font-size: 0.82rem !important;
  padding: 6px 10px 6px 16px !important;
  display: block !important;
  text-decoration: none !important;
  border-left: 2px solid transparent !important;
  transition: all 0.2s ease !important;
}

.side-acc-links a:hover, .side-acc-links a.active {
  color: #1b1564 !important;
  background: rgba(0, 180, 255, 0.12) !important;
  border-left-color: #00b4ff !important;
}

.side-highlight-link {
  color: #1b1564 !important;
  font-weight: 700 !important;
}

.side-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
}

.side-quick-card {
  padding: 8px 10px !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
}

.side-menu-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(5, 10, 20, 0.85) !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-side-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #00b4ff 0%, #0066ff 100%) !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
}

.btn-side-secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  border-radius: 8px;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
}

.side-menu-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 16px 20px !important;
  display: block !important;
  min-height: 300px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.side-acc-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* CRITICAL FLEXBOX SCROLL FIX */
.side-menu-drawer {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  max-height: 100vh !important;
}

.side-menu-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.side-menu-footer {
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

/* ACCORDION EXPANSION CLIPPING FIX */
.side-acc-panel {
  max-height: 0;
  overflow: hidden !important;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

.side-acc-item.active {
  overflow: visible !important;
}

.side-acc-item.active > .side-acc-panel,
.side-acc-panel.open {
  max-height: 3000px !important;
  overflow: visible !important;
}

.side-acc-links a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   SIDE MENU INTERNAL SCROLLING & CUSTOM SCROLLBARS
   ========================================================================== */
.side-menu-drawer {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

.side-menu-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 10px 12px !important;
}

/* Services & Industries Accordion Panel Internal Scrollbar */
.side-acc-item.active > .side-acc-panel {
  max-height: 55vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Custom Sleek Scrollbars for Side Drawer & Accordion Panels */
.side-menu-body::-webkit-scrollbar,
.side-acc-panel::-webkit-scrollbar {
  width: 5px !important;
}

.side-menu-body::-webkit-scrollbar-track,
.side-acc-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 4px !important;
}

.side-menu-body::-webkit-scrollbar-thumb,
.side-acc-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 255, 0.5) !important;
  border-radius: 4px !important;
}

.side-menu-body::-webkit-scrollbar-thumb:hover,
.side-acc-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 255, 0.9) !important;
}

/* ==========================================================================
   DRAWER OPEN - PREVENT BACKGROUND PAGE SCROLLING & TRAP NAV SCROLL
   ========================================================================== */
body.drawer-open {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
}

.side-menu-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
}

.side-menu-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

.side-acc-panel {
  touch-action: pan-y !important;
}

/* ==========================================================================
   DESKTOP HEADER SIZING (>= 992px) — single source of truth
   Replaces ~8 accumulated, conflicting !important blocks that each redefined
   overlapping properties (site-header height, nav-inner padding, nav-link
   font-size/padding, btn-nav sizing, etc). Because every block used the same
   selectors with !important, the actual rendered result was a mashup of
   whichever block last touched each individual property, not any one
   block's design -- which is why nav items would overflow unpredictably at
   some widths and not others. This is the only place these properties are
   now set for the desktop header.
   ========================================================================== */
.site-header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 auto !important;
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  overflow: visible !important;
}

.nav-inner,
.nav-inner.container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  gap: 1.25rem !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.nav-links,
ul.nav-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  gap: 0.5rem !important;
  overflow: visible !important;
}

.nav-links > li {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-link {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
  gap: 4px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

.nav-link.active,
.nav-link:hover,
.simple-dropdown:hover > .nav-link,
.simple-dropdown.is-active > .nav-link,
.simple-dropdown.page-active > .nav-link,
.nav-item-dropdown.is-active > .nav-link,
.nav-item-dropdown.page-active > .nav-link {
  padding: 0 14px !important;
  font-size: 0.88rem !important;
  height: 38px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(27, 21, 100, 0.2) !important;
}

.nav-right-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.btn-nav {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
}

.mega-menu,
.dropdown-menu,
.simple-dropdown-menu {
  z-index: 10000 !important;
}

/* DESKTOP VIEWPORT (>= 992px): Show full navbar, hide burger button */
@media (min-width: 992px) {
  .nav-toggle,
  #nav-burger-toggle {
    display: none !important;
  }
}

/* Roomier desktop screens: comfortable, balanced spacing */
@media (min-width: 1200px) {
  .nav-inner,
  .nav-inner.container {
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
    gap: 1.5rem !important;
  }

  .nav-links,
  ul.nav-links {
    gap: 0.65rem !important;
  }

  .nav-link {
    font-size: 0.92rem !important;
    padding: 8px 14px !important;
  }

  .nav-link.active,
  .nav-link:hover,
  .simple-dropdown:hover > .nav-link,
  .simple-dropdown.is-active > .nav-link,
  .simple-dropdown.page-active > .nav-link,
  .nav-item-dropdown.is-active > .nav-link,
  .nav-item-dropdown.page-active > .nav-link {
    padding: 8px 14px !important;
    font-size: 0.92rem !important;
  }

  .nav-right-actions {
    gap: 10px !important;
  }

  .btn-nav {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
  }
}

@media (min-width: 1350px) {
  .nav-links,
  ul.nav-links {
    gap: 0.85rem !important;
  }

  .nav-link {
    font-size: 0.96rem !important;
    padding: 8px 16px !important;
  }

  .nav-link.active,
  .nav-link:hover,
  .simple-dropdown:hover > .nav-link,
  .simple-dropdown.is-active > .nav-link,
  .simple-dropdown.page-active > .nav-link,
  .nav-item-dropdown.is-active > .nav-link,
  .nav-item-dropdown.page-active > .nav-link {
    padding: 8px 16px !important;
    font-size: 0.96rem !important;
  }
}


/* MOBILE & TABLET VIEWPORT (<= 991px): Hide desktop navbar, show burger button */
@media (max-width: 991px) {
  .nav-links,
  ul.nav-links,
  .nav-right-actions {
    display: none !important;
  }

  .nav-toggle,
  #nav-burger-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: var(--primary-deep) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }

  .site-header {
    height: 60px !important;
    top: 12px !important;
  }

  .nav-inner,
  .nav-inner.container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ==========================================================================
   FULL-LENGTH EDGE-TO-EDGE SIDE MENU DRAWER (COUNTERACT BODY 80% ZOOM)
   ========================================================================== */
.side-menu-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99998 !important;
}

.side-menu-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: 350px !important;
  max-width: 88vw !important;
  z-index: 99999 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.side-menu-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8) !important;
}

/* ==========================================================================
   MODERN SLEEK GLASSMORPHIC BURGER MENU ICON BUTTON
   ========================================================================== */
.nav-toggle,
#nav-burger-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  background: rgba(18, 22, 90, 0.08) !important;
  color: var(--primary-deep) !important;
  border: 1px solid rgba(18, 22, 90, 0.2) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(18, 22, 90, 0.06) !important;
}

.nav-toggle:hover,
#nav-burger-toggle:hover,
.nav-toggle:active,
#nav-burger-toggle:active {
  background: var(--primary-deep) !important;
  color: #ffffff !important;
  border-color: var(--primary-deep) !important;
  box-shadow: 0 4px 14px rgba(18, 22, 90, 0.2) !important;
  transform: scale(1.04) !important;
}

.nav-toggle svg,
#nav-burger-toggle svg {
  transition: transform 0.25s ease !important;
}

.nav-toggle:hover svg,
#nav-burger-toggle:hover svg {
  transform: scale(1.08) !important;
}

/* ==========================================================================
   CLEAN TRANSPARENT OUTLINE BURGER MENU BUTTON (NO HEAVY BLUE BLOCK)
   ========================================================================== */
.site-header .nav-toggle,
.site-header #nav-burger-toggle,
.nav-toggle,
#nav-burger-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--primary-deep) !important;
  border: 1.5px solid rgba(18, 22, 90, 0.25) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.site-header .nav-toggle:hover,
.site-header #nav-burger-toggle:hover,
.nav-toggle:hover,
#nav-burger-toggle:hover {
  background: rgba(18, 22, 90, 0.08) !important;
  background-color: rgba(18, 22, 90, 0.08) !important;
  border-color: var(--primary-deep) !important;
  color: var(--primary-deep) !important;
}

.nav-toggle svg,
#nav-burger-toggle svg {
  stroke: var(--primary-deep) !important;
  width: 22px !important;
  height: 22px !important;
}


/* ==========================================================================
   STRICT FINAL RESPONSIVE BREAKPOINTS (MUST BE AT THE VERY BOTTOM OF CSS)
   ========================================================================== */

/* DESKTOP VIEWPORT (>= 992px) */
@media (min-width: 992px) {
  .nav-toggle,
  #nav-burger-toggle,
  .site-header .nav-toggle,
  .site-header #nav-burger-toggle {
    display: none !important;
  }

  .site-header .nav-links,
  ul.nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
  }

  .site-header .nav-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }
}

/* MOBILE & TABLET VIEWPORT (<= 991px) */
@media (max-width: 991px) {
  .nav-links,
  ul.nav-links,
  .nav-right-actions,
  .site-header .nav-links,
  .site-header .nav-right-actions {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .site-header .nav-toggle,
  .site-header #nav-burger-toggle,
  .nav-toggle,
  #nav-burger-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--primary-deep) !important;
    border: 1.5px solid rgba(18, 22, 90, 0.25) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    z-index: 10001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .site-header .nav-toggle:hover,
  .site-header #nav-burger-toggle:hover,
  .nav-toggle:hover,
  #nav-burger-toggle:hover {
    background: rgba(18, 22, 90, 0.08) !important;
    background-color: rgba(18, 22, 90, 0.08) !important;
    border-color: var(--primary-deep) !important;
  }

  .nav-toggle svg,
  #nav-burger-toggle svg {
    stroke: var(--primary-deep) !important;
    width: 22px !important;
    height: 22px !important;
  }

  .site-header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    top: 10px !important;
  }

  .nav-inner,
  .nav-inner.container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    gap: 0 !important;
  }
}

/* Side Menu Drawer Responsive Width (Max 25% Screen Width) & Internal Vertical Scroll */
.side-menu-drawer,
#side-menu-drawer {
  width: 320px !important;
  max-width: 85vw !important;
  min-width: 280px !important;
}

.side-menu-body {
  display: block !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior-y: contain !important;
}

/* Side Menu Flat Compact Nav Items & Triggers */
.side-menu-drawer .side-acc-item,
.side-menu-drawer .side-subacc-item {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 4px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.side-menu-drawer .side-acc-link,
.side-menu-drawer .side-acc-trigger {
  padding: 8px 10px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: left !important;
  width: 100% !important;
  height: auto !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
}

.side-menu-drawer .side-acc-links a {
  padding: 5px 10px 5px 14px !important;
  font-size: 0.8rem !important;
  color: rgba(240, 244, 248, 0.85) !important;
  text-align: left !important;
}

.side-menu-logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.side-menu-logo .side-logo-img {
  height: 24px !important;
  width: auto !important;
  max-width: 135px !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 0.98 !important;
}

/* ==========================================================================
   ENLARGED APJ3D BRAND LOGO SIZE FIX (DESKTOP & MOBILE)
   ========================================================================== */

/* Main Header Desktop Logo Size */
.brand-logo-img,
.nav-logo .brand-logo-img,
.site-header .brand-logo-img {
  height: 54px !important;
  max-height: 54px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 0.98 !important;
}

/* Mobile & Tablet Viewport Header Logo Size */
@media (max-width: 991px) {
  .brand-logo-img,
  .nav-logo .brand-logo-img,
  .site-header .brand-logo-img {
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: 200px !important;
  }
}

/* Side Menu Drawer White Logo Size */
.side-menu-logo .side-logo-img {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ==========================================================================
   SITE-WIDE MASTER MOBILE RESPONSIVENESS (HEROES, CARDS, SUBNAV, GRIDS, TABLES)
   ========================================================================== */

/* 1. MOBILE RESET & BODY OVERRIDES (<= 991px & <= 768px) */
@media (max-width: 991px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    zoom: 100% !important;
    -moz-transform: none !important;
    transform: none !important;
  }

  main, section, header, footer, container, .container, .container-fluid {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 2. HERO SECTIONS MOBILE ARCHITECTURE (<= 768px & <= 480px) */
@media (max-width: 768px) {
  /* Hero Sections Layout Reset (Excluding Carousel Hero) */
  section.hero,
  section[class*="hero"]:not(.hero-carousel-section),
  .hero-section,
  .auto-hero,
  .bench-hero,
  .datum-hero,
  .mould-bg,
  .blueprint-grid-dark,
  .blueprint-bg,
  .careers-hero,
  .blog-hero,
  .service-hero,
  .spm-hero,
  .npd-hero,
  .plm-hero,
  .cae-hero,
  .cp-hero,
  [id="hero"] {
    padding-top: calc(var(--site-header-height, 56px) + 24px) !important;
    padding-bottom: 36px !important;
    min-height: auto !important;
    height: auto !important;
    background-attachment: scroll !important; /* Fixed background fix for iOS */
  }

  /* Homepage Hero Carousel Height Fix (Prevent Collapse & Overlap) */
  .hero-carousel-section {
    position: relative !important;
    height: 82vh !important;
    min-height: 540px !important;
    padding-top: calc(var(--site-header-height, 56px) + 16px) !important;
    padding-bottom: 30px !important;
    background-attachment: scroll !important;
  }

  /* Purely-decorative empty background-pattern divs that sit as flex
     siblings of the hero .container (e.g. <div class="hero-bg-grid">).
     With no CSS of their own they still consume a share of the flex row's
     width, which is exactly what was squeezing .container down to ~half
     the viewport. They have no content, so just drop them from flow. */
  div.hero-bg-grid {
    display: none !important;
  }

  /* Hero Container & Inner Columns */
  section.hero .container,
  section[class*="hero"] .container,
  .hero-section .container,
  [id="hero"] .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
    /* Several hero containers are inline-styled as
       "display:flex; justify-content:flex-end" for a desktop text-right/
       image-bleed-left layout. Without a reset, the flex row squeezes the
       text column to its flex-basis and shoves it against the right edge,
       clipping it off the left side of the screen on mobile. */
    display: block !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    flex: 1 1 100% !important;
  }

  /* Force Hero Side-by-Side Flex & Grid Items to Stack Vertically */
  section.hero div[style*="display: flex"]:not(.stats-strip),
  section.hero div[style*="display:flex"]:not(.stats-strip),
  section.hero div[style*="display: grid"]:not(.stats-strip),
  section.hero div[style*="display:grid"]:not(.stats-strip),
  section[class*="hero"] div[style*="display: flex"]:not(.stats-strip),
  section[class*="hero"] div[style*="display:flex"]:not(.stats-strip),
  section[class*="hero"] div[style*="display: grid"]:not(.stats-strip),
  section[class*="hero"] div[style*="display:grid"]:not(.stats-strip),
  .hero-flex,
  .hero-grid,
  .hero-content-flex {
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  /* .stats-strip is a small inline stat row (e.g. "4000+ Projects | ..."),
     not a layout container - the broad hero flex/grid reset above was
     forcing it into a squeezed single-column stack with orphaned "|"
     separators. Let it wrap naturally instead. */
  section[class*="hero"] .stats-strip {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: auto !important;
    gap: 8px 16px !important;
  }

  /* Hero Left / Content Column */
  section.hero div[style*="flex: 1"],
  section.hero div[style*="min-width"],
  section[class*="hero"] div[style*="flex: 1"],
  section[class*="hero"] div[style*="min-width"],
  .hero-left,
  .hero-content,
  .hero-text {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  /* Hero Typography Responsiveness */
  section.hero h1,
  section[class*="hero"] h1,
  .hero-section h1,
  [id="hero"] h1,
  h1.hero-title,
  .hero h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.6rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    letter-spacing: -0.5px !important;
  }

  section.hero p,
  section[class*="hero"] p,
  .hero-section p,
  [id="hero"] p,
  .hero-subtitle,
  .hero p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }

  /* Hero CTA Buttons */
  section.hero div[style*="display: flex"][style*="gap"]:not(.stats-strip),
  section[class*="hero"] div[style*="display: flex"][style*="gap"]:not(.stats-strip),
  .hero-buttons,
  .hero-cta,
  .cta-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  section.hero a.btn,
  section.hero button.btn,
  section[class*="hero"] a.btn,
  section[class*="hero"] button.btn,
  .hero-buttons .btn,
  .hero-cta .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
  }

  /* Hero Visual / Graphic Right Side Elements */
  section.hero .hero-right,
  section.hero .hero-visual,
  section.hero .hero-graphic,
  section.hero .hero-media,
  section[class*="hero"] .hero-right,
  section[class*="hero"] .hero-visual,
  section[class*="hero"] .hero-graphic,
  section[class*="hero"] .hero-media {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    flex: none !important;
  }

  /* Hero Floating Cards & SVG Diagrams */
  .hero-float-card,
  [class*="float-card"],
  .hero-badge,
  [class*="hero-badge"] {
    position: static !important;
    transform: none !important;
    animation: none !important;
    margin: 10px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero SVG Graphic Responsiveness */
  section.hero svg,
  section[class*="hero"] svg {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* 3. UNIVERSAL CARDS, BENTO & GRID MOBILE STACKING (<= 768px) */
@media (max-width: 768px) {
  /* Stack All Multi-Column Grids */
  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  [class*="-grid"],
  [class*="-cards"],
  [class*="bento-grid"],
  .apple-bento-grid,
  .arsenal-grid,
  .services-grid,
  .features-grid,
  .steps-grid,
  .pillars-grid,
  .metrics-grid,
  .process-grid,
  .benefits-grid,
  .card-grid,
  .industry-grid,
  .tech-grid,
  .accred-grid,
  .archive-grid,
  .argus-tech-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Reset All Bento Spans & Grid Column Spans to Single Mobile Column
     NOTE: this must NOT be [class*="bento"] > * — "bento" is a substring of
     .bento-card too, so that selector reached into each card and force-
     stretched its icon boxes/children to width:100%. Scope to the grid
     container specifically. */
  .grid > *,
  [class*="-grid"] > *,
  [class*="bento-grid"] > *,
  [class*="bento-card"],
  .bento-wide,
  .bento-tall,
  .bento-blue,
  .bento-light,
  .bento-large,
  .bento-small,
  .bento-cab,
  .bento-powertrain,
  .bento-chassis,
  .bento-materials,
  .bento-card-1,
  .bento-card-2,
  .bento-card-3,
  .bento-card-4,
  .bento-1x1,
  .bento-2x1,
  .bento-2x2,
  .bento-4x1 {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Card Container & Individual Cards
     NOTE: [class*="-card"] was removed from here (and from the svg rule
     below) because it also matches cards inside horizontal scroll-snap
     sliders (e.g. .re-ind-card, flex: 0 0 290px) and small in-card icon
     svgs — forcing width:100%/flex:1 1 100% on slider cards squeezed them
     to near-zero width (letter-wrapped text), and forcing svg width:100%
     blew up small decorative icons to fill the whole card. Cards that
     really do need mobile stacking are already covered by the grid/-grid
     child rules above, or by their own container's flex-column stretch. */
  .card,
  .box,
  [class*="-box"]:not(.color-box),
  .tile,
  [class*="-tile"],
  .grid-item,
  .feature-item,
  .bento-card,
  .apple-bento-card,
  .apj-card,
  .arsenal-card,
  .a-card,
  .acc-card,
  .action-card,
  .app-card,
  .autopsy-card,
  .auto-expertise-card,
  .article-card,
  .author-card,
  .bench-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.25rem 1.15rem !important;
  }

  /* Card Image & Visual Preview Scaling */
  .card img,
  [class*="-card"] img,
  .bento-card img,
  .apple-bento-card img,
  .app-card-img img,
  .card-media img,
  .card-preview img,
  .card-preview-img,
  .preview-img,
  .bento-img,
  .tile-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: cover !important;
    border-radius: var(--radius-md, 8px) !important;
    display: block !important;
  }

  /* Card Headings & Typography */
  .card h2, .card h3, .card h4,
  [class*="-card"] h2, [class*="-card"] h3, [class*="-card"] h4,
  .bento-card h2, .bento-card h3, .bento-card h4,
  [class*="-preview"] h2, [class*="-preview"] h3, [class*="-preview"] h4 {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .card p, [class*="-card"] p, .bento-card p, [class*="-preview"] p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  /* Split Sections & Two-Column Rows */
  .split-section,
  .two-col,
  .feature-split,
  .about-split,
  .content-split,
  .fea-lab-split,
  .fea-matrix-split {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .split-section > div,
  .two-col > div,
  .feature-split > div,
  .about-split > div,
  .content-split > div {
    width: 100% !important;
    min-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* 4. SUB-NAVIGATION BAR MOBILE TOUCH SCROLLING (#services-subnav) */
/* 4. SUB-NAVIGATION BAR MOBILE TOUCH SCROLLING (#services-subnav) */
@media (max-width: 991px) {
  #services-subnav,
  .services-subnav {
    width: calc(100% - 32px) !important;
    max-width: 1380px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    position: fixed !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    z-index: 999 !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 
      0 8px 32px 0 rgba(18, 22, 90, 0.08),
      0 1px 0 0 rgba(255, 255, 255, 0.25) inset !important;
    padding: 0 !important;
    top: 74px !important;
    transition: top var(--transition-normal), opacity 0.25s ease, visibility 0.25s ease !important;
  }

  body:has(.site-header.scrolled) #services-subnav,
  body:has(.site-header.scrolled) .services-subnav {
    top: 74px !important;
  }

  body:has(.site-header.header-hidden) #services-subnav,
  body:has(.site-header.header-hidden) .services-subnav {
    top: 10px !important;
  }

  .services-subnav-inner {
    display: flex !important;
    align-items: center !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .subnav-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .subnav-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .subnav-tab,
  a[data-subnav-section] {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--primary-deep, #1b1564) !important;
    padding: 6px 14px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
  }

  .subnav-tab.is-active,
  a[data-subnav-section].is-active {
    background-color: var(--primary-deep, #1b1564) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(27, 21, 100, 0.25) !important;
  }
}

/* 5. TABLES & TECHNICAL DATA CONTAINERS TOUCH RESPONSIVENESS */
@media (max-width: 768px) {
  table,
  .spec-table,
  .comparison-table,
  .data-table,
  .gdt-table,
  .bom-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
  }

  .table-responsive,
  [class*="table-container"],
  [class*="table-wrapper"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }
}

/* 6. SMALL PHONE POLISH (<= 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.45rem !important; }
  h3 { font-size: 1.2rem !important; }
  
  .container, .container-fluid {
    width: calc(100% - 32px) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .btn {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   UNIVERSAL STANDARDIZED FAQ ACCORDION SYSTEM (Matching our-team.html Reference)
   ========================================================================== */
.global-faq-section,
.faq-section,
.home-faq-section,
.re-faq-section,
.cae-faq-section,
.fea-faq-section,
.draft-faq-section,
.cost-faq-section,
.mat-faq-section,
.spm-faq-section,
.ab-faq-section,
.aero-faq-section,
.sm-faq-section {
  padding: 90px 0 !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.global-faq-section .container,
.faq-section .container,
.home-faq-section .container,
.re-faq-section .container,
.cae-faq-section .container,
.fea-faq-section .container,
.draft-faq-section .container,
.cost-faq-section .container,
.mat-faq-section .container,
.spm-faq-section .container,
.ab-faq-section .container,
.aero-faq-section .container,
.sm-faq-section .container,
#faq .container,
#faq > div {
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.faq-list,
.home-faq-list,
.team-faq-list,
.faq-container,
.rfq-container {
  width: 100% !important;
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.faq-card,
.team-faq-card,
.home-faq-card,
.faq-item-card,
.faq-card-modern,
.faq-card-item,
.draft-faq-card,
.cost-faq-card,
.fea-faq-card,
.re-faq-card,
.spm-faq-card,
.mat-faq-card,
.faq-item,
.aero-faq-item,
.ab-faq-item,
.cae-faq-item,
.sm-faq-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02) !important;
  margin-bottom: 18px !important;
  display: block !important;
}

.faq-card:hover,
.team-faq-card:hover,
.home-faq-card:hover,
.faq-item-card:hover,
.faq-card-modern:hover,
.faq-card-item:hover,
.draft-faq-card:hover,
.cost-faq-card:hover,
.fea-faq-card:hover,
.re-faq-card:hover,
.spm-faq-card:hover,
.mat-faq-card:hover,
.faq-item:hover,
.aero-faq-item:hover,
.ab-faq-item:hover,
.cae-faq-item:hover,
.sm-faq-item:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

.faq-card[open],
.team-faq-card[open],
.home-faq-card[open],
.faq-item-card[open],
.faq-card-modern[open],
.faq-card-item[open],
.draft-faq-card[open],
.cost-faq-card[open],
.fea-faq-card[open],
.re-faq-card[open],
.spm-faq-card[open],
.mat-faq-card[open],
.faq-item[open],
.aero-faq-item[open],
.ab-faq-item[open],
.cae-faq-item[open],
.sm-faq-item[open] {
  border-color: #1FA8DF !important;
  box-shadow: 0 12px 32px -8px rgba(31, 168, 223, 0.18) !important;
}

.faq-card summary,
.team-faq-card summary,
.home-faq-card summary,
.faq-item-card summary,
.faq-card-modern summary,
.faq-card-item summary,
.draft-faq-card summary,
.cost-faq-card summary,
.fea-faq-card summary,
.re-faq-card summary,
.spm-faq-card summary,
.mat-faq-card summary,
.faq-item summary,
.aero-faq-item summary,
.ab-faq-item summary,
.cae-faq-item summary,
.sm-faq-item summary {
  list-style: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  user-select: none !important;
}

.faq-card summary::-webkit-details-marker,
.team-faq-card summary::-webkit-details-marker,
.home-faq-card summary::-webkit-details-marker,
.faq-item-card summary::-webkit-details-marker,
.faq-card-modern summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none !important;
}

.faq-left,
.team-faq-left,
.faq-header-left,
.faq-card-left,
.faq-mod-left,
.draft-faq-left,
.cost-faq-left,
.fea-faq-left,
.re-faq-left,
.spm-faq-left,
.mat-faq-left {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 1 !important;
}

.faq-avatar,
.team-faq-avatar,
.faq-avatar-icon,
.faq-circle-avatar,
.faq-card-avatar,
.faq-mod-avatar,
.faq-avatar-circle,
.draft-faq-avatar,
.cost-faq-avatar,
.fea-faq-avatar,
.re-faq-avatar,
.spm-faq-avatar,
.mat-faq-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0B4EAE 0%, #1FA8DF 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(11, 78, 174, 0.25) !important;
}

.faq-q-title,
.team-faq-q-title,
.faq-item-title,
.faq-card-title,
.faq-mod-title,
.draft-faq-title,
.cost-faq-title,
.fea-faq-title,
.re-faq-title,
.spm-faq-title,
.mat-faq-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  transition: color 0.2s ease !important;
  font-family: 'Outfit', sans-serif !important;
  text-align: left !important;
}

summary:hover .faq-q-title,
summary:hover .team-faq-q-title,
summary:hover .faq-item-title,
details[open] .faq-q-title,
details[open] .team-faq-q-title,
details[open] .faq-item-title {
  color: #1b1564 !important;
}

.faq-chevron,
.team-faq-chevron,
.faq-chevron-btn,
.faq-chevron-pill,
.faq-mod-chevron,
.faq-chevron-circle,
.draft-faq-chevron,
.cost-faq-chevron,
.fea-faq-chevron,
.re-faq-chevron,
.spm-faq-chevron,
.mat-faq-chevron {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease !important;
}

details[open] .faq-chevron,
details[open] .team-faq-chevron,
details[open] .faq-chevron-btn,
details[open] .faq-chevron-pill,
details[open] .faq-mod-chevron,
details[open] .draft-faq-chevron,
details[open] .cost-faq-chevron,
details[open] .fea-faq-chevron,
details[open] .re-faq-chevron,
details[open] .spm-faq-chevron,
details[open] .mat-faq-chevron {
  transform: rotate(180deg) !important;
  background: rgba(31, 168, 223, 0.12) !important;
  color: #1b1564 !important;
}

.faq-body,
.team-faq-body,
.home-faq-answer,
.faq-body-answer,
.faq-mod-body,
.faq-card-body,
.draft-faq-body,
.cost-faq-body,
.fea-faq-body,
.re-faq-body,
.spm-faq-body,
.mat-faq-body {
  margin: 0 !important;
  padding: 16px 0 0 62px !important;
  color: #475569 !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 16px !important;
  text-align: left !important;
}

@media (max-width: 640px) {
  .faq-card,
  .team-faq-card,
  .home-faq-card,
  .faq-item-card,
  .faq-card-modern,
  .draft-faq-card,
  .cost-faq-card,
  .fea-faq-card,
  .re-faq-card,
  .spm-faq-card,
  .mat-faq-card,
  .faq-item {
    padding: 18px 20px !important;
  }
  .faq-body,
  .team-faq-body,
  .home-faq-answer,
  .faq-body-answer,
  .faq-mod-body,
  .draft-faq-body,
  .cost-faq-body,
  .fea-faq-body,
  .re-faq-body,
  .spm-faq-body,
  .mat-faq-body {
    padding-left: 0 !important;
  }
  .faq-avatar,
  .team-faq-avatar,
  .faq-avatar-icon,
  .faq-circle-avatar,
  .draft-faq-avatar,
  .cost-faq-avatar,
  .fea-faq-avatar,
  .re-faq-avatar,
  .spm-faq-avatar,
  .mat-faq-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
}

/* ==========================================================================
   GEO & SPECIFICATION TABLE DESIGN SYSTEM (AI & Technical Authority)
   ========================================================================== */
.geo-spec-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.geo-spec-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.geo-spec-header {
  text-align: center !important;
  margin-bottom: 36px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.geo-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(41, 171, 226, 0.1);
  color: var(--accent-cyan-text);
  border: 1px solid rgba(41, 171, 226, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.geo-spec-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 10px;
  text-align: center !important;
}

.geo-spec-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto !important;
  text-align: center !important;
}

.geo-spec-table-wrap {
  overflow-x: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.geo-spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.geo-spec-table th {
  background: #0d1235;
  color: #ffffff;
  padding: 16px 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--accent-cyan);
}

.geo-spec-table th:first-child {
  border-top-left-radius: var(--radius-card);
}
.geo-spec-table th:last-child {
  border-top-right-radius: var(--radius-card);
}

.geo-spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(18, 22, 90, 0.06);
  color: var(--text-primary);
  vertical-align: middle;
}

.geo-spec-table tr:nth-child(even) {
  background: rgba(248, 249, 250, 0.6);
}

.geo-spec-table tr:hover {
  background: rgba(41, 171, 226, 0.05);
}

.geo-spec-table td.param-name {
  font-weight: 600;
  color: var(--primary-deep);
  white-space: nowrap;
}

.geo-spec-table td.badge-cell span {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(27, 21, 100, 0.08);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-deep);
}

/* Related Services -- contextual internal-linking block shown near the
   end of service/industry pages, generated from the site's own nav
   taxonomy so links are genuinely topical siblings, not arbitrary. */
.related-services-section {
  padding: 50px 0 60px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.related-services-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 20px;
}

.related-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(27, 21, 100, 0.04);
  border: 1px solid rgba(27, 21, 100, 0.12);
  border-radius: var(--radius-full);
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.related-service-pill:hover {
  background: rgba(41, 171, 226, 0.1);
  border-color: rgba(41, 171, 226, 0.35);
  transform: translateY(-1px);
}

.related-service-pill i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* TL;DR Direct Answer Card */
.geo-tldr-box {
  background: linear-gradient(135deg, rgba(27, 21, 100, 0.03) 0%, rgba(41, 171, 226, 0.06) 100%);
  border: 1px solid rgba(41, 171, 226, 0.25);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.geo-tldr-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.geo-tldr-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan-text);
}

.geo-tldr-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
}

/* FAQ Accordion Enhancement */
.geo-faq-section {
  padding: 60px 0;
  background: var(--bg-primary);
}

.geo-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 0;
}

.geo-faq-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.geo-faq-card:hover {
  border-color: rgba(41, 171, 226, 0.4);
  box-shadow: var(--shadow-md);
}

.geo-faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.geo-faq-question i {
  color: var(--accent-cyan);
  margin-top: 3px;
}

.geo-faq-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 26px;
}

@media (max-width: 768px) {
  .geo-spec-section {
    padding: 40px 0;
  }
  .geo-spec-table th, .geo-spec-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .geo-tldr-box {
    padding: 16px;
  }
  .geo-faq-card {
    padding: 16px;
  }
}

/* ==========================================================================
   GLOBAL FAQ CARD ACCORDION DESIGN (Identical to index.html standard)
   ========================================================================== */
.home-faq-section {
  padding: 90px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 20;
}

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.home-faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.home-faq-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.home-faq-card[open] {
  border-color: #1FA8DF;
  box-shadow: 0 12px 32px -8px rgba(31, 168, 223, 0.18);
}

.home-faq-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  user-select: none;
}

.home-faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.faq-avatar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B4EAE 0%, #1FA8DF 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 78, 174, 0.25);
}

.faq-q-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.home-faq-card summary:hover .faq-q-title,
.home-faq-card[open] .faq-q-title {
  color: #1b1564;
}

.faq-chevron-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.home-faq-card[open] .faq-chevron-btn {
  transform: rotate(180deg);
  background: rgba(31, 168, 223, 0.12);
  color: #1b1564;
}

.home-faq-answer {
  margin: 0;
  padding: 16px 0 0 58px;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .home-faq-card {
    padding: 18px 20px;
  }
  .home-faq-answer {
    padding-left: 0;
  }
  .faq-avatar-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}




/* Standardized Global Container & Modular Bottom Sections Alignments */
.geo-spec-container,
.geo-direct-summary-section .container,
.global-faq-section .container,
.home-faq-section .container,
#faq .container,
#service-overview .container,
#technical-specifications .geo-spec-container {
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.geo-spec-header {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.geo-spec-header .geo-spec-subtitle,
p.geo-spec-subtitle {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  max-width: 750px !important;
}

.services-subnav,
#services-subnav {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 auto !important;
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
}

.services-subnav-inner {
  width: 100% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}
