/**
 * New Media Animation (NMA) — MuscleGrid-Inspired Obsidian & Amber Theme Engine
 * Features:
 * 1. Dark Mode Default Color Correction (Deep Obsidian + Fiery Amber/Orange + Crisp White)
 * 2. Top Studio Ticker Bar (Image 2)
 * 3. Glowing Section Divider Beams with Traveling Light Streaks (Image 3)
 * 4. Highlighted Section Frame with Glowing Side Rails & Corner Nodes (Image 4)
 * 5. Mid-Page Spec Capability Ticker Strip (Image 5)
 * 6. Ambient Institute Grid & Floating Particles Backdrop (Image 1)
 * 7. Scroll-Reveal Section Opening & Content-Visibility Optimization
 * 8. Full Light-Mode Preservation via [data-theme="light"]
 */

/* =========================================================================
   1. DARK MODE OBSIDIAN COLOR CORRECTION TOKENS & GLOBAL SURFACES
   ========================================================================= */
html[data-theme="dark"] {
  --nma-dark: #060608;
  --nma-dark-surface: #0B0C10;
  --nma-dark-card: #111319;
  --nma-dark-border: rgba(255, 255, 255, 0.1);
  --nma-text-dark: #FFFFFF;
  --nma-text-muted: #9CA3AF;
  --nma-text-light: #F8FAFC;
  --nma-text-subtle: #CBD5E1;
  --nma-bg-light: #111319;
  --nma-bg-neutral: #0D0E13;
  --nma-bg-white: #0B0C10;
  --nma-border-light: rgba(255, 255, 255, 0.1);

  --mg-obsidian: #060608;
  --mg-surface: #0B0C10;
  --mg-card: #101218;
  --mg-orange: #FF7A18;
  --mg-amber: #F59E0B;
  --mg-gold: #FFC928;
  --mg-glow: rgba(255, 122, 24, 0.35);
}

html[data-theme="dark"] body {
  background-color: #060608 !important;
  color: #F3F4F6 !important;
}

html[data-theme="dark"] .site-header {
  background: rgba(6, 6, 8, 0.92) !important;
  border-bottom: 1px solid rgba(255, 138, 43, 0.16) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(6, 6, 8, 0.97) !important;
  border-bottom-color: rgba(255, 138, 43, 0.28) !important;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active {
  color: #FF8A1E !important;
}

html[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 122, 24, 0.12) !important;
  border-color: rgba(255, 122, 24, 0.35) !important;
  color: #FFC928 !important;
}

html[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 122, 24, 0.24) !important;
  border-color: #FF7A18 !important;
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.35) !important;
}

/* =========================================================================
   2. AMBIENT INSTITUTE BACKGROUND ANIMATION (IMAGE 1: GRID + SPARKS + GLOW)
   ========================================================================= */
