/* ==========================================================================
   BXD Forge - Services Page Stylesheet
   Clean Luminous White Background Theme (Default)
   Matching https://bxd-forge-829650715184.us-west1.run.app/
   ========================================================================== */

:root {
  /* Default Crisp Luminous White & Vibrant Orange Theme */
  --bg-color: #ffffff;
  --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #fffcf9 50%, #faf8f5 100%);
  --surface-color: rgba(255, 255, 255, 0.95);
  --surface-hover: #ffffff;
  --surface-active: rgba(255, 123, 0, 0.08);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(255, 123, 0, 0.45);
  --border-glass-active: #ff7b00;
  --text-color: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --primary-color: #ff7b00;
  --primary-rgb: 255, 123, 0;
  --primary-glow: rgba(255, 123, 0, 0.28);
  --accent-color: #f37021;
  --accent-rgb: 243, 112, 33;
  --accent-glow: rgba(243, 112, 33, 0.22);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 25px rgba(255, 123, 0, 0.15);
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --modal-bg: #ffffff;
  --pill-bg: #f8fafc;
  --orb-blend-mode: multiply;
  --orb-opacity-1: 0.12;
  --orb-opacity-2: 0.08;

  /* Intent Icons Dual-Tone Navy & Vibrant Orange with Orange Border */
  --icon-disc-bg: #fff8f2;
  --icon-disc-border: #ff7b00;
  --icon-blue-main: #0c2b5e;
  --icon-blue-alt: #184c8a;
  --icon-orange-accent: #ff7b00;
}

html.dark {
  /* Dark Fallback */
  --bg-color: #ffffff;
  --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #fffcf9 50%, #faf8f5 100%);
  --surface-color: rgba(255, 255, 255, 0.95);
  --surface-hover: #ffffff;
  --surface-active: rgba(255, 123, 0, 0.08);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(255, 123, 0, 0.45);
  --border-glass-active: #ff7b00;
  --text-color: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --primary-color: #ff7b00;
  --primary-rgb: 255, 123, 0;
  --primary-glow: rgba(255, 123, 0, 0.28);
  --accent-color: #f37021;
  --accent-rgb: 243, 112, 33;
  --accent-glow: rgba(243, 112, 33, 0.22);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(255, 123, 0, 0.15);
  --modal-bg: #ffffff;
  --pill-bg: #f8fafc;
  --orb-blend-mode: multiply;
  --orb-opacity-1: 0.12;
  --orb-opacity-2: 0.08;
  --icon-disc-bg: #fff8f2;
  --icon-disc-border: #ff7b00;
  --icon-blue-main: #0c2b5e;
  --icon-blue-alt: #184c8a;
  --icon-orange-accent: #ff7b00;
}

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

body.services-body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

/* Ambient Glowing Background Orbs */
.ambient-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-color);
  transition: background-color 0.4s ease;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  mix-blend-mode: var(--orb-blend-mode);
  will-change: transform, opacity;
  animation: pulse-glow 14s infinite alternate ease-in-out;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 123, 0, var(--orb-opacity-1)) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  animation-duration: 12s;
}

.orb-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(243, 112, 33, var(--orb-opacity-2)) 0%, transparent 70%);
  bottom: -180px;
  left: -120px;
  animation-duration: 16s;
  animation-direction: alternate-reverse;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 140, 43, var(--orb-opacity-1)) 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation-duration: 9s;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.5;
    transform: scale(0.92) translate(0, 0);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08) translate(20px, -20px);
  }
  100% {
    opacity: 0.5;
    transform: scale(0.92) translate(0, 0);
  }
}

/* Glassmorphism Containers */
.glass-panel {
  background-color: var(--surface-color);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), var(--shadow-card);
  border-radius: 24px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-glass-hover);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 18px 40px rgba(0, 0, 0, 0.08), var(--shadow-glow);
  transform: translateY(-4px);
}

.glass-panel-static {
  background-color: var(--surface-color);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), var(--shadow-card);
}

/* ==========================================================================
   Header Navigation (Matching Home Page)
   ========================================================================== */
.site-header,
.services-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 7%;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.site-header.scrolled,
.services-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo img,
.brand-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar,
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar a,
.nav-link {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a:hover,
.nav-link:hover {
  color: #ff7b00;
}

.navbar a.active,
.nav-link.active {
  color: #ff7b00 !important;
  font-weight: 600;
}

.navbar a.active::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff7b00;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
}

.site-header.scrolled .navbar a,
.services-header.scrolled .nav-link {
  color: #1e293b;
}

