/* Horizontal service cards — light theme, blue accents */

.services-scroll {
  position: relative;
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 55%, #f8fbff 100%);
  overflow: hidden;
}

.services-scroll::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 70%;
  right: -10%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 165, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.services-scroll__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2rem);
}

.services-scroll__copy {
  padding-top: 0.5rem;
  padding-right: 1rem;
}

.services-scroll__tag {
  display: inline-block;
  margin-bottom: 1.15rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
}

.services-scroll__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.services-scroll__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #5a7f9e;
}

.services-scroll__hint-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(77, 165, 255, 0.14);
  color: #1e7bff;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 0 16px rgba(30, 123, 255, 0.2);
}

.services-scroll__rail-outer {
  min-width: 0;
  padding-right: clamp(1rem, 3vw, 2rem);
}

.services-scroll__rail {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding: 0.35rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 165, 255, 0.45) transparent;
}

.services-scroll__rail::-webkit-scrollbar {
  height: 6px;
}

.services-scroll__rail::-webkit-scrollbar-thumb {
  background: rgba(77, 165, 255, 0.4);
  border-radius: 999px;
}

.service-scroll-card {
  position: relative;
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(77, 165, 255, 0.28);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 0 32px rgba(30, 123, 255, 0.08),
    0 24px 56px rgba(5, 38, 77, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-scroll-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 123, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 0 40px rgba(30, 123, 255, 0.14),
    0 32px 64px rgba(5, 38, 77, 0.1);
}

.service-scroll-card__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(234, 245, 255, 0.88) 45%, rgba(255, 255, 255, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(77, 165, 255, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(62, 197, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.service-scroll-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234da5ff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.service-scroll-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
  padding: 1.5rem 1.45rem 1.65rem;
}

.service-scroll-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: auto;
}

.service-scroll-card__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(77, 165, 255, 0.22), rgba(30, 123, 255, 0.08));
  border: 1px solid rgba(77, 165, 255, 0.35);
  box-shadow: 0 0 20px rgba(30, 123, 255, 0.2);
}

.service-scroll-card__icon .icon {
  width: 20px;
  height: 20px;
  color: #1e7bff;
}

.service-scroll-card__ver {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6a8aa8;
  padding-top: 0.35rem;
}

.service-scroll-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.service-scroll-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a6d8a;
}

.services-scroll__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-left: 0.25rem;
}

.services-scroll__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(5, 38, 77, 0.15);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}

.services-scroll__dot.is-active {
  width: 2rem;
  background: linear-gradient(90deg, var(--sky), #1e7bff);
  box-shadow: 0 0 12px rgba(30, 123, 255, 0.35);
}

.services-scroll__cta {
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .services-scroll__layout {
    grid-template-columns: 1fr;
    padding-right: clamp(1rem, 3vw, 2rem);
  }

  .services-scroll__copy {
    text-align: center;
    padding-right: 0;
  }

  .services-scroll__hint {
    justify-content: center;
  }

  .services-scroll__cta {
    text-align: center;
  }

  .services-scroll__rail-outer {
    margin-left: -0.25rem;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-scroll-card {
    transition: none;
  }
}
