/******************************* KOPIERET FRA GAMMEL ****************************/

html,
body {
  background: transparent !important;
  font-family: var(--fontStyle);
}

/* 1. Hide all "reveal-dot" elements by default */
.services-radar-scope .ac-radar .reveal-dot {
  opacity: 0;
  fill: var(--radar-dot, #b4f701); /* Use your bright dot color */

  /* Add a glow effect when visible */
  filter: drop-shadow(0 0 2px var(--radar-dot))
    drop-shadow(0 0 4px var(--radar-dot));
}

/* Dot labels */
body.light-mode .services-radar-scope .ac-radar .lbl {
  fill: #244a50;
}



/* 2. Link each dot ID to its unique animation */
/* Both animations have the SAME 3.5s duration as the sweep */

.services-radar-scope #tiny-dot-1 {
  animation: reveal-dot-1 14s linear infinite;
}
.services-radar-scope #tiny-dot-2 {
  animation: reveal-dot-2 14s linear infinite;
}
.services-radar-scope #tiny-dot-3 {
  animation: reveal-dot-3 14s linear infinite;
}
.services-radar-scope #tiny-dot-4 {
  animation: reveal-dot-4 14s linear infinite;
}
.services-radar-scope #tiny-dot-5 {
  animation: reveal-dot-5 14s linear infinite;
}
.services-radar-scope #tiny-dot-6 {
  animation: reveal-dot-6 14s linear infinite;
}
.services-radar-scope #tiny-dot-7 {
  animation: reveal-dot-7 14s linear infinite;
}
/* 3. Define the keyframes for each dot's timing */

/* --- Keyframes for Dot 1 at (25, 25) - top-left - angle 225° = ~62.5% --- */
@keyframes reveal-dot-1 {
  0% {
    opacity: 0;
  }
  55.25% {
    opacity: 0;
  } /* Start FADE IN */
  56.5% {
    opacity: 1;
  } /* Peak 1 */
  59% {
    opacity: 0.3;
  } /* Dip */
  62.5% {
    opacity: 1;
  } /* Peak 2 (Bright) */
  66% {
    opacity: 0.2;
  } /* Echo Dip */

  69.5% {
    opacity: 0.4;
  } /* Echo Peak (Dim) */
  77% {
    opacity: 0;
  } /* Final Fade Out */
  100% {
    opacity: 0;
  }
}

/* --- Keyframes for Dot 2 at (10, 60) - left-lower - angle 171° = ~47.5% --- */
@keyframes reveal-dot-2 {
  0% {
    opacity: 0;
  }
  40.25% {
    opacity: 0;
  } /* Start FADE IN */
  41.5% {
    opacity: 1;
  } /* Peak 1 */
  44% {
    opacity: 0.3;
  } /* Dip */
  47.5% {
    opacity: 1;
  } /* Peak 2 (Bright) */
  51% {
    opacity: 0.2;
  } /* Echo Dip */
  54.5% {
    opacity: 0.4;
  } /* Echo Peak (Dim) */
  62% {
    opacity: 0;
  } /* Final Fade Out */
  100% {
    opacity: 0;
  }
}

/* --- Keyframes for Dot 3 at (50, 80) - bottom-center - angle 90° = ~25% --- */
@keyframes reveal-dot-3 {
  0% {
    opacity: 0;
  }
  17.75% {
    opacity: 0;
  } /* Start FADE IN */
  19% {
    opacity: 1;
  } /* Peak 1 */
  21.5% {
    opacity: 0.3;
  } /* Dip */
  25% {
    opacity: 1;
  } /* Peak 2 (Bright) */
  28.5% {
    opacity: 0.2;
  } /* Echo Dip */
  32% {
    opacity: 0.4;
  } /* Echo Peak (Dim) */
  39.5% {
    opacity: 0;
  } /* Final Fade Out */
  100% {
    opacity: 0;
  }
}

/* --- Keyframes for Dot 4 at (73, 33) - right-upper - angle 327° = ~90.8% --- */
@keyframes reveal-dot-4 {
  0% {
    opacity: 0;
  }
  83.55% {
    opacity: 0;
  } /* Start FADE IN */
  84.8% {
    opacity: 1;
  } /* Peak 1 */
  87.3% {
    opacity: 0.3;
  } /* Dip */
  90.8% {
    opacity: 1;
  } /* Peak 2 (Bright) */
  94.3% {
    opacity: 0.2;
  } /* Echo Dip */
  97.8% {
    opacity: 0.4;
  } /* Echo Peak (Dim) */
  100% {
    opacity: 0;
  } /* Final Fade Out */
}

