.services-hero-wrapper {
  position: relative;
  color: var(--white);
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Base layers */
.services-hero-wrapper::before,
.services-hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Background image behavior */
.services-hero-wrapper::before {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Dark overlay */
.services-hero-wrapper::after {
  background: rgba(0,0,0,.70);
  
}

/* Set the image on the ::before of the hero wrapper */
.services-hero-wrapper.service-webdesign::before { background-image: url("/img/diensten/webdesign.webp"); }
.services-hero-wrapper.service-appdevelopment::before { background-image: url("/img/diensten/appdevelopment.webp"); }
.services-hero-wrapper.service-visualdesign::before { background-image: url("/img/diensten/visualdesign.webp"); }


.services-shell {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  isolation: isolate;
}
.services-main {
  padding: clamp(0px, 5vw, 64px);
  display: grid;
  gap: 28px;
  align-content: center;   
  justify-items: start;
}

/* ===== Sidebar ===== */
.services-sidebar{ position: relative; padding: 32px 24px 32px 32px; }
.services-divider{
  position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 0, rgba(255,255,255,.18) 15%, rgba(255,255,255,.18) 85%, transparent 100%);
  opacity:.9;
}
.services-nav{ list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.services-nav a{
  display: block; text-decoration: none; color: var(--services-muted);
  font-weight: 500; letter-spacing: .2px; transition: color .2s ease, transform .2s ease;
}
.services-nav a:hover{ color: var(--blue); transform: translateX(2px); }
.services-nav .services-active a{ font-weight: 700; color: var(--blue); }

.services-about-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 80px clamp(16px, 6vw, 80px); max-width: 1280px; margin: auto;
}
.services-about-image {
  position: relative; border-radius: 20px; max-height: 400px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.services-about-image img { width: 100%; height: auto; display: block; }

.services-process-list > li { list-style-type: disc; }
.services-process-list > li::marker { color: var(--blue); }

/* ========== Website Design Process ========== */
.services-process-title { margin-bottom: 20px; }
.services-process-stage {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.services-process-step-index {
  color: var(--blue); margin-right: 10px; font-size: var(--font-smm);
}
.header-process-title { font-weight: bold; font-size: var(--font-smm); }
.header-procces-text { margin-top: 6px; opacity: .9; }

/* keep list styles */
.services-process-list {
  margin: 0; padding-left: 20px; display: grid; gap: 10px;
}
.services-process-panel[hidden] { display: none; }
.services-process-panel.is-active { display: block; }

.services-process-media {
  border-radius: 20px; overflow: hidden; max-height: 380px; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.services-process-media img { width: 100%; height: auto; display: block; }

/* Timeline */
.services-process-timeline {
  position: relative; margin-top: 28px; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.services-process-steps {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;

  gap: clamp(10px, 2vw, 22px);
  position: relative;
  z-index: 1;
}

.services-process-step {
  width: 100%; background: transparent; border: 0; padding: 12px 4px; text-align: center;
  cursor: pointer; position: relative; outline-offset: 4px;
}
.services-process-step:focus-visible { outline: 2px solid var(--blue); }
.services-process-step-number {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 8px;
  font-weight: 800; border-radius: 999px; background: var(--white);
  box-shadow: inset 0 0 0 4px rgba(99, 102, 241, .35);
}
.services-process-step.is-current .services-process-step-number {
  background: var(--blue); color: var(--white); box-shadow: none;
}
.services-process-step-label { display: block; font-weight: 700; opacity: .65; }
.services-process-step.is-current .services-process-step-label { opacity: 1; color: var(--blue); }

.services-process-nav {
  width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--blue);
  color: var(--white); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.services-process-nav:disabled { background: rgba(0,0,0,.15); cursor: not-allowed; box-shadow: none; }

.services-process-progress {
  grid-column: 1 / -1; height: 6px; background: rgba(99, 102, 241, .18);
  border-radius: 999px; margin-top: -14px; position: relative; overflow: hidden;
}
.services-process-progress-bar {
  display: block; height: 100%; width: 0%; background: var(--dark-blue);
  border-radius: 999px; transition: width .35s ease;
}

.spn-inline-wrap{
  position: relative;
  display: inline-block; 
  vertical-align: top;
}

.spn-inline-abs{
  position: absolute;
  inset: 0;
}
:root{
  --services-services-gap: 22px;
  --services-services-card-w: 320px;  
  --services-services-card-h: 440px;   
  --services-services-radius: 18px;
}

.services-services-carousel{
  background-color: var(--black);
  width: 100%;
  overflow: hidden;
  padding: 100px 0;
}

.services-services-viewport{
  overflow: hidden;
  width: 100%;
  position: relative;
}

.services-services-track{
  display: flex;
  gap: var(--services-services-gap);
  align-items: stretch;
  will-change: transform;
  padding-inline: var(--services-services-gap);
}

.services-services-viewport {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.services-services-viewport.dragging {
  cursor: grabbing;
}

.services-services-card{
  flex: 0 0 var(--services-services-card-w);
  height: var(--services-services-card-h);
  border-radius: var(--services-services-radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.services-services-figure{
  position: relative;
  width: 100%;
  height: 100%;
}

.services-services-figure > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: brightness(0.75); 
  transition: transform .5s ease, filter .35s ease;
  z-index: 0;
  
}


.services-services-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.55); 
}

.services-services-caption{
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2;
  color: var(--white);
}


.services-services-title{margin-top: 14px;}

.services-services-card::after{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 86%, rgba(0,0,0,.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.services-services-info{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--white);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(100%);  
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 3;                   
  pointer-events: none;        
  border-bottom-left-radius: var(--services-services-radius);
  border-bottom-right-radius: var(--services-services-radius);
}

.services-services-card:hover .services-services-info{
  transform: translateY(0);
  opacity: 1;
}
.services-services-header {
  color: var(--white);
  text-align: center;
  margin-bottom: 50px;
}
/* ===== Swipe animations for process panels & media ===== */
@media (prefers-reduced-motion: no-preference) {
  .services-process-anim-enter,
  .services-process-anim-leave {
    will-change: transform, opacity;
    pointer-events: none;
  }

  .services-process-anim-enter { animation: spn-swipe-in 320ms ease both; }
  .services-process-anim-leave {
    animation: spn-swipe-out 320ms ease both; position: absolute; inset: 0;
  }

  .services-process-anim-enter--from-right { --spn-x: 24px; }
  .services-process-anim-enter--from-left  { --spn-x: -24px; }
  .services-process-anim-leave--to-left    { --spn-x: -24px; }
  .services-process-anim-leave--to-right   { --spn-x: 24px; }

  @keyframes spn-swipe-in {
    from { transform: translateX(var(--spn-x)); opacity: 0; }
    to   { transform: translateX(0);            opacity: 1; }
  }
  @keyframes spn-swipe-out {
    from { transform: translateX(0);            opacity: 1; }
    to   { transform: translateX(var(--spn-x)); opacity: 0; }
  }

  .services-process-stage aside > div { position: relative; }
  .services-process-media { position: relative; }
}
@keyframes services-services-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } 
}
.spn-text-swap {
  display: inline-block;
  position: relative;
}.aboutme-title {margin-bottom: 20px;}
@media (max-width: 1200px){
  :root{
    --services-services-card-w: 460px;
    --services-services-card-h: 560px;
  }
}
/* Responsive */
@media (max-width: 980px) {
    :root{
    --services-services-card-w: 78vw;
    --services-services-card-h: 64vw; 
  }
  .services-services-title {margin-top: 0px; font-size: 30px;}
  .services-process-stage { grid-template-columns: 1fr; }
  .services-process-media { min-height: 260px; }
  .services-process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .services-bg { height: 100vh; }
  .services-shell { grid-template-columns: 1fr; }
  .services-divider, .services-sidebar { display: none; }
  .services-about-section { grid-template-columns: 1fr; }
  .services-about-text { order: 1; }
  .services-about-image { order: 2; }
  .services-process-stage { grid-template-columns: 1fr; }
  .services-process-media { max-height: 220px; }
  .services-process-steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(100px, 1fr);
    grid-template-columns: unset;         
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 12px 4px 18px;
    scroll-snap-align: center;
  }
  .services-process-timeline { grid-template-columns: auto 1fr auto; align-items: center; }
  .services-process-nav { width: 52px; height: 52px; }
  .services-process-progress { margin-top: 6px; }
    .services-services-card .services-services-info{
    transform: translateY(0);
    opacity: 1;
  }


  .services-services-card:hover img{
    transform: scale(1.02);
    filter: brightness(0.75);
  }
}

