/* =====================================================
   THEME-NV — Neon Veil Page Visual Identity (BANANZA)
   ALL rules prefixed .theme-nv — zero bleed elsewhere.
   ===================================================== */

/* ── 1. PALETTE OVERRIDE ────────────────────────────── */
.theme-nv {
  --color-bg:           #030308;
  --color-surface:      #07070F;
  --color-surface-high: #0D0D1A;
  --color-border:       rgba(74,158,255,0.06);

  --color-primary:      #4A9EFF;
  --color-secondary:    #FF2D78;
  --color-tertiary:     #00FFD1;

  --color-glow-blue:    rgba(74,158,255,0.20);
  --color-glow-magenta: rgba(255,45,120,0.18);
  --color-glow-teal:    rgba(0,255,209,0.12);

  --color-text-primary:   #C8D8F0;
  --color-text-secondary: #2A3A5A;
  --color-text-muted:     #0E1220;

  --accent:    #4A9EFF;
  --secondary: #FF2D78;
  --bg:        #030308;
  --surface:   #07070F;
  --text:      #C8D8F0;
  --text-dim:  #2A3A5A;
  --border:    rgba(74,158,255,0.06);

  background-color: #030308;
  color: #C8D8F0;
  cursor: none;
}

/* ── 2. MAIN CANVAS ─────────────────────────────────── */
#nv-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* Move behind content */
}

/* Scanlines removed to eliminate grid feel */

/* Vignette removed for 100% media clarity */

/* ── 5. PHOSPHOR GLOW on body text ─────────────────── */
.theme-nv h1,
.theme-nv h2,
.theme-nv h3 {
  text-shadow: 0 0 30px rgba(74,158,255,0.15);
}

/* Hide global atmospheric elements */
.theme-nv .cursor__dot,
.theme-nv .cursor__ring,
.theme-nv .noise-overlay {
  display: none !important;
}

/* ── 6. NAV PROGRESS — neon streak ─────────────────── */
.theme-nv #navProgress {
  background: linear-gradient(to right, #4A9EFF, #00FFD1, #FF2D78) !important;
  box-shadow: 0 0 12px rgba(74,158,255,0.8) !important;
  height: 2px !important;
}

/* ── 7. HERO OVERRIDES ──────────────────────────────── */
.theme-nv .project-detail__hero {
  position: relative;
  overflow: hidden;
}

/* Hero scanlines removed for media clarity */

.theme-nv .project-detail__hero-overlay {
  background: transparent !important;
}

.theme-nv .hero-watermark {
  color: rgba(74,158,255,0.04);
  text-shadow: none;
}

.theme-nv .project-detail__hero-content {
  position: relative;
  z-index: 10;
  pointer-events: none; /* Let clicks through back to hero container if needed but keep content above */
}

.theme-nv main > section {
  position: relative;
  z-index: 10;
}

/* TARGET ACQUIRED badge */
.theme-nv .nv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #FF2D78;
  border: 1px solid rgba(255,45,120,0.4);
  padding: 4px 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(255,45,120,0.15), inset 0 0 8px rgba(255,45,120,0.04);
  animation: nvBadgePulse 2s ease-in-out infinite;
}

.theme-nv .nv-hero-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF2D78;
  box-shadow: 0 0 8px #FF2D78, 0 0 16px rgba(255,45,120,0.5);
  animation: nvBadgeBlink 1s ease-in-out infinite;
}

@keyframes nvBadgeBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; box-shadow: none; }
}

@keyframes nvBadgePulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,45,120,0.15), inset 0 0 8px rgba(255,45,120,0.04); }
  50%       { box-shadow: 0 0 25px rgba(255,45,120,0.25), inset 0 0 15px rgba(255,45,120,0.08); }
}

/* Title chromatic glitch entrance */
.theme-nv .project-title {
  animation: nvTitleGlitch 2s cubic-bezier(0.2,0.8,0.4,1) forwards;
}

