/**
 * NextGen TechEdge Solutions — Services Redesign & Mega-Menu Stylesheet
 * Enterprise Technology & Engineering Services Portfolio
 */

/* ==========================================================================
   1. MEGA-MENU SITE-WIDE STYLES
   ========================================================================== */
.site-header .container {
  position: relative;
}

@media (min-width: 1081px) {
  .site-header .main-nav {
    height: 84px;
    align-items: center;
  }

  .nav-item.has-mega-menu {
    position: static;
    height: 84px;
    display: flex;
    align-items: center;
  }

  .nav-item.has-mega-menu > .nav-link {
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
  }
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(132, 38, 176, 0.16);
  border-top: 1px solid rgba(132, 38, 176, 0.08);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 28px 60px -12px rgba(17, 12, 28, 0.18), 0 0 0 1px rgba(132, 38, 176, 0.04);
  padding: 30px 32px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  z-index: 1000;
  pointer-events: none;
}

/* Invisible safety bridge preventing hover loss when cursor moves down */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.nav-item.has-mega-menu:hover .mega-menu,
.nav-item.has-mega-menu:focus-within .mega-menu,
.nav-item.has-mega-menu.is-open .mega-menu,
.nav-item.has-mega-menu.is-hovered .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item.has-mega-menu:hover > .nav-link svg,
.nav-item.has-mega-menu.is-open > .nav-link svg {
  transform: rotate(180deg);
  opacity: 1;
  stroke: var(--brand-purple);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8426b0;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid rgba(132, 38, 176, 0.12);
}

.mega-col-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8426b0;
  flex-shrink: 0;
}

.mega-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.mega-link:hover,
.mega-link:focus-visible {
  background: rgba(132, 38, 176, 0.06);
  transform: translateX(3px);
}

.mega-link-title {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #171124;
  line-height: 1.3;
}

.mega-link:hover .mega-link-title {
  color: #8426b0;
}

.mega-link-desc {
  display: block;
  font-size: 0.72rem;
  color: #6a6279;
  line-height: 1.35;
  margin-top: 2px;
}

.mega-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(132, 38, 176, 0.1);
  padding-top: 16px;
  font-size: 0.84rem;
}

.mega-bottom-left {
  color: #6a6279;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.mega-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mega-bottom-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #8426b0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mega-bottom-link:hover {
  color: #b81c8c;
  transform: translateX(3px);
}

/* Mobile & Tablet Mega-Menu Accordion */
@media (max-width: 1080px) {
  .nav-item.has-mega-menu {
    position: relative;
    width: 100%;
  }

  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(132, 38, 176, 0.25);
    margin: 8px 0 8px 8px;
    padding: 10px 0 10px 14px;
    background: transparent;
    pointer-events: auto;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 12px;
  }

  .mega-col-header {
    font-size: 0.72rem;
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

  .mega-link {
    padding: 6px 8px;
  }

  .mega-link-title {
    font-size: 0.88rem;
  }

  .mega-link-desc {
    display: none;
  }

  .mega-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
  }
}

/* ==========================================================================
   2. REDESIGNED SERVICES HERO SECTION
   ========================================================================== */
.services-hero-redesign {
  position: relative;
  background: linear-gradient(180deg, #0e091b 0%, #150d26 50%, #1a0f2e 100%);
  color: #ffffff;
  padding: clamp(90px, 9vw, 130px) 0 clamp(64px, 7vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid rgba(132, 38, 176, 0.24);
}

/* Technical grid overlay */
.services-hero-redesign::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(132, 38, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 38, 176, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.6;
}

/* Ambient dynamic light orbs */
.services-hero-glow-1 {
  position: absolute;
  top: -120px;
  left: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 38, 176, 0.22) 0%, rgba(14, 9, 27, 0) 70%);
  pointer-events: none;
}

.services-hero-glow-2 {
  position: absolute;
  top: 40px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 28, 140, 0.16) 0%, rgba(14, 9, 27, 0) 70%);
  pointer-events: none;
}

.services-hero-glow-3 {
  position: absolute;
  bottom: -150px;
  left: 35%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, rgba(14, 9, 27, 0) 70%);
  pointer-events: none;
}

.services-hero-container {
  position: relative;
  z-index: 2;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

/* Left Hero Column */
.services-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d4aa;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.28);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 10px #00d4aa;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #00d4aa; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.services-hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 14px;
}