.site-header.scrolled .navbar a:hover,
.site-header.scrolled .navbar a.active,
.services-header.scrolled .nav-link:hover,
.services-header.scrolled .nav-link.active {
  color: #ff7b00 !important;
}

#menu-toggle,
.menu-icon,
.mobile-menu-btn {
  display: none;
}

@media (max-width: 900px) {
  .menu-icon,
  .mobile-menu-btn {
    display: block;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
  }

  .site-header.scrolled .menu-icon,
  .services-header.scrolled .mobile-menu-btn {
    color: #0f172a;
  }

  .navbar,
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 24px 7%;
    gap: 18px;
    align-items: flex-start;
  }

  .navbar a,
  .nav-link {
    color: #0f172a !important;
    font-size: 16px;
  }

  #menu-toggle:checked ~ .navbar,
  .nav-links.open {
    display: flex;
  }
}

/* ==========================================================================
   First Portion: Full-Width Video Hero Section
   Matching Home Page Video Background, Typography, Overlay, and Colors
   ========================================================================== */
.hero,
.hero.services-video-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 7% 80px;
  overflow: hidden;
  color: #effbfb;
  z-index: 2;
}

.bg-video,
.services-video-hero .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay,
.services-video-hero .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.92) 0%,
    rgba(15, 23, 42, 0.65) 55%,
    rgba(15, 23, 42, 0.25) 100%
  );
  z-index: -1;
}

.hero-content,
.services-video-hero .hero-content {
  max-width: 1000px;
  width: 100%;
  animation: fadeUp 1s ease both;
}

/* Hero Title - Exact Home Page Typography and Colors */
.hero-title3,
.services-hero-title {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fadeUp 1s ease both;
}

.hero-title3 span,
.services-hero-title span,
.services-hero-title .title-orange {
  display: inline-block;
  color: #ff7b00;
  font-weight: 800;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.services-hero-title .title-white {
  display: block;
  color: #ffffff;
  font-weight: 800;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

@media (max-width: 992px) {
  .hero-title3,
  .services-hero-title,
  .services-hero-title .title-white,
  .services-hero-title .title-orange {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .hero-title3,
  .services-hero-title,
  .services-hero-title .title-white,
  .services-hero-title .title-orange {
    font-size: 30px;
  }
}

/* Hero Description Text - Exact Home Page Typography and Colors */
.hero-text,
.services-video-hero .hero-text {
  max-width: 860px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 18px;
  color: #dbeafe;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 35px;
  animation: fadeUp 1s ease both 0.2s;
}

/* Action CTA Button */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 1s ease both 0.35s;
}

.hero-explore-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px;
  border-radius: 9999px;
  background: rgba(255, 123, 0, 0.16);
  border: 1px solid rgba(255, 123, 0, 0.5);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-explore-cta:hover {
  background: #ff7b00;
  border-color: #ff7b00;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 123, 0, 0.55);
  transform: translateY(-2px);
}

.hero-explore-cta svg {
  width: 18px;
  height: 18px;
  animation: floatArrow 1.8s ease-in-out infinite;
}

@keyframes floatArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* FadeUp Animation (Exact Match with First Page style.css) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Container: Below Hero Spacing */
.services-main {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  padding: 70px 24px 140px;
  width: 100%;
}

/* ==========================================================================
   X E A Model Section (Pages 1 & 2 of PDF Specification)
   ========================================================================== */
.xea-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px 70px;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-glass);
}

.xea-container {
  max-width: 1200px;
  margin: 0 auto;
}

.xea-header {
  text-align: center;
  margin-bottom: 40px;
}

.xea-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 14px;
  color: #1e3a5f;
  margin-bottom: 8px;
}

html.dark .xea-title {
  color: #ffffff;
}

.xea-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: #ff7b00;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.xea-subtitle .orange-char {
  color: #ff7b00;
  font-size: 1.15em;
  font-weight: 900;
}