/* --- Keyframes for Dot 5 at (68, 65) - right-lower - angle 45° = ~12.5% --- */
@keyframes reveal-dot-5 {
  0% {
    opacity: 0;
  }
  5.25% {
    opacity: 0;
  } /* Start FADE IN */
  6.5% {
    opacity: 1;
  } /* Peak 1 */
  9% {
    opacity: 0.3;
  } /* Dip */
  12.5% {
    opacity: 1;
  } /* Peak 2 (Bright) */
  16% {
    opacity: 0.2;
  } /* Echo Dip */
  19.5% {
    opacity: 0.4;
  } /* Echo Peak (Dim) */
  27% {
    opacity: 0;
  } /* Final Fade Out */
  100% {
    opacity: 0;
  }
}

/* --- Keyframes for Dot 6 at (90, 40) - right-middle - angle 347° = ~96.4% --- */
@keyframes reveal-dot-6 {
  0% {
    opacity: 0;
  }
  89.15% {
    opacity: 0;
  } /* Start FADE IN */
  90.4% {
    opacity: 1;
  } /* Peak 1 */
  92.9% {
    opacity: 0.3;
  } /* Dip */
  6.4% {
    opacity: 1;
  } /* Peak 2 (Bright) */
  99.9% {
    opacity: 0.2;
  } /* Echo Dip */
  2.4% {
    opacity: 0.4;
  } /* Echo Peak (Dim) */
  9.9% {
    opacity: 0;
  } /* Final Fade Out */
  100% {
    opacity: 0;
  }
}

/* --- Keyframes for Dot 7 at (25, 48) - left-middle - angle 186° = ~51.7% --- */
@keyframes reveal-dot-7 {
  0% {
    opacity: 0;
  }
  44.45% {
    opacity: 0;
  } /* Start FADE IN */
  45.7% {
    opacity: 1;
  } /* Peak 1 */
  48.2% {
    opacity: 0.3;
  } /* Dip */
  51.7% {
    opacity: 1;
  } /* Peak 2 (Bright) */
  55.2% {
    opacity: 0.2;
  } /* Echo Dip */
  58.7% {
    opacity: 0.4;
  } /* Echo Peak (Dim) */
  66.2% {
    opacity: 0;
  } /* Final Fade Out */
  100% {
    opacity: 0;
  }
}

/* === START OF NEW CSS === */
.services-radar-scope .radar-intro-heading {
  /* Makes font size fluid: 
     - min size: 32px
     - max size: 60px
     - scales with viewport width 
  */
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem); /* 32px to 60px */
  line-height: 1.2; /* Add a sensible line-height */
}
@media (max-width: 991.98px) {
  /* On tablets and phones */
  .services-radar-scope .radar-intro-heading {
    text-align: center; /* Center it on mobile */
  }
}
/* === END OF NEW CSS === */
.services-radar-scope .ac-radar .sweep path {
  fill: #ffffff;
  fill-opacity: 0.32;
  /* transition helps it fade between colors */
  transition: fill 0.3s ease;
}

/* === END OF NEW CSS === */
body.light-mode .services-radar-scope .ac-radar .sweep path {
   fill: rgba(86, 86, 86, 0.9);
  /* transition helps it fade between colors */
  transition: fill 0.3s ease;
}

.services-radar-scope .service_text {
  font-size: 20px;
}

