/* MaColX Theme v7 – Professional Data/Engineering Portfolio
   – Hero slider + pillars band + services sparklines
   – Featured work case cards + From the blog section
*/

/* =========================
   BASE TOKENS (LIGHT MODE)
   ========================= */
:root{
  --mx-bg: #f3f4f6;
  --mx-surface: #f9fafb;
  --mx-card: #ffffff;
  --mx-border: #e5e7eb;
  --mx-text: #020617;
  --mx-muted: #6b7280;
  --mx-primary: #2563eb;
  --mx-primary-700: #1d4ed8;
  --mx-accent: #10b981;
  --mx-accent-700: #059669;
  --mx-link: #1d4ed8;
  --mx-danger: #dc2626;
  --mx-ring: 0 0 0 3px rgba(37, 99, 235, 0.32);
  --mx-shadow-soft: 0 10px 30px rgba(15,23,42,0.10);
  --mx-shadow-strong: 0 22px 60px rgba(15,23,42,0.25);
}

/* =========================
   GLOBAL
   ========================= */
html,
body{
  background: radial-gradient(1400px 900px at top left, #e5f0ff 0, #f9fafb 40%, #e5e7eb 100%);
  color: var(--mx-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

/* Links */
a{ color: var(--mx-link); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Headings and text */
h1,h2,h3,h4{ letter-spacing: .2px; }
.lead{ color: var(--mx-muted); font-size: 1.05rem; }

/* Wide letter-spacing utility */
.ls-wide{
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Sections */
.section{ padding: 3.2rem 0; }
.section-tight{ padding: 2rem 0; }
.section-alt{ background: #edf2ff; }

/* =========================
   SURFACES / CARDS / DEPTH
   ========================= */
.mx-glass{
  background: radial-gradient(circle at top left, rgba(255,255,255,0.9), rgba(248,250,252,0.96));
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    var(--mx-shadow-soft);
  backdrop-filter: blur(14px);
}

.mx-card-hover{
  transition:
    transform .20s ease,
    box-shadow .20s ease,
    border-color .20s ease,
    background .20s ease;
}
.mx-card-hover:hover{
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--mx-shadow-strong);
  border-color: rgba(59,130,246,0.55);
  background: radial-gradient(circle at top left, rgba(255,255,255,0.98), rgba(241,245,249,0.95));
}

/* =========================
   BUTTONS
   ========================= */
.btn-mx{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.2);
  background:
    radial-gradient(circle at 20% 0%, #60a5fa 0, #2563eb 40%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.32),
    0 0 0 1px rgba(15,23,42,0.06);
}
.btn-mx:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn-mx:focus{
  outline: none;
  box-shadow: var(--mx-ring), 0 10px 24px rgba(37, 99, 235, 0.30);
}

.btn-ghost{
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  color: var(--mx-text);
  border: 1px solid rgba(148,163,184,0.6);
  border-radius: 999px;
  padding: .7rem 1.15rem;
  font-weight: 600;
}
.btn-ghost:hover{
  background: #e5e7eb;
}
.btn-ghost:focus{
  outline: none;
  box-shadow: var(--mx-ring);
}

/* =========================
   HERO (SLIDER)
   ========================= */
.mx-hero{
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at -10% -20%, #22c55e 0, transparent 55%),
    radial-gradient(circle at 110% -10%, #38bdf8 0, transparent 55%),
    radial-gradient(circle at 20% 120%, #4f46e5 0, transparent 55%),
    linear-gradient(135deg, #020617, #020617 30%, #020b33 65%, #020617 100%);
  border: 1px solid rgba(148,163,184,0.4);
  margin-top: 1.8rem;
  box-shadow:
    0 20px 60px rgba(15,23,42,0.45),
    0 0 0 1px rgba(15,23,42,0.3);
}

/* subtle code-grid overlay */
.mx-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.55), rgba(15,23,42,0.85)),
    linear-gradient(90deg, rgba(148,163,184,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size:
    100% 100%,
    40px 40px,
    40px 40px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* neon “code” sweep */
.mx-hero::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    conic-gradient(from 180deg at 50% 50%,
      rgba(56,189,248,0.08),
      rgba(56,189,248,0.01),
      rgba(16,185,129,0.18),
      rgba(129,140,248,0.0));
  opacity:.7;
  mix-blend-mode: screen;
  pointer-events:none;
}

/* viewport using aspect-ratio for slim band */
.mx-hero .slide-viewport{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5.6;
  max-height: 520px;
}
@media (max-width: 991.98px){
  .mx-hero .slide-viewport{
    aspect-ratio: 16 / 7;
    max-height: 440px;
  }
}
@media (max-width: 575.98px){
  .mx-hero .slide-viewport{
    aspect-ratio: 16 / 9;
    max-height: 380px;
    border-radius: 1.4rem;
  }
}

/* Slide image */
.slide-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Overlay gradient for readability */
.mx-hero-overlay{
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.15), transparent 55%),
              linear-gradient(120deg, rgba(15,23,42,0.82), rgba(15,23,42,0.45), transparent 75%);
  display: flex; align-items: center;
  color: #e5e7eb;
}
.mx-hero-overlay .lead{ color: rgba(226,232,240,0.9); }

/* Badge */
.mx-badge{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .32rem .75rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.65);
  color: #e0f2fe;
  border-radius: 999px;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* =========================
   UTILITIES
   ========================= */
.bg-cover{ background-size: cover; background-position: center; }
.img-rounded{ border-radius: 14px; }
.img-shadow{ box-shadow: 0 8px 28px rgba(2,6,23,0.18); }
.img-frame{
  border: 1px solid rgba(148,163,184,0.6);
  border-radius: 14px;
  padding: 6px;
  background: radial-gradient(circle at top left,#f9fafb,#e5e7eb);
}
.object-fit-cover{ object-fit: cover; }

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter: drop-shadow(0 2px 8px rgba(2,6,23,0.8));
}
.carousel-control-prev,
.carousel-control-next{
  width: 4rem;
}

/* =========================
   REVEAL ANIMATIONS
   ========================= */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity: 0;
    transform: translateY(12px);
    animation: reveal .5s ease forwards;
  }
  .reveal.delay-1{ animation-delay: .08s; }
  .reveal.delay-2{ animation-delay: .16s; }
  .reveal.delay-3{ animation-delay: .24s; }
  @keyframes reveal{
    to{ opacity: 1; transform: translateY(0); }
  }
}

/* =========================
   NAVBAR & FOOTER
   ========================= */
.navbar.mx{
  background: radial-gradient(circle at top left, rgba(248,250,252,0.98), rgba(241,245,249,0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148,163,184,0.5);
}
footer{
  background: radial-gradient(circle at top, #e5f0ff, #f1f5f9);
  border-top: 1px solid rgba(148,163,184,0.6);
}
footer .small{ color: var(--mx-muted); }

/* Project and service tiles (generic) */
.project-tile.card:hover .card-body h3{ text-decoration: underline; }
.service-points{ padding-left: 1.1rem; margin: 0; }
.service-points li{ margin-bottom: .35rem; color: var(--mx-muted); }

/* =========================
   SERVICES – Animated spark charts
   ========================= */
.section-services{
  position: relative;
  padding-top: 3.0rem;
  padding-bottom: 3.4rem;
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.06), transparent 60%),
    linear-gradient(to bottom, #f9fafb, #eef2ff);
  overflow: hidden;
}

/* keep content above animated layers */
.section-services > .container{
  position: relative;
  z-index: 1;
}

/* thin sweep line across top */
.section-services::before{
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(37,99,235,0.3),
    rgba(16,185,129,0.25),
    transparent);
  animation: mxSweep 8s linear infinite;
  pointer-events: none;
}

@keyframes mxSweep{
  0%{ transform: translateX(-10%); opacity: 0.35; }
  50%{ transform: translateX(10%); opacity: 0.7;  }
  100%{ transform: translateX(-10%); opacity: 0.35; }
}

/* soft aurora behind cards */
.section-services::after{
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0% 0%, rgba(37,99,235,0.14), transparent 60%),
    radial-gradient(circle at 100% 20%, rgba(16,185,129,0.12), transparent 60%),
    radial-gradient(circle at 50% 120%, rgba(129,140,248,0.14), transparent 65%);
  mix-blend-mode: screen;
  opacity: .45;
  animation: mxServicesAurora 28s linear infinite alternate;
  pointer-events: none;
}

@keyframes mxServicesAurora{
  0%   { transform: translate3d(-3%, 2%, 0) scale(1.02); }
  50%  { transform: translate3d(4%, -4%, 0) scale(1.05); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); }
}

/* Service cards */
.mx-service-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.mx-service-card .card-body{
  position: relative;
  z-index: 1;
}

/* icon token */
.mx-service-icon{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 0%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(circle at 90% 120%, rgba(15,23,42,0.06), rgba(15,23,42,0.12));
  color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(15,23,42,0.12);
}

.mx-service-icon i{
  font-size: 1.2rem;
}

/* label chip */
.mx-service-tag{
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .3rem .7rem;
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid rgba(37,99,235,0.22);
}

/* meta row */
.mx-service-meta{
  margin-top: .35rem;
}

/* small label text */
.mx-service-label{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Hover lift */
.mx-service-card:hover{
  transform: translateY(-6px) translateZ(0);
  box-shadow: var(--mx-shadow-strong);
}

/* Service metric + sparkline row */
.mx-service-metric{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem;
}

/* Sparkline container */
.mx-service-spark{
  width: 96px;
  height: 30px;
  flex-shrink: 0;
}

.mx-service-spark svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* grid line inside sparkline */
.spark-grid{
  stroke: rgba(148,163,184,0.30);
  stroke-width: 0.6;
  fill: none;
}

/* base line style */
.spark-line{
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Area fill */
.spark-area{
  stroke: none;
  fill: rgba(37,99,235,0.10);
  animation: sparkAreaPulse 6s ease-in-out infinite alternate;
}

/* Bar style */
.spark-bar{
  fill: rgba(37,99,235,0.35);
  rx: 1.2;
  ry: 1.2;
  transform-origin: 50% 100%;
  animation: sparkBars 4.6s ease-in-out infinite alternate;
}

/* Line variants + motion */
.spark-line-1{
  stroke: #22c55e;
  stroke-width: 2;
  stroke-dasharray: 140;
  stroke-dashoffset: 40;
  animation: sparkFlow 7s ease-in-out infinite alternate;
}
.spark-line-2{
  stroke: #38bdf8;
  stroke-width: 2;
  stroke-dasharray: 120;
  stroke-dashoffset: 30;
  animation: sparkFlow 8.2s ease-in-out infinite alternate;
}
.spark-line-3{
  stroke: #2563eb;
  stroke-width: 2;
  stroke-dasharray: 160;
  stroke-dashoffset: 60;
  animation: sparkFlow 9s ease-in-out infinite alternate;
}
.spark-line-4{
  stroke: #eab308;
  stroke-width: 2.1;
  stroke-dasharray: 110;
  stroke-dashoffset: 25;
  animation: sparkPulse 5.8s ease-in-out infinite alternate;
}
.spark-line-5{
  stroke: #a855f7;
  stroke-width: 2;
  stroke-dasharray: 180;
  stroke-dashoffset: 50;
  animation: sparkWave 10s ease-in-out infinite;
}

/* Motion keyframes for spark charts */
@keyframes sparkFlow{
  from{ stroke-dashoffset: 40; }
  to  { stroke-dashoffset: -40; }
}
@keyframes sparkPulse{
  0%   { stroke-dashoffset: 25; opacity: .7; }
  50%  { stroke-dashoffset: -10; opacity: 1; }
  100% { stroke-dashoffset: 25; opacity: .7; }
}
@keyframes sparkWave{
  0%   { stroke-dashoffset: 50; opacity: .85; }
  50%  { stroke-dashoffset: -30; opacity: 1;   }
  100% { stroke-dashoffset: 50; opacity: .85; }
}
@keyframes sparkAreaPulse{
  0%   { opacity: .35; transform: translateY(1px); }
  50%  { opacity: .6;  transform: translateY(0);   }
  100% { opacity: .35; transform: translateY(1px); }
}
@keyframes sparkBars{
  0%   { transform: scaleY(0.85); opacity: .7; }
  50%  { transform: scaleY(1.05); opacity: 1;  }
  100% { transform: scaleY(0.9);  opacity: .8; }
}

/* =========================
   FEATURED WORK – Case cards + outcome motion
   ========================= */

.section-featured {
  position: relative;
  padding-top: 3.0rem;
  padding-bottom: 3.4rem;
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.06), transparent 60%),
    linear-gradient(to bottom, #f9fafb, #eef2ff);
}

/* optional text below title */
.section-featured .mx-section-kicker {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Grid spacing */
.mx-case-grid {
  margin-top: 1.8rem;
}

/* Card shell (single definition, not duplicated) */
.mx-case-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1.4rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  background:
    radial-gradient(circle at top left, #ffffff, #f9fafb);
  box-shadow:
    0 16px 40px rgba(15,23,42,0.10),
    0 0 0 1px rgba(15,23,42,0.02);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform: translateY(0) translateZ(0);
  transition:
    transform .22s cubic-bezier(.22,.61,.36,1),
    box-shadow .22s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease,
    background .22s ease;
}

/* soft gradient edge */
.mx-case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(37,99,235,0.18),
      rgba(16,185,129,0.12),
      transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

/* slight radial glow on hover */
.mx-case-card::after {
  content: "";
  position: absolute;
  inset: 40% -40% -60%;
  background:
    radial-gradient(circle at 20% 0,
      rgba(37,99,235,0.18),
      transparent 60%);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .30s ease,
    transform .30s ease;
  pointer-events: none;
}

/* Hover lift */
.mx-case-card:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: rgba(59,130,246,0.7);
  box-shadow:
    0 24px 60px rgba(15,23,42,0.15),
    0 0 0 1px rgba(15,23,42,0.04);
  background:
    radial-gradient(circle at top left, #ffffff, #f3f4ff);
}
.mx-case-card:hover::before {
  opacity: 1;
}
.mx-case-card:hover::after {
  opacity: .9;
  transform: translateY(0);
}

/* Top row – context + metric */
.mx-case-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

/* Context tag (left) */
.mx-case-label {
  position: relative;
  border-radius: 999px;
  padding: .18rem .7rem .22rem;
  background: #e0f2fe;
  color: #075985;
  border: 1px solid rgba(37,99,235,0.25);
  font-weight: 600;
  white-space: nowrap;
}

/* little shimmer along the label */
.mx-case-label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
    transparent,
    rgba(255,255,255,0.7),
    transparent);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-60%);
  pointer-events: none;
}
.mx-case-card:hover .mx-case-label::after {
  opacity: .7;
  animation: mxCaseLabelShimmer 1.6s ease-out forwards;
}

