/* ==========================================================================
   CINEMATIC ACADEMY - HERO SECTION WIDGET STYLES
   Palette:
   - #00F0FF : Primary Cyan
   - #2EE6FF : Electric Cyan
   - #3A7BFF : Electric Blue
   - #7B3CFF : Electric Violet
   - #C03DFF : Pink Purple
   - #A8F3FF : Ice Cyan
   - #0B1431 : Navy BG
   - #050913 : Black Blue BG
   ========================================================================== */

.cap-hero-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 80px;
  background-color: #050913;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  direction: rtl;
}

.cap-hero-section * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* ── Cosmic Ambient Star / Dust Particles Canvas ── */
.cap-hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Ambient Central Nebula Glow ── */
.cap-hero-nebula {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 65%;
  background: radial-gradient(ellipse at 50% 25%, rgba(58, 123, 255, 0.22) 0%, rgba(123, 60, 255, 0.12) 35%, rgba(11, 20, 49, 0.05) 60%, transparent 75%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 2;
}

/* ── Hero Content Container ── */
.cap-hero-container {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

/* ==========================================================================
   A. MULTI-PART GLOWING TITLE
   ========================================================================== */
.cap-hero-title {
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 24px 0;
  text-align: center;
  letter-spacing: -0.5px;
}

.cap-title-part {
  display: inline;
  transition: all 0.3s ease;
}

.cap-title-part.cap-title-block,
div.cap-title-part {
  display: block;
  margin-top: 10px;
}

/* ==========================================================================
   B. SUBTITLE WITH HIGHLIGHT SPANS
   ========================================================================== */
.cap-hero-subtitle {
  font-family: 'Cairo', system-ui, sans-serif;
  max-width: 920px;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 600;
  line-height: 1.9;
  margin: 0 auto 34px auto;
  text-align: center;
  color: #A8F3FF;
}

.cap-sub-highlight {
  color: #00F0FF;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.65);
}

.cap-sub-break {
  display: block;
  height: 14px;
}

/* ==========================================================================
   C. FLOATING PULSATING CTA BUTTON
   - Floats up and down continuously
   - Glow intensity increases on floating up, softens on descent
   ========================================================================== */
.cap-cta-wrapper {
  margin: 0 0 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cap-floating-cta-btn {
  --cap-btn-glow: #00F0FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 44px;
  border-radius: 50px;
  background: #00F0FF;
  color: #050913;
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  animation: capFloatingGlowPulse 2.8s ease-in-out infinite;
  will-change: transform, box-shadow;
  transition: background 0.25s ease, color 0.25s ease;
}

.cap-floating-cta-btn:hover {
  background: #2EE6FF;
  color: #050913;
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 
    0 0 50px var(--cap-btn-glow),
    0 0 90px rgba(46, 230, 255, 0.8),
    0 16px 40px rgba(0, 240, 255, 0.5);
}

.cap-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.cap-floating-cta-btn:hover .cap-cta-arrow {
  transform: translateX(-4px);
}

@keyframes capFloatingGlowPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 
      0 0 16px var(--cap-btn-glow),
      0 4px 15px rgba(5, 9, 19, 0.7);
  }
  50% {
    transform: translateY(-11px);
    box-shadow: 
      0 0 45px var(--cap-btn-glow),
      0 0 78px rgba(46, 230, 255, 0.65),
      0 0 110px rgba(0, 240, 255, 0.35),
      0 16px 35px rgba(0, 240, 255, 0.4);
  }
}

/* ==========================================================================
   D. REVIEWS & SOCIAL PROOF BAR
   ========================================================================== */
.cap-reviews-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 42px;
  background: rgba(11, 20, 49, 0.55);
  padding: 8px 24px;
  border-radius: 40px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(5, 9, 19, 0.7);
}

/* Overlapping Avatars Stack (LTR for proper overlapping sequence) */
.cap-avatar-stack {
  display: flex;
  align-items: center;
  direction: ltr;
}

.cap-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  margin-left: -10px;
  box-shadow: 0 2px 8px rgba(5, 9, 19, 0.8);
  transition: transform 0.2s ease;
}

.cap-avatar-img:first-child {
  margin-left: 0;
}

.cap-avatar-img:hover {
  transform: translateY(-3px) scale(1.12);
  z-index: 5;
  border-color: #00F0FF;
}

/* Stars Rating */
.cap-review-stars {
  color: #00F0FF;
  font-size: 1.15rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  line-height: 1;
}

/* Rating Score Text */
.cap-review-score {
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #A8F3FF;
  line-height: 1;
}

/* ==========================================================================
   E. CINEMATIC VIDEO PLAYER
   ========================================================================== */
.cap-video-frame-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 
    0 30px 90px -15px rgba(5, 9, 19, 0.98),
    0 0 45px rgba(0, 240, 255, 0.4),
    0 0 80px rgba(123, 60, 255, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cap-video-frame-container:hover {
  box-shadow: 
    0 35px 100px -15px rgba(5, 9, 19, 1),
    0 0 60px rgba(0, 240, 255, 0.55),
    0 0 95px rgba(123, 60, 255, 0.3);
}

.cap-video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #050913;
  border: 1.8px solid rgba(0, 240, 255, 0.38);
}

.cap-embed-iframe,
.cap-html5-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .cap-hero-section {
    padding: 30px 14px 60px;
  }
  .cap-hero-title {
    font-size: 1.85rem;
  }
  .cap-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.75;
  }
  .cap-floating-cta-btn {
    padding: 13px 30px;
    font-size: 1.1rem;
  }
  .cap-reviews-bar {
    padding: 6px 16px;
    gap: 10px;
  }
  .cap-avatar-img {
    width: 30px;
    height: 30px;
    margin-left: -8px;
  }
  .cap-video-viewport {
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .cap-hero-title {
    font-size: 1.55rem;
  }
  .cap-hero-subtitle {
    font-size: 0.88rem;
  }
  .cap-floating-cta-btn {
    padding: 12px 22px;
    font-size: 0.98rem;
    width: 95%;
  }
}