/* --- Filter CSS --- */
.services-radar-scope .filter-wrapper {
  text-align: center;
  margin-top: 4rem;
}
.services-radar-scope .main-filter {
  background-color: #3a6b6f;
  border-radius: 50px;
  padding: 6px;
  display: inline-flex;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- NEW: Style for the sliding tab --- */
.services-radar-scope .main-tab-slider {
  position: absolute;
  /* Match the 6px padding on the parent .main-filter */
  top: 6px;
  bottom: 6px;
  left: 0;

  /* This is the active background color */
  background-color: #5c8a8e;
  border-radius: 50px;

  /* This is the magic! Animate the movement */
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Sit behind the text */
  z-index: 1;
}

.services-radar-scope .main-tab {
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  background-color: transparent;
  color: #b0c9ca;
  transition: all 0.3s ease;

  /* --- ADDED --- */
  position: relative;
  z-index: 2;
}
.services-radar-scope .main-tab.active {
  /* --- background-color: #5c8a8e; <-- REMOVED --- */
  color: #d1ffde;
}
.services-radar-scope .sub-filter-container {
  margin-top: -10px;
  position: relative;
  z-index: 5;
  text-align: center;
  min-height: 74px;
}

.services-radar-scope .sub-filter {
  background-color: #ffffff;
  border-radius: 50px;
  padding: 6px;
  display: inline-flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  min-height: 38px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: none; /* Prevents clicks on hidden/fading menus */
  z-index: 0; /* Low priority in stack */
  /* --- NEW CSS FOR FADE/SLIDE --- */

  /* 1. Hide by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px); /* Start 10px up */

  /* 2. Set transition speed */
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;

  /* 3. Ensure it doesn't take up space when hidden */
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* Make it center properly */
}

.services-radar-scope .sub-filter.active {
  /* 1. Show when active */
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* Move to final position */
  /* ADD THIS: */
  pointer-events: auto; /* Re-enables clicks when active */
  z-index: 10;
  /* 2. Bring it back into the layout flow */
  position: relative;
}
.services-radar-scope .sub-tab {
  border: none;
  padding: 10px 20px;
  margin: 4px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  background-color: transparent;
  color: #555;
  transition: all 0.3s ease;

  /* --- ADDED --- */
  position: relative;
  z-index: 2;
}
.services-radar-scope .sub-tab.active {
  background-color: transparent !important; /* <-- CHANGED */
  color: #111;
}

/* --- NEW CSS for Sub-Filter Slider --- */
.services-radar-scope .sub-tab-slider {
  position: absolute;
  top: 6px; /* Matches .sub-filter padding-top */
  bottom: 6px; /* Matches .sub-filter padding-bottom */
  left: 0; /* Will be positioned by JS */

  /* Use the same color as the active tab's old background */
  background-color: #eaf1f3;
  border-radius: 50px;

  /* Use the same animation as the main slider */
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Sit behind the text */
  z-index: 1;
}

@media (max-width: 991.98px) {
  .services-radar-scope .sub-filter-container {
    display: none !important; /* Hide the sub-filter bar */
    min-height: 0; /* Remove the space it held */
  }
  .services-radar-scope .main-filter {
    margin-bottom: 1rem; /* Add some space below main filter on mobile */
  }
  /* Hide main filter when the mobile wheel is shown */
  .filter-wrapper,
  .services-radar-scope .main-filter {
    display: none !important;
  }

  /* Space the 'Click on a dot' helper away from the section above but keep it close to the radar */
  .services-radar-scope .clickadot-container {
    margin-top: 80px;
    margin-bottom: 6px;
    color: var(--text-color);
    font-family: var(--fontStyle);
    font-weight: 300;
  }
}

/* --- Radar CSS --- */
.services-radar-scope .ac-radar {
  /* --radar-size: min(600px, 92vw);  <-- REMOVED */
  --radar-fill: #30636a;
  --radar-stroke: #cee6e9;
  --radar-dash: rgba(255, 255, 255, 0.85);
  --radar-dot: #b4f701;
  width: 100%; /* <-- CHANGED */
  max-width: 600px; /* <-- ADDED */
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

body.light-mode .services-radar-scope .ac-radar {
    --radar-fill: transparent;
    --radar-stroke: #244a50;;
    --radar-dash: rgba(95, 139, 144, 0.4);
    --radar-dot: #6CB3BC;
}

.services-radar-scope .ac-radar svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.services-radar-scope .ac-radar .bg {
  fill: var(--radar-fill);
  stroke: var(--radar-stroke);
  stroke-width: 0.3;
}
.services-radar-scope .ac-radar .cross {
  stroke: var(--radar-stroke);
  stroke-width: 0.3;
  opacity: 0.25;
}

.services-radar-scope .ac-radar .rings {
  fill: none;
  stroke: var(--radar-stroke);
  stroke-width: 0.3;
  opacity: 0.25;
  stroke-dasharray: 2 2;
}

.services-radar-scope .ac-radar .dot {
  fill: var(--radar-dot);
}

body.light-mode .services-radar-scope .ac-radar {
  --radar-dot: #6CB3BC;
}

/* Sweep animation */
.services-radar-scope .ac-radar .sweep {
  transform-origin: 50% 50%;
  animation: radar-spin 14s linear infinite;
}
@keyframes radar-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pointer events */
.ac-radar .bg,
.ac-radar .cross,
.ac-radar .rings,
.ac-radar .sweep,
.services-radar-scope .ac-radar .shade {
  pointer-events: none;
}

/* Dot labels */
.services-radar-scope .ac-radar .lbl {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 3.5px;
  fill: white;
  text-anchor: middle;
  opacity: 0.95;
}

/* --- NEW CSS FOR FILTERING --- */
.services-radar-scope .radar-point {
  /* Hide all dots by default */
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.services-radar-scope .radar-point.show {
  /* Show dots with the .show class */
  visibility: visible;
  opacity: 1;
  cursor: pointer; /* Make it look clickable */
}

/* NEW: Style for the active dot (with glow) */
.services-radar-scope .radar-point.active-dot .dot {
  fill: var(--radar-dot); /* Set the fill to bright green */
  stroke: none; /* Remove the stroke */

  /* This adds the "glow" effect */
  filter: drop-shadow(0 0 4px var(--radar-dot))
    drop-shadow(0 0 8px var(--radar-dot));

  /* This makes the glow fade in smoothly */
  transition: filter 0.3s ease-out;
}
.services-radar-scope .radar-point.active-dot .lbl {
  fill: var(--radar-dot); /* Keep the label bright green */
  font-weight: 400;
}

/* --- NEW CSS for Quadrant Labels --- */
.services-radar-scope .quadrant-label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 5px; /* This will be scaled up by the viewBox */
  font-weight: 600;

  /* Use the same color as your radar lines */
  fill: var(--radar-stroke, #cee6e9);

  /* This centers the text on its offset percentage */
  text-anchor: middle;

  text-transform: uppercase;
  letter-spacing: 0.1em; /* Adds a little breathing room */
  pointer-events: none; /* So it doesn't block clicks on dots */
}

/* --- UPDATED CSS for Mobile Deck Close Button (to match team overlay) --- */
.services-radar-scope .deck-close-btn {
  display: none; /* Hide on desktop by default */
  position: absolute;
  top: clamp(20px, 4.2vw, 26px);
  right: clamp(20px, 4.2vw, 26px);
  z-index: 10; /* Above the deck cards */
  pointer-events: auto;

  /* size + look */
  width: 30px;
  height: 30px;
  border: none;
  outline: none;
  -webkit-appearance: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;

  /* Glass background */
  background: rgba(228, 241, 243, 0.9);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);

  /* This color is for accessibility, but the X is built with ::before/::after */
  color: #244a50;

  /* Hides the '×' text if it's still in the HTML */
  text-indent: -9999px;
  overflow: hidden;

  /* Animation properties */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* The X (two bars) */
.deck-close-btn::before,
.services-radar-scope .deck-close-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%; /* stroke length */
  height: 1px; /* stroke thickness */
  background: rgba(36, 74, 80, 0.5); /* X color/opacity */
  transform-origin: center;
  pointer-events: none;
}
.services-radar-scope .deck-close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.services-radar-scope .deck-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* This class is added by JS to show the button */
.services-radar-scope .deck-close-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Hover/active states (combine with .is-visible) */
.services-radar-scope .deck-close-btn.is-visible:hover {
  transform: translateY(-1px) scale(1); /* Use scale(1) from .is-visible */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  background: rgba(206, 230, 233, 0.44);
}
.services-radar-scope .deck-close-btn.is-visible:active {
  transform: translateY(0) scale(1); /* Use scale(1) from .is-visible */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

@media (max-width: 991.98px) {
  /* On mobile/tablet, allow it to be displayed */
  .services-radar-scope .deck-close-btn {
    display: block;
  }
}

/* On small phones, make it slightly larger and adjust position */
@media (max-width: 575.98px) {
  .services-radar-scope .deck-close-btn {
    top: clamp(20px, 4.2vw, 26px);
    right: clamp(20px, 4.2vw, 26px);
    width: 34px;
    height: 34px;
  }
}
@media (min-width: 992px) {
  .services-radar-scope #radar-wrapper-col {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
/* ==== SAFE MOBILE WHEEL (namespaced) ==== */
/* =========================================================
   TEXT-ONLY MOBILE WHEEL (under RADAR / left column)
   - Shows ONLY the category text (no box, no blur, no lines)
   - Place the HTML in #radar-wrapper-col under the RADAR
   - Keep your existing desktop sub-filter; this only affects mobile
   ========================================================= */

/* Keep your existing white sub-filter hidden on mobile */
@media (max-width: 991.98px) {
  .services-radar-scope .sub-filter-container {
    display: none !important;
  }
}

/* The radar (left) column must not clip the wheel */
.services-radar-scope #radar-wrapper-col {
  position: relative;
  overflow: visible;
}

/* Wheel container visibility on mobile */
@media (max-width: 991.98px) {
  .services-radar-scope #ac-mobile-wheel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 9; /* stays on top if something overlaps */
    margin-top: 12px;
    width: 100%;
  }
}

/* ---------- Core wheel: TEXT ONLY (no visuals) ---------- */
.services-radar-scope #ac-mobile-wheel .ac-wheel {
  /* sizing variables */
  --item-h: 44px; /* single row height */
  --visible-rows: 5; /* must be odd for a centered row */
  --wheel-h: calc(var(--item-h) * var(--visible-rows));

  /* layout & scrolling */
  width: min(420px, 92vw);
  height: var(--wheel-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */

  /* text-only: strip all visuals */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;

  /* keep vertical padding so the center row aligns on an invisible line */
  padding-top: calc((var(--wheel-h) - var(--item-h)) / 2);
  padding-bottom: calc((var(--wheel-h) - var(--item-h)) / 2);
}

/* hide any scrollbar track on WebKit */
.services-radar-scope #ac-mobile-wheel .ac-wheel::-webkit-scrollbar {
  display: none;
}

/* remove guideline & fade masks entirely */
#ac-mobile-wheel .ac-wheel::before,
.services-radar-scope #ac-mobile-wheel .ac-wheel::after {
  content: none !important;
}