.services-hero-sublead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  background: linear-gradient(135deg, #df414c 0%, #b81c8c 50%, #8426b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1.3;
}

.services-hero-desc {
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 1.7;
  color: #c9c0dc;
  margin-bottom: 34px;
  max-width: 620px;
}

.services-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-services-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #8426b0 0%, #b81c8c 100%);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(184, 28, 140, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-services-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(184, 28, 140, 0.6);
  color: #ffffff;
}

.btn-services-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-services-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.services-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 580px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.74rem;
  color: #9d92b5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   NEXTGEN ENGINEERING ECOSYSTEM ANIMATED HERO VISUAL COMPONENT
   ========================================================================== */
.services-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100%;
}

.ecosystem-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 490px;
  border-radius: 18px;
  background: radial-gradient(
    ellipse at 50% 50%,
    #281344 0%,
    #120b27 57%,
    #090c1d 100%
  );
  border: 1px solid rgba(137, 82, 182, 0.35);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.65), 0 0 40px rgba(76, 38, 114, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Top Heading */
.ecosystem-top-heading {
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 15;
  pointer-events: none;
  line-height: 1;
}

/* 2. Concentric Orbital Rings */
.eco-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.eco-ring-inner {
  width: 174px;
  height: 174px;
  border: 1px solid #21ddc250;
  box-shadow: 0 0 12px rgba(33, 221, 194, 0.12);
}

.eco-ring-middle {
  width: 245px;
  height: 245px;
  border: 1px solid #19c8b94f;
}

.eco-ring-outer {
  width: 310px;
  height: 310px;
  border: 1px dashed #8952b65c;
}

/* 3. Animated Orbital Particles */
.orbital-particles-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  animation: orbitSpin 22s linear infinite;
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.orbital-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  left: calc(50% - 3.5px);
}

.particle-teal {
  top: -3.5px;
  background: #21edc8;
  box-shadow: 0 0 12px #21edc8, 0 0 4px #21edc8;
}

.particle-purple {
  bottom: -3.5px;
  background: #ba6fff;
  box-shadow: 0 0 12px #ba6fff, 0 0 4px #ba6fff;
}

/* 4. Central NextGen Core */
.ecosystem-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 165px;
  height: 165px;
  border-radius: 50%;
  border: 2px solid #21d4bc;
  background: radial-gradient(
    circle at 45% 30%,
    #4c2672,
    #211438 73%
  );
  box-shadow: 0 0 25px rgba(33, 212, 188, 0.28), inset 0 0 18px rgba(33, 212, 188, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  padding: 12px;
}

.ecosystem-core-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  animation: coreIconPulse 3.5s ease-in-out infinite;
}

@keyframes coreIconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 0 6px #23e8c7);
  }
}

