/*=============================================
=          Home page: What we offer           =
=============================================*/
.svc-home {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(128, 93, 205, 0.1), transparent 40%),
    radial-gradient(circle at 96% 100%, rgba(128, 93, 205, 0.08), transparent 38%),
    #fff;
  color: #5f5b70;
}

.svc-home__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 48px;
}

.svc-home__tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #eee7ff;
  color: #6340b5;
  font-size: 14px;
  font-weight: 500;
}

.svc-home h2 {
  margin: 0;
  color: #28233e;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.svc-home h2 span {
  background: linear-gradient(90deg, #6340b5, #a46ff0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-home__intro p {
  margin: 0 0 18px;
  color: #5f5b70;
  font-size: 17px;
  line-height: 1.6;
}

.svc-home__all,
.svc-home__more {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.svc-home__all {
  padding: 12px 22px;
  border-radius: 8px;
  background: #805dcd;
  transition: background-color 0.2s ease;
}

.svc-home__all:hover {
  background: #6340b5;
  color: #fff;
}

.svc-home__all i,
.svc-home__more i {
  transition: transform 0.2s ease;
}

.svc-home__all:hover i,
.svc-home__more:hover i {
  transform: translateX(4px);
}

/* Tabs */
.svc-home__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.svc-home__tab {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 12px;
  align-content: start;
  justify-content: start;
  align-items: center;
  padding: 18px 18px 22px;
  overflow: hidden;
  border: 1px solid #e4dcf7;
  border-radius: 14px;
  background: #fff;
  color: #5f5b70;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.svc-home__tab:hover {
  border-color: #b79cf2;
  color: #28233e;
}

.svc-home__tab[aria-selected='true'] {
  border-color: #6340b5;
  background: linear-gradient(150deg, #805dcd, #5a33c2);
  color: #fff;
  box-shadow: 0 12px 28px rgba(99, 64, 181, 0.28);
}

.svc-home__num {
  color: #805dcd;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.svc-home__tab i {
  font-size: 18px;
}

.svc-home__tab[aria-selected='true'] .svc-home__num {
  color: #e0d4ff;
}

.svc-home__tab-name {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.svc-home__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

.svc-home__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #b79cf2, #fff);
  transform: scaleX(0);
  transform-origin: left;
}

.svc-home__tab[aria-selected='true'] .svc-home__bar::after {
  transform: scaleX(1);
}

.svc-home.is-playing .svc-home__tab[aria-selected='true'] .svc-home__bar::after {
  animation: svc-progress var(--svc-delay, 7s) linear forwards;
}

.svc-home.is-paused .svc-home__tab[aria-selected='true'] .svc-home__bar::after {
  animation-play-state: paused;
}

/* Panels */
.svc-home__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 460px;
  padding: 48px;
  border: 1px solid #e4dcf7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 50%, rgba(128, 93, 205, 0.16), transparent 55%),
    #f8f6fd;
}

.svc-home__panel + .svc-home__panel {
  margin-top: 20px;
}

.svc-home__panel[hidden] {
  display: none;
}

.svc-home__panel.is-entering .svc-home__copy > * {
  animation: svc-rise 0.6s ease both;
}

.svc-home__panel.is-entering .svc-home__copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.svc-home__panel.is-entering .svc-home__copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.svc-home__panel.is-entering .svc-home__copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.svc-home__count {
  margin: 0 0 14px;
  color: #805dcd;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

.svc-home__copy h3 {
  margin: 0 0 16px;
  color: #28233e;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
}

.svc-home__copy p:not(.svc-home__count) {
  margin: 0 0 28px;
  color: #5f5b70;
  font-size: 17px;
  line-height: 1.65;
}

.svc-home__more {
  padding-bottom: 4px;
  border-bottom: 2px solid #805dcd;
  color: #6340b5;
}

.svc-home__more:hover {
  color: #805dcd;
}

/* Orbit visual: --svc-spin turns the ring while every label stays upright */
@property --svc-spin {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

.svc-home__orbit {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.svc-home__orbit::before,
.svc-home__orbit::after {
  content: '';
  position: absolute;
  border: 1px dashed rgba(128, 93, 205, 0.4);
  border-radius: 50%;
}

.svc-home__orbit::before {
  inset: 8%;
}

.svc-home__orbit::after {
  inset: 26%;
  border-style: solid;
  border-color: rgba(128, 93, 205, 0.18);
}

.svc-home__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 34%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8b2ff, #805dcd 55%, #4a2a9e);
  color: #fff;
  font-size: clamp(34px, 4vw, 48px);
  box-shadow:
    0 0 0 10px rgba(128, 93, 205, 0.12),
    0 18px 50px rgba(99, 64, 181, 0.45);
  transform: translate(-50%, -50%);
}

.svc-home__core::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(183, 156, 242, 0.6);
  border-radius: 50%;
  animation: svc-ripple 3s ease-out infinite;
}

.svc-home__ring {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: svc-orbit 60s linear infinite;
}

.svc-home__ring li {
  --angle: calc(var(--i) * 60deg - 90deg + var(--svc-spin));
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 8px 14px;
  border: 1px solid #d8cdf0;
  border-radius: 20px;
  background: #fff;
  color: #28233e;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(40, 35, 62, 0.1);
  transform: rotate(var(--angle)) translate(min(42cqw, 185px)) rotate(calc(-1 * var(--angle)))
    translate(-50%, -50%);
}

.svc-home__orbit {
  container-type: inline-size;
}

.svc-home button:focus-visible,
.svc-home a:focus-visible {
  outline: 3px solid #805dcd;
  outline-offset: 3px;
}

@keyframes svc-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes svc-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes svc-ripple {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes svc-orbit {
  to {
    --svc-spin: 360deg;
  }
}

@media (max-width: 1199px) {
  .svc-home__tab {
    padding: 16px 14px 20px;
  }

  .svc-home__tab-name {
    font-size: 14px;
  }

  .svc-home__panel {
    padding: 36px;
  }
}

@media (max-width: 991px) {
  .svc-home {
    padding: 72px 0;
  }

  .svc-home__head {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 32px;
  }

  .svc-home__tabs {
    display: flex;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .svc-home__tabs::-webkit-scrollbar {
    display: none;
  }

  .svc-home__tab {
    flex: 0 0 190px;
    scroll-snap-align: start;
  }

  .svc-home__panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .svc-home__panel {
    gap: 28px;
    padding: 28px 20px;
  }
}

/* Smaller screens: chips sit in a tidy grid under the orb instead of orbiting */
@media (max-width: 767px) {
  .svc-home__orbit {
    display: grid;
    gap: 18px;
    width: 100%;
    aspect-ratio: auto;
    justify-items: center;
  }

  .svc-home__orbit::before,
  .svc-home__orbit::after {
    display: none;
  }

  .svc-home__core {
    position: relative;
    top: auto;
    left: auto;
    width: 104px;
    font-size: 36px;
    transform: none;
  }

  .svc-home__ring {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    animation: none;
  }

  .svc-home__ring li {
    position: static;
    font-size: 13px;
    transform: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-home__ring,
  .svc-home__core::after,
  .svc-home__panel.is-entering .svc-home__copy > * {
    animation: none;
  }

  .svc-home__all i,
  .svc-home__more i,
  .svc-home__tab {
    transition: none;
  }
}

/*=============================================
=        Home page: testimonials band         =
=============================================*/
/* Purple band so the home page alternates white and purple sections */
.testimonials-home {
  background:
    radial-gradient(circle at 88% 12%, rgba(183, 156, 242, 0.35), transparent 45%),
    linear-gradient(135deg, #5a33c2, #805dcd);
}

.testimonials-home .heading,
.testimonials-home .heading .text-color-primary {
  color: #fff !important;
}

.testimonials-home .heading .text-color-primary {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 8px;
}

.testimonials-home .testimonial-slider__one {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(29, 20, 56, 0.25);
}

.testimonials-home .swiper-pagination-bullet {
  background: #fff;
}