.nma-ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background-image:
    radial-gradient(ellipse 60% 45% at 15% 18%, rgba(255, 107, 26, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 78%, rgba(245, 158, 11, 0.08) 0%, transparent 70%),
    linear-gradient(rgba(255, 138, 43, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 43, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

html[data-theme="dark"] .nma-ambient-grid {
  opacity: 1;
}

html[data-theme="light"] .nma-ambient-grid {
  opacity: 0.35;
  background-image:
    radial-gradient(ellipse 60% 45% at 15% 18%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.nma-ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Per-Section Dedicated Institute Background Animation Canvas Layer */
.nma-sec-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: block;
}

.hero-master > .nma-sec-bg-canvas {
  z-index: 4;
}

.stats-section > .container,
.academic-courses-section > .container,
.advantage-section > .container,
.video-showcase-section > .container,
.trainers-section > .container,
.how-it-works-section > .container,
.nma-placements-section > .container {
  position: relative;
  z-index: 3 !important;
}

.design-future-banner > *:not(.nma-sec-bg-canvas) {
  position: relative;
  z-index: 3;
}

/* Subtle section grid texture overlay so each section has crisp depth */
html[data-theme="dark"] .stats-section::after,
html[data-theme="dark"] .academic-courses-section::after,
html[data-theme="dark"] .advantage-section::after,
html[data-theme="dark"] .video-showcase-section::after,
html[data-theme="dark"] .trainers-section::after,
html[data-theme="dark"] .how-it-works-section::after,
html[data-theme="dark"] .nma-placements-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 138, 43, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 43, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
}

html[data-theme="light"] .stats-section::after,
html[data-theme="light"] .academic-courses-section::after,
html[data-theme="light"] .advantage-section::after,
html[data-theme="light"] .video-showcase-section::after,
html[data-theme="light"] .trainers-section::after,
html[data-theme="light"] .how-it-works-section::after,
html[data-theme="light"] .nma-placements-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(234, 88, 12, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 88, 12, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
}

#main-content,
.site-header,
.site-footer,
.announcement-bar,
.nma-top-ticker {
  position: relative;
  z-index: 2;
}

/* =========================================================================
   3. TOP STUDIO MARQUEE TICKER STRIP (IMAGE 2)
   ========================================================================= */
.nma-top-ticker {
  width: 100%;
  height: 34px;
  background: #050507;
  border-bottom: 1px solid rgba(255, 122, 24, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10002;
  user-select: none;
}

html[data-theme="light"] .nma-top-ticker {
  background: #0F172A;
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
}

.nma-top-ticker::before,
.nma-top-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.nma-top-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #050507 0%, transparent 100%);
}

.nma-top-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #050507 0%, transparent 100%);
}

html[data-theme="light"] .nma-top-ticker::before {
  background: linear-gradient(90deg, #0F172A 0%, transparent 100%);
}

html[data-theme="light"] .nma-top-ticker::after {
  background: linear-gradient(270deg, #0F172A 0%, transparent 100%);
}

.nma-top-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: nmaTopTickerScroll 38s linear infinite;
}

.nma-top-ticker:hover .nma-top-ticker-track {
  animation-play-state: paused;
}

.nma-top-ticker-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  white-space: nowrap;
}

.nma-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.nma-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF6B1A;
  box-shadow: 0 0 8px rgba(255, 107, 26, 0.9), 0 0 14px rgba(255, 165, 30, 0.5);
  flex-shrink: 0;
}

.nma-ticker-strong {
  color: #FFFFFF;
  font-weight: 800;
}

.nma-ticker-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.nma-ticker-muted {
  color: #9CA3AF;
  font-weight: 600;
}

@keyframes nmaTopTickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* =========================================================================
   4. GLOWING SECTION DIVIDERS WITH TRAVELING LIGHT BEAMS (IMAGE 3)
   ========================================================================= */
.nma-glow-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 122, 24, 0.06) 0%,
    rgba(255, 140, 40, 0.24) 20%,
    rgba(255, 196, 60, 0.28) 50%,
    rgba(255, 140, 40, 0.24) 80%,
    rgba(255, 122, 24, 0.06) 100%
  );
  overflow: visible;
  z-index: 4;
  margin: 0;
}

html[data-theme="light"] .nma-glow-divider {
  background: linear-gradient(
    90deg,
    rgba(217, 119, 6, 0.08) 0%,
    rgba(245, 158, 11, 0.32) 50%,
    rgba(217, 119, 6, 0.08) 100%
  );
}

.nma-glow-node {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #FF6B1A;
  box-shadow: 0 0 10px 2px rgba(255, 107, 26, 0.85), 0 0 20px rgba(255, 165, 30, 0.5);
  z-index: 3;
  animation: nmaNodePulse 2.6s ease-in-out infinite;
}

.nma-glow-node.node-left {
  left: 3.5%;
}

.nma-glow-node.node-right {
  right: 3.5%;
  animation-delay: 1.3s;
}

.nma-glow-beam {
  position: absolute;
  top: 50%;
  left: -20%;
  height: 2px;
  width: 170px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 140, 40, 0.55) 22%,
    #FFFBEB 50%,
    rgba(255, 165, 40, 0.75) 75%,
    transparent 100%
  );
  box-shadow: 0 0 14px 2px rgba(255, 155, 40, 0.75), 0 0 28px rgba(255, 107, 26, 0.4);
  animation: nmaBeamGlide 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.nma-glow-beam.beam-2 {
  width: 120px;
  animation-duration: 7.4s;
  animation-delay: 2.4s;
  opacity: 0.85;
}