.xea-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Ribbons (Top & Bottom Banners from PDF) */
.xea-ribbon {
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(0.8rem, 1.3vw, 0.98rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.xea-ribbon-top {
  background: #d4e2f4;
  color: #e65100;
  margin-bottom: 24px;
  border: 1px solid rgba(230, 81, 0, 0.2);
}

html.dark .xea-ribbon-top {
  background: rgba(30, 58, 95, 0.5);
  color: #ff914d;
  border-color: rgba(255, 145, 77, 0.3);
}

.xea-ribbon-bottom {
  background: #fee6cf;
  color: #1a2a3e;
  margin-top: 24px;
  margin-bottom: 45px;
  border: 1px solid rgba(232, 109, 0, 0.15);
}

html.dark .xea-ribbon-bottom {
  background: rgba(232, 109, 0, 0.15);
  color: #f1f5f9;
  border-color: rgba(232, 109, 0, 0.3);
}

/* SVG Chevron / Triangle Diagram */
.xea-diagram-wrap {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  overflow: hidden;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

.xea-svg-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Colors matching PDF */
.poly-navy {
  fill: #0f2238;
  transition: all 0.3s ease;
}

.poly-orange {
  fill: #e86d00;
  transition: all 0.3s ease;
}

.poly-orange-full {
  fill: #d9731e;
  transition: all 0.3s ease;
}

.poly-slate {
  fill: #343048;
  transition: all 0.3s ease;
}

.xea-svg-text {
  fill: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 19px;
  text-anchor: middle;
  letter-spacing: 2px;
  pointer-events: none;
}

.xea-stage-group {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.xea-stage-group:hover {
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(255, 123, 0, 0.6));
  transform: translateY(-2px);
}

/* 5 Pillars Grid (Page 2 of PDF) */
.xea-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.xea-pillar-card {
  background: var(--surface-color);
  border: 1.5px solid var(--border-glass);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.xea-pillar-card:hover,
.xea-pillar-card.active {
  transform: translateY(-4px);
  border-color: #ff7b00;
  box-shadow: 0 12px 30px rgba(255, 123, 0, 0.15);
  background: var(--surface-hover);
}

html.dark .xea-pillar-card {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .xea-pillar-card:hover,
html.dark .xea-pillar-card.active {
  border-color: #ff7b00;
  background: rgba(20, 32, 54, 0.85);
  box-shadow: 0 12px 30px rgba(255, 123, 0, 0.25);
}

.pillar-card-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 123, 0, 0.25);
}

.pillar-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 123, 0, 0.12);
  color: #ff7b00;
}

.pillar-card-hdr h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-heading);
}

.pillar-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pillar-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-color);
}

.pillar-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #ff7b00;
  font-size: 1.15rem;
  font-weight: bold;
}

/* ==========================================================================
   SERVICES Workflow & Intent Navigation (Pages 3-13 of PDF)
   ========================================================================== */
.services-workflow-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.services-workflow-header {
  margin-bottom: 24px;
}

.services-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem); /* Reduced by half from clamp(2rem, 3.2vw, 2.6rem) */
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-heading);
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  user-select: none;
}

.services-section-title:hover {
  color: #ff7b00;
  transform: translateX(2px);
}

/* LEVEL 1: The 6 Intent Cards Grid (Page 3, 7, 13) */
.intent-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intent-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px 28px;
  min-height: 228px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

html.dark .intent-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.intent-card:hover,
.intent-card.active {
  transform: translateY(-6px);
  border-color: #ff7b00;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(255, 123, 0, 0.18);
}

html.dark .intent-card:hover,
html.dark .intent-card.active {
  background: #ffffff;
  border-color: #ff7b00;
  box-shadow: 0 16px 36px rgba(255, 123, 0, 0.18);
}

.intent-card-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Full-color Service Intent Icons (Dual-tone Brand Blue & Vibrant Orange on Orange-Bordered Disc) */
:root {
  --icon-disc-bg: #fff8f2;
  --icon-disc-border: #ff7b00;
  --icon-blue-main: #0c2b5e;
  --icon-blue-alt: #184c8a;
  --icon-orange-accent: #ff7b00;
}

html.dark {
  --icon-disc-bg: #fff8f2;
  --icon-disc-border: #ff7b00;
  --icon-blue-main: #0c2b5e;
  --icon-blue-alt: #184c8a;
  --icon-orange-accent: #ff7b00;
}

.intent-card-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(255, 123, 0, 0.1));
}

.intent-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-disc {
  fill: var(--icon-disc-bg);
  stroke: var(--icon-disc-border);
  stroke-width: 2.2;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.icon-blue {
  fill: var(--icon-blue-main);
  transition: fill 0.35s ease;
}

.icon-blue-stroke {
  stroke: var(--icon-blue-main);
  transition: stroke 0.35s ease;
}

.icon-blue-alt {
  fill: var(--icon-blue-alt);
  transition: fill 0.35s ease;
}

.icon-orange {
  fill: var(--icon-orange-accent);
  transition: fill 0.35s ease;
}

.icon-orange-stroke {
  stroke: var(--icon-orange-accent);
  transition: stroke 0.35s ease;
}

.intent-card:hover .intent-card-icon,
.intent-card.active .intent-card-icon {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 8px 20px rgba(255, 123, 0, 0.32));
}

