.service-card {
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto -35% -70% auto;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(22, 184, 212, 0.2);
  border-radius: 50%;
  transition: 0.5s;
  z-index: -1;
}
.service-card::after {
  content: "CLICK_FOR_DETAILS";
  position: absolute;
  right: 20px;
  top: 17px;
  font: 8px "Space Grotesk";
  letter-spacing: 1.6px;
  color: #9aa9b2;
  opacity: 0;
  transition: 0.25s;
}
.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scale(1.7);
  background: rgba(22, 184, 212, 0.04);
}
.service-card:hover::after,
.service-card:focus-visible::after {
  opacity: 1;
}
.service-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
}
.service-card .icon {
  transition:
    transform 0.35s,
    color 0.35s,
    text-shadow 0.35s;
}
.service-card:hover .icon {
  transform: translateY(-5px) rotate(-5deg);
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(22, 184, 212, 0.4);
}
.card-action {
  position: absolute;
  left: 27px;
  bottom: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: 700 12px "DM Sans";
  cursor: pointer;
}
.featured .card-action {
  color: var(--cyan);
}
.card-action span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.25s;
}
.service-card:hover .card-action span {
  transform: translate(3px, -3px);
}
.wide-card {
  grid-column: 1/-1;
  min-height: 245px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-content: center;
  padding: 38px 50px;
}
.wide-card .icon {
  height: auto;
  font-size: 64px;
  align-self: center;
}
.wide-card .wide-copy {
  max-width: 690px;
}
.wide-card .wide-copy p {
  max-width: 660px;
}
.wide-card .card-action {
  left: auto;
  right: 50px;
}
.modal-open {
  overflow: hidden;
}