html[data-theme="light"] .nma-glow-beam {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 158, 11, 0.55) 25%,
    #F59E0B 50%,
    rgba(234, 88, 12, 0.6) 75%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

@keyframes nmaBeamGlide {
  0% {
    left: -18%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 108%;
    opacity: 0;
  }
}

@keyframes nmaNodePulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-50%) scale(1.35);
    opacity: 1;
  }
}

/* =========================================================================
   5. HIGHLIGHTED SECTION WITH BOTH-SIDE & TOP/BOTTOM GLOWING RAILS (IMAGE 4)
   ========================================================================= */
.nma-highlight-section {
  position: relative !important;
  overflow: hidden !important;
}

/* Top & Bottom horizontal glowing edges inside highlighted section */
.nma-highlight-section .nma-hl-rail-top,
.nma-highlight-section .nma-hl-rail-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 107, 26, 0.15) 0%,
    rgba(255, 175, 50, 0.45) 50%,
    rgba(255, 107, 26, 0.15) 100%
  );
  z-index: 4;
  pointer-events: none;
}

.nma-highlight-section .nma-hl-rail-top {
  top: 0;
}

.nma-highlight-section .nma-hl-rail-bottom {
  bottom: 0;
}

.nma-highlight-section .nma-hl-rail-top::after,
.nma-highlight-section .nma-hl-rail-bottom::after {
  content: '';
  position: absolute;
  top: -0.5px;
  left: -18%;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 50, 0.8), #FFFBEB, rgba(255, 180, 50, 0.8), transparent);
  box-shadow: 0 0 12px rgba(255, 165, 30, 0.75);
  animation: nmaBeamGlide 6s linear infinite;
}

.nma-highlight-section .nma-hl-rail-bottom::after {
  animation-delay: 3s;
}

/* Left & Right vertical glowing rails (both sides glowing lines!) */
.nma-highlight-section .nma-hl-rail-left,
.nma-highlight-section .nma-hl-rail-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 107, 26, 0.08) 0%,
    rgba(255, 122, 24, 0.75) 28%,
    rgba(255, 201, 40, 0.95) 50%,
    rgba(255, 122, 24, 0.75) 72%,
    rgba(255, 107, 26, 0.08) 100%
  );
  box-shadow: 0 0 18px 2px rgba(255, 122, 24, 0.55);
}

.nma-highlight-section .nma-hl-rail-left {
  left: 0;
}

.nma-highlight-section .nma-hl-rail-right {
  right: 0;
}

.nma-highlight-section .nma-hl-rail-left::after,
.nma-highlight-section .nma-hl-rail-right::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -25%;
  width: 4px;
  height: 90px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #FFFBEB, #FF7A18, transparent);
  box-shadow: 0 0 16px rgba(255, 180, 50, 0.9);
  animation: nmaVerticalBeam 4.6s ease-in-out infinite;
}

.nma-highlight-section .nma-hl-rail-right::after {
  animation-delay: 2.3s;
}

@keyframes nmaVerticalBeam {
  0% {
    top: -22%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 112%;
    opacity: 0;
  }
}

/* Corner glowing dots on highlighted section */
.nma-hl-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF6B1A;
  box-shadow: 0 0 10px 2px rgba(255, 107, 26, 0.85);
  z-index: 5;
  pointer-events: none;
}

.nma-hl-corner.tl { top: 8px; left: 16px; }
.nma-hl-corner.tr { top: 8px; right: 16px; }
.nma-hl-corner.bl { bottom: 8px; left: 16px; }
.nma-hl-corner.br { bottom: 8px; right: 16px; }

/* MuscleGrid Proof-Backed Eyebrow Header inside Highlighted Stats Section */
.nma-proof-header {
  position: relative;
  z-index: 2;
  margin-bottom: 26px;
  text-align: left;
}

