/* =====================================================
   OXACODE — FINAL SERVICES PAGE
   ===================================================== */

.services-hero,
.services-catalog,
.technology-universe,
.services-process {
  position: relative;
  z-index: 1;
}

/* =====================================================
   HERO
   ===================================================== */

.services-hero {
  overflow: hidden;
  padding: 155px 0 82px;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 33%, rgba(45, 140, 255, 0.08), transparent 35%),
    radial-gradient(circle at 50% 76%, rgba(138, 63, 252, 0.07), transparent 43%);
  pointer-events: none;
}

.services-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(61, 139, 255, 0.23),
      rgba(138, 63, 252, 0.2),
      transparent
    );
}

.services-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  margin-inline: auto;
  text-align: center;
}

.services-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  padding: 0.48rem 0.95rem;
  color: #ab98ff;
  background: rgba(111, 66, 255, 0.075);
  border: 1px solid rgba(138, 63, 252, 0.2);
  border-radius: 999px;
}

.services-hero h1 {
  max-width: 980px;
  margin: 0 auto 1.45rem;
  color: var(--text-100);
  font-size: clamp(3rem, 5.5vw, 5.55rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.058em;
}

.services-hero h1 span {
  display: block;
}

.services-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-70);
  font-size: 1.02rem;
  line-height: 1.82;
}

.services-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.services-hero__meta {
  width: min(100%, 850px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.8rem auto 0;
  padding: 0.72rem;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.042),
      rgba(255, 255, 255, 0.014)
    );
  border: 1px solid rgba(129, 151, 199, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 22px 55px rgba(0, 3, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.services-hero__meta > div {
  position: relative;
  padding: 0.95rem 1.15rem;
  text-align: center;
}

.services-hero__meta > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 0;
  width: 1px;
  height: 42px;
  transform: translateY(-50%);
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(143, 180, 255, 0.2),
      transparent
    );
}

.services-hero__meta strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-100);
  font-size: 0.98rem;
  font-weight: 700;
}

.services-hero__meta span {
  display: block;
  color: var(--text-50);
  font-size: 0.69rem;
}

.services-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.services-hero__glow--blue {
  top: -220px;
  right: 14%;
  width: 520px;
  height: 520px;
  background: rgba(45, 140, 255, 0.13);
}

.services-hero__glow--purple {
  left: 16%;
  bottom: -290px;
  width: 580px;
  height: 580px;
  background: rgba(138, 63, 252, 0.1);
}

/* =====================================================
   SHARED SECTION HEAD
   ===================================================== */

.services-section-head {
  width: min(100%, 790px);
  margin: 0 auto 3rem;
  text-align: center;
}

/* =====================================================
   SERVICES CATALOG
   ===================================================== */

.services-catalog {
  padding: 110px 0 0;
}

.services-catalog__list {
  display: grid;
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 205px;
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
  transition:
    padding-inline 0.35s ease,
    border-color 0.35s ease;
}

.service-row:last-child {
  border-bottom: 1px solid var(--card-border);
}

.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(45, 140, 255, 0.06),
      rgba(138, 63, 252, 0.035),
      transparent 78%
    );
  opacity: 0;
  transition: opacity 0.35s ease;
}

html[dir="rtl"] .service-row::before {
  background:
    linear-gradient(
      270deg,
      rgba(45, 140, 255, 0.06),
      rgba(138, 63, 252, 0.035),
      transparent 78%
    );
}

.service-row:hover {
  padding-inline: 1.1rem;
  border-color: rgba(111, 126, 255, 0.23);
}

.service-row:hover::before {
  opacity: 1;
}

.service-row__number {
  color: var(--text-50);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-row__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aeb9ff;
  background:
    linear-gradient(
      145deg,
      rgba(45, 140, 255, 0.12),
      rgba(138, 63, 252, 0.1)
    );
  border: 1px solid rgba(111, 126, 255, 0.18);
  border-radius: 17px;
  font-size: 1.08rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-row:hover .service-row__icon {
  color: #fff;
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 14px 34px rgba(111, 66, 255, 0.18);
}

html[dir="rtl"] .service-row:hover .service-row__icon {
  transform: translateY(-4px) rotate(4deg);
}

.service-row__content {
  min-width: 0;
}

.service-row__eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--glow-purple);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-row h3 {
  margin: 0 0 0.6rem;
  color: var(--text-100);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.service-row p {
  max-width: 780px;
  margin: 0;
  color: var(--text-50);
  font-size: 0.83rem;
  line-height: 1.75;
}

.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}