/* Prominent card title typography */
.intent-card-title {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
  letter-spacing: -0.2px;
  transition: color 0.25s ease;
  margin: 0;
}

html.dark .intent-card-title {
  color: #1e293b;
}

.intent-card:hover .intent-card-title,
.intent-card.active .intent-card-title {
  color: #ff7b00;
}

html.dark .intent-card:hover .intent-card-title,
html.dark .intent-card.active .intent-card-title {
  color: #ff7b00;
}

/* LEVEL 2: Sub-Services Selection View (Pages 4, 8) */
.intent-solutions-view {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intent-solutions-view.hidden,
.intent-cards-view.hidden,
.service-detail-view.hidden {
  display: none !important;
}

.intent-nav-bar {
  margin-bottom: 24px;
}

.active-intent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid #ff7b00;
  color: #ff7b00;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(255, 123, 0, 0.1);
}

html.dark .active-intent-pill {
  background: #ffffff;
  border-color: #ff7b00;
  color: #ff7b00;
}

.active-intent-pill:hover {
  background: #ff7b00;
  border-color: #ff7b00;
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(255, 123, 0, 0.3);
}

.active-intent-pill svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.active-intent-pill:hover svg {
  transform: translateX(-3px);
}

.intent-hero-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 32px;
}

.intent-main-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.intent-main-desc {
  font-size: clamp(0.85rem, 0.95vw, 0.92rem);
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 20px;
}

.intent-subdomain-box {
  background: #fff8f0;
  border: 1.5px dashed rgba(255, 123, 0, 0.35);
  border-radius: 12px;
  padding: 12px 20px;
  margin-top: 12px;
}

html.dark .intent-subdomain-box {
  background: #fff8f0;
  border-color: rgba(255, 123, 0, 0.35);
}

.subdomain-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3px;
}

.subdomain-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Subservice Cards (e.g. S1 and S4) */
.intent-solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.intent-solution-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

html.dark .intent-solution-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.intent-solution-card:hover {
  transform: translateY(-5px);
  border-color: #ff7b00;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(255, 123, 0, 0.18);
}

html.dark .intent-solution-card:hover {
  background: #ffffff;
  border-color: #ff7b00;
  box-shadow: 0 16px 36px rgba(255, 123, 0, 0.18);
}

.solution-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 8px;
}

html.dark .solution-card-title {
  color: #0f172a;
}

.solution-card-desc {
  font-size: 0.84rem; /* Relatively reduced from 0.96rem */
  line-height: 1.55;
  color: var(--text-color);
  margin-bottom: 18px;
}

.solution-card-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

.explore-solutions-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; /* Relatively reduced from 0.95rem */
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

html.dark .explore-solutions-btn {
  color: #f8fafc;
}

.intent-solution-card:hover .explore-solutions-btn {
  color: #ff7b00;
  transform: translateX(4px);
}

/* LEVEL 3: 3-Box Solution Detail View (Pages 5, 6, 9, 10, 11, 12) */
.detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-link-btn:hover {
  color: #ff7b00;
  transform: translateX(-3px);
}

.back-link-btn svg {
  width: 16px;
  height: 16px;
}

/* Services Grid Layout */
.services-grid-view {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.services-grid-view.hidden {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.service-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 380px;
}

.service-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.12), transparent 70%);
  border-bottom-left-radius: 100px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-glow {
  background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.22), transparent 70%);
  width: 180px;
  height: 180px;
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-code-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  letter-spacing: 1px;
}

.card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card-icon-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-card:hover .card-icon-wrap {
  background: rgba(var(--primary-rgb), 0.16);
  border-color: var(--primary-color);
  transform: scale(1.08);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.2s;
}

.service-card:hover .card-title {
  color: var(--primary-color);
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

.card-capabilities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.cap-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-color);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}

.card-engagement-badge {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: transform 0.2s;
}

.card-cta-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.service-card:hover .card-cta-btn svg {
  transform: translateX(5px);
}

/* ==========================================================================
   Detailed Service View
   ========================================================================== */
.service-detail-view {
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: fadeInSlide 0.4s ease forwards;
}

.service-detail-view.hidden {
  display: none;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-to-services-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 30px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.back-to-services-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateX(-4px);
}

.back-to-services-btn svg {
  width: 18px;
  height: 18px;
}

/* Detail Hero Glass Banner */
.detail-hero-banner {
  padding: 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}

.banner-backdrop-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 60%, rgba(var(--accent-rgb), 0.08) 100%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.detail-cat-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.detail-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem); /* Relatively reduced from clamp(2rem, 4vw, 3.2rem) */
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 12px;
}