.nma-proof-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F59E0B;
  margin-bottom: 8px;
}

.nma-proof-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: #FF7A18;
  box-shadow: 0 0 8px rgba(255, 122, 24, 0.7);
}

.nma-proof-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  color: #0A0A0D;
}

html[data-theme="dark"] .nma-proof-heading {
  color: #FFFFFF;
}

.nma-proof-heading-accent {
  color: #FF6B1A;
}

html[data-theme="dark"] .nma-proof-heading-accent {
  color: #FF7A18;
  text-shadow: 0 0 24px rgba(255, 122, 24, 0.35);
}

html[data-theme="light"] .nma-proof-heading-accent {
  color: #FF6B1A;
  text-shadow: none;
}

/* Unified Section Heading Color Rules: White+Orange (Dark) / Black+Orange (Light) */
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .academic-courses-section .section-title,
html[data-theme="dark"] .academic-courses-section .section-title .m-courses-title-prefix,
html[data-theme="dark"] .video-showcase-section .section-title {
  color: #FFFFFF !important;
}

html[data-theme="light"] .section-title,
html[data-theme="light"] .academic-courses-section .section-title,
html[data-theme="light"] .academic-courses-section .section-title .m-courses-title-prefix,
html[data-theme="light"] .video-showcase-section .section-title {
  color: #0A0A0D !important;
}

html[data-theme="dark"] .section-title-accent,
html[data-theme="dark"] .academic-courses-section .section-title .m-courses-title-accent,
html[data-theme="dark"] .m-courses-title-accent {
  color: #FF7A18 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #FF7A18 !important;
  filter: none !important;
}

html[data-theme="light"] .section-title-accent,
html[data-theme="light"] .academic-courses-section .section-title .m-courses-title-accent,
html[data-theme="light"] .m-courses-title-accent {
  color: #FF6B1A !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #FF6B1A !important;
  filter: none !important;
}

/* Light Mode Adaptation for Video Showcase Section so Black+Orange Heading & Animations Shine */
html[data-theme="light"] .video-showcase-section {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-top: 1.5px solid #E2E8F0 !important;
  border-bottom: 1.5px solid #E2E8F0 !important;
}

html[data-theme="light"] .video-showcase-section .section-subtitle {
  color: #475569 !important;
}

html[data-theme="light"] .video-showcase-section .section-tag {
  background: rgba(255, 107, 26, 0.1) !important;
  color: #C2410C !important;
  border-color: rgba(255, 107, 26, 0.35) !important;
}

html[data-theme="light"] .showreel-card {
  background: #FFFFFF !important;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12), 0 0 18px -2px var(--sr-glow) !important;
}

html[data-theme="light"] .showreel-body {
  background: #FFFFFF !important;
}

html[data-theme="light"] .showreel-heading {
  color: #0F172A !important;
}

html[data-theme="light"] .showreel-author-meta,
html[data-theme="light"] .showreel-author-name {
  color: #475569 !important;
}

html[data-theme="light"] .showreel-chip {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}

html[data-theme="light"] .showreel-card-footer {
  border-top-color: #E2E8F0 !important;
}

/* =========================================================================
   6. MID-PAGE SPEC / CAPABILITY TICKER STRIP (IMAGE 5)
   ========================================================================= */
.nma-mid-spec-ticker {
  width: 100%;
  padding: 13px 0;
  background: #070709;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 4;
}

html[data-theme="light"] .nma-mid-spec-ticker {
  background: #0F172A;
  border-top-color: rgba(245, 158, 11, 0.25);
  border-bottom-color: rgba(245, 158, 11, 0.25);
}

.nma-mid-spec-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: nmaTopTickerScroll 34s linear infinite;
}

.nma-mid-spec-ticker:hover .nma-mid-spec-track {
  animation-play-state: paused;
}

.nma-mid-spec-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  white-space: nowrap;
}

.nma-spec-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.82rem;
}

.nma-spec-val {
  color: #FBBF24;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nma-spec-lbl {
  color: #D1D5DB;
  font-weight: 500;
}

