/* ==========================================================================
   VERTICAL STACKED CARDS / DEPTH SCROLL (WHAT WE DO) — NÓRTIKA REFERENCE
   X = 0 | Y Movement Only | Depth via Scale, Z-Index, Blur, and Opacity
   ========================================================================== */

.services-stack-section {
  position: relative;
  width: 100%;
  height: 480vh; /* Creates the rich vertical scroll track */
  background: #08090C !important;
  color: #FFFFFF;
}

.services-stack-pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4.5vw, 70px);
  box-sizing: border-box;
  background: #08090C;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: EDITORIAL HEADER & SCROLL TRACK
   -------------------------------------------------------------------------- */
.services-col-left {
  width: 27%;
  max-width: 380px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: clamp(520px, 78vh, 750px);
  box-sizing: border-box;
}

.services-header-block {
  display: flex;
  flex-direction: column;
}

.services-preline {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.services-display-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 5.2vw, 4.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin: 0 0 22px 0;
}

.services-display-title .title-dot {
  color: #FF007A; /* Magenta accent matching Nórtika */
}

.services-intro-text {
  font-family: var(--font-primary);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Vertical Scroll indicator */
.services-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

.scroll-tag {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.scroll-track-line {
  width: 2px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  border-radius: 2px;
}

.scroll-track-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #08090C;
  position: absolute;
  left: -4px;
  top: 0;
  transition: transform 0.1s linear;
  box-sizing: border-box;
}

.services-counter-bottom {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  margin-top: 18px;
}

.services-counter-bottom .counter-active {
  color: #FFFFFF;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   CENTER STACK STAGE (3D DEPTH CONTAINER)
   -------------------------------------------------------------------------- */
.services-stack-stage {
  position: relative;
  width: 52%;
  max-width: 860px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* CARD ELEMENT (HORIZONTAL PREMIUM CARD) */
.service-stack-card {
  position: absolute;
  width: clamp(520px, 50vw, 780px);
  height: clamp(280px, 28vw, 380px);
  border-radius: 20px;
  background: #111319;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9), 0 14px 28px -10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  will-change: transform, opacity, filter;
  top: 50%;
  left: 50%;
  margin-top: calc(-1 * clamp(280px, 28vw, 380px) / 2);
  margin-left: calc(-1 * clamp(520px, 50vw, 780px) / 2);
  user-select: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-stack-card.is-active {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 36px 70px -10px rgba(0, 0, 0, 0.95), 0 16px 32px -8px rgba(0, 0, 0, 0.8);
}

.service-card-inner {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* LEFT INFO */
.service-card-info {
  width: 44%;
  height: 100%;
  padding: clamp(20px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  box-sizing: border-box;
  background: linear-gradient(90deg, #111319 75%, rgba(17, 19, 25, 0.85) 92%, transparent 100%);
}

.service-card-num {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  display: inline-block;
  width: fit-content;
  padding-bottom: 2px;
  margin-bottom: 8px;
}

.service-card-title {
  font-family: var(--font-primary);
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  line-height: 1.05;
}

.service-card-desc {
  font-family: var(--font-primary);
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin: 0 0 16px 0;
}

.service-card-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: auto;
}

.service-card-btn:hover {
  border-color: #FF007A;
  background: #FF007A;
  transform: scale(1.08);
}

/* RIGHT MEDIA */
.service-card-media {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: LATERAL NUMERIC INDICATOR & EDITORIAL TAG
   -------------------------------------------------------------------------- */
.services-col-right {
  width: 18%;
  max-width: 220px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: clamp(520px, 78vh, 750px);
  box-sizing: border-box;
}

.services-lateral-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-end;
  padding-top: 10px;
}

.lateral-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lateral-item:hover {
  color: rgba(255, 255, 255, 0.75);
}

.lateral-item .nav-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.lateral-item.is-active {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
}

.lateral-item.is-active .nav-bullet {
  background: #FF007A;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 10px #FF007A;
}

.services-editorial-tag {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-editorial-tag .tag-line {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   RESPONSIVE (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-stack-pinned {
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 20px;
  }

  .services-col-left {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .services-scroll-indicator, .services-counter-bottom, .services-col-right {
    display: none;
  }

  .services-stack-stage {
    width: 100%;
    height: 60vh;
  }

  .service-stack-card {
    width: 90vw;
    height: 52vw;
    min-height: 260px;
    margin-top: calc(-1 * clamp(260px, 52vw, 360px) / 2);
    margin-left: -45vw;
  }

  .service-card-info {
    width: 52%;
    padding: 18px;
  }

  .service-card-title {
    font-size: 1.4rem;
  }

  .service-card-desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .service-card-media {
    width: 55%;
  }
}
