/* ═══════════════════════════════════════════════════════════════
   STACKING STATS CARDS — Compact Neo-Brutalist Showcase
   GSAP ScrollTrigger-powered smooth stacking with compact
   proportions, high-contrast typography and milestone badges
   ═══════════════════════════════════════════════════════════════ */

/* ── Section ── */
.glass-stacking-section {
  padding: 2.5rem 0 4rem;
  position: relative;
}

/* ── Container (Reduced Width) ── */
.glass-cards-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Sticky Scroll Anchor for each card ── */
.glass-card-wrapper {
  height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  will-change: transform;
}

/* ── Main Compact Standout Card ── */
.glass-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 265px;
  border-radius: 24px;
  border: 2.5px solid #0B0F0D;
  box-shadow: 5px 5px 0px #0B0F0D;
  padding: 1.35rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center top;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: default;
  user-select: none;
  overflow: hidden;
  transition: box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-card:hover {
  box-shadow: 7px 7px 0px #0B0F0D;
}

/* ── Background Subtle Watermark Number ── */
.glass-card-watermark {
  position: absolute;
  right: -5px;
  bottom: -15px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 8.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(11, 15, 13, 0.07);
  pointer-events: none;
  z-index: 1;
}

/* ── Top Bar ── */
.glass-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 3;
}

.stat-pill-milestone {
  padding: 4px 13px;
  border-radius: 999px;
  border: 1.5px solid #0B0F0D;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #ffffff;
  color: #0B0F0D;
  box-shadow: 1.5px 1.5px 0px #0B0F0D;
}

.stat-pill-category {
  padding: 4px 13px;
  border-radius: 999px;
  border: 1.5px solid #0B0F0D;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.6);
  color: #0B0F0D;
  box-shadow: 1.5px 1.5px 0px #0B0F0D;
}

/* ── Center Content Area ── */
.glass-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
  z-index: 3;
  padding-bottom: 0.25rem;
}

.stat-number-display {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 4.65rem;
  font-weight: 900;
  line-height: 0.95;
  color: #0B0F0D;
  letter-spacing: -0.04em;
  margin: 0;
  text-shadow: 2.5px 2.5px 0px rgba(255, 255, 255, 0.35);
}

.stat-label-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0B0F0D;
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

/* ── Thematic Color Schemes ── */
.glass-card.theme-cyan {
  background: #38bdf8;
}

.glass-card.theme-green {
  background: #86efac;
}

.glass-card.theme-purple {
  background: #c084fc;
}

.glass-card.theme-yellow {
  background: #fde047;
}

/* Light Theme tweaks */
body.light-theme .glass-card.theme-cyan {
  background: #38bdf8;
}

body.light-theme .glass-card.theme-green {
  background: #86efac;
}

body.light-theme .glass-card.theme-purple {
  background: #c084fc;
}

body.light-theme .glass-card.theme-yellow {
  background: #fde047;
}

/* ═══════════════════════════════════════
   RESPONSIVE (Smooth PC & Mobile)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .glass-cards-container {
    max-width: 540px;
  }

  .glass-card {
    max-width: 520px;
    height: 255px;
  }
}

@media (max-width: 768px) {
  .glass-stacking-section {
    padding: 2rem 0 3rem;
  }

  .glass-card-wrapper {
    height: 65vh;
  }

  .glass-cards-container {
    max-width: 440px;
  }

  .glass-card {
    width: 90%;
    max-width: 420px;
    height: 235px;
    padding: 1.15rem 1.25rem 1rem;
    border-radius: 20px;
    box-shadow: 4px 4px 0px #0B0F0D;
  }

  .stat-number-display {
    font-size: 3.65rem;
  }

  .stat-label-title {
    font-size: 1.1rem;
  }

  .glass-card-watermark {
    font-size: 6.5rem;
    bottom: -10px;
  }

  .stat-pill-milestone,
  .stat-pill-category {
    font-size: 0.62rem;
    padding: 3px 9px;
  }
}

@media (max-width: 480px) {
  .glass-card-wrapper {
    height: 60vh;
  }

  .glass-card {
    width: 92%;
    height: 220px;
    padding: 1rem 1rem 0.85rem;
  }

  .stat-number-display {
    font-size: 3.1rem;
  }

  .stat-label-title {
    font-size: 1rem;
  }

  .stat-pill-milestone,
  .stat-pill-category {
    font-size: 0.58rem;
    padding: 3px 8px;
  }
}