.ecosystem-core-brand {
  white-space: nowrap;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.25px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.ecosystem-core-caption {
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.92;
  line-height: 1.1;
}

/* 5. Six Floating Service Cards */
.eco-service-card {
  position: absolute;
  background: #1b1232ef;
  border: 1px solid #7840a477;
  border-radius: 12px;
  padding: 8px 11px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: floatCard 5s ease-in-out infinite alternate;
  pointer-events: auto;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.eco-service-card:hover {
  border-color: #21d4bc;
  transform: translateY(-8px) scale(1.03) !important;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.eco-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(132, 38, 176, 0.3);
  border: 1px solid rgba(132, 38, 176, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #21d4bc;
  flex-shrink: 0;
}

.eco-card-text {
  display: flex;
  flex-direction: column;
}

.eco-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

.eco-card-subtitle {
  font-size: 9px;
  color: #bca8db;
  line-height: 1.25;
  margin-top: 1px;
  white-space: nowrap;
}

/* Staggered Floating Delays */
.card-top-left {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.card-top-right {
  top: 15%;
  right: 5%;
  animation-delay: 1.2s;
}

.card-middle-left {
  top: 43%;
  left: 3%;
  animation-delay: 2.4s;
}

.card-middle-right {
  top: 43%;
  right: 3%;
  animation-delay: 0.6s;
}

.card-bottom-left {
  bottom: 14%;
  left: 5%;
  animation-delay: 1.8s;
}

.card-bottom-right {
  bottom: 14%;
  right: 5%;
  animation-delay: 3.0s;
}

/* 6. Bottom Caption */
.ecosystem-bottom-caption {
  position: absolute;
  bottom: 19px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  z-index: 15;
  pointer-events: none;
  line-height: 1;
}

/* Responsive Ecosystem Adjustments */
@media (max-width: 1024px) {
  .ecosystem-container {
    max-width: 480px;
    height: 460px;
    margin: 0 auto;
  }
  .ecosystem-core {
    width: 145px;
    height: 145px;
  }
  .ecosystem-core-brand {
    font-size: 12.5px;
  }
  .ecosystem-core-icon {
    width: 32px;
    height: 32px;
  }
  .eco-ring-inner { width: 154px; height: 154px; }
  .eco-ring-middle { width: 220px; height: 220px; }
  .eco-ring-outer, .orbital-particles-spinner { width: 280px; height: 280px; }
}

@media (max-width: 640px) {
  .services-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services-hero-visual {
    order: -1;
    padding: 0;
  }
  .ecosystem-container {
    max-width: 390px;
    height: 420px;
    margin: 0 auto;
  }
  .ecosystem-top-heading {
    font-size: 10.5px;
    top: 13px;
    letter-spacing: 1.2px;
  }
  .ecosystem-bottom-caption {
    font-size: 9.5px;
    bottom: 13px;
    letter-spacing: 0.9px;
  }
  .ecosystem-core {
    width: 126px;
    height: 126px;
    padding: 8px;
  }
  .ecosystem-core-brand {
    font-size: 11.5px;
    letter-spacing: -0.3px;
  }
  .ecosystem-core-caption {
    font-size: 7.8px;
  }
  .ecosystem-core-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
  }
  .eco-ring-inner { width: 134px; height: 134px; }
  .eco-ring-middle { width: 185px; height: 185px; }
  .eco-ring-outer, .orbital-particles-spinner { width: 235px; height: 235px; }

  .eco-service-card {
    padding: 6px 9px;
    border-radius: 9px;
    gap: 7px;
  }
  .eco-card-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .eco-card-icon svg {
    width: 12px;
    height: 12px;
  }
  .eco-card-title {
    font-size: 10px;
  }
  .eco-card-subtitle {
    font-size: 7.8px;
  }

  .card-top-left { top: 12%; left: 2%; }
  .card-top-right { top: 12%; right: 2%; }
  .card-middle-left { top: 43%; left: 1%; }
  .card-middle-right { top: 43%; right: 1%; }
  .card-bottom-left { bottom: 12%; left: 2%; }
  .card-bottom-right { bottom: 12%; right: 2%; }
}

@media (max-width: 380px) {
  .ecosystem-container {
    max-width: 310px;
    height: 380px;
  }
  .ecosystem-top-heading {
    font-size: 9px;
    top: 10px;
    letter-spacing: 0.8px;
  }
  .ecosystem-bottom-caption {
    font-size: 8px;
    bottom: 10px;
    letter-spacing: 0.6px;
  }
  .ecosystem-core {
    width: 108px;
    height: 108px;
    padding: 6px;
  }
  .ecosystem-core-brand {
    font-size: 10.2px;
    letter-spacing: -0.4px;
  }
  .ecosystem-core-caption {
    font-size: 7px;
  }
  .ecosystem-core-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
  }
  .eco-ring-inner { width: 114px; height: 114px; }
  .eco-ring-middle { width: 156px; height: 156px; }
  .eco-ring-outer, .orbital-particles-spinner { width: 200px; height: 200px; }

  .eco-service-card {
    padding: 4px 6px;
    border-radius: 7px;
    gap: 5px;
  }
  .eco-card-icon {
    width: 18px;
    height: 18px;
  }
  .eco-card-icon svg {
    width: 10px;
    height: 10px;
  }
  .eco-card-title {
    font-size: 8.8px;
  }
  .eco-card-subtitle {
    font-size: 6.8px;
  }

  .card-top-left { top: 11%; left: 1%; }
  .card-top-right { top: 11%; right: 1%; }
  .card-middle-left { top: 43%; left: 0%; }
  .card-middle-right { top: 43%; right: 0%; }
  .card-bottom-left { bottom: 11%; left: 1%; }
  .card-bottom-right { bottom: 11%; right: 1%; }
}

/* ==========================================================================
   3. CATEGORY JUMP / SUB-NAV BAR
   ========================================================================== */
.services-jump-bar {
  background: #ffffff;
  border-bottom: 1px solid rgba(132, 38, 176, 0.12);
  position: sticky;
  top: 84px;
  z-index: 90;
  box-shadow: 0 4px 20px -6px rgba(17, 12, 28, 0.05);
  transition: all 0.2s ease;
}

.services-jump-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.services-jump-inner::-webkit-scrollbar {
  display: none;
}

.jump-pill {
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #554a66;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  background: #f7f5fa;
  border: 1px solid rgba(132, 38, 176, 0.1);
  transition: all 0.18s ease;
}

.jump-pill:hover,
.jump-pill.active {
  background: #8426b0;
  color: #ffffff;
  border-color: #8426b0;
  box-shadow: 0 4px 12px rgba(132, 38, 176, 0.25);
}

/* ==========================================================================
   4. SERVICE CATEGORY SECTIONS & CARDS GRID
   ========================================================================== */
.services-category-section {
  padding: clamp(60px, 7vw, 90px) 0;
  border-bottom: 1px solid rgba(132, 38, 176, 0.08);
}

.services-category-section.bg-alt {
  background: #faf8fc;
}

.category-header-wrap {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.category-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8426b0;
  margin-bottom: 10px;
}

.category-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8426b0;
}

.category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #171124;
  line-height: 1.2;
  margin: 0 0 12px;
}