/* Right side metric */
.mx-case-metric {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #6b7280;
  white-space: nowrap;
}

/* little pulse dot */
.mx-pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}
.mx-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(34,197,94,0.45);
  opacity: 0;
  animation: mxPulseDot 2.6s ease-out infinite;
}

/* Title + description */
.mx-case-card h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

/* Title link gradient underline */
.mx-case-card h3 a {
  position: relative;
  color: #0f172a;
  text-decoration: none;
  transition: color .25s cubic-bezier(.4,0,.2,1);
}

.mx-case-card h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(2px);
  transition:
    width .5s cubic-bezier(.45,0,.25,1) .05s,
    opacity .4s ease .1s,
    transform .4s ease .1s;
}

.mx-case-card:hover h3 a::after {
  width: 100%;
  opacity: 1;
  transform: translateY(0);
}

.mx-case-card:hover h3 a {
  color: #1e40af;
  transition-delay: .05s;
}

/* short one-line description */
.mx-case-card p.mx-case-desc {
  font-size: .9rem;
  color: #4b5563;
  margin-bottom: .2rem;
}

/* Tech badges row at bottom */
.mx-case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}

/* Tech badge – ONLY for featured work */
.mx-badge-tech {
  position: relative;
  border-radius: 999px;
  padding: .22rem .7rem .24rem;
  font-size: .72rem;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid rgba(148,163,184,0.45);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  overflow: hidden;
}

