/* Services: always show hover look + carousel */
.wpr-services-area .ax-services-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.wpr-services-area .ax-services-track.section-bottom-content {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  border-width: 1px 0;
  border-style: solid;
  border-color: var(--color-border);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wpr-services-area .ax-services-track .service-wrapper,
.wpr-services-area .ax-services-track .ax-services-slide.wow {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}

.wpr-services-area .ax-services-track .service-wrapper {
  flex: 0 0 25%;
  width: 25%;
  max-width: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
  min-height: 560px;
  box-sizing: border-box;
}

.wpr-services-area .ax-services-track .service-wrapper .image-area {
  height: 100%;
  min-height: 560px;
}

.wpr-services-area .ax-services-track .service-wrapper .image-area img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.8s;
}

/* Default = former hover state */
.wpr-services-area .ax-services-track .service-wrapper::after {
  transform: translate(-51%, -49%) scale(0) !important;
  opacity: 0 !important;
}

.wpr-services-area .ax-services-track .service-wrapper .content .top .desc {
  opacity: 1 !important;
  color: #D1D5DB !important;
}

.wpr-services-area .ax-services-track .service-wrapper .content .top .tag {
  background: #F3F4F6 !important;
  color: var(--color-heading-1) !important;
}

.wpr-services-area .ax-services-track .service-wrapper .content .bottom ul li {
  color: #F9FAFB !important;
}

.wpr-services-area .ax-services-track .service-wrapper .content .bottom .service-btn-area {
  opacity: 1 !important;
}

.wpr-services-area .ax-services-track .service-wrapper .content .mid {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  margin: 20px 0;
  min-height: 280px;
  pointer-events: none;
}

/* Equal-size 3D service emblems */
.ax-svc-icon {
  --ax-icon-size: 250px;
  position: relative;
  width: var(--ax-icon-size);
  height: var(--ax-icon-size);
  transform-style: preserve-3d;
  perspective: 600px;
  animation: ax-svc-float 4.5s ease-in-out infinite;
}

.ax-svc-icon__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.45) 0%, rgba(0, 102, 255, 0.12) 45%, transparent 70%);
  filter: blur(6px);
  animation: ax-svc-pulse 2.8s ease-in-out infinite;
}

.ax-svc-icon__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 6px rgba(0, 102, 255, 0.08),
    inset 0 0 18px rgba(0, 224, 255, 0.25);
  transform: rotateX(58deg) rotateZ(-18deg);
}

.ax-svc-icon__core {
  position: absolute;
  inset: 22%;
  border-radius: 22%;
  background: linear-gradient(145deg, #1a2333 0%, #0b1220 55%, #061018 100%);
  box-shadow:
    10px 14px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset -8px -10px 16px rgba(0, 0, 0, 0.35);
  transform: rotateX(18deg) rotateY(-22deg);
}

.ax-svc-icon__face {
  position: absolute;
  border-radius: 18%;
  opacity: 0.9;
}

.ax-svc-icon__face--front {
  inset: 24%;
  background: linear-gradient(160deg, rgba(0, 224, 255, 0.35), rgba(0, 102, 255, 0.15) 60%, transparent);
  transform: rotateX(18deg) rotateY(-22deg) translateZ(8px);
}

.ax-svc-icon__face--side {
  width: 28%;
  height: 52%;
  right: 14%;
  top: 24%;
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.55), rgba(0, 40, 90, 0.35));
  transform: rotateY(68deg) rotateX(12deg);
  transform-origin: left center;
}

.ax-svc-icon__face--top {
  width: 48%;
  height: 22%;
  left: 26%;
  top: 16%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(0, 224, 255, 0.25));
  transform: rotateX(72deg) rotateZ(-18deg);
  transform-origin: center bottom;
}

.ax-svc-icon__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotateX(18deg) rotateY(-22deg) translateZ(16px);
}

.ax-svc-icon__mark::before,
.ax-svc-icon__mark::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #ffffff 0%, #00E0FF 100%);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.55);
}

/* WEB — browser + code brackets */
.ax-svc-icon--web .ax-svc-icon__mark::before {
  width: 42%;
  height: 32%;
  border-radius: 4px;
  background: transparent;
  border: 2px solid #fff;
  box-shadow: 0 0 14px rgba(0, 224, 255, 0.5);
}
.ax-svc-icon--web .ax-svc-icon__mark::after {
  width: 18%;
  height: 2px;
  top: 42%;
  background: #00E0FF;
  box-shadow: -10px 8px 0 #fff, 10px 8px 0 #fff, 0 14px 0 rgba(255, 255, 255, 0.7);
}

/* MOBILE — phone */
.ax-svc-icon--mobile .ax-svc-icon__mark::before {
  width: 26%;
  height: 42%;
  border-radius: 6px;
  background: transparent;
  border: 2px solid #fff;
  box-shadow: 0 0 14px rgba(0, 224, 255, 0.5);
}
.ax-svc-icon--mobile .ax-svc-icon__mark::after {
  width: 10%;
  height: 2px;
  bottom: 34%;
  border-radius: 2px;
}