/* =========================================================================
   7. DARK MODE COLOR CORRECTION ACROSS ALL HOMEPAGE SECTIONS
   ========================================================================= */
html[data-theme="dark"] .hero-master {
  background-color: #060608 !important;
}

html[data-theme="dark"] .hero-bg-showcase-viewport::after,
html[data-theme="dark"] .hero-bg-layer::after {
  background:
    linear-gradient(
      90deg,
      rgba(6, 6, 8, 0.96) 0%,
      rgba(6, 6, 8, 0.86) 28%,
      rgba(6, 6, 8, 0.56) 50%,
      rgba(6, 6, 8, 0.16) 70%,
      rgba(6, 6, 8, 0) 84%
    ),
    linear-gradient(
      0deg,
      rgba(6, 6, 8, 0.96) 0%,
      rgba(6, 6, 8, 0.68) 12%,
      rgba(6, 6, 8, 0) 26%
    ) !important;
}

html[data-theme="dark"] .hero-eyebrow {
  background: rgba(12, 13, 18, 0.88) !important;
  border-color: rgba(255, 140, 40, 0.5) !important;
  color: #FBBF24 !important;
}

html[data-theme="dark"] .hero-btn-explore {
  background: linear-gradient(135deg, #FFC928 0%, #FF7A18 100%) !important;
  border-color: #FF8C28 !important;
  color: #08090C !important;
  box-shadow: 0 8px 28px rgba(255, 122, 24, 0.4) !important;
}

html[data-theme="dark"] .hero-btn-explore:hover {
  background: linear-gradient(135deg, #FFD447 0%, #FF8B2E 100%) !important;
  box-shadow: 0 10px 34px rgba(255, 122, 24, 0.58) !important;
}

html[data-theme="dark"] .hero-btn-video {
  background: rgba(16, 18, 24, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .hero-btn-video:hover {
  border-color: #FF7A18 !important;
}

html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .rail-card {
  background: rgba(14, 16, 22, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
}

html[data-theme="dark"] .stat-card:hover,
html[data-theme="dark"] .rail-card:hover {
  border-color: #FF7A18 !important;
  box-shadow: 0 10px 26px rgba(255, 122, 24, 0.25) !important;
}

/* Hero subtle warm hairline divider (Image 1 inspired) */
.hero-hairline-divider {
  width: 240px;
  max-width: 70%;
  height: 1px;
  margin: 0 0 14px 0;
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.75) 0%, rgba(255, 201, 40, 0.85) 45%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 140, 40, 0.35);
}

html[data-theme="light"] .hero-hairline-divider {
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.55) 0%, rgba(245, 158, 11, 0.5) 45%, transparent 100%);
  box-shadow: none;
}

/* Section Obsidian Backgrounds */
html[data-theme="dark"] .stats-section.creative-stats-section {
  background: radial-gradient(circle at 18% 20%, rgba(255, 107, 26, 0.08) 0%, transparent 45%), #070709 !important;
  border-top: none !important;
  border-bottom: none !important;
}

html[data-theme="dark"] .stat-card-creative {
  background: linear-gradient(180deg, var(--stat-bg-tint, rgba(255, 122, 24, 0.06)) 0%, rgba(14, 16, 22, 0.96) 130px) !important;
}

html[data-theme="dark"] .academic-courses-section,
html[data-theme="dark"] .trainers-section,
html[data-theme="dark"] .nma-placements-section {
  background: #08090D !important;
  border-top: none !important;
  border-bottom: none !important;
}

html[data-theme="dark"] .advantage-section,
html[data-theme="dark"] .how-it-works-section,
html[data-theme="dark"] .video-showcase-section {
  background: #060608 !important;
  border-top: none !important;
  border-bottom: none !important;
}

html[data-theme="dark"] .discipline-tab-btn {
  background: #111319 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #E5E7EB !important;
}

html[data-theme="dark"] .discipline-tab-btn.active {
  background: linear-gradient(135deg, #FFC928 0%, #FF7A18 100%) !important;
  color: #060608 !important;
  border-color: #FF8C28 !important;
}

html[data-theme="dark"] .pipeline-tracker-bar,
html[data-theme="dark"] .pipeline-slab,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .placement-stat-box,
html[data-theme="dark"] .nma-placement-card,
html[data-theme="dark"] .trainer-card,
html[data-theme="dark"] .showreel-card {
  background-color: #0E1016 !important;
}

/* =========================================================================
   CONTINUOUS AMBIENT CARD ANIMATIONS + RESTORED CRISP HOVER EFFECTS
   (Stats Cards, Step Cards, Advantage Pipeline Slabs)
   ========================================================================= */
@keyframes nmaCardIconLevitate {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

@keyframes nmaCardSheenGlide {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  12% { opacity: 0.45; }
  28% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
}

@keyframes nmaDotBeaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.6; }
}

/* Gentle continuous floating 3D icons on all 3 card groups */
.stat-card-creative .stat-3d-icon,
.step-card .step-card-img,
.pipeline-slab .slab-3d-img {
  animation: nmaCardIconLevitate 3.4s ease-in-out infinite;
}

.stat-card-creative:nth-child(2) .stat-3d-icon,
.step-card:nth-child(2) .step-card-img,
.pipeline-slab:nth-child(2) .slab-3d-img { animation-delay: 0.45s; }

.stat-card-creative:nth-child(3) .stat-3d-icon,
.step-card:nth-child(3) .step-card-img,
.pipeline-slab:nth-child(3) .slab-3d-img { animation-delay: 0.9s; }

.stat-card-creative:nth-child(4) .stat-3d-icon,
.step-card:nth-child(4) .step-card-img,
.pipeline-slab:nth-child(4) .slab-3d-img { animation-delay: 1.35s; }

.pipeline-slab:nth-child(5) .slab-3d-img { animation-delay: 1.8s; }
.pipeline-slab:nth-child(6) .slab-3d-img { animation-delay: 2.25s; }

/* Pause float cleanly on hover so original hover zoom/lift kicks in instantly */
.stat-card-creative:hover .stat-3d-icon {
  animation: none;
  transform: scale(1.14) translateY(-4px) rotate(3deg);
}
.step-card:hover .step-card-img {
  animation: none;
  transform: scale(1.15) translateY(-4px) rotate(2deg);
}
.pipeline-slab:hover .slab-3d-img {
  animation: none;
  transform: scale(1.14) translateY(-3px) rotate(2deg);
}

/* Subtle continuous glass sheen sweep across cards */
.stat-card-creative::after,
.step-card::after,
.pipeline-slab::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
  z-index: 1;
  animation: nmaCardSheenGlide 7.5s ease-in-out infinite;
}