/* subtle “data” bar on the left of some badges */
.mx-badge-tech::before {
  content: "";
  width: 6px;
  height: 60%;
  border-radius: 999px;
  background: linear-gradient(180deg,#22c55e,#16a34a);
  opacity: .0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease;
}

/* tiny shimmer line */
.mx-badge-tech::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(120deg,
    transparent,
    rgba(255,255,255,0.7),
    transparent);
  opacity: 0;
  transform: translateX(-40%);
}

/* hover animation for badges WHEN card is hovered */
.mx-case-card:hover .mx-badge-tech {
  animation: mxTechBadgePulse 3.4s ease-in-out infinite;
}
.mx-case-card:hover .mx-badge-tech::before {
  opacity: .75;
  transform: translateX(0);
}
.mx-case-card:hover .mx-badge-tech::after {
  opacity: .9;
  animation: mxTechBadgeShimmer 1.6s ease-out forwards;
}

/* Only animate first 2 badges strongly to keep it calm */
.mx-case-badges .mx-badge-tech:nth-child(n+3) {
  animation: none;
}
.mx-case-card:hover .mx-badge-tech:nth-child(n+3)::after {
  opacity: .5;
}

/* Keyframes for featured section */
@keyframes mxPulseDot {
  0%   { transform: scale(0.6); opacity: 0.7; }
  40%  { transform: scale(1.3); opacity: 0;   }
  100% { transform: scale(1.0); opacity: 0;   }
}
@keyframes mxTechBadgePulse {
  0%,100% { transform: translateY(0); box-shadow: 0 0 0 rgba(37,99,235,0); }
  50%     { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,0.12); }
}
@keyframes mxTechBadgeShimmer {
  0%   { transform: translateX(-60%); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes mxCaseLabelShimmer {
  0%   { transform: translateX(-60%); opacity: .8; }
  100% { transform: translateX(60%);  opacity: 0;  }
}

/* Dark mode for featured section */
@media (prefers-color-scheme: dark) {
  .section-featured {
    background:
      radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.34), transparent 60%),
      radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.26), transparent 60%),
      linear-gradient(to bottom, #020617, #020617 50%, #020617);
  }

  .mx-case-card {
    border-color: #1f2937;
    background:
      radial-gradient(circle at top left, #020617, #020617);
    box-shadow:
      0 18px 45px rgba(0,0,0,0.85),
      0 0 0 1px rgba(15,23,42,0.85);
  }

  .mx-case-card:hover {
    background:
      radial-gradient(circle at top left, #020617, #020825);
    box-shadow:
      0 26px 70px rgba(0,0,0,0.95),
      0 0 0 1px rgba(59,130,246,0.6);
  }

  .mx-case-card h3 a {
    color: #e5e7eb;
  }
  .mx-case-card:hover h3 a {
    color: #60a5fa;
  }
  .mx-case-card h3 a::after {
    background: linear-gradient(90deg, #3b82f6, #22c55e);
  }

  .mx-case-card p.mx-case-desc {
    color: #9ca3af;
  }

  .mx-case-label {
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border-color: rgba(148,163,184,0.6);
  }

  .mx-case-metric {
    color: #9ca3af;
  }

  .mx-badge-tech {
    background: #020617;
    color: #e5e7eb;
    border-color: #1f2937;
  }
  .mx-badge-tech::before {
    background: linear-gradient(180deg,#22c55e,#16a34a);
  }
}
html[data-theme="dark"] .section-featured {
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.38), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.30), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 50%, #020617);
}

/* =========================
   PILLARS BAND (UNDER HERO)
   ========================= */
.section-pillars{
  position: relative;
  padding-top: 2.8rem;
  padding-bottom: 3.2rem;
  background:
    radial-gradient(700px 280px at 12% 0%, rgba(56,189,248,0.20), transparent 60%),
    radial-gradient(700px 280px at 88% 0%, rgba(16,185,129,0.18), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 40%, #030712 100%);
  color: #e5e7eb;
  overflow: hidden;
}

/* static grid */
.section-pillars::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(15,23,42,0.7) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,0.6) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .24;
  pointer-events: none;
}