@keyframes nvTitleGlitch {
  0%   { opacity: 0; clip-path: inset(45% 0 48% 0); text-shadow: -6px 0 #FF2D78, 6px 0 #00FFD1; transform: translateX(-10px); }
  12%  { clip-path: inset(5% 0 85% 0); transform: translateX(5px); }
  24%  { clip-path: inset(80% 0 5% 0); transform: translateX(-3px); }
  36%  { clip-path: inset(30% 0 60% 0); transform: translateX(2px); }
  50%  { opacity: 1; clip-path: inset(0 0 0 0); transform: translateX(0); text-shadow: -3px 0 #FF2D78, 3px 0 #00FFD1; }
  70%  { text-shadow: -1px 0 #FF2D78, 1px 0 #00FFD1; }
  100% { text-shadow: 0 0 20px rgba(74,158,255,0.2); }
}

/* Scanning neon line in hero */
.theme-nv .nv-hero-line {
  position: absolute;
  bottom: 28%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74,158,255,0.0) 10%,
    rgba(74,158,255,0.5) 30%,
    rgba(255,45,120,0.8) 50%,
    rgba(74,158,255,0.5) 70%,
    rgba(74,158,255,0.0) 90%,
    transparent 100%
  );
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255,45,120,0.4);
  animation: nvLinePulse 2.5s ease-in-out infinite;
}

@keyframes nvLinePulse {
  0%, 100% { opacity: 0.25; transform: scaleX(0.95); }
  50%       { opacity: 1;    transform: scaleX(1); }
}

/* ── 8. SECTION ACCENT OVERRIDES ────────────────────── */
.theme-nv .section__label,
.theme-nv .reel-label,
.theme-nv .tech-label,
.theme-nv .project-breadcrumb,
.theme-nv .project-number {
  color: #4A9EFF;
  text-shadow: 0 0 12px rgba(74,158,255,0.6);
  letter-spacing: 0.15em;
}

.theme-nv .project-tagline {
  color: rgba(200,216,240,0.65);
}

.theme-nv .project-pill {
  border-color: rgba(74,158,255,0.3);
  color: #4A9EFF;
  text-shadow: 0 0 8px rgba(74,158,255,0.7);
  box-shadow: 0 0 10px rgba(74,158,255,0.08);
}

.theme-nv .tech-tag {
  color: #00FFD1;
  border-color: rgba(0,255,209,0.25);
  text-shadow: 0 0 6px rgba(0,255,209,0.5);
}

.theme-nv .tech-card {
  background: rgba(7,7,15,0.95);
  border-color: rgba(74,158,255,0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-nv .tech-card:hover {
  border-color: rgba(255,45,120,0.6);
  box-shadow:
    0 0 30px rgba(255,45,120,0.15),
    0 0 60px rgba(74,158,255,0.08),
    inset 0 0 30px rgba(74,158,255,0.04);
  transform: translateY(-2px);
}

.theme-nv .tech-card__num {
  color: rgba(74,158,255,0.07);
}

.theme-nv .tech-card__icon i {
  color: #4A9EFF;
  text-shadow: 0 0 16px rgba(74,158,255,1), 0 0 32px rgba(74,158,255,0.5);
}

.theme-nv .tech-card__title {
  color: #C8D8F0;
  text-shadow: 0 0 20px rgba(74,158,255,0.1);
}

.theme-nv .tech-card__desc {
  color: #2A3A5A;
}

.theme-nv .reel-dot.active,
.theme-nv .reel-dot:hover {
  background: #4A9EFF;
  box-shadow: 0 0 12px rgba(74,158,255,1), 0 0 24px rgba(74,158,255,0.5);
}

.theme-nv .reel-desc {
  color: rgba(200,216,240,0.4);
}

/* ── 9. TERMINAL OVERRIDE ───────────────────────────── */
.theme-nv .terminal-box {
  border-color: rgba(74,158,255,0.2) !important;
  box-shadow:
    0 0 50px rgba(74,158,255,0.08),
    inset 0 0 40px rgba(74,158,255,0.04),
    0 0 2px rgba(74,158,255,0.3) !important;
  background: rgba(3,3,8,0.95) !important;
  position: relative;
  overflow: hidden;
}

/* Animated neon trace on terminal border */
.theme-nv .terminal-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, #4A9EFF, #FF2D78, #00FFD1, #4A9EFF) 1;
  pointer-events: none;
  opacity: 0.3;
  animation: nvTermBorderPulse 3s ease-in-out infinite;
}

@keyframes nvTermBorderPulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.5; }
}

