/* =========================
   STACKING CARDS (GSAP-ready)
   Full CSS (clean + theme-safe)
   ========================= */

/* Design tokens for this component (optional) */
:root {
  --card-width: 500px;
  --card-height: 300px;

  --card-radius: 12px;
  --card-gap: 20px;

  --card-bg: #fff;
  --page-bg: #f4f4f4;

  --text: #555;
  --text-muted: #777;

  --shadow: 0px 1px 10px var(--shadow-primary);
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);

  --stroke: rgba(0, 0, 0, 0.08);
}


/* body {
  font-family: Arial, sans-serif;
  background-color: var(--page-bg);
  margin: 0;
  color: var(--text);
} */
.what-i-do {
  position: relative;
}
/* Container centered on page */
.card-container {
  position: absolute;
  top: 50%;
  left: 50%;
  /* width: var(--card-width);
  height: var(--card-height); */
  transform: translate(-50%, -50%);
  /* margin: 20px; */
  /* outline: 2px solid blue; debugging: remove later */
}

/* Card (each stacked item) */
.card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
padding: 1rem;
  display: flex;
  gap: var(--card-gap);

  /* GSAP-friendly */
  will-change: transform, opacity;
  transform-origin: center;
  backface-visibility: hidden;
}

/* If you want cards hidden until GSAP reveals them, use this.
   (Better: let GSAP set autoAlpha; keep CSS visible.)
*/
/* .card{ opacity: 0; visibility: hidden; } */

/* Content column */
.content {
  position: relative;
  padding: 20px;
  padding-right: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  text-align: left;
}

/* Quote */
.quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin: 0 0 15px 0;
}

/* Testimonial block */
.testimonial {
  text-align: left;
}

.testimonial h1 {
  font-size: 20px;
  margin: 10px 0 5px;
  color: #222;
}

.testimonial p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* Avatar wrapper */
.img-wrapper {
  width: 60px;
  height: 60px;

  border-radius: 50%; /* keep circle */
  border: 2px solid #dedede;

  background-image: linear-gradient(315deg, #dedede 0%, #caccd1 74%);
  box-shadow: var(--shadow-soft);

  margin: 20px 5px;
  overflow: hidden;

  /* only keep will-change if you animate the avatar too */
  will-change: transform;
}

/* Avatar image */
.img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 700px) {
  :root {
    --card-width: 350px;
    --card-height: 500px;
  }

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

  .content {
    justify-content: center;
    padding-right: 20px;
    padding-top: 20px;
  }
}

/* Reduced motion: keep layout stable */
@media (prefers-reduced-motion: reduce) {
  .card,
  .img-wrapper {
    will-change: auto;
  }
}
/* Prevent the section from collapsing or jumping */
.what-i-do {
  overflow: visible !important;
  display: block !important; /* Block is more stable than Flex for pinning */
}

/* Ensure the wrapper inside the pinned section has space */
@media (max-width: 767px) {
  .what-i-do__container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Keeps text at top, cards follow */
    padding-top: 5vh;
  }

  .main-section {
    position: relative;
    width: 100%;
    height: 50vh; /* Controlled height for the card area */
    margin-top: 2rem;
  }
}