/* slow moving aurora / code glow */
.section-pillars::after{
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.32), transparent 55%),
    radial-gradient(circle at 100% 10%, rgba(129,140,248,0.28), transparent 55%),
    radial-gradient(circle at 40% 120%, rgba(16,185,129,0.22), transparent 60%);
  mix-blend-mode: screen;
  opacity: .22;
  animation: mxPillarsAurora 26s linear infinite alternate;
  pointer-events: none;
}

@keyframes mxPillarsAurora{
  0%   { transform: translate3d(-4%, -3%, 0) scale(1.02); }
  50%  { transform: translate3d(6%, 4%, 0) scale(1.05); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.02); }
}

.pillars-row{
  position: relative;
  z-index: 1;
}

/* 3D glassy pillar cards */
.mx-pillar-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border-top: 3px solid transparent;
  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,1));
  color: #e5e7eb;
  box-shadow: 0 14px 32px rgba(0,0,0,0.78);
  transform: translateY(0) translateZ(0);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.mx-pillar-card p{
  color: rgba(226,232,240,0.96);
}

/* subtle neon sweep on hover */
.mx-pillar-card::after{
  content: "";
  position: absolute;
  inset: 35% -45% -65%;
  background: radial-gradient(circle at 10% 0,
              rgba(56,189,248,0.34),
              transparent 55%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}

.mx-pillar-card:hover{
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 22px 55px rgba(0,0,0,0.9);
  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,1));
}

.mx-pillar-card:hover::after{
  opacity: 0.78;
  transform: translateY(0);
}

/* Per-pillar accent colors */
.mx-pillar-1{ border-top-color: rgba(59,130,246,0.95); }  /* blue */
.mx-pillar-2{ border-top-color: rgba(16,185,129,0.95); }  /* green */
.mx-pillar-3{ border-top-color: rgba(234,179,8,0.95); }   /* amber */
.mx-pillar-4{ border-top-color: rgba(168,85,247,0.95); }  /* violet */

/* Icon chip */
.mx-pillar-icon{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background:
    radial-gradient(circle at 30% 0%, rgba(148,163,184,0.35), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(15,23,42,0.95), rgba(15,23,42,1));
  color: #38bdf8;
  box-shadow: 0 14px 30px rgba(15,23,42,0.9);
}

.mx-pillar-2 .mx-pillar-icon{ color: #22c55e; }
.mx-pillar-3 .mx-pillar-icon{ color: #eab308; }
.mx-pillar-4 .mx-pillar-icon{ color: #a855f7; }

.mx-pillar-icon i{
  font-size: 1.1rem;
}

/* Mini chart row (if used) */
.mx-pillar-metric{
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: rgba(148,163,184,0.95);
}

/* Text contrast inside dark band */
.section-pillars h2,
.section-pillars h3,
.section-pillars .h6,
.section-pillars .h5,
.section-pillars .small{
  color: #e5e7eb;
}
.section-pillars .text-muted{
  color: rgba(226,232,240,0.92) !important;
}
.section-pillars .mx-pillar-card p{
  color: rgba(226,232,240,0.96);
}

/* Dark mode for pillars */
@media (prefers-color-scheme: dark){
  .section-pillars{
    background:
      radial-gradient(700px 280px at 12% 0%, rgba(56,189,248,0.30), transparent 60%),
      radial-gradient(700px 280px at 88% 0%, rgba(16,185,129,0.24), transparent 60%),
      linear-gradient(to bottom, #020617, #020617 40%, #000 100%);
  }
}
html[data-theme="dark"] .section-pillars{
  background:
    radial-gradient(700px 280px at 12% 0%, rgba(56,189,248,0.34), transparent 60%),
    radial-gradient(700px 280px at 88% 0%, rgba(16,185,129,0.28), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 40%, #000 100%);
}

/* =========================
   PARTNERS STRIP (LOGO MARQUEE)
   ========================= */
.section-partners{
  position: relative;
  padding-top: 2.4rem;
  padding-bottom: 2.6rem;
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.08), transparent 60%),
    linear-gradient(to bottom, #f9fafb, #eef2ff);
  overflow: hidden;
}

/* clamp any image in the partners band */
.section-partners img{
  max-width: 150px;
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.partners-label{
  font-weight: 600;
  letter-spacing: .18em;
  color: #6b7280;
}

.partners-sub{
  color: #4b5563;
}

.partners-row{
  position: relative;
  z-index: 1;
}

.partners-marquee{
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 10%, black 90%, transparent 100%);
}

.partners-track{
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-block: .4rem;
  animation: mxPartnersScroll 32s linear infinite;
}

@keyframes mxPartnersScroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* Partner pill – same footprint for all logos */
.partner-pill{
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  padding: .55rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  background:
    radial-gradient(circle at 0 0, rgba(148,163,184,0.22), transparent 55%),
    radial-gradient(circle at 100% 120%, rgba(15,23,42,1), #020617);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.75),
    0 0 0 1px rgba(15,23,42,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

/* subtle inner glow */
.partner-glow{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 15% 0%, rgba(255,255,255,0.16), transparent 55%);
  opacity: .65;
  pointer-events: none;
}

/* logo itself */
.partner-logo{
  position: relative;
  max-height: 38px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.15) brightness(1.08);
  opacity: .9;
  transition:
    filter .22s ease,
    opacity .22s ease,
    transform .22s ease;
}

/* Hover state */
.partner-pill:hover{
  transform: translateY(-3px) translateZ(0);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.9),
    0 0 0 1px rgba(59,130,246,0.65);
  border-color: rgba(59,130,246,0.8);
  background:
    radial-gradient(circle at 0 0, rgba(148,163,184,0.3), transparent 55%),
    radial-gradient(circle at 100% 120%, rgba(15,23,42,1), #020617);
}

.partner-pill:hover .partner-logo{
  filter: grayscale(0) brightness(1.12);
  opacity: 1;
  transform: translateY(-1px);
}

/* Dark-mode variant for partners band */
@media (prefers-color-scheme: dark){
  .section-partners{
    background:
      radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.35), transparent 60%),
      radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.28), transparent 60%),
      linear-gradient(to bottom, #020617, #020617 50%, #020617);
  }

  .partners-label{
    color: #9ca3af;
  }
  .partners-sub{
    color: #e5e7eb;
    opacity: .86;
  }
}
html[data-theme="dark"] .section-partners{
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.40), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.32), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 50%, #020617);
}