/* list layout */
.services-radar-scope #ac-mobile-wheel .ac-wheel-list {
  display: flex;
  flex-direction: column;
}

/* each row = only text */
.services-radar-scope #ac-mobile-wheel .ac-wheel-item {
  height: var(--item-h);
  line-height: var(--item-h);
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-select: none;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  color: #b4f701;
  opacity: 0.55;

  letter-spacing: 0.04em;

  /* no transforms, shadows, etc. */
  transform: none !important;
}

/* active (centered) row = just full opacity (no size change) */
.services-radar-scope #ac-mobile-wheel .ac-wheel-item.ac-active {
  opacity: 1;
}

/* ---------- Optional small-screen tightening ---------- */
@media (max-width: 420px) {
  .services-radar-scope #ac-mobile-wheel .ac-wheel {
    --item-h: 40px; /* a touch tighter rows on tiny phones */
  }
}

/* ---------- Dot visibility on mobile (used by the JS filter) ---------- */
@media (max-width: 991.98px) {
  .services-radar-scope .radar-point {
    transition: opacity 0.25s ease;
    /* leave your default styles; JS toggles .show */
  }
  .services-radar-scope .radar-point.show {
    /* ensure visible when shown */
    opacity: 1;
    pointer-events: auto;
  }
}
/* Center the whole wheel block under the RADAR */
.services-radar-scope #radar-wrapper-col {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers children horizontally */
}