html[data-theme="light"] .stat-card-creative::after,
html[data-theme="light"] .step-card::after,
html[data-theme="light"] .pipeline-slab::after {
  background: linear-gradient(90deg, transparent, rgba(255, 165, 30, 0.12), transparent);
}

.stat-card-creative:nth-child(2)::after,
.step-card:nth-child(2)::after,
.pipeline-slab:nth-child(2)::after { animation-delay: 1.4s; }
.stat-card-creative:nth-child(3)::after,
.step-card:nth-child(3)::after,
.pipeline-slab:nth-child(3)::after { animation-delay: 2.8s; }
.stat-card-creative:nth-child(4)::after,
.step-card:nth-child(4)::after,
.pipeline-slab:nth-child(4)::after { animation-delay: 4.2s; }
.pipeline-slab:nth-child(5)::after { animation-delay: 5.4s; }
.pipeline-slab:nth-child(6)::after { animation-delay: 6.4s; }

/* Continuous beacon pulse on dots & badges */
.stat-badge-dot,
.slab-pulse-dot {
  animation: nmaDotBeaconPulse 2s ease-in-out infinite;
}

/* Guarantee exact original hover elevation on all 3 card groups */
.stat-card-creative:hover {
  transform: translateY(-8px) scale(1.015) !important;
}
.step-card:hover {
  transform: translateY(-8px) !important;
}
.pipeline-slab:hover {
  transform: translateY(-6px) !important;
}