/* Dark mode tweaks for services background */
@media (prefers-color-scheme: dark){
  .section-services{
    background:
      radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.32), transparent 60%),
      radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.26), transparent 60%),
      linear-gradient(to bottom, #020617, #020617 40%, #020617);
  }

  .section-services::after{
    opacity: .55;
  }

  .mx-service-tag{
    background-color: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border-color: rgba(148,163,184,0.6);
  }
}
html[data-theme="dark"] .section-services{
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.36), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.30), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 40%, #020617);
}

/* =========================
   FROM THE BLOG / INSIGHTS SECTION
   ========================= */
/* =====================================================
   FROM THE BLOG – tighter spacing
===================================================== */

/* =====================================================
   FROM THE BLOG – Feature + side stack layout
   ===================================================== */

.section-blog{
  position: relative;
  padding-top: 2.6rem;
  padding-bottom: 2.8rem;
  background:
    radial-gradient(900px 520px at -10% -20%, rgba(37,99,235,0.06), transparent 60%),
    radial-gradient(900px 520px at 110% -10%, rgba(16,185,129,0.05), transparent 60%),
    linear-gradient(to bottom, #f9fafb, #eef2ff);
  border-top: 1px solid rgba(148,163,184,0.18);
  overflow: hidden;
}

/* soft sweep line across top */
.section-blog::before{
  content:"";
  position:absolute;
  top:0; left:-20%;
  width:140%; height:1px;
  background:linear-gradient(90deg,
    transparent,
    rgba(37,99,235,0.25),
    rgba(16,185,129,0.25),
    transparent);
  animation: blogSweep 12s linear infinite;
  pointer-events:none;
}
@keyframes blogSweep{
  0%{ transform:translateX(-10%); opacity:.25; }
  50%{ transform:translateX(10%); opacity:.6; }
  100%{ transform:translateX(-10%); opacity:.25; }
}
.mx-reveal-in{
  opacity: 1;
  transform: none;
}

/* --- FEATURE CARD --- */

.mx-blog-feature-card{
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.45);
  background:
    radial-gradient(circle at top left, #ffffff, #f9fafb);
  box-shadow:
    0 14px 32px rgba(15,23,42,0.08),
    0 0 0 1px rgba(255,255,255,0.6) inset;
  padding: 1.2rem 1.4rem 1.15rem;
  overflow: hidden;
  transform: translateY(0) translateZ(0);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.mx-blog-feature-card::after{
  content:"";
  position:absolute;
  inset:auto 24px 0 24px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,
    rgba(59,130,246,0),
    rgba(59,130,246,0.7),
    rgba(16,185,129,0.6),
    rgba(234,179,8,0));
  opacity:0;
  transform:scaleX(0.4);
  transform-origin:center;
  transition:opacity .24s ease, transform .24s ease;
}

.mx-blog-feature-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 22px 55px rgba(15,23,42,0.16),
    0 0 0 1px rgba(59,130,246,0.35);
  border-color: rgba(59,130,246,0.6);
  background:
    radial-gradient(circle at top left, #ffffff, #eef2ff);
}
.mx-blog-feature-card:hover::after{
  opacity:1;
  transform:scaleX(1);
}

/* feature thumb with fixed ratio */
.mx-blog-feature-thumb{
  position: relative;
  display: block;
}
.mx-blog-thumb-inner{
  position: relative;
  width: 100%;
  padding-top: 52%;          /* controls image height – nice and compact */
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
}
.mx-blog-thumb-inner img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}
.mx-blog-feature-card:hover .mx-blog-thumb-inner img{
  transform: scale(1.03);
}

/* “Featured insight” pill on image */
.mx-blog-feature-pill{
  position: absolute;
  left: 1.2rem;
  bottom: .7rem;
  padding: .18rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  background: rgba(15,23,42,0.86);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.7);
}

/* topline info */
.mx-blog-topline{
  font-size: .78rem;
}
.mx-blog-label{
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  background-color: #e0f2fe;
  border: 1px solid rgba(59,130,246,0.28);
  color: #075985;
}
.mx-blog-date{
  font-size: .78rem;
  color: #6b7280;
}

/* titles + text */
.mx-blog-title-link{
  color: #020617;
  text-decoration: none;
  transition: color .2s ease;
}
.mx-blog-title-link:hover{
  color: #1d4ed8;
}
.mx-blog-excerpt{
  font-size: .9rem;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* feature footer */
.mx-blog-feature-footer{
  padding-top: .45rem;
  border-top: 1px dashed rgba(148,163,184,0.6);
}
.mx-blog-read-link{
  display: inline-flex;
  align-items: center;
  gap: .12rem;
  color: #6b7280;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s ease;
}
.mx-blog-read-link span{
  transition: transform .18s ease;
}
.mx-blog-read-link:hover{
  color: #1d4ed8;
}
.mx-blog-read-link:hover span{
  transform: translateX(3px);
}

/* --- MINI CARDS (RIGHT COLUMN) --- */

.mx-blog-mini-stack{
  height: 100%;
}

.mx-blog-mini-card{
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.35);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  padding: .75rem .85rem;
}

/* smaller ratio thumb */
.mx-blog-mini-thumb{
  display:block;
  flex: 0 0 92px;
}
.mx-blog-mini-thumb-inner{
  position: relative;
  width: 100%;
  padding-top: 75%;           /* more vertical, but still controlled */
  border-radius: 12px;
  overflow: hidden;
  background:#e5e7eb;
}
.mx-blog-mini-thumb-inner img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .28s ease;
}
.mx-blog-mini-card:hover .mx-blog-mini-thumb-inner img{
  transform:scale(1.04);
}

