/* ===== Services — Section 5: Technology & Development (dark, uses .svc from section2.css) ===== */

/* laptop & phone flip up from a flat 3D angle, like a screen opening */
.section5 .svc__visual { margin-right: calc(-1 * var(--gutter) - 2vw); }
.section5 .svc__visual img {
  transform: perspective(1000px) rotateX(35deg) translateY(60px) scale(0.9);
  transform-origin: center bottom;
}
.section5.is-visible .svc__visual img { transform: none; }

/* subtle tech grid behind the visual */
.section5 .svc__visual::before {
  content: "";
  position: absolute;
  inset: 5% 0 5% 5%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.8s;
}
.section5.is-visible .svc__visual::before { opacity: 1; }

/* scanning light line sweeping across */
.section5 .svc__visual::after {
  content: "";
  position: absolute;
  top: 10%; bottom: 10%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--green), transparent);
  box-shadow: 0 0 18px 4px rgba(46, 232, 111, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.section5.is-visible .svc__visual::after { animation: techScan 4.5s ease-in-out 1.8s infinite; }
@keyframes techScan {
  0%   { left: 5%; opacity: 0; }
  10%  { opacity: 1; }
  60%  { left: 95%; opacity: 1; }
  70%, 100% { left: 95%; opacity: 0; }
}
.section5 .svc__tilt { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .section5 .svc__visual { margin-right: 0; }
}
