* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #090d16;
  color: #f8fafc;
  min-height: 250vh;
  padding: 40px 20px;
}

/* 🌟 Top Scroll Progress Indicator using animation-timeline */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #38bdf8, #10b981, #f59e0b, #ec4899);
  transform-origin: left center;
  scale: 0 1;
  animation: growProgress linear;
  animation-timeline: scroll();
  z-index: 999;
}

@keyframes growProgress {
  to { scale: 1 1; }
}

.content-scroll {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

h2 {
  text-align: center;
  font-size: 1.3rem;
  color: #38bdf8;
  margin-top: 30px;
}

.card {
  background: #151f34;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Scroll reveal using view() */
.reveal-card {
  animation: revealCard linear both;
  animation-timeline: view();
  animation-range: entry 15% cover 40%;
}

@keyframes revealCard {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