.detail-hero-desc {
  font-size: 0.92rem; /* Relatively reduced from 1.15rem */
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary-glow {
  padding: 14px 28px;
  border-radius: 9999px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary-glow:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-glass {
  padding: 14px 28px;
  border-radius: 9999px;
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-glass:hover {
  border-color: var(--primary-color);
  background: var(--surface-hover);
  color: var(--primary-color);
}

/* 3-Column Architecture Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.matrix-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.matrix-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem; /* Relatively reduced from 1.25rem */
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.matrix-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.matrix-header.problem-hdr svg {
  color: #16a34a;
}

.problems-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-item h4 {
  font-size: 0.85rem; /* Relatively reduced from 0.96rem */
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.problem-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bullet-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullet-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.4;
}

.bullet-check-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.matrix-card .btn-science-modal {
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
}

.btn-science {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-science:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--surface-hover);
}

/* Industries & Testimonials Section */
.detail-section-block {
  margin-bottom: 50px;
}

.section-block-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-block-title svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.industry-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.industry-tab-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  color: var(--text-color);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.industry-tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.industry-tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.testimonial-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.testimonial-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.feedback-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text-color);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
}

.covered-tech-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.covered-tech-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-color);
}

/* Trusted By Row */
.trusted-by-box {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trusted-by-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trusted-by-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.role-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 6px 14px;
  background: var(--pill-bg);
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}

/* Engagement Models Matrix Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 24px;
}

.engagement-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.engagement-table th {
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.02);
}

.engagement-table td {
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
}

.engagement-table tr:hover td {
  background: var(--surface-hover);
}

.model-name {
  font-weight: 700;
  color: var(--primary-color);
}

.cell-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cell-icon-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

/* Connect with SMEs Grid */
.smes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.sme-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border-radius: 20px;
}

.sme-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sme-card:hover .sme-avatar {
  background: var(--primary-color);
  color: #ffffff;
  transform: scale(1.08);
}

.sme-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.sme-info .sme-role {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 4px;
}

.sme-info .sme-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Brochure / Capabilities PDF Generator */
.brochure-generator-card {
  padding: 40px;
  border-radius: 28px;
  margin-bottom: 45px;
}

.brochure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.brochure-desc h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.brochure-desc p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.brochure-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brochure-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brochure-option-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.brochure-option-item span {
  font-size: 0.9rem;
  color: var(--text-color);
}

.brochure-form-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brochure-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.brochure-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
}

/* Bottom CTA Banner */
.bottom-cta-banner {
  padding: 60px 40px;
  border-radius: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.bottom-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(var(--primary-rgb), 0.12), transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.cta-banner-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Modals (Science Modal & Schedule Call Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--modal-bg);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 40px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-heading);
  border-color: var(--primary-color);
}

.modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.modal-icon-badge svg {
  width: 32px;
  height: 32px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-body {
  font-size: 0.94rem;
  color: var(--text-color);
  line-height: 1.7;
}

.modal-points-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-point-item strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* Call Booking Form */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--pill-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary-color);
}

/* ==========================================================================
   Floating AI Prompt / Exploration Bar (Bottom)
   ========================================================================== */
.floating-prompt-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: 90%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.prompt-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prompt-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.prompt-input-wrapper {
  width: 100%;
  height: 60px;
  border-radius: 9999px;
  background: var(--surface-color);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), var(--shadow-glow);
  display: flex;
  align-items: center;
  padding: 0 10px 0 24px;
  transition: all 0.3s ease;
}

.prompt-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.25);
}

.prompt-search-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  margin-right: 12px;
  flex-shrink: 0;
}

.prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.prompt-input::placeholder {
  color: var(--text-muted);
}

.prompt-submit-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.prompt-submit-btn:hover {
  transform: scale(1.08);
}

.prompt-submit-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.services-footer {
  border-top: 1px solid var(--border-glass);
  background: var(--surface-color);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 40px 5%;
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .xea-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .intent-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .brochure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .xea-pillars-grid {
    grid-template-columns: 1fr;
  }
  .intent-cards-grid {
    grid-template-columns: 1fr;
  }
  .intent-solutions-grid {
    grid-template-columns: 1fr;
  }
  .services-header {
    padding: 14px 20px;
  }
  .header-breadcrumb {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--modal-bg);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .services-hero h1 {
    font-size: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .detail-hero-banner {
    padding: 28px 20px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .floating-prompt-bar {
    bottom: 16px;
    width: 95%;
  }
  .prompt-suggestions {
    display: none;
  }
}