.theme-nv .terminal-line {
  color: rgba(200,216,240,0.8) !important;
}

.theme-nv .terminal-line--accent,
.theme-nv .terminal-box .terminal-line span {
  color: #4A9EFF !important;
  text-shadow: 0 0 12px rgba(74,158,255,0.8) !important;
}

.theme-nv .terminal-cursor {
  background: #FF2D78 !important;
  box-shadow: 0 0 10px rgba(255,45,120,1), 0 0 20px rgba(255,45,120,0.5) !important;
  animation: nvTermCursor 0.8s ease-in-out infinite !important;
}

@keyframes nvTermCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.1; box-shadow: none !important; }
}

/* ── 10. TEXT SELECTION ─────────────────────────────── */
.theme-nv ::selection {
  background: rgba(74,158,255,0.3);
  color: #C8D8F0;
  text-shadow: 0 0 8px rgba(74,158,255,0.5);
}

.theme-nv ::-moz-selection {
  background: rgba(74,158,255,0.3);
  color: #C8D8F0;
}

/* ── 11. CLICK ANIMATIONS ───────────────────────────── */
@keyframes nvShockwave {
  0%   { width: 0; height: 0; opacity: 1; }
  100% { width: var(--target-size, 140px); height: var(--target-size, 140px); opacity: 0; }
}

@keyframes nvGlitchFlash {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  30%  { transform: translate(-50%,-50%) scale(2.5) skewX(3deg); }
  60%  { opacity: 0.4; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(4); }
}

/* ── 12. WARP SECTION ───────────────────────────────── */
.theme-nv .project-warp {
  background: #030308;
  border-top: 1px solid rgba(74,158,255,0.12);
  box-shadow: 0 -20px 60px rgba(74,158,255,0.04);
}

.theme-nv .warp-center-col {
  color: rgba(74,158,255,0.2);
  text-shadow: 0 0 30px rgba(74,158,255,0.1);
  letter-spacing: 0.2em;
}

/* ── 13. HOVER HORROR TWITCH ─────────────────── */
.theme-nv a:hover,
.theme-nv button:hover {
  text-shadow: -2px 0 rgba(255,0,50,0.9), 2px 0 rgba(0,0,0,0.9);
  animation: horrorTwitch 0.15s ease-in-out infinite alternate;
}

@keyframes horrorTwitch {
  0% { transform: translate(0, 0) skewX(0deg); }
  50% { transform: translate(-1px, 1px) skewX(-2deg); }
  100% { transform: translate(1px, -1px) skewX(2deg); }
}

/* ── 14. SHADOW FLASH KEYFRAME (reused from yami) ───── */
@keyframes shadowFlash {
  0%   { opacity: 0; }
  40%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── 15. NEON DETECTION RING ────────────────────────── */
@keyframes nvDetectionRing {
  0%   { width: 0; height: 0; opacity: 0.9; }
  100% { width: 160px; height: 160px; opacity: 0; }
}

/* ── 16. PROSE ──────────────────────────────────────── */
.theme-nv .prose-desc p {
  color: rgba(200,216,240,0.4);
}

.theme-nv .prose-desc a {
  color: #4A9EFF !important;
  text-shadow: 0 0 8px rgba(74,158,255,0.6);
}

/* ── 17. CURSOR STYLES ──────────────────────────────── */
#nv-cursor {
  pointer-events: none;
}

/* ── 18. NEON STREAK ANIMATION ──────────────────────── */
@keyframes nvNeonStreak {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ── 19. KANJIWHISPER (reused for hex code whisper) ─── */
@keyframes kanjiWhisper {
  0%   { opacity: 0; transform: translateY(0px); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px); }
}