/* Center the wheel container itself */
.services-radar-scope #ac-mobile-wheel {
  width: 100%;
  display: flex;
  justify-content: center; /* centers inner content */
}

/* Center the wheel and its text */
.services-radar-scope #ac-mobile-wheel .ac-wheel {
  width: clamp(220px, 80vw, 420px); /* tidy responsive width */
  margin: 0 auto; /* extra safety */
  text-align: center; /* center the category text */
}

/* (Optional) make each row’s text explicitly centered */
.services-radar-scope #ac-mobile-wheel .ac-wheel-item {
  text-align: center;
}
/* === 3D WHEEL LOOK (text-only) === */
.services-radar-scope #ac-mobile-wheel .ac-wheel {
  perspective: 900px; /* gives depth */
  transform-style: preserve-3d;
  scroll-behavior: smooth; /* smoother manual snaps */
}

.services-radar-scope #ac-mobile-wheel .ac-wheel-item {
  /* enable buttery transforms per item */
  will-change: transform, opacity, filter;
  transition:
    transform 0.18s ease-out,
    opacity 0.18s ease-out;
  transform-origin: center center;
  backface-visibility: hidden;
}

/* keep center text crisp and perfectly centered */
.services-radar-scope #ac-mobile-wheel .ac-wheel-item.ac-active {
  opacity: 1 !important;
  filter: none !important;
}