.category-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #5d5370;
  max-width: 740px;
  margin: 0;
}

/* Service Card Grid */
.services-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.services-card-grid.services-card-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .services-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .services-card-grid,
  .services-card-grid.services-card-grid--2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Standard Service Card */
.service-card {
  background: #ffffff;
  border: 1px solid rgba(132, 38, 176, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px -4px rgba(17, 12, 28, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px -10px rgba(132, 38, 176, 0.16);
  border-color: rgba(132, 38, 176, 0.4);
}

.service-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #140d24;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 12, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

.service-card-body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-category {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8426b0;
  margin-bottom: 8px;
}

.service-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #171124;
  line-height: 1.3;
  margin: 0 0 12px;
}

.service-card-desc {
  font-size: 0.92rem;
  line-height: 1.62;
  color: #554a66;
  margin: 0 0 18px;
  flex: 1;
}

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

.service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(132, 38, 176, 0.06);
  color: #8426b0;
  border: 1px solid rgba(132, 38, 176, 0.12);
}

.service-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(132, 38, 176, 0.08);
  padding-top: 16px;
  margin-top: auto;
}

.service-card-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #8426b0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.service-card-link:hover {
  color: #b81c8c;
  transform: translateX(4px);
}

.service-card-caselink {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6a6279;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s ease;
}

.service-card-caselink:hover {
  color: #171124;
}

/* ==========================================================================
   5. INDUSTRY SOLUTIONS CARDS (CATEGORY D)
   ========================================================================== */
.industry-solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.industry-card {
  background: #ffffff;
  border: 1px solid rgba(132, 38, 176, 0.15);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px -4px rgba(17, 12, 28, 0.04);
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: #8426b0;
  box-shadow: 0 16px 36px -8px rgba(132, 38, 176, 0.14);
}

.industry-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(132, 38, 176, 0.12) 0%, rgba(184, 28, 140, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8426b0;
  margin-bottom: 18px;
}

.industry-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #171124;
  margin: 0 0 10px;
}

.industry-card-desc {
  font-size: 0.92rem;
  line-height: 1.62;
  color: #554a66;
  margin: 0 0 18px;
  flex: 1;
}

.industry-evidence-box {
  background: #f8f6fc;
  border-left: 3px solid #8426b0;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: #4b415a;
  margin-bottom: 18px;
}

.industry-evidence-box strong {
  color: #171124;
}

/* ==========================================================================
   6. ENTERPRISE DELIVERY FRAMEWORK SECTION
   ========================================================================== */
.delivery-framework-section {
  padding: clamp(64px, 7vw, 96px) 0;
  background: #110b20;
  color: #ffffff;
  border-top: 1px solid rgba(132, 38, 176, 0.2);
  border-bottom: 1px solid rgba(132, 38, 176, 0.2);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 991px) {
  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .delivery-grid {
    grid-template-columns: 1fr;
  }
}

.delivery-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #00d4aa;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: #a499be;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   7. ACCESSIBILITY & MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .services-hero-redesign::before,
  .pulse-dot,
  .service-card,
  .service-card-img,
  .mega-menu,
  .btn-services-primary,
  .btn-services-secondary {
    animation: none !important;
    transition: none !important;
  }
}
