/* ── The SPER Story — Design System ─────────────────────────
   Modern design with Deep Blue and Purple accent color scheme
────────────────────────────────────────────────────────── */

:root {
  --deep-blue: #0a1e3c;
  --deep-blue-dark: #051225;
  --deep-blue-light: #1a2f4f;
  --purple-primary: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #7c3aed;
  --text-white: #ffffff;
  --text-light: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.section-hero-story {
  min-height: 90vh;
  position: relative;
  background-image: url('/Content/img/SPERstory/theStpory3.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}

.hero-overlay-story {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 30, 60, 0.95) 0%, rgba(5, 18, 37, 0.85) 50%, rgba(139, 92, 246, 0.25) 100%);
  z-index: 1;
}

.hero-card-story {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-icon-story {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  box-shadow: 0 10px 30px var(--accent-glow);
  animation: pulse-story 3s ease-in-out infinite;
}

@keyframes pulse-story {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px var(--accent-glow); }
  50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5); }
}

/* Quick Stats */
.quick-stat-story {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.08));
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: all 0.3s ease;
}

.quick-stat-story:hover {
  transform: translateY(-5px);
  border-color: var(--purple-primary);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.stat-icon-story {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.stat-number-story {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.stat-label-story {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ── EYEBROW TEXT ────────────────────────────────────────── */
.eyebrow-story {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.text-purple {
  color: var(--purple-primary) !important;
}

/* ── SECTION BACKGROUNDS ────────────────────────────────── */
.section-light-story {
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  padding: 6rem 0;
}

.section-dark-story {
  background: linear-gradient(135deg, var(--deep-blue-dark) 0%, var(--deep-blue) 50%, var(--deep-blue-light) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-dark-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.1), transparent 40%);
  pointer-events: none;
}

.section-future-story {
  background: linear-gradient(135deg, #0a1e3c 0%, #1a2f4f 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-cta-story {
  background: linear-gradient(135deg, var(--deep-blue-dark), var(--purple-dark));
  padding: 5rem 0;
}

/* ── SECTION HEADINGS ───────────────────────────────────── */
.section-heading-story {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-dark-story .section-heading-story,
.section-future-story .section-heading-story {
  color: var(--text-white);
}

/* ── PURPOSE SECTION ────────────────────────────────────── */
.purpose-card-story {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.purpose-card-story:hover {
  border-color: var(--purple-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.2);
}

.purpose-icon-wrapper-story {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px var(--accent-glow);
}

.commitment-banner-story {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.1));
  border-radius: 20px;
  padding: 2.5rem 3rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.commitment-banner-story h3 {
  color: var(--purple-primary);
  font-weight: 700;
}

.commitment-icon-story {
  font-size: 5rem;
  color: var(--purple-primary);
  opacity: 0.3;
}

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline-story {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 2rem 0;
}

.timeline-story::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--purple-primary), var(--purple-light));
  transform: translateX(-50%);
}

.timeline-item-story {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

.timeline-item-right-story {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-marker-story {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.2), 0 5px 20px var(--accent-glow);
  z-index: 2;
}

.timeline-content-story {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  max-width: 420px;
}

.timeline-content-story h4 {
  color: var(--purple-light);
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-content-story p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Journey Cards */
.journey-card-story {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.journey-card-story:hover {
  border-color: var(--purple-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.journey-icon-story {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 auto;
  box-shadow: 0 10px 25px var(--accent-glow);
}

/* ── IMPACT SECTION ─────────────────────────────────────── */
.impact-image-wrapper-story {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.impact-badge-story {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.impact-badge-story i {
  font-size: 1.5rem;
}

.impact-list-story {
  margin: 2rem 0;
}

.impact-list-item-story {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.impact-list-item-story:last-child {
  border-bottom: none;
}

.impact-list-item-story i {
  color: var(--purple-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.impact-list-item-story span {
  color: #374151;
  font-weight: 500;
  line-height: 1.5;
}

/* ── FUTURE SECTION ─────────────────────────────────────── */
.future-card-story {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  height: 100%;
}

.future-card-story:hover {
  border-color: var(--purple-primary);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.future-icon-story {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px var(--accent-glow);
}

.future-card-story h4 {
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.future-card-story p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.future-banner-story {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.1));
  border-radius: 24px;
  padding: 3rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
}

.future-banner-story h3 {
  color: var(--purple-light);
  font-weight: 700;
  font-size: 1.75rem;
}

.future-banner-story p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.future-banner-icon-story {
  font-size: 5rem;
  color: var(--purple-primary);
  opacity: 0.4;
}

/* ── CTA SECTION ────────────────────────────────────────── */
.cta-panel-story {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 24px;
  padding: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.btn-glow-story {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  border: 0;
  color: white;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-glow-story:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-primary));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-card-story {
    padding: 2rem;
  }

  .timeline-story::before {
    left: 30px;
  }

  .timeline-item-story,
  .timeline-item-right-story {
    padding-left: 80px;
    padding-right: 0;
  }

  .timeline-marker-story {
    left: 30px;
  }

  .timeline-content-story {
    max-width: 100%;
  }

  .section-heading-story {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-card-story {
    padding: 1.5rem;
  }

  .stat-number-story {
    font-size: 2rem;
  }

  .commitment-banner-story,
  .future-banner-story,
  .cta-panel-story {
    padding: 2rem;
  }

  .commitment-icon-story,
  .future-banner-icon-story {
    font-size: 3rem;
  }
}

/* ── UTILITIES ──────────────────────────────────────────── */
.text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}