/* Colors for text-only wheel */
.services-radar-scope #ac-mobile-wheel .ac-wheel-item {
  color: #ffffff; /* non-selected rows = white */
  opacity: 0.65; /* a bit dim */
  font-size: 18px;
  font-weight: 400;
}
body.light-mode .services-radar-scope #ac-mobile-wheel .ac-wheel-item  {
color: #6CB3BC;
}

.services-radar-scope #ac-mobile-wheel .ac-wheel-item.ac-active {
  color: #b4f701; /* selected (centered) row = lime */
  opacity: 1;
  filter: none; /* ensure no blur on the active row */
  font-size: 20px;
  font-weight: 600;
}

body.light-mode .services-radar-scope #ac-mobile-wheel .ac-wheel-item.ac-active {
    color: #30636a;
}

/* Smooth swap crossfade */
.services-radar-scope #ac-mobile-wheel .ac-wheel {
  position: relative;
}
.services-radar-scope #ac-mobile-wheel .ac-wheel-list {
  transition: opacity 0.24s ease;
}
.services-radar-scope #ac-mobile-wheel .ac-wheel.swapping .ac-wheel-list {
  opacity: 0.15; /* fade the new list in while the ghost fades out */
}

/* Ghost overlay of the old list during swap */
.services-radar-scope #ac-mobile-wheel .ghost-list {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.24s ease;
}

/* Make scrolling free & smooth */
.services-radar-scope #ac-mobile-wheel .ac-wheel {
  scroll-snap-type: none !important; /* disable browser snap */
  -webkit-overflow-scrolling: touch; /* iOS momentum */
  scroll-behavior: auto !important; /* don't smooth-animate programmatically */
}

/* Keep the 3D transforms fast but not 'sticky' */
.services-radar-scope #ac-mobile-wheel .ac-wheel-item {
  transition:
    transform 0.14s ease-out,
    opacity 0.14s ease-out,
    filter 0.14s ease-out;
}

/* --- NEW DECK CARD CSS --- */

.services-radar-scope .card-deck-wrapper {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  box-sizing: border-box;
}

.services-radar-scope .deck-card {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 2.2vw, 28px);
  border-radius: 10px;

  overflow-y: auto;
  overflow-x: hidden;

  background: rgba(200, 210, 210, 0.4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  will-change: opacity, transform, backdrop-filter;
  transform: translateZ(0.01px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

body.light-mode .services-radar-scope .deck-card {
    background: rgba(48, 99, 106, 0.4);

}

/* Optional: nicer scrollbars inside deck-cards (WebKit + Firefox) */
.services-radar-scope .deck-card::-webkit-scrollbar {
  width: 6px;
}
.services-radar-scope .deck-card::-webkit-scrollbar-track {
  background: transparent;
}
.services-radar-scope .deck-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.services-radar-scope .deck-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

/* Tight text inside cards */
/* Tight text inside cards */
.services-radar-scope .deck-card .card-title {
  font-size: clamp(10px, 1.1vw, 14px);
  margin: 0 0 0.5rem;
  font-weight: 400;
  font-family: var(--fontStyle);
  text-align: center;
}
.services-radar-scope .deck-card .card-text {
  font-size: clamp(20px, 1.2vw, 16px);
  white-space: pre-line;
  color: #ffffff;
  font-weight: 300;
  font-family: var(--fontStyle);
}

/* Keep the “stage” consistent so fades don’t jank */
.services-radar-scope #radar-text-col {
  position: relative;
  min-height: 0; /* Ensures it collapses if needed */
  height: 100%; /* Important to fill the space defined by the row */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Intro stays in normal flow (NOT absolute) */
.services-radar-scope #radar-intro-text {
  margin: 0;
  text-align: center;
  line-height: normal;
  z-index: 1;
}

body.light-mode .services-radar-scope #radar-intro-text {
  color: #244a50;
}

/* Deck overlays the same area (absolute) and fades in/out */
.services-radar-scope #radar-deck-wrapper {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}

/* When hidden, don’t intercept clicks */
#radar-intro-text[style*="visibility: hidden"],
.services-radar-scope #radar-deck-wrapper[style*="visibility: hidden"] {
  pointer-events: none;
}

.services-radar-scope #radar-intro-text .line {
  display: block;
  margin: 0;
}