html[data-theme="dark"] .placement-stat-box {
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.05) 0%, #0E1016 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .placement-stat-box:hover {
  border-color: rgba(255, 122, 24, 0.65) !important;
  box-shadow: 0 12px 30px rgba(255, 122, 24, 0.18) !important;
}

html[data-theme="dark"] .design-future-banner {
  background: radial-gradient(circle at 50% 0%, rgba(255, 122, 24, 0.16) 0%, transparent 60%), linear-gradient(135deg, #0B0C10 0%, #121018 50%, #0B0C10 100%) !important;
  border-color: rgba(255, 122, 24, 0.4) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 36px rgba(255, 122, 24, 0.12) !important;
}

html[data-theme="dark"] .site-footer {
  background: #050507 !important;
  border-top: 1px solid rgba(255, 122, 24, 0.2) !important;
}

/* Quick Enquiry Modal Dark Mode Adaptation */
html[data-theme="dark"] .quick-enquiry-modal {
  background: #0D0F14 !important;
  border: 1px solid rgba(255, 122, 24, 0.35) !important;
  color: #F3F4F6 !important;
}

html[data-theme="dark"] .quick-enquiry-modal-header {
  background: #12151C !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] #modalEnquiryTitle,
html[data-theme="dark"] .quick-enquiry-form label {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .quick-enquiry-form input,
html[data-theme="dark"] .quick-enquiry-form select,
html[data-theme="dark"] .quick-enquiry-form textarea {
  background: #07080B !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* =========================================================================
   8. SCROLL-REVEAL SECTION OPENING & LIGHTWEIGHT CONTENT VISIBILITY
   ========================================================================= */
/* Sections below the hero wait collapsed/unrevealed until scrolled into view */
.nma-reveal-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.nma-reveal-section.nma-reveal-pending {
  opacity: 0;
  transform: translateY(34px) scale(0.988);
  transition: opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.nma-reveal-section.nma-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered child cards inside revealing sections (ONLY while entering so hover transforms & timing stay 100% crisp) */
.nma-reveal-section.nma-reveal-pending .nma-reveal-item {
  opacity: 0;
  transform: translateY(22px);
}

.nma-reveal-section:not(.nma-reveal-settled) .nma-reveal-item {
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--nma-stagger, 0) * 65ms);
}

.nma-reveal-section.nma-revealed .nma-reveal-item {
  opacity: 1;
}

.nma-reveal-section.nma-reveal-settled .nma-reveal-item {
  transition-delay: 0s;
}

/* Hero Top Offset Sync with Top Ticker Strip */
body:has(.nma-top-ticker) {
  --hero-top-offset: 106px;
}

body:has(.nma-top-ticker):has(.announcement-bar) {
  --hero-top-offset: 144px;
}

@media (max-width: 480px) {
  body:has(.nma-top-ticker) {
    --hero-top-offset: 98px;
  }
  body:has(.nma-top-ticker):has(.announcement-bar) {
    --hero-top-offset: 136px;
  }
}

@media (max-width: 768px) {
  .nma-top-ticker {
    height: 30px;
  }
  .nma-ticker-item {
    font-size: 0.64rem;
  }
  .nma-proof-header {
    text-align: center;
    margin-bottom: 18px;
  }
  .nma-mid-spec-ticker {
    padding: 10px 0;
  }
  .nma-spec-chip {
    font-size: 0.75rem;
  }
}

/* Ensure reduced motion never hides content */
@media (prefers-reduced-motion: reduce) {
  .nma-top-ticker-track,
  .nma-mid-spec-track,
  .nma-glow-beam,
  .nma-glow-node,
  .nma-highlight-section .nma-hl-rail-top::after,
  .nma-highlight-section .nma-hl-rail-bottom::after,
  .nma-highlight-section .nma-hl-rail-left::after,
  .nma-highlight-section .nma-hl-rail-right::after {
    animation: none !important;
  }
  .nma-reveal-section.nma-reveal-pending,
  .nma-reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