.mx-blog-mini-body{
  min-width: 0;
}

.mx-blog-label-soft{
  background-color: #f1f5f9;
  border-color: rgba(148,163,184,0.7);
  color: #374151;
}

.mx-blog-title-small{
  font-size: .9rem;
}
.mx-blog-excerpt-small{
  font-size: .8rem;
  -webkit-line-clamp: 2;
}

/* placeholder if only one post exists */
.mx-blog-mini-placeholder{
  border-radius: 14px;
  border: 1px dashed rgba(148,163,184,0.6);
  padding: .8rem 1rem;
  background: rgba(248,250,252,0.8);
}

/* --- Responsive tweaks --- */

@media (max-width: 991.98px){
  .mx-blog-feature-card{
    margin-bottom: .4rem;
  }
}

@media (max-width: 575.98px){
  .section-blog{
    padding-top: 2.2rem;
    padding-bottom: 2.3rem;
  }
  .mx-blog-feature-card{
    padding: 1rem 1rem .95rem;
  }
}
 
/* --- Dark mode variant --- */
@media (prefers-color-scheme: dark){
  .section-blog{
    background:
      radial-gradient(900px 520px at -10% -20%, rgba(37,99,235,0.38), transparent 60%),
      radial-gradient(900px 520px at 110% -10%, rgba(16,185,129,0.30), transparent 60%),
      linear-gradient(to bottom, #020617, #020617 40%, #020617);
    border-top-color: #1f2937;
  }

  .mx-blog-feature-card{
    border-color:#1f2937;
    background:
      radial-gradient(circle at top left, #020617, #020617);
    box-shadow:
      0 22px 55px rgba(0,0,0,0.9),
      0 0 0 1px rgba(15,23,42,0.9);
  }
  .mx-blog-feature-card:hover{
    background:
      radial-gradient(circle at top left, #020617, #020825);
  }
  .mx-blog-feature-pill{
    background: rgba(15,23,42,0.9);
    color:#e5e7eb;
  }
  .mx-blog-label{
    background-color: rgba(15,23,42,0.9);
    border-color: rgba(59,130,246,0.6);
    color:#bfdbfe;
  }
  .mx-blog-date,
  .mx-blog-excerpt{
    color:#9ca3af;
  }

  .mx-blog-mini-card{
    border-color:#1f2937;
    background:#020617;
    box-shadow:
      0 16px 40px rgba(0,0,0,0.8),
      0 0 0 1px rgba(15,23,42,0.85);
  }
  .mx-blog-mini-placeholder{
    border-color:#1f2937;
    background:rgba(15,23,42,0.85);
    color:#9ca3af;
  }
  .mx-blog-title-link{
    color:#e5e7eb;
  }
  .mx-blog-title-link:hover{
    color:#93c5fd;
  }
  .mx-blog-read-link{
    color:#9ca3af;
  }
  .mx-blog-read-link:hover{
    color:#60a5fa;
  }
}

/* ==========================================
   ROLE CHIP – under About hero title
   ========================================== */
.mx-role-chip{
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .22rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,0.22), transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(16,185,129,0.18), transparent 60%),
    #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.85);
  box-shadow:
    0 12px 30px rgba(15,23,42,0.45),
    0 0 0 1px rgba(15,23,42,0.85);
  overflow: hidden;
}

/* soft shimmer sweep on hover */
.mx-role-chip::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg,
    transparent,
    rgba(255,255,255,0.70),
    transparent);
  opacity: 0;
  transform: translateX(-60%);
  pointer-events:none;
}

.mx-role-chip:hover::after{
  opacity: .95;
  animation: mxRoleShimmer 1.4s ease-out forwards;
}

@keyframes mxRoleShimmer{
  0%   { transform: translateX(-60%); opacity: .8; }
  100% { transform: translateX(60%);  opacity: 0;  }
}

/* Dark mode tweak */
@media (prefers-color-scheme: dark){
  .mx-role-chip{
    background:
      radial-gradient(circle at 0 0, rgba(59,130,246,0.32), transparent 60%),
      radial-gradient(circle at 100% 120%, rgba(16,185,129,0.26), transparent 60%),
      #020617;
    border-color: rgba(59,130,246,0.78);
    box-shadow:
      0 16px 40px rgba(0,0,0,0.95),
      0 0 0 1px rgba(15,23,42,0.9);
  }
}
/* ==========================================
   ROLE CHIP – under About hero title
   ========================================== */
.mx-role-chip{
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .22rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,0.22), transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(16,185,129,0.18), transparent 60%),
    #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.85);
  box-shadow:
    0 12px 30px rgba(15,23,42,0.45),
    0 0 0 1px rgba(15,23,42,0.85);
  overflow: hidden;
}

/* soft shimmer sweep on hover */
.mx-role-chip::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg,
    transparent,
    rgba(255,255,255,0.70),
    transparent);
  opacity: 0;
  transform: translateX(-60%);
  pointer-events:none;
}

.mx-role-chip:hover::after{
  opacity: .95;
  animation: mxRoleShimmer 1.4s ease-out forwards;
}

@keyframes mxRoleShimmer{
  0%   { transform: translateX(-60%); opacity: .8; }
  100% { transform: translateX(60%);  opacity: 0;  }
}

/* Dark mode tweak */
@media (prefers-color-scheme: dark){
  .mx-role-chip{
    background:
      radial-gradient(circle at 0 0, rgba(59,130,246,0.32), transparent 60%),
      radial-gradient(circle at 100% 120%, rgba(16,185,129,0.26), transparent 60%),
      #020617;
    border-color: rgba(59,130,246,0.78);
    box-shadow:
      0 16px 40px rgba(0,0,0,0.95),
      0 0 0 1px rgba(15,23,42,0.9);
  }
}
/* ==========================================
   GENERIC CTA BOX (about/contact)
   ========================================== */
.cta-box{
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.55);
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,0.06), transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(16,185,129,0.05), transparent 60%),
    #f9fafb;
  box-shadow:
    0 16px 40px rgba(15,23,42,0.10),
    0 0 0 1px rgba(255,255,255,0.7) inset;
}

/* optional subtle halo on hover for the whole box */
.cta-box:hover{
  box-shadow:
    0 20px 55px rgba(15,23,42,0.16),
    0 0 0 1px rgba(59,130,246,0.18);
}