/* Responsive type for the intro */
.services-radar-scope #radar-intro-text {
  text-align: center;
  margin: 0;
  margin-top: -40px; /* shift up to align with radar center */
  line-height: 1.08; /* compact but readable */
  font-weight: 700;
  /* About 45px on desktop, smoothly scales down on smaller screens */
  font-size: clamp(22px, 4.2vw, 40px);
  text-wrap: balance; /* nicer wrapping on modern browsers */
}
.services-radar-scope #radar-intro-text .line {
  display: block;
}

/* Keep the “stage” consistent so fades don’t jank */
.services-radar-scope #radar-text-col {
  position: relative;
  min-height: clamp(320px, 48vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Deck overlays; intro stays in normal flow */
.services-radar-scope #radar-deck-wrapper {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}

/* Keep the two columns centered & comfy on desktop */
@media (min-width: 992px) {
  .services-radar-scope #radar-container-row {
    align-items: center;
  }
}

/* Base spacing for the radar row */
.services-radar-scope #radar-container-row {
  margin-top: 32px;
}

/* Make the two columns breathe on desktop and align with the container */
@media (min-width: 992px) {
  .services-radar-scope #radar-container-row {
    align-items: center;
    margin-top: 48px;
  }
  .services-radar-scope #radar-wrapper-col {
    padding-right: 12px;
  }
  .services-radar-scope #radar-text-col {
    padding-left: 12px;
  } /* small gutter so the deck isn’t hugging the radar */
}

/* --- UPDATED: MOBILE/TABLET STYLES FOR SLIDING --- */
@media (max-width: 991.98px) {
  /* 1. Make the row a non-wrapping flex container */
  .services-radar-scope #radar-container-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 28px !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* Give the text column breathing room from content above, but keep text near the radar deck */
  .services-radar-scope #radar-text-col {
    padding-top: 24px;
  }

  /* 2. Make both columns full-width 'slides' */
  #radar-wrapper-col,
  .services-radar-scope #radar-text-col {
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;

    /* Remove default col padding that messes up 100% width */
    padding-left: 0;
    padding-right: 0;
  }

  /* 3. Override stacking/spacing styles */
  .services-radar-scope #radar-wrapper-col {
    margin-bottom: 0 !important; /* Override .mb-2 */
  }

  .services-radar-scope #radar-text-col {
    min-height: auto; /* stop reserving space */
    margin-top: 0; /* was 8px */
    height: auto;
    padding-inline: 12px; /* Add padding to the column itself */
    box-sizing: border-box;
  }

  /* 4. Define the 'slid' state */
  #radar-container-row.deck-visible #radar-wrapper-col,
  .services-radar-scope #radar-container-row.deck-visible #radar-text-col {
    transform: translateX(-100%);
  }

  /* 5. Mobile/tablet override: deck fits the column */
  /* --- THIS IS THE UPDATED CSS FIX --- */
  .services-radar-scope .card-deck-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 480px;
    height: 500px;
    margin-top: 14px;
    margin-bottom: 30px; /* Guarantees 'air' at the bottom */
  }

  /* --- END OF UPDATED CSS FIX --- */

  /* 6. Fix the card inside */
  .services-radar-scope .deck-card {
    inset: 0;
    padding: clamp(14px, 4vw, 20px);
    overflow-y: auto; /* <-- CHANGED: Allow scrolling */
  }
}

/* Keep the heading left-aligned but center the whole block within its column */
.services-radar-scope #radar-intro-text {
  width: 100%;
  max-width: 560px; /* tweak to taste */
  margin-inline: auto; /* centers the block in the column */
  text-align: left; /* keeps lines left-aligned */
}

/* Give the two columns more breathing room on desktop */
@media (min-width: 992px) {
  .services-radar-scope #radar-wrapper-col {
    padding-right: 32px;
  } /* was 12px */
  .services-radar-scope #radar-text-col {
    padding-left: 32px;
  } /* was 12px */
}

/* --- CSS for Intro Text --- */

/* 1. DEFAULT (Dark Mode) styles */
.services-radar-scope #radar-intro-text {
  color: white; /* This colors "EXPLORE THE" and "BY CLICKING ON THE DOTS" */
  transition: color 0.3s ease; /* Adds a nice fade */
}

/* This sets the color for ONLY the highlighted words */
.services-radar-scope #radar-intro-text .highlight-text {
  color: #b4f701; /* The original bright green */
}

body.light-mode .services-radar-scope #radar-intro-text .highlight-text {
color:#6CB3BC;
}