.service-row__tags span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  color: var(--text-70);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 600;
}

.service-row__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-70);
  font-size: 0.75rem;
  font-weight: 600;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.service-row__link i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--grad-blue),
      var(--grad-purple)
    );
  border-radius: 50%;
  box-shadow: 0 9px 24px rgba(111, 66, 255, 0.22);
}

.service-row__link:hover {
  gap: 0.95rem;
  color: var(--text-100);
}

/* =====================================================
   TECHNOLOGY ECOSYSTEM
   ===================================================== */

.technology-universe {
  padding: 130px 0 0;
}

.technology-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.technology-group {
  min-width: 0;
  padding: 1.5rem;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.012)
    );
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.technology-group:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 126, 255, 0.24);
  box-shadow: 0 24px 54px rgba(0, 3, 16, 0.24);
}

.technology-group__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.technology-group__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aeb9ff;
  background:
    linear-gradient(
      145deg,
      rgba(45, 140, 255, 0.1),
      rgba(138, 63, 252, 0.08)
    );
  border: 1px solid rgba(111, 126, 255, 0.17);
  border-radius: 13px;
}

.technology-group__head div > span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-50);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.technology-group h3 {
  margin: 0;
  color: var(--text-100);
  font-size: 0.98rem;
  font-weight: 700;
}

.technology-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.technology-group__items span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  color: var(--text-70);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 600;
}

/* =====================================================
   PROCESS
   ===================================================== */

.services-process {
  padding: 130px 0 0;
}

.services-process__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.services-process__grid article {
  min-width: 0;
  padding: 1.7rem 1.2rem;
  border-inline-end: 1px solid var(--card-border);
}

.services-process__grid article:last-child {
  border-inline-end: 0;
}

.services-process__grid article > span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--text-50);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.services-process__grid i {
  margin-bottom: 1rem;
  color: #aeb9ff;
  font-size: 1.1rem;
}

.services-process__grid h3 {
  margin: 0 0 0.55rem;
  color: var(--text-100);
  font-size: 0.95rem;
  font-weight: 700;
}

.services-process__grid p {
  margin: 0;
  color: var(--text-50);
  font-size: 0.72rem;
  line-height: 1.65;
}

.services-cta {
  padding-bottom: 0;
}

/* =====================================================
   LIGHT THEME
   ===================================================== */

html[data-theme="light"] .technology-group {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(244, 248, 255, 0.74)
    );
  box-shadow: 0 18px 44px rgba(55, 80, 150, 0.08);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1199.98px) {
  .technology-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-process__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .service-row {
    grid-template-columns: 55px 58px minmax(0, 1fr);
  }

  .service-row__link {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .services-hero {
    padding-top: 140px;
    padding-bottom: 70px;
  }

  .services-hero__meta {
    grid-template-columns: 1fr;
  }

  .services-hero__meta > div:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 70%;
    height: 1px;
    transform: translateX(-50%);
    background:
      linear-gradient(
        90deg,
        transparent,
        rgba(143, 180, 255, 0.2),
        transparent
      );
  }

  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .service-row__number {
    align-self: start;
    padding-top: 0.7rem;
  }

  .service-row__icon,
  .service-row__content,
  .service-row__link {
    grid-column: 2;
  }

  .technology-groups {
    grid-template-columns: 1fr;
  }

  .services-process__grid {
    grid-template-columns: 1fr;
  }

  .services-process__grid article {
    border-inline-end: 0;
    border-bottom: 1px solid var(--card-border);
  }

  .services-process__grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .services-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .services-hero__actions {
    flex-direction: column;
  }

  .services-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row__number,
  .service-row__icon,
  .service-row__content,
  .service-row__link {
    grid-column: 1;
  }

  .service-row__number {
    padding-top: 0;
  }
}