/* dark mode */
@media (prefers-color-scheme: dark){
  .cta-box{
    border-color: #1f2937;
    background:
      radial-gradient(circle at 0 0, rgba(59,130,246,0.18), transparent 60%),
      radial-gradient(circle at 100% 120%, rgba(16,185,129,0.16), transparent 60%),
      #020617;
    box-shadow:
      0 20px 55px rgba(0,0,0,0.95),
      0 0 0 1px rgba(15,23,42,0.9);
  }
}


/* manual dark override */
html[data-theme="dark"] .section-blog{
  background:
    radial-gradient(900px 520px at -10% -20%, rgba(37,99,235,0.42), transparent 60%),
    radial-gradient(900px 520px at 110% -10%, rgba(16,185,129,0.34), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 40%, #020617);
}

/* =========================
   UPDATES STRIP (UNDER BLOG)
   ========================= */
.section-updates{
  padding-top: 1.8rem;
  padding-bottom: 2.4rem;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(37,99,235,0.04), transparent 60%),
    linear-gradient(to bottom, #eef2ff, #e5e7eb);
  border-top: 1px solid rgba(148,163,184,0.25);
}

.mx-updates-card{
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
}

@media (min-width: 768px){
  .mx-updates-card{
    padding: 1.6rem 2rem;
  }
}

/* badge */
.mx-updates-badge{
  display: inline-flex;
  align-items: center;
  padding: .18rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid rgba(37,99,235,0.25);
}

/* form tweaks */
.mx-updates-form .form-control,
.mx-updates-form .form-select{
  border-radius: 999px;
  border-color: rgba(148,163,184,0.7);
  font-size: .9rem;
}

.mx-updates-form .form-control:focus,
.mx-updates-form .form-select:focus{
  box-shadow: var(--mx-ring);
  border-color: rgba(37,99,235,0.7);
}

.mx-updates-check .form-check-input{
  margin-top: .25rem;
}
.mx-updates-check .form-check-input:focus{
  box-shadow: var(--mx-ring);
}

/* make the button slightly smaller in this strip */
.mx-updates-btn{
  padding-block: .55rem;
  font-size: .88rem;
}

/* dark mode */
@media (prefers-color-scheme: dark){
  .section-updates{
    background:
      radial-gradient(900px 520px at 0% 0%, rgba(37,99,235,0.28), transparent 60%),
      linear-gradient(to bottom, #020617, #020617);
    border-top-color: #1f2937;
  }
  .mx-updates-card{
    background:
      radial-gradient(circle at top left, rgba(15,23,42,0.98), #020617);
    border-color: #1f2937;
    box-shadow:
      0 18px 40px rgba(0,0,0,0.85),
      0 0 0 1px rgba(15,23,42,0.9);
  }
  .mx-updates-badge{
    background-color: rgba(15,23,42,0.9);
    color: #bfdbfe;
    border-color: rgba(59,130,246,0.7);
  }
}

html[data-theme="dark"] .section-updates{
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(37,99,235,0.34), transparent 60%),
    linear-gradient(to bottom, #020617, #020617);
}
/* ==========================================
   DASHBOARD SNAPSHOT / PROGRAM METRICS BAND
   ========================================== */
.section-metrics{
  position: relative;
  padding-top: 2.1rem;   /* slightly tighter than default .section */
  padding-bottom: 3.0rem;
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.06), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.05), transparent 60%),
    linear-gradient(to bottom, #f9fafb, #eef2ff);
  border-top: 1px solid rgba(148,163,184,0.25);
  overflow: hidden;
}

/* faint diagonal glow so it feels “data” but subtle */
.section-metrics::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(circle at 0% 0%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(circle at 100% 20%, rgba(16,185,129,0.10), transparent 60%);
  opacity:.35;
  mix-blend-mode: screen;
  pointer-events:none;
}

/* keep content above */
.section-metrics > .container{
  position: relative;
  z-index: 1;
}

/* live indicator dot */
.metrics-dot-live{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.45);
  animation: mxMetricsPulse 2.4s ease-out infinite;
}

/* metric grid spacing */
.mx-metric-grid{
  margin-top: .25rem;
}

/* metric card shell */
.mx-metric-card{
  position: relative;
  border-radius: 16px;
  padding: .7rem .9rem .8rem;
  border: 1px solid rgba(148,163,184,0.55);
  background:
    radial-gradient(circle at top left, #ffffff, #f9fafb);
  box-shadow:
    0 10px 24px rgba(15,23,42,0.06),
    0 0 0 1px rgba(255,255,255,0.7) inset;
  transform: translateY(0) translateZ(0);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

/* subtle glow bar on hover */
.mx-metric-card::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,
    rgba(59,130,246,0.0),
    rgba(59,130,246,0.55),
    rgba(16,185,129,0.45),
    rgba(250,204,21,0.0));
  opacity:0;
  transform:scaleX(0.4);
  transform-origin:center;
  transition:opacity .22s ease, transform .22s ease;
}

.mx-metric-card:hover{
  transform: translateY(-4px) translateZ(0);
  border-color: rgba(59,130,246,0.7);
  box-shadow:
    0 16px 36px rgba(15,23,42,0.12),
    0 0 0 1px rgba(59,130,246,0.16);
  background:
    radial-gradient(circle at top left, #ffffff, #eef2ff);
}
.mx-metric-card:hover::after{
  opacity:1;
  transform:scaleX(1);
}

/* label above number */
.mx-metric-label{
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:#6b7280;
}

/* big number */
.mx-metric-number-wrap{
  margin-top:.05rem;
  margin-bottom:.1rem;
}
.mx-metric-number{
  font-size:1.3rem;
  font-weight:700;
  letter-spacing:.02em;
  color:#0f172a;
}

/* caption */
.mx-metric-caption{
  font-size:.76rem;
  color:#4b5563;
}

/* Pulse + count-up are handled in JS, pulse animation here */
@keyframes mxMetricsPulse{
  0%   { box-shadow:0 0 0 0 rgba(34,197,94,0.45); transform:scale(1);   }
  50%  { box-shadow:0 0 0 8px rgba(34,197,94,0);   transform:scale(1.05);}
  100% { box-shadow:0 0 0 0 rgba(34,197,94,0);     transform:scale(1);   }
}

/* --------- DARK MODE VARIANT --------- */
@media (prefers-color-scheme: dark){
  .section-metrics{
    background:
      radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.36), transparent 60%),
      radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.28), transparent 60%),
      linear-gradient(to bottom, #020617, #020617 50%, #020617);
    border-top-color:#1f2937;
  }

  .mx-metric-card{
    border-color:#1f2937;
    background:
      radial-gradient(circle at top left, #020617, #020617);
    box-shadow:
      0 18px 45px rgba(0,0,0,0.9),
      0 0 0 1px rgba(15,23,42,0.85);
  }
  .mx-metric-card:hover{
    border-color:rgba(59,130,246,0.8);
    background:
      radial-gradient(circle at top left, #020617, #020b35);
    box-shadow:
      0 24px 60px rgba(0,0,0,0.95),
      0 0 0 1px rgba(59,130,246,0.7);
  }

  .mx-metric-label{
    color:#9ca3af;
  }
  .mx-metric-number{
    color:#e5e7eb;
  }
  .mx-metric-caption{
    color:#9ca3af;
  }
}

/* manual dark override */
html[data-theme="dark"] .section-metrics{
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.40), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.32), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 50%, #020617);
}
/* Blog → CTA spacing refinement */
.section-blog{
  padding-bottom: 2.2rem; /* was a bit tall */
}