/* AI AUTOMATION — neural node */
.ax-svc-icon--ai .ax-svc-icon__mark::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00E0FF;
  box-shadow:
    -18px -10px 0 0 #fff,
    18px -10px 0 0 #fff,
    -18px 12px 0 0 rgba(255, 255, 255, 0.85),
    18px 12px 0 0 rgba(255, 255, 255, 0.85),
    0 0 16px rgba(0, 224, 255, 0.8);
}
.ax-svc-icon--ai .ax-svc-icon__mark::after {
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  animation: ax-svc-spin 8s linear infinite;
}

/* CLOUD */
.ax-svc-icon--cloud .ax-svc-icon__mark::before {
  width: 46%;
  height: 22%;
  border-radius: 40px;
  top: 48%;
  background: linear-gradient(180deg, #fff, #00E0FF);
}
.ax-svc-icon--cloud .ax-svc-icon__mark::after {
  width: 22%;
  height: 22%;
  border-radius: 50%;
  top: 38%;
  left: 42%;
  background: #fff;
  box-shadow: -16px 6px 0 2px #fff, 14px 8px 0 0 #00E0FF;
}

/* UI/UX — layers */
.ax-svc-icon--uiux .ax-svc-icon__mark::before {
  width: 36%;
  height: 36%;
  border-radius: 8px;
  background: transparent;
  border: 2px solid #fff;
  transform: translate(-6px, -6px);
  box-shadow: 8px 8px 0 0 rgba(0, 224, 255, 0.85);
}
.ax-svc-icon--uiux .ax-svc-icon__mark::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00E0FF;
  box-shadow: 0 0 10px #00E0FF;
}

/* SEO — chart bars */
.ax-svc-icon--seo .ax-svc-icon__mark::before {
  width: 8px;
  height: 22%;
  bottom: 34%;
  left: 34%;
  border-radius: 2px;
  background: #fff;
  box-shadow: 14px -10px 0 #00E0FF, 28px -18px 0 #fff;
}
.ax-svc-icon--seo .ax-svc-icon__mark::after {
  width: 40%;
  height: 2px;
  bottom: 32%;
  background: rgba(255, 255, 255, 0.7);
}

/* CHATBOT — bubbles */
.ax-svc-icon--chat .ax-svc-icon__mark::before {
  width: 40%;
  height: 28%;
  border-radius: 10px 10px 10px 4px;
  background: linear-gradient(180deg, #fff, #ccefff);
  top: 38%;
  left: 28%;
}
.ax-svc-icon--chat .ax-svc-icon__mark::after {
  width: 28%;
  height: 20%;
  border-radius: 8px 8px 4px 8px;
  background: #00E0FF;
  top: 48%;
  left: 48%;
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.6);
}

.wpr-services-area .ax-services-track .service-wrapper:hover .ax-svc-icon {
  animation-duration: 2.4s;
}
.wpr-services-area .ax-services-track .service-wrapper:hover .ax-svc-icon__core {
  box-shadow:
    12px 18px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 24px rgba(0, 224, 255, 0.25);
}

@keyframes ax-svc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ax-svc-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes ax-svc-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ax-svc-icon,
  .ax-svc-icon__glow,
  .ax-svc-icon--ai .ax-svc-icon__mark::after {
    animation: none !important;
  }
}

.wpr-services-area .ax-services-track .service-wrapper .content {
  background: linear-gradient(
    180deg,
    rgba(3, 7, 18, 0.28) 0%,
    rgba(3, 7, 18, 0.62) 48%,
    rgba(3, 7, 18, 0.86) 100%
  );
}

.wpr-services-area .ax-services-track .service-wrapper:hover .image-area img {
  transform: scale(1.14);
}

.ax-services-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 28px 0 8px;
}

.ax-services-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #d1d5db;
  transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.ax-services-dots button.is-active {
  background: linear-gradient(178.82deg, #0066FF 1.01%, #00E0FF 105.12%);
  width: 28px;
  border-radius: 999px;
}

.ax-services-dots button:focus-visible {
  outline: 2px solid #0066FF;
  outline-offset: 2px;
}

/* About title: keep to ~2–3 lines */
.ax-about__title {
  max-width: 11em;
  font-size: clamp(26px, 2.8vw, 38px) !important;
  line-height: 1.22 !important;
}

@media (max-width: 1199px) {
  .wpr-services-area .ax-services-track .service-wrapper,
  .wpr-services-area .ax-services-track .service-wrapper .image-area,
  .wpr-services-area .ax-services-track .service-wrapper .image-area img {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  .wpr-services-area .ax-services-track .service-wrapper,
  .wpr-services-area .ax-services-track .service-wrapper .image-area,
  .wpr-services-area .ax-services-track .service-wrapper .image-area img {
    min-height: 440px;
  }

  .ax-about__title {
    max-width: 12em;
  }

  /* SplitText lines can be slightly wider than the container and get clipped */
  .wpr-services-area .section-title .split-parent,
  .wpr-services-area .section-title .split-line,
  .wpr-about-area .section-title .split-parent,
  .wpr-about-area .section-title .split-line {
    overflow: visible !important;
    max-width: 100%;
  }

  .wpr-services-area .section-title.second-font {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* =========================================================
 * Services page catalog — dark charcoal (footer CTA language)
 * ========================================================= */
.ax-svc-catalog.wpr-services-area.inner {
  --ax-ink: #ffffff;
  --ax-muted: rgba(255, 255, 255, 0.68);
  --ax-panel: #111214;
  --ax-card: #1a1c1e;
  --ax-card-2: #141516;
  --ax-line: rgba(255, 255, 255, 0.08);
  --ax-charcoal-a: #40454A;
  --ax-charcoal-b: #292C2E;
  margin: 0;
  width: 100%;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(64, 69, 74, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #1a1c1e 0%, #111214 48%, #0f1012 100%);
}

.ax-svc-catalog .container {
  max-width: 1408px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.ax-svc-catalog__shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 56px 28px 72px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
}

.ax-svc-catalog__header {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 40px;
  text-align: center;
}

.ax-svc-catalog__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.ax-svc-catalog__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.2));
}

.ax-svc-catalog__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff !important;
  text-align: center;
  text-transform: none !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}

.ax-svc-catalog__intro {
  margin: 0 auto;
  max-width: 52rem;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--ax-muted);
  text-align: center;
}

