.service-grid {
  grid-template-columns: repeat(3, 1fr);
}
.ai-card {
  background: linear-gradient(145deg, #fff 55%, #edf8fb);
}
.ai-card .icon {
  text-shadow: 0 0 22px rgba(22, 184, 212, 0.55);
  animation: ai-glow 2.4s ease-in-out infinite;
}
.service-card {
  background: #fff;
  color: var(--ink);
}
.service-card p {
  color: #536875;
}
.service-card:nth-child(odd) {
  background: var(--navy);
  color: #fff;
}
.service-card:nth-child(odd) p {
  color: #c3d2db;
}
.service-card:nth-child(odd) .icon,
.service-card:nth-child(odd) .card-action {
  color: var(--cyan);
}
.service-card:nth-child(even) .card-action {
  color: var(--blue);
}
.contact h2,
.contact h2 em {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration-color: var(--cyan);
}
.contact h2 em {
  text-decoration-line: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.contact-phone {
  color: white;
  font: 600 16px "Space Grotesk";
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.contact-phone:hover {
  border-color: white;
}
.contact-copy address {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-style: normal;
  display: grid;
  color: white;
}
.contact-copy address span {
  color: #bcd1ef;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-copy address strong {
  font: 500 15px "Space Grotesk";
}
.contact-copy address small {
  color: #d9e6fb;
  margin-top: 7px;
}
.language-link {
  border: 1px solid var(--line);
  padding: 5px 8px;
  line-height: 1;
  font-size: 20px !important;
  filter: saturate(0.9);
  transition: 0.2s;
}
.language-link:hover {
  transform: translateY(-2px) scale(1.08);
  filter: saturate(1.2);
}
@media (max-width: 900px) and (min-width: 601px) {
  .service-card:nth-child(n) {
    background: #fff;
    color: var(--ink);
  }
  .service-card:nth-child(n) p {
    color: #536875;
  }
  .service-card:nth-child(n) .card-action {
    color: var(--blue);
  }
  .service-card:nth-child(4n + 1),
  .service-card:nth-child(4n + 4) {
    background: var(--navy);
    color: #fff;
  }
  .service-card:nth-child(4n + 1) p,
  .service-card:nth-child(4n + 4) p {
    color: #c3d2db;
  }
  .service-card:nth-child(4n + 1) .icon,
  .service-card:nth-child(4n + 4) .icon,
  .service-card:nth-child(4n + 1) .card-action,
  .service-card:nth-child(4n + 4) .card-action {
    color: var(--cyan);
  }
}

.datacenter {
  isolation: isolate;
  perspective: 900px;
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(22, 184, 212, 0.18),
      transparent 32%
    ),
    linear-gradient(145deg, #071b2b, #0a2d43 70%, #0b5bd3);
}

.datacenter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 58px,
    rgba(255, 255, 255, 0.025) 59px 60px
  );
  z-index: -1;
}

.dc-floor {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 42%;
  transform: rotateX(68deg);
  transform-origin: bottom;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 54px,
      rgba(22, 184, 212, 0.14) 55px 56px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 36px,
      rgba(22, 184, 212, 0.11) 37px 38px
    );
}

.rack {
  position: absolute;
  bottom: 92px;
  width: 118px;
  height: 292px;
  padding: 13px 9px;
  background: linear-gradient(
    90deg,
    #07131d,
    #193244 18%,
    #0a1c29 82%,
    #02080d
  );
  border: 2px solid #345062;
  box-shadow:
    0 25px 35px rgba(0, 0, 0, 0.45),
    inset 0 0 25px rgba(0, 0, 0, 0.65);
}

.rack-main {
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: rack-float 4s ease-in-out infinite;
}
.rack-left {
  left: 9%;
  transform: scale(0.82) rotateY(9deg);
  opacity: 0.72;
}
.rack-right {
  right: 7%;
  transform: scale(0.88) rotateY(-9deg);
  opacity: 0.82;
}
.rack-top {
  position: absolute;
  left: -4px;
  right: -4px;
  top: -9px;
  height: 9px;
  background: #3b5565;
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}
.servers {
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    #112b3b 0 14px,
    #355064 15px 16px,
    #030b10 17px 22px
  );
}
.servers::after {
  content: "";
  position: absolute;
  inset: 19px 17px;
  background:
    radial-gradient(circle, #27e39a 0 2px, transparent 3px) 0 0/100% 22px,
    radial-gradient(circle, #16b8d4 0 2px, transparent 3px) 11px 0/100% 44px;
  animation: led-blink 1.3s steps(2, end) infinite;
}
.rack-screen {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 42%;
  padding: 3px;
  text-align: center;
  background: #071b2b;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font: 9px "Space Grotesk";
  box-shadow: 0 0 12px rgba(22, 184, 212, 0.5);
}
.dc-label {
  position: absolute;
  top: 38px;
  left: 34px;
  color: white;
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
}
.dc-label b,
.dc-label span {
  display: block;
}
.dc-label b {
  font: 600 13px "Space Grotesk";
}
.dc-label span {
  color: #9dc3d2;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.dc-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #27e39a;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 0 4px rgba(39, 227, 154, 0.12);
  animation: status-pulse 1.7s infinite;
}
.data-stream {
  position: absolute;
  z-index: 5;
  width: 2px;
  height: 75px;
  top: -80px;
  background: linear-gradient(transparent, var(--cyan), transparent);
  filter: drop-shadow(0 0 5px var(--cyan));
  animation: data-drop 2.4s linear infinite;
}
.stream-one {
  left: 35%;
}
.stream-two {
  right: 26%;
  animation-delay: 1.1s;
}

@keyframes led-blink {
  50% {
    opacity: 0.45;
    filter: hue-rotate(40deg);
  }
}
@keyframes rack-float {
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}
@keyframes status-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(39, 227, 154, 0);
  }
}
@keyframes data-drop {
  to {
    transform: translateY(620px);
    opacity: 0;
  }
}
@keyframes ai-glow {
  50% {
    color: var(--cyan);
    transform: scale(1.12) rotate(8deg);
  }
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .rack {
    width: 88px;
    height: 230px;
    bottom: 65px;
  }
  .rack-left {
    left: 5%;
  }
  .rack-right {
    right: 4%;
  }
  .dc-label {
    top: 25px;
    left: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rack-main,
  .servers::after,
  .dc-label i,
  .data-stream,
  .ai-card .icon {
    animation: none;
  }
}