/* When the CTA follows the blog section, keep the vertical gap tight */
.section-blog + .section-cta{
  margin-top: 1.4rem;
}

/* CTA band subtle background gradient (if not already styled in HTML) */
.section-cta{
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background:
    radial-gradient(900px 520px at 0% -20%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(900px 520px at 100% -10%, rgba(16,185,129,0.06), transparent 60%),
    linear-gradient(to bottom, #f9fafb, #e5f0ff);
}

/* soft light streak behind the CTA band */
.section-cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 15% 0%, rgba(59,130,246,0.14), transparent 60%),
    radial-gradient(circle at 85% 120%, rgba(16,185,129,0.12), transparent 60%);
  opacity:.7;
  pointer-events:none;
}

/* CTA button – gentle pulse */
@keyframes mxCtaPulse{
  0%{
    box-shadow:
      0 10px 24px rgba(37,99,235,0.32),
      0 0 0 0 rgba(37,99,235,0.00);
  }
  50%{
    box-shadow:
      0 16px 32px rgba(37,99,235,0.42),
      0 0 0 12px rgba(37,99,235,0.14);
  }
  100%{
    box-shadow:
      0 10px 24px rgba(37,99,235,0.32),
      0 0 0 0 rgba(37,99,235,0.00);
  }
}

/* only the bottom CTA button gets the pulse */
.section-cta .btn-mx{
  animation: mxCtaPulse 4.4s ease-out infinite;
}

/* on hover, keep it crisp and under your existing hover style */
.section-cta .btn-mx:hover{
  animation: none;
}


/* =========================
   DARK MODE (SYSTEM-WIDE TOKENS)
   ========================= */
@media (prefers-color-scheme: dark){
  :root{
    --mx-bg: #020617;
    --mx-surface: #020617;
    --mx-card: #020617;
    --mx-border: #1f2937;
    --mx-text: #e5e7eb;
    --mx-muted: #9ca3af;
    --mx-primary: #3b82f6;
    --mx-primary-700: #2563eb;
    --mx-accent: #22c55e;
    --mx-accent-700: #16a34a;
    --mx-link: #60a5fa;
    --mx-danger: #ef4444;
    --mx-shadow-soft: 0 12px 32px rgba(0,0,0,0.7);
    --mx-shadow-strong: 0 26px 70px rgba(0,0,0,0.9);
  }

  html,body{
    background: radial-gradient(1200px 800px at top, #0f172a 0, #020617 55%, #000 100%);
    color: var(--mx-text);
  }

  .navbar.mx{
    background: rgba(15,23,42,0.92);
    border-bottom-color: #1f2937;
  }
  footer{
    background: radial-gradient(circle at top, #111827, #020617);
    border-top-color: #1f2937;
  }
  .btn-ghost{
    background: #020617;
    color: #e5e7eb;
    border-color: #1f2937;
  }
  .btn-ghost:hover{
    background: #020617;
    border-color: #374151;
  }
}

/* =========================
   MANUAL DARK OVERRIDE
   ========================= */
html[data-theme="dark"]{
  --mx-bg: #020617;
  --mx-surface: #020617;
  --mx-card: #020617;
  --mx-border: #1f2937;
  --mx-text: #e5e7eb;
  --mx-muted: #9ca3af;
  --mx-primary: #3b82f6;
  --mx-primary-700: #2563eb;
  --mx-accent: #22c55e;
  --mx-accent-700: #16a34a;
  --mx-link: #60a5fa;
  --mx-danger: #ef4444;
  --mx-shadow-soft: 0 12px 32px rgba(0,0,0,0.7);
  --mx-shadow-strong: 0 26px 70px rgba(0,0,0,0.9);
}

html[data-theme="dark"],
html[data-theme="dark"] body{
  background: radial-gradient(1200px 800px at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--mx-text);
}

html[data-theme="dark"] .navbar.mx{
  background: rgba(15,23,42,0.96);
  border-bottom-color: #1f2937;
}
html[data-theme="dark"] .btn-ghost{
  background: #020617; color: #e5e7eb; border-color: #1f2937;
}
html[data-theme="dark"] footer{
  background: radial-gradient(circle at top, #111827, #020617);
  border-top-color: #1f2937;
}
/* ===================================
   SERVICES PAGE EXTENSION
   =================================== */

.section-services-hero {
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(37,99,235,0.06), transparent 60%),
    linear-gradient(to bottom, #f9fafb, #eef2ff);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.services-hero-graphic img {
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.15);
}

.section-services-main {
  background: linear-gradient(to bottom, #ffffff, #f1f5f9);
  padding-top: 2.5rem;
  padding-bottom: 2.8rem;
}

.section-pipeline {
  background: #020617;
  color: #e5e7eb;
  padding-top: 2.8rem;
  padding-bottom: 2.8rem;
}

.pipeline-wrapper {
  position: relative;
}
.pipeline-step {
  position: relative;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: transform .2s ease;
}
.pipeline-step:hover {
  transform: translateY(-2px);
  background: rgba(37,99,235,0.15);
}
.pipeline-step i {
  margin-right: .4rem;
  color: #60a5fa;
}

.pipeline-arrow {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 999px;
  animation: pipelineFlow 3s linear infinite;
}

@keyframes pipelineFlow {
  0% { opacity:.4; transform: scaleX(0.4); }
  50% { opacity:1; transform: scaleX(1); }
  100% { opacity:.4; transform: scaleX(0.4); }
}

.section-standards {
  background: linear-gradient(to bottom, #f9fafb, #eef2ff);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
