/* ScrollStack CSS - React Bits Component */
.scroll-stack-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.scroll-stack-item {
  position: sticky;
  top: 120px;
  width: 100%;
  margin-bottom: 48px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center top;
  will-change: transform, filter;
}

/* Card Styling inside ScrollStack */
.scroll-stack-card {
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  border: 1px solid var(--border-glow, rgba(0, 240, 255, 0.2));
  border-radius: 20px;
  padding: 36px 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.scroll-stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan, #00F0FF), transparent);
  opacity: 0.6;
}

.scroll-stack-card:hover {
  border-color: var(--border-glow, rgba(0, 240, 255, 0.5));
  box-shadow: 0 25px 60px rgba(0, 102, 255, 0.25), 0 0 35px rgba(0, 240, 255, 0.2);
}

.scroll-stack-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.scroll-stack-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.scroll-stack-icon {
  font-size: 1.6rem;
  color: var(--accent-cyan, #00F0FF);
}

.scroll-stack-title-group h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main, #FFFFFF);
  margin: 0;
  letter-spacing: -0.02em;
}

.scroll-stack-card-body {
  flex: 1;
}

.scroll-stack-card-body p {
  color: var(--text-sub, #94A3B8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.scroll-stack-card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 8px;
}

.scroll-stack-btn {
  white-space: nowrap;
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .scroll-stack-item {
    top: 90px;
    margin-bottom: 32px;
  }

  .scroll-stack-card {
    padding: 24px;
    gap: 18px;
  }

  .scroll-stack-title-group h3 {
    font-size: 1.25rem;
  }

  .scroll-stack-card-body p {
    font-size: 0.95rem;
  }

  .scroll-stack-btn {
    width: 100%;
    justify-content: center;
  }
}