.ax-svc-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.ax-svc-catalog__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(64, 69, 74, 0.4) 0%, transparent 55%),
    linear-gradient(180deg, #1a1c1e 0%, #141516 100%);
  box-sizing: border-box;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ax-svc-catalog__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.ax-svc-catalog__media {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0b;
}

.ax-svc-catalog__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease;
}

.ax-svc-catalog__card:hover .ax-svc-catalog__media img {
  transform: scale(1.08);
}

.ax-svc-catalog__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 11, 0.72) 100%);
  pointer-events: none;
}

.ax-svc-catalog__num {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.ax-svc-catalog__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  padding: 20px 20px 22px;
  min-width: 0;
}

.ax-svc-catalog__badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.ax-svc-catalog__name {
  margin: 0 0 10px;
  min-height: 2.5em;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff !important;
  text-align: left;
  text-transform: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ax-svc-catalog__desc {
  margin: 0 0 14px;
  min-height: 4.5em;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ax-muted);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ax-svc-catalog__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 14px 0 0 !important;
  list-style: none !important;
  border-top: 1px solid var(--ax-line);
  box-sizing: border-box;
}

.ax-svc-catalog__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
}

.ax-svc-catalog__list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 0.4em;
  position: static;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.35));
}

.ax-svc-catalog__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 46px;
  margin-top: auto;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: none !important;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(137.66deg, #40454A 21.13%, #292C2E 80.53%);
  box-shadow:
    0 3px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 #1A1A1A,
    inset 0 -4px 0 1px rgba(255, 255, 255, 0.1);
  transition: filter 0.25s ease, transform 0.2s ease, gap 0.2s ease;
}

.ax-svc-catalog__link:hover {
  gap: 12px;
  filter: brightness(1.08);
  color: #fff !important;
}

/* Featured full-width card */
.ax-svc-catalog__card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.ax-svc-catalog__card--featured .ax-svc-catalog__media {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
}

.ax-svc-catalog__card--featured .ax-svc-catalog__body {
  padding: 28px 32px;
  justify-content: center;
}

.ax-svc-catalog__card--featured .ax-svc-catalog__name {
  min-height: 0;
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  font-size: clamp(24px, 2.4vw, 32px);
}

.ax-svc-catalog__card--featured .ax-svc-catalog__desc {
  min-height: 0;
  -webkit-line-clamp: 4;
  max-width: 40rem;
  font-size: 15px;
}

.ax-svc-catalog__card--featured .ax-svc-catalog__list {
  max-width: 28rem;
}

@media (max-width: 1100px) {
  .ax-svc-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ax-svc-catalog__card--featured {
    grid-template-columns: 1fr;
  }

  .ax-svc-catalog__card--featured .ax-svc-catalog__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .ax-svc-catalog__grid {
    grid-template-columns: 1fr;
  }

  .ax-svc-catalog__shell {
    padding: 40px 16px 56px;
  }

  .ax-svc-catalog__name,
  .ax-svc-catalog__desc {
    min-height: 0;
  }

  .ax-svc-catalog__card--featured .ax-svc-catalog__body {
    padding: 20px;
  }
}

/* =========================================================
 * Working process — dark step number badges
 * ========================================================= */
.wpr-working-process .working-process-wrapper .content-area {
  align-items: flex-start;
  gap: 18px;
}

.wpr-working-process .working-process-wrapper .content-area .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin-top: 0;
  padding: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff !important;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(137.66deg, #40454A 21.13%, #292C2E 80.53%);
  box-shadow:
    0 3px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 #1A1A1A,
    inset 0 -4px 0 1px rgba(255, 255, 255, 0.1);
}

.wpr-working-process .working-process-wrapper .content-area .number__index {
  display: block;
  transform: translateY(0.5px);
}

.wpr-working-process .working-process-wrapper:hover .content-area .number {
  filter: brightness(1.08);
}
