.service-card {
  isolation: isolate;
  overflow: hidden;
  min-height: 392px;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service-card-web,
.service-card-automation {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 166, 225, 0.14), transparent 45%),
    linear-gradient(145deg, rgba(7, 27, 51, 0.96), rgba(9, 20, 39, 0.96));
}

.service-card-web::before,
.service-card-automation::before {
  width: 160px;
  height: 160px;
  top: -100px;
  right: -70px;
  border-radius: 50%;
  background: rgba(2, 201, 245, 0.13);
  filter: blur(18px);
}

.service-card-mobile {
  border-color: rgba(255, 121, 0, 0.65);
  background: linear-gradient(125deg, #0c172b 0%, #12203a 48%, #24170e 70%, #0d182d 100%);
  background-size: 240% 240%;
  animation: orange-card-glow 7s ease-in-out infinite;
}

.service-card-mobile::before {
  width: 210px;
  height: 210px;
  bottom: -115px;
  right: -80px;
  border-radius: 50%;
  background: rgba(255, 121, 0, 0.34);
  filter: blur(30px);
  animation: orange-orb 5.5s ease-in-out infinite alternate;
}

.service-card-mobile::after {
  inset: 0;
  z-index: 0;
  opacity: 0.25;
  background: repeating-linear-gradient(125deg, transparent 0 18px, rgba(255, 150, 48, 0.1) 19px 20px, transparent 21px 42px);
  animation: orange-lines 12s linear infinite;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 13px;
}

.service-icon svg { width: 25px; height: 25px; }
.cyan-icon { color: var(--cyan); border: 1px solid #07516f; background: rgba(0, 176, 220, 0.11); }
.orange-icon { color: var(--orange); border: 1px solid #783709; background: rgba(255, 121, 0, 0.11); }

.code-panel {
  min-height: 106px;
  margin-top: 17px;
  padding: 17px;
  border: 1px solid rgba(32, 54, 89, 0.9);
  border-radius: 12px;
  background: rgba(5, 13, 28, 0.74);
  color: var(--cyan);
  font: 11px/1.85 var(--mono);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.code-panel span { display: block; white-space: pre; }
.service-card-mobile .code-panel { border-color: rgba(105, 76, 46, 0.65); }

@keyframes orange-card-glow {
  0%, 100% { background-position: 0% 40%; box-shadow: 0 0 0 rgba(255, 121, 0, 0); }
  50% { background-position: 100% 60%; box-shadow: 0 16px 38px rgba(255, 121, 0, 0.13); }
}

@keyframes orange-orb {
  from { transform: translate(-18px, 14px) scale(0.92); opacity: 0.55; }
  to { transform: translate(14px, -22px) scale(1.13); opacity: 0.95; }
}

@keyframes orange-lines { to { background-position: 160px 160px; } }

@media (prefers-reduced-motion: reduce) {
  .service-card-mobile,
  .service-card-mobile::before,
  .service-card-mobile::after { animation: none; }
}
