/* ==========================================================================
   ZENX CREATIVES - SERVICES SCROLL SHOWCASE & DIRECTORY STYLES
   ========================================================================== */

:root {
  --color-card-surface: #E8ECEF;
  --color-card-surface-alt: #F0F3F6;
  --color-card-border: rgba(10, 10, 10, 0.07);
  --color-card-shadow: rgba(15, 23, 42, 0.12);
  --blurred-text-color: rgba(15, 20, 25, 0.22);
}

[data-theme="dark"] {
  --color-card-surface: #1E2126;
  --color-card-surface-alt: #16181D;
  --color-card-border: rgba(255, 255, 255, 0.1);
  --color-card-shadow: rgba(0, 0, 0, 0.6);
  --blurred-text-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   SCROLL-ANIMATED SERVICES SECTION
   ========================================================================== */
.services-scroll-container {
  position: relative;
  width: 100%;
  height: 380vh;
  background-color: var(--color-bg, #FAFAFA);
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

[data-theme="dark"] .services-scroll-container {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.services-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 25px;
}

/* Blurred Background Wordmark ("WHAT WE DO") */
.services-blurred-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  overflow: hidden;
}

.blurred-wordmark {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: clamp(7rem, 20vw, 20rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-text, #0A0A0A);
  filter: blur(0px);
  -webkit-filter: blur(0px);
  opacity: 0.88;
  transform: scale(1);
  will-change: filter, transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.blurred-wordmark span {
  display: block;
  white-space: nowrap;
}

.services-blurred-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, var(--color-bg, #FAFAFA) 95%);
  pointer-events: none;
}

/* Card Deck Viewport & Stacking Stage */
.services-cards-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Card */
.service-card {
  position: absolute;
  width: 100%;
  max-width: 520px;
  height: 480px;
  background: var(--color-card-surface, #EDEDF0);
  border: 1.8px solid rgba(255, 67, 38, 0.38);
  border-radius: 28px;
  padding: 44px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 60px -12px var(--color-card-shadow), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  transform-origin: center 85%;
  will-change: transform, opacity;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transform: translate3d(0, 115vh, 0);
  opacity: 0;
  pointer-events: none;
}

/* Subtle card styling variations */
.service-card:nth-of-type(1) {
  background: #EDEDF0;
}

.service-card:nth-of-type(2) {
  background: #EAEBED;
}

.service-card:nth-of-type(3) {
  background: #EEF0F2;
}

.service-card:nth-of-type(4) {
  background: #EAECEF;
}

.service-card:nth-of-type(5) {
  background: #ECEEF1;
}

[data-theme="dark"] .service-card:nth-of-type(1) {
  background: #1C1E23;
}

[data-theme="dark"] .service-card:nth-of-type(2) {
  background: #181A1F;
}

[data-theme="dark"] .service-card:nth-of-type(3) {
  background: #20232A;
}

[data-theme="dark"] .service-card:nth-of-type(4) {
  background: #191B20;
}

[data-theme="dark"] .service-card:nth-of-type(5) {
  background: #1F2228;
}

.service-card .card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card .card-title {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--color-text, #0A0A0A);
}

.service-card .card-desc {
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary, #525252);
  max-width: 390px;
}

.service-card .card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
}

.service-card .card-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-card .card-tag-item {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-brand, #FF4326);
  line-height: 1.35;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-card:hover .card-tag-item {
  color: #E0351B;
  transform: translateX(4px);
}

.service-card .card-number {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: clamp(4.2rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--color-text, #0A0A0A);
  opacity: 0.95;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-brand, #FF4326), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  border-color: rgba(255, 67, 38, 0.85);
  box-shadow: 0 32px 70px -10px var(--color-card-shadow), 0 0 25px rgba(255, 67, 38, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* ==========================================================================
   STICKY NOTE & ORANGE CURVED ARROW HINT
   ========================================================================== */
.services-hint-wrapper {
  position: absolute;
  top: 30px;
  left: calc(50% + 246px);
  z-index: 25;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(24px, 16px, 0) scale(0.85);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.45s;
  will-change: transform, opacity;
}

.services-hint-wrapper.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

/* Orange Curved Doodle Arrow */
.services-curved-arrow {
  width: 175px;
  height: 155px;
  flex-shrink: 0;
  margin-right: -10px;
  margin-top: 75px;
  pointer-events: none;
  overflow: visible;
}

.services-curved-arrow .arrow-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.services-curved-arrow .arrow-head {
  opacity: 0;
  transform-origin: 14px 148px;
  transform: scale(0.3);
  transition: opacity 0.25s ease 0.65s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s;
}

.services-hint-wrapper.is-visible .services-curved-arrow .arrow-path {
  stroke-dashoffset: 0;
}

.services-hint-wrapper.is-visible .services-curved-arrow .arrow-head {
  opacity: 1;
  transform: scale(1);
}

/* Sticky Note Card */
.sticky-note-card {
  position: relative;
  width: 175px;
  height: 185px;
  flex-shrink: 0;
  cursor: pointer;
  transform: rotate(2.5deg);
  filter: drop-shadow(4px 10px 18px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 5px rgba(250, 99, 79, 0.25));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  user-select: none;
  outline: none;
}

.sticky-note-card:hover,
.sticky-note-card:focus-visible {
  transform: rotate(4deg) translateY(-5px) scale(1.04);
  filter: drop-shadow(6px 14px 24px rgba(0, 0, 0, 0.18)) drop-shadow(0 4px 12px rgba(250, 99, 79, 0.38));
}

.sticky-note-card:active {
  transform: rotate(1deg) translateY(-1px) scale(0.98);
}

.sticky-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sticky-note-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Patrick Hand', 'Caveat', cursive, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.22;
  color: #18181B;
  padding: 24px 16px 22px 16px;
  pointer-events: none;
}

.sticky-note-content span {
  display: block;
}

/* Gentle floating micro-animation when visible */
@keyframes hintGentleFloat {

  0%,
  100% {
    transform: rotate(2.5deg) translateY(0px);
  }

  50% {
    transform: rotate(3.2deg) translateY(-4px);
  }
}

.services-hint-wrapper.is-visible .sticky-note-card {
  animation: hintGentleFloat 4s ease-in-out infinite 0.8s;
}

.services-hint-wrapper.is-visible .sticky-note-card:hover {
  animation-play-state: paused;
}

/* Scroll progress indicator line */
.scroll-progress-bar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  z-index: 30;
}

[data-theme="dark"] .scroll-progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

.scroll-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--color-brand, #FF4326);
  border-radius: 9999px;
  transition: width 0.08s linear;
}

/* Active card counter indicator */
.card-counter-indicator {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted, #8E939D);
  z-index: 30;
}

/* ==========================================================================
   SHOW ALL SERVICES CTA SECTION
   ========================================================================== */
.show-all-section {
  position: relative;
  padding: 120px 0 140px;
  background: var(--color-bg, #FAFAFA);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  z-index: 30;
  overflow: hidden;
}

[data-theme="dark"] .show-all-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.show-all-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 67, 38, 0.28) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.7;
}

.show-all-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 24px;
}

.show-all-subtitle {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand, #FF4326);
  margin-bottom: 16px;
  display: inline-block;
}

.show-all-title {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--color-text, #0A0A0A);
  max-width: 800px;
}

.show-all-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-text-secondary, #525252);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.show-all-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-home-deck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 36px;
  background: transparent;
  color: var(--color-text, #0A0A0A);
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 1.5px solid var(--color-brand, #FF4326);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-home-deck:hover {
  background: rgba(255, 67, 38, 0.08);
  color: var(--color-brand, #FF4326);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 67, 38, 0.18);
}

[data-theme="dark"] .btn-home-deck {
  color: #FFFFFF;
}

[data-theme="dark"] .btn-home-deck:hover {
  background: rgba(255, 67, 38, 0.16);
  color: #FFFFFF;
}


/* Signature "Show All Services" Button */
.btn-show-all-services {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 44px;
  background-color: var(--color-text, #0A0A0A);
  color: var(--color-bg, #FFFFFF) !important;
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  border-radius: 9999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-show-all-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-brand, #FF4326);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.btn-show-all-services:hover::before {
  transform: translateY(0);
}

.btn-show-all-services span,
.btn-show-all-services .btn-arrow-circle {
  position: relative;
  z-index: 2;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-show-all-services:hover span {
  color: #FFFFFF;
}

.btn-arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: var(--color-bg, #FFFFFF);
  color: var(--color-text, #0A0A0A);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-show-all-services:hover .btn-arrow-circle {
  background: #FFFFFF;
  color: var(--color-brand, #FF4326);
  transform: translateX(6px) rotate(45deg);
}

.btn-show-all-services:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(255, 67, 38, 0.35);
}

/* Secondary value metrics */
.services-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.service-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary, #525252);
  font-size: 0.95rem;
  font-weight: 500;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--color-brand, #FF4326);
  box-shadow: 0 0 8px var(--color-brand, #FF4326);
}

/* ==========================================================================
   SERVICES DIRECTORY PAGE (services.html)
   ========================================================================== */
.services-page-hero {
  padding: 160px 0 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--color-bg-secondary, #F5F5F5);
  text-align: center;
}

[data-theme="dark"] .services-page-hero {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.services-page-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 67, 38, 0.08);
  border: 1px solid rgba(255, 67, 38, 0.2);
  color: var(--color-brand, #FF4326);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.brand-accent {
  color: var(--color-brand, #FF4326);
}

.services-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-secondary, #525252);
  background: var(--color-bg, #FFFFFF);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .filter-btn {
  border-color: rgba(255, 255, 255, 0.12);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-text, #0A0A0A);
  color: var(--color-bg, #FAFAFA);
  border-color: var(--color-text, #0A0A0A);
}

.filter-btn.active {
  background: var(--color-brand, #FF4326);
  border-color: var(--color-brand, #FF4326);
  color: #FFFFFF !important;
}

.services-grid-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 70px 0 100px;
}

.catalog-card {
  background: var(--color-bg, #FFFFFF);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .catalog-card {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.1);
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-brand, #FF4326);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .catalog-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.catalog-number {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-brand, #FF4326);
}

.catalog-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--color-bg-secondary, #F5F5F5);
  color: var(--color-text-secondary, #525252);
}

[data-theme="dark"] .catalog-category {
  background: #1E1E1E;
  color: #A3A3A3;
}

.catalog-title {
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--color-text, #0A0A0A);
}

.catalog-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #525252);
  line-height: 1.6;
  margin-bottom: 24px;
}

.catalog-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .catalog-deliverables {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.catalog-deliverables li {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text, #0A0A0A);
}

.catalog-deliverables li svg {
  color: var(--color-brand, #FF4326);
  flex-shrink: 0;
}

.catalog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

[data-theme="dark"] .catalog-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.catalog-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-brand, #FF4326);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 67, 38, 0.08);
  border: 1px solid rgba(255, 67, 38, 0.2);
  transition: all 0.2s ease;
}

.catalog-page-btn:hover {
  background: var(--color-brand, #FF4326);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.catalog-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, 'Inter Tight', sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text-secondary, #525252);
  margin-top: auto;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 0;
}

.catalog-cta-link:hover {
  color: var(--color-brand, #FF4326);
  transform: translateX(3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1280px) {
  .services-hint-wrapper {
    left: calc(50% + 180px);
    transform: translate3d(20px, 15px, 0) scale(0.9);
  }

  .services-hint-wrapper.is-visible {
    transform: translate3d(0, 0, 0) scale(0.9);
  }
}

@media (max-width: 1024px) {
  .services-grid-catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-hint-wrapper {
    left: auto;
    right: -25px;
    transform: translate3d(15px, 15px, 0) scale(0.82);
  }

  .services-hint-wrapper.is-visible {
    transform: translate3d(0, 0, 0) scale(0.82);
  }
}

@media (max-width: 768px) {
  .services-scroll-container {
    height: 340vh;
  }

  .services-hint-wrapper {
    top: -45px;
    right: 5px;
    left: auto;
    transform: translate3d(10px, 10px, 0) scale(0.72);
  }

  .services-hint-wrapper.is-visible {
    transform: translate3d(0, 0, 0) scale(0.72);
  }

  .services-curved-arrow {
    width: 130px;
    height: 110px;
    margin-right: -15px;
    margin-top: 35px;
  }

  .services-cards-viewport {
    max-width: 90%;
    height: 480px;
  }

  .service-card {
    padding: 32px 28px;
    height: 440px;
  }

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

  .service-card .card-desc {
    font-size: 0.95rem;
  }

  .service-card .card-number {
    font-size: 3.8rem;
  }

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

  .services-page-hero {
    padding: 120px 20px 40px;
  }

  .services-filter-bar {
    gap: 8px;
    margin: 24px 0 10px;
  }

  .catalog-card {
    padding: 28px 22px;
  }

  .btn-show-all-services {
    padding: 18px 32px;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .services-hint-wrapper {
    top: -55px;
    right: -10px;
    transform: translate3d(5px, 5px, 0) scale(0.62);
  }

  .services-hint-wrapper.is-visible {
    transform: translate3d(0, 0, 0) scale(0.62);
    visibility: hidden;
  }

  .services-cards-viewport {
    max-width: 96%;
    height: 420px;
  }

  .service-card {
    padding: 24px 20px;
    height: 390px;
    border-radius: 20px;
  }

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

  .service-card .card-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .service-card .card-number {
    font-size: 3rem;
  }

  .show-all-content {
    padding: 50px 18px;
  }

  .show-all-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .show-all-desc {
    margin-bottom: 30px;
    font-size: 1rem;
  }

  .show-all-actions {
    flex-direction: column;
    width: 100%;
    gap: 14px;
  }

  .btn-show-all-services,
  .btn-home-deck {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center;
  }

  .services-page-hero {
    padding: 100px 16px 30px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}