/* services */
/* blue-to-violet panel with a fine white grid and a soft light bloom, drawn on its own layers */
#services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(60% 70% at 42% 0%, rgb(120 150 255 / 0.55), transparent 65%),
    radial-gradient(45% 60% at 100% 100%, rgb(160 80 255 / 0.55), transparent 70%),
    linear-gradient(105deg, #3438d8 0%, #3955fe 38%, #5b45f6 70%, #8a3cf6 100%);
}
#services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.1) 1px, transparent 1px);
  background-size: 56px 52px;
  background-position: center top;
  pointer-events: none;
}
#services .head h2, #services .head h2 .navy { color: var(--white); }
#services .head p, #services .also { color: rgb(255 255 255 / 0.82); }
#services .also .btn-dark { background: var(--white); color: var(--ink); }
#services .also .btn-dark:hover { background: var(--amber); box-shadow: 0 0.75rem 1.5rem -0.75rem rgb(0 0 0 / 0.4); }
#services .svc { border-color: transparent; box-shadow: 0 1.5rem 3rem -1.5rem rgb(20 10 90 / 0.55); }
.services { display: grid; gap: var(--s-4); }
.svc { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-8) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); text-decoration: none; transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast); }
.svc:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-4px); }
.shape { position: relative; width: 6rem; height: 6rem; margin-bottom: var(--s-4); }
.shape i { position: absolute; border-radius: 50%; transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
.svc p { color: var(--muted); font-size: var(--fs-sm); }
.svc .link-arrow { margin-top: auto; padding-top: var(--s-3); font-size: var(--fs-sm); }
/* shape 1: phone stack */
.sh-mobile i:nth-child(1) { inset: 0 30% 8% 8%; border-radius: 1rem; background: linear-gradient(160deg, var(--blue), var(--sky)); }
.sh-mobile i:nth-child(2) { inset: 18% 6% 0 38%; border-radius: 1rem; background: linear-gradient(160deg, var(--amber-2), var(--amber)); opacity: 0.9; mix-blend-mode: multiply; }
.svc:hover .sh-mobile i:nth-child(1) { transform: rotate(-8deg) translateX(-4px); }
.svc:hover .sh-mobile i:nth-child(2) { transform: rotate(8deg) translateX(4px); }
/* shape 2: ring */
.sh-soft i:nth-child(1) { inset: 0; background: conic-gradient(from 200deg, var(--blue), var(--sky), var(--blue-2), var(--blue)); }
.sh-soft i:nth-child(2) { inset: 28%; background: var(--white); }
.svc:hover .sh-soft i:nth-child(1) { transform: rotate(120deg); }
/* shape 3: four-point star */
.sh-ai i:nth-child(1) { inset: 0; border-radius: 0; background: linear-gradient(135deg, var(--blue), var(--blue-2) 50%, var(--sky)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sh-ai i:nth-child(2) { width: 1.25rem; height: 1.25rem; right: 0; top: 0; background: var(--amber); }
.svc:hover .sh-ai i:nth-child(1) { transform: rotate(45deg) scale(1.05); }
.svc:hover .sh-ai i:nth-child(2) { transform: translate(-6px, 6px) scale(1.2); }
/* shape 4: four dots */
.sh-design i { width: 44%; height: 44%; }
.sh-design i:nth-child(1) { left: 0; top: 0; background: var(--blue); }
.sh-design i:nth-child(2) { right: 0; top: 0; background: var(--sky); }
.sh-design i:nth-child(3) { left: 0; bottom: 0; background: var(--amber); }
.sh-design i:nth-child(4) { right: 0; bottom: 0; background: var(--blue-2); opacity: 0.6; }
.svc:hover .sh-design i:nth-child(1) { transform: translate(-4px, -4px); }
.svc:hover .sh-design i:nth-child(2) { transform: translate(4px, -4px); }
.svc:hover .sh-design i:nth-child(3) { transform: translate(-4px, 4px); }
.svc:hover .sh-design i:nth-child(4) { transform: translate(4px, 4px); }
.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-12); text-align: center; color: var(--muted); }
@media (min-width: 40rem) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .services { grid-template-columns: repeat(4, 1fr); } }