.product-modal {
  width: min(940px, calc(100% - 32px));
  height: min(650px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: #071b2b;
  color: white;
  overflow: hidden;
  box-shadow: 0 35px 100px rgba(2, 11, 17, 0.55);
}
.product-modal[open] {
  animation: modal-in 0.42s cubic-bezier(0.2, 0.85, 0.3, 1);
}
.product-modal::backdrop {
  background: rgba(1, 10, 16, 0.78);
  backdrop-filter: blur(9px);
  animation: fade-in 0.3s;
}
.modal-content {
  position: relative;
  z-index: 3;
  width: 61%;
  height: 100%;
  padding: 42px 58px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: linear-gradient(90deg, rgba(7, 27, 43, 0.99) 80%, transparent);
}
.modal-content::-webkit-scrollbar {
  display: none;
}
.modal-close {
  position: absolute;
  z-index: 9;
  right: 22px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(7, 27, 43, 0.7);
  color: white;
  font: 300 27px/1 sans-serif;
  cursor: pointer;
  transition: 0.25s;
}
.modal-close:hover {
  transform: rotate(90deg);
  background: var(--blue);
  border-color: var(--blue);
}
.modal-kicker {
  margin: 0 0 15px;
  color: var(--cyan);
  font: 700 10px "Space Grotesk";
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  margin-bottom: 22px;
  border: 1px solid rgba(22, 184, 212, 0.45);
  color: var(--cyan);
  font: 600 23px "Space Grotesk";
  background: rgba(22, 184, 212, 0.07);
  box-shadow: 0 0 30px rgba(22, 184, 212, 0.1);
}
.product-modal h2 {
  font-size: clamp(32px, 4vw, 49px);
  letter-spacing: -1.8px;
}
.modal-intro {
  color: #c7d4dc;
  font-size: 15px;
  margin: 16px 0 18px;
}
.product-modal ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
}
.product-modal li {
  color: #d9e3e8;
  font-size: 12px;
  display: flex;
  gap: 8px;
}
.product-modal li::before {
  content: "+";
  color: var(--cyan);
  font-weight: 700;
}
.modal-service-link {
  margin-right: 8px;
  background: var(--cyan);
  border-color: var(--cyan);
  color: #061723 !important;
}
.modal-result {
  border-left: 2px solid var(--cyan);
  padding: 3px 0 3px 14px;
  margin-bottom: 20px;
}
.modal-result span,
.modal-result strong {
  display: block;
}
.modal-result span {
  color: #6f8999;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 1.6px;
}
.modal-result strong {
  font: 500 13px "Space Grotesk";
  margin-top: 3px;
}
.modal-scene {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 44%;
  overflow: hidden;
  background: radial-gradient(
    circle at 65% 50%,
    var(--theme-glow, #0b5bd3),
    transparent 40%
  );
}
.scene-grid {
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(rgba(22, 184, 212, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 184, 212, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(58deg) rotateZ(-18deg);
  animation: grid-drift 7s linear infinite;
}
.scene-orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid var(--theme, #16b8d4);
  border-radius: 50%;
  box-shadow:
    0 0 60px var(--theme-glow, #0b5bd3),
    inset 0 0 60px var(--theme-glow, #0b5bd3);
  animation: orb-float 4s ease-in-out infinite;
}
.orb-one {
  right: 9%;
  top: 18%;
}
.orb-two {
  right: 25%;
  bottom: -13%;
  width: 150px;
  height: 150px;
  animation-delay: -2s;
}
.scene-symbols {
  position: absolute;
  inset: 0;
}
.scene-symbols::before,
.scene-symbols::after {
  position: absolute;
  color: var(--theme, #16b8d4);
  font: 700 75px "Space Grotesk";
  text-shadow: 0 0 25px var(--theme-glow, #0b5bd3);
  animation: symbol-pulse 2.5s ease-in-out infinite;
}
.scene-symbols::before {
  content: var(--symbol-a, "01");
  right: 16%;
  top: 34%;
}
.scene-symbols::after {
  content: var(--symbol-b, "10");
  right: 35%;
  top: 55%;
  font-size: 25px;
  animation-delay: -1s;
}

.theme-support {
  --theme: #2fe5a7;
  --theme-glow: rgba(47, 229, 167, 0.28);
  --symbol-a: "✓";
  --symbol-b: "UPTIME";
}
.theme-security {
  --theme: #ff5578;
  --theme-glow: rgba(255, 45, 94, 0.28);
  --symbol-a: "◇";
  --symbol-b: "LOCKED";
}
.theme-cloud {
  --theme: #6bdcff;
  --theme-glow: rgba(60, 188, 255, 0.3);
  --symbol-a: "☁";
  --symbol-b: "SYNC";
}
.theme-network {
  --theme: #ffd34e;
  --theme-glow: rgba(255, 198, 46, 0.26);
  --symbol-a: "⌘";
  --symbol-b: "PACKET";
}
.theme-datacenter {
  --theme: #16b8d4;
  --theme-glow: rgba(22, 184, 212, 0.3);
  --symbol-a: "▤";
  --symbol-b: "RACK_01";
}
.theme-remote {
  --theme: #ff9c45;
  --theme-glow: rgba(255, 126, 46, 0.28);
  --symbol-a: "☊";
  --symbol-b: "ONSITE";
}
.theme-ai {
  --theme: #bd76ff;
  --theme-glow: rgba(170, 82, 255, 0.32);
  --symbol-a: "✦";
  --symbol-b: "THINK";
}
.theme-apps {
  --theme: #3df0bd;
  --theme-glow: rgba(35, 226, 169, 0.28);
  --symbol-a: "</>";
  --symbol-b: "BUILD";
}
.theme-monitoring {
  --theme: #47e9ff;
  --theme-glow: rgba(44, 218, 255, 0.28);
  --symbol-a: "◉";
  --symbol-b: "LIVE";
}
.theme-automation {
  --theme: #f8e34f;
  --theme-glow: rgba(248, 227, 79, 0.25);
  --symbol-a: "⚡";
  --symbol-b: "RUN";
}
.theme-migration {
  --theme: #66a3ff;
  --theme-glow: rgba(71, 141, 255, 0.28);
  --symbol-a: "⇢";
  --symbol-b: "MOVE";
}
.theme-consultancy {
  --theme: #ff72c7;
  --theme-glow: rgba(255, 82, 183, 0.25);
  --symbol-a: "⌬";
  --symbol-b: "PLAN";
}
.theme-gdpr {
  --theme: #7df2a8;
  --theme-glow: rgba(55, 221, 119, 0.28);
  --symbol-a: "§";
  --symbol-b: "PRIVACY";
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes grid-drift {
  to {
    transform: perspective(500px) rotateX(58deg) rotateZ(-18deg)
      translate(42px, 42px);
  }
}
@keyframes orb-float {
  50% {
    transform: translateY(-22px) rotate(25deg);
    border-radius: 38%;
  }
}
@keyframes symbol-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.88);
    filter: blur(1px);
  }
}

@media (max-width: 700px) {
  .wide-card {
    grid-column: auto;
    display: block;
    min-height: 390px;
    padding: 34px 27px;
  }
  .wide-card .icon {
    height: 90px;
    font-size: 35px;
  }
  .wide-card .card-action {
    left: 27px;
    right: auto;
  }
  .product-modal {
    height: calc(100% - 24px);
  }
  .modal-content {
    width: 100%;
    padding: 52px 25px 30px;
    background: linear-gradient(rgba(7, 27, 43, 0.97), rgba(7, 27, 43, 0.91));
  }
  .modal-scene {
    inset: 0;
    opacity: 0.48;
  }
  .product-modal ul {
    grid-template-columns: 1fr;
  }
  .product-modal h2 {
    max-width: 85%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-modal[open],
  .product-modal::backdrop,
  .scene-grid,
  .scene-orb,
  .scene-symbols::before,
  .scene-symbols::after {
    animation: none;
  }
}
