/* ============================================================
   ScrollExpand Component Stylesheet (React Bits Component)
   Dual-mode: Vanilla DOM Controller & React Component Support
   ============================================================ */

.scroll-expand {
  position: relative;
  width: 100%;
  height: 100%;
}

.scroll-expand--scroller {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.scroll-expand--scroller::-webkit-scrollbar {
  display: none;
}

.scroll-expand__track {
  position: relative;
  width: 100%;
}

.scroll-expand__stage {
  position: sticky;
  top: 0;
  width: 100%;
  overflow: hidden;
  --se-title-size: 4rem;
  background-color: var(--color-canvas, #FAFAFA);
}

.scroll-expand__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(21% 29% 21% 29% round 24px);
  will-change: clip-path;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
}

.scroll-expand__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.scroll-expand__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.25) 45%, rgba(15, 23, 42, 0.45));
  opacity: 0;
  transition: opacity 0.1s linear;
}

.scroll-expand__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6%;
  opacity: 0;
  will-change: opacity, transform;
  z-index: 10;
}

.scroll-expand__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 6%;
  text-align: center;
  font-size: var(--se-title-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 5;
}

.scroll-expand__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  text-align: center;
  font-size: 0.875rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 16px;
  border-radius: 100px;
  width: fit-content;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  will-change: opacity, transform;
  z-index: 5;
}

/* ============================================================
   Aarambhx Technology Overlay Narrative Content
   ============================================================ */
.scroll-expand-section {
  position: relative;
  width: 100%;
  background-color: var(--color-canvas, #FAFAFA);
  border-top: none !important;
  border-bottom: none !important;
}

.scroll-expand-content-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 38px 36px;
  border-radius: 24px;
  background: rgba(10, 18, 32, 0.78);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5);
}

.scroll-expand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 100px;
  color: #93C5FD;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.scroll-expand-badge i {
  width: 15px;
  height: 15px;
}

.scroll-expand-headline {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.scroll-expand-headline .text-gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scroll-expand-lead {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.92);
  max-width: 680px;
  margin: 0 0 28px 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.scroll-expand-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-expand-actions .apple-btn-cta {
  background: #2563EB;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-expand-actions .apple-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.65);
}

.scroll-expand-actions .apple-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-expand-actions .apple-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-expand__stage {
    --se-title-size: 2.5rem;
  }
  .scroll-expand-content-inner {
    padding: 20px 16px;
  }
  .scroll-expand-actions {
    flex-direction: column;
    width: 100%;
  }
  .scroll-expand-actions .apple-btn-cta,
  .scroll-expand-actions .apple-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
