/* Axencia.co — Services Page · World-Class Premium */

.services-page.ax-svc-worldclass {
  --svc-teal: #00d4ff;
  --svc-blue: #3b82f6;
  --svc-glass: rgba(8, 18, 42, 0.78);
  --svc-border: rgba(59, 130, 246, 0.28);
}

/* ── Hero ── */
.ax-svc-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height, 72px) + 88px) 24px 64px;
  text-align: center;
  z-index: 1;
}

.ax-svc-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ax-svc-hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, #000 15%, transparent 72%);
  animation: svcGridDrift 52s linear infinite;
}

@keyframes svcGridDrift {
  to { transform: translate3d(56px, 56px, 0); }
}

.ax-svc-hero-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 520px;
  max-height: 520px;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 68%);
  filter: blur(70px);
  animation: svcGlowPulse 8s ease-in-out infinite;
}

@keyframes svcGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}

.ax-svc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.ax-svc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ax-svc-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: svcLivePulse 2s ease-in-out infinite;
}

@keyframes svcLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.ax-svc-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 20px 0 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #93c5fd 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ax-svc-hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.95);
  max-width: 580px;
  margin: 0 auto 28px;
}

.ax-svc-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 32px;
  max-width: 720px;
}

.ax-svc-hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(8, 16, 36, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.22);
  backdrop-filter: blur(12px);
  min-width: 120px;
}

.ax-svc-hud-item strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  color: var(--svc-teal);
  font-weight: 600;
}

.ax-svc-hud-item span {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
  letter-spacing: 0.04em;
}

/* ── Scroll reveal ── */
.ax-svc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ax-svc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section polish ── */
.ax-svc-worldclass .section-header h2 {
  letter-spacing: -0.02em;
}

.ax-svc-worldclass .dev-card,
.ax-svc-worldclass .ax-sec-card,
.ax-svc-worldclass .service-item,
.ax-svc-worldclass .ax-problem-card {
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}

.ax-svc-worldclass .dev-card:hover,
.ax-svc-worldclass .ax-sec-card:hover,
.ax-svc-worldclass .service-item:hover,
.ax-svc-worldclass .ax-problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(59, 130, 246, 0.08);
}

.ax-svc-worldclass .ax-sec-metrics .ax-metric {
  backdrop-filter: blur(8px);
}

/* ── Testimonials (services) ── */
.ax-svc-testimonials {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(72px, 10vw, 100px) 0;
}

.ax-svc-testimonials .container {
  position: relative;
  z-index: 1;
}

.ax-svc-testimonials .ax-reviews-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 52px);
}

.ax-svc-testimonials .ax-reviews-header h2 {
  letter-spacing: -0.02em;
}

.ax-svc-testimonials .testimonials-3d-stage {
  margin-top: 8px;
}

.ax-svc-testimonials .testimonial-slide .testimonial-card {
  min-height: 260px;
}

.ax-svc-testimonials .testimonial-product-badge--cyber {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.ax-svc-testimonials .testimonial-product-badge--cyber::before {
  background: #60a5fa;
  box-shadow: 0 0 10px #60a5fa;
}

/* ── Live strip ── */
.ax-svc-live-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 48px auto 0;
  padding: 14px 24px;
  max-width: 720px;
  border-radius: 100px;
  background: rgba(8, 16, 36, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.95);
  transition: opacity 0.35s ease;
}

.ax-svc-live-strip span:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

/* ── CTA premium ── */
.ax-svc-cta {
  position: relative;
  overflow: hidden;
}

.ax-svc-cta .cta-box {
  position: relative;
  background: linear-gradient(155deg, rgba(12, 20, 42, 0.92), rgba(6, 12, 28, 0.88));
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.ax-svc-cta .cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 212, 255, 0.08), transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .ax-svc-hud {
    gap: 8px;
  }

  .ax-svc-hud-item {
    min-width: calc(50% - 8px);
    padding: 10px 14px;
  }

  .ax-svc-live-strip {
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-svc-hero-grid,
  .ax-svc-hero-glow,
  .ax-svc-tag-dot {
    animation: none;
  }

  .ax-svc-reveal {
    opacity: 1;
    transform: none;
  }
}
