/* ============================================================
   NISHANTH K — PORTFOLIO STYLESHEET
   Deep Space Purple Theme — inspired by heyneuron
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --bg:            #060010;
  --surface:       rgba(13, 8, 32, 0.82);
  --surface2:      rgba(20, 12, 42, 0.90);
  --primary:       #7c3aed;
  --primary-dim:   rgba(124, 58, 237, 0.12);
  --primary-glow:  rgba(124, 58, 237, 0.35);
  --secondary:     #06d6a0;
  --secondary-dim: rgba(6, 214, 160, 0.10);
  --glow:          #a855f7;
  --glow-dim:      rgba(168, 85, 247, 0.18);
  --text:          #e2d9f3;
  --text-muted:    #7a5fa0;
  --text-dim:      #3d2b5a;
  --border:        rgba(45, 26, 80, 0.7);
  --border-bright: rgba(60, 35, 100, 0.9);
  --mono:          'JetBrains Mono', monospace;
  --sans:          'Nunito Sans', sans-serif;
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

::selection { background: var(--primary-dim); color: var(--glow); }

/* ============================================================
   CUSTOM CURSOR — CROSSHAIR RING
   ============================================================ */
#cursor-outer {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  will-change: transform;
}
#cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  will-change: transform;
  box-shadow: 0 0 8px var(--glow);
}
body.cursor-hover #cursor-outer {
  width: 44px;
  height: 44px;
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--glow);
}

/* Cursor click ripple */
.cursor-ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(1);
  animation: rippleOut 0.5s ease-out forwards;
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* ---- SCROLL BAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   SPACE CANVAS — global deep space background (fixed)
   ============================================================ */
#space-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   CIRCUIT CANVAS — disabled; hero uses calm space canvas only
   ============================================================ */
#circuit-canvas {
  display: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(6, 0, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(124,58,237, 0.1);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--glow);
  text-decoration: none;
  letter-spacing: 0.1em;
  position: relative;
}
.nav-logo::after {
  content: '_';
  animation: blink 1.2s step-end infinite;
  color: var(--glow);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: relative;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover { color: var(--glow); }
.nav-links a.active { color: var(--glow); }

/* Sliding nav underline */
#nav-indicator {
  position: absolute;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--glow));
  border-radius: 2px;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1), width 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px var(--glow);
  pointer-events: none;
}

/* Nav link neon flicker */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 0;
  background: var(--glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--glow);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,0,16,0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--glow); }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px; /* Meaningful, breathable space without being completely disconnected */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--secondary), transparent);
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-title.visible { opacity: 1; transform: translateY(0); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;           /* hero has its own inner padding via .hero-inner */
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 120px 2rem 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Terminal boot sequence container */
.hero-terminal-boot {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--secondary);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.boot-line {
  display: block;  /* changed from flex to prevent cursor wrapping to next line */
  opacity: 0;
  min-height: 1.2em;
  transition: none;
}
.boot-line.show { opacity: 1; }
.boot-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--secondary);
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
  vertical-align: text-bottom;
}

/* Hero name — typing animation container */
.hero-name-wrap {
  position: relative;
  margin-bottom: 1.5rem;
  min-height: 1.25em;
}
.hero-name {
  font-family: var(--sans);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  min-height: 1.2em;
  position: relative;
  z-index: 2;
  /* Start hidden; JS sets opacity to 1 immediately before typing begins */
}

/* Blinking pipe cursor inside the big hero name — classic terminal | */
.hero-name-cursor {
  display: inline-block;
  width: 2px;
  height: 0.82em;
  background: var(--glow);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
  border-radius: 1px;
}

/* Solder canvas — hidden now that we use typing animation */
#solder-canvas {
  display: none;
}

/* Inline mini cursor used during tagline typing — thin underscore */
.boot-cursor--inline {
  display: inline-block;
  width: 0.6em;
  height: 2px;
  background: var(--text-muted);
  margin-left: 1px;
  margin-bottom: 4px;
  vertical-align: bottom;
  animation: blink 0.85s step-end infinite;
  border-radius: 1px;
}

/* ── VGA / Signal Glitch Effect ──────────────────────────────
   Applied briefly to hero-name after typing finishes.
   Mimics RGB channel separation + horizontal signal drift —
   exactly what you see when a CRT loses sync or a bad
   HDMI cable has signal integrity issues.
   ─────────────────────────────────────────────────────────── */
@keyframes vgaGlitch {
  0%   {
    transform: translateX(0);
    text-shadow: none;
    clip-path: none;
  }
  8%   {
    transform: translateX(-4px);
    text-shadow:
      3px 0 0 rgba(255, 50, 80, 0.75),
      -3px 0 0 rgba(0, 220, 200, 0.75);
  }
  16%  {
    transform: translateX(3px);
    text-shadow:
      -4px 0 0 rgba(255, 50, 80, 0.6),
      4px 0 0 rgba(0, 220, 200, 0.6);
    clip-path: inset(20% 0 60% 0);
  }
  24%  {
    transform: translateX(0);
    text-shadow: none;
    clip-path: none;
  }
  32%  {
    transform: translateX(2px);
    text-shadow:
      -2px 0 0 rgba(255, 50, 80, 0.5),
      2px 0 0 rgba(0, 220, 200, 0.5);
  }
  40%  {
    transform: translateX(-1px);
    text-shadow:
      2px 0 0 rgba(255, 50, 80, 0.3),
      -2px 0 0 rgba(0, 220, 200, 0.3);
    clip-path: inset(55% 0 15% 0);
  }
  55%  {
    transform: translateX(0);
    text-shadow: none;
    clip-path: none;
  }
  100% {
    transform: translateX(0);
    text-shadow: none;
    clip-path: none;
  }
}

.hero-name--glitch {
  animation: vgaGlitch 0.55s steps(1, end) forwards;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-tagline.visible { opacity: 1; }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-ctas.visible { opacity: 1; transform: translateY(0); }

.btn {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--glow);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-dim);
  box-shadow: 0 0 20px var(--glow-dim), inset 0 0 20px var(--primary-dim);
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--primary);
  color: var(--text);
  border: 1.5px solid var(--primary);
  font-weight: 600;
}
.btn-solid:hover {
  background: transparent;
  color: var(--glow);
  box-shadow: 0 0 25px var(--glow-dim);
  transform: translateY(-2px);
}

.hero-location {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-location.visible { opacity: 1; }

/* Hero visual — oscilloscope */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.hero-visual.visible { opacity: 1; transform: translateX(0); }

.hero-svg-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: transparent; }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
}
.about-bio strong { color: var(--glow); }

.about-bio-subtitle {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--secondary);
  margin-top: 1.5rem;
  opacity: 0.7;
}

/* Terminal card */
.terminal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: 0 0 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(124,58,237,0.02);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red   { background: #ff5f56; }
.terminal-dot.yellow{ background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}
.terminal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.terminal-row {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  align-items: baseline;
}
.terminal-row .prompt { color: var(--secondary); flex-shrink: 0; min-width: 14px; }
.terminal-row .key { color: var(--text-muted); min-width: 100px; flex-shrink: 0; letter-spacing: 0.05em; }
.terminal-row .val { color: var(--text); letter-spacing: 0.02em; }
.terminal-row .val.highlight { color: var(--glow); }
.terminal-row .val.orange { color: #fb923c; }

/* ============================================================
   EXPERIENCE SECTION (TIMELINE)
   ============================================================ */
#experience { background: transparent; }

.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--surface2));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.5s cubic-bezier(0.4,0,0.2,1);
}
.timeline.drawn::before { transform: scaleY(1); }

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  position: absolute;
  left: -2.9rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}
.timeline-item.visible .timeline-dot {
  animation: nodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes nodePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.timeline-item:first-child .timeline-dot {
  border-color: var(--glow);
  background: var(--glow);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 8px var(--glow); }
  50%     { box-shadow: 0 0 24px var(--glow), 0 0 48px var(--glow); }
}
.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 24px var(--primary);
}

.timeline-company {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--glow);
  letter-spacing: 0.05em;
}
.timeline-role {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  margin-top: 0.15rem;
}
.timeline-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.timeline-meta span { display: flex; align-items: center; gap: 0.3rem; }
.timeline-bullets {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-bullets li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 0.7rem;
  top: 0.15rem;
}

/* ============================================================
   PROJECTS SECTION — 3D TILT CARDS
   ============================================================ */
#projects { background: transparent; }

.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.08em;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--glow);
  background: var(--primary-dim);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ============================================================
   PROJECT CARDS — MAGAZINE GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  grid-auto-flow: dense;
  /* stagger entrance */
}

.project-card {
  grid-column: span 6; /* mobile default */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0) perspective(1000px) rotateX(0deg) rotateY(0deg);
}

/* Card border trace animation on hover */
.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--primary), var(--glow), var(--secondary), var(--primary));
  background-size: 300% 300%;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover::before {
  opacity: 1;
  animation: borderTrace 0.8s linear forwards;
}
@keyframes borderTrace {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
/* Mask the interior */
.project-card > * { position: relative; z-index: 1; }

.project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow), 0 20px 60px rgba(0,0,0,0.5);
}
.project-card.hidden { display: none; }

/* Light trace effect on hover */
.project-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 600px at var(--x, 0) var(--y, 0), rgba(124,58,237,0.12), transparent 40%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-light { opacity: 1; }

.project-thumb {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  will-change: transform;
}

/* For Live Video Thumbnails */
.video-thumb {
  border: none;
  background: black;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centered, no extra zoom */
  pointer-events: none;
}

/* Reverting extra zoom */
.iframe-thumb {
  width: 100%;
  height: 100%;
}

.project-card:hover .project-img {
  transform: scale(1.04);
  opacity: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,8,32,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-overlay-text {
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.project-card:hover .project-overlay-text { transform: translateY(0); }

.project-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--secondary);
  background: var(--secondary-dim);
  border: 1px solid rgba(6,214,160,0.25);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.project-category.software {
  color: #fb923c;
  background: rgba(251,146,60,0.1);
  border-color: rgba(251,146,60,0.25);
}
.project-category.ai {
  color: var(--glow);
  background: var(--glow-dim);
  border-color: rgba(168,85,247,0.3);
}

.project-name {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- MAGAZINE LAYOUT MEDIA QUERIES --- */
@media (min-width: 900px) {
  .project-card.card-full {
    grid-column: span 6;
    flex-direction: row; 
    align-items: stretch;
  }
  .project-card.card-half {
    grid-column: span 3;
  }
  .project-card.card-2-3 {
    grid-column: span 4;
  }
  .project-card.card-1-3 {
    grid-column: span 2;
  }

  /* Structural overrides for full-width card */
  .project-card.card-full .project-thumb {
    width: 60%;
    height: auto;
    min-height: 400px;
    border-right: 1px solid var(--border);
  }
  .project-card.card-full .project-body {
    width: 40%;
    justify-content: center;
    padding: 3rem;
  }
  .project-card.card-full .project-name {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .project-card.card-full .project-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Structural overrides for 1/3 tall card */
  .project-card.card-1-3 .project-thumb {
    height: 180px;
  }
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.project-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.project-card:hover .project-tag {
  border-color: var(--border-bright);
  color: var(--text-muted);
}

/* Project Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,0,16,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  max-width: 1100px; /* Increased for split layout */
  width: 95%;
  max-height: 90vh;
  overflow: hidden; /* Header/Body will scroll independently */
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(124, 58, 237, 0.15);
  transform: translateY(100px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column; /* Mobile default */
}

@media (min-width: 900px) {
  .modal {
    flex-direction: row;
    height: 80vh; /* Fixed height for split layout */
  }
}
.modal-backdrop.open .modal {
  transform: translateY(0);
}

.modal-hero {
  /* legacy, preserved just in case */
  width: 100%;
  height: 280px;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* NEW: Scrollbox for split layout */
.modal-scrollbox {
  width: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .modal-scrollbox {
    width: 45%; /* Text takes 45% of width */
    height: 100%;
    overflow-y: auto;
  }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(13,8,32,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.modal-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal-body {
  padding: 1.5rem 2rem 2rem;
  background: var(--surface);
}
.modal-title {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Modal structured content ── */
.modal-hook {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--glow);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.modal-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.modal-paragraphs p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.modal-challenge {
  border-left: 3px solid var(--primary);
  background: rgba(124, 58, 237, 0.07);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.modal-challenge-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.modal-challenge p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   SKILLS SECTION — PCB CIRCUIT BOARD
   ============================================================ */
#skills { background: transparent; }

#skills .container {
  max-width: 1600px;
  width: 95%;
}

.pcb-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}
.pcb-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.pcb-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 6px; }

/* ── MOBILE SKILL GRID ─────────────────────────────────────────
   Shown only on small screens in place of the PCB board.
   Each category = a glass card with a colored top border.
   ─────────────────────────────────────────────────────────────*/
.skills-mobile-grid { display: none; }

@media (max-width: 767px) {
  /* Hide the PCB board on mobile */
  .pcb-scroll-wrapper { display: none; }

  /* Show the mobile grid */
  .skills-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .skill-card-m {
    background: rgba(13, 8, 32, 0.85);
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    padding: 1rem 0.85rem 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
  }
  /* Colored top accent line per category */
  .skill-card-m::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 10px 10px 0 0;
  }
  .skill-card-m.hw::before  { background: linear-gradient(90deg, #7c3aed, #a855f7); }
  .skill-card-m.mech::before{ background: linear-gradient(90deg, #06d6a0, #059669); }
  .skill-card-m.sw::before  { background: linear-gradient(90deg, #a855f7, #7c3aed); }
  .skill-card-m.ai::before  { background: linear-gradient(90deg, #06d6a0, #a855f7); }

  .skill-card-m-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    opacity: 0.8;
  }
  .skill-card-m.hw   .skill-card-m-label { color: #a855f7; }
  .skill-card-m.mech .skill-card-m-label { color: #06d6a0; }
  .skill-card-m.sw   .skill-card-m-label { color: #a855f7; }
  .skill-card-m.ai   .skill-card-m-label { color: #06d6a0; }

  .skill-tags-m {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .skill-tag-m {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    border: 1px solid;
    line-height: 1.5;
  }
  /* Primary tags (brighter) */
  .skill-tag-m.primary {
    font-weight: 600;
  }
  .skill-card-m.hw .skill-tag-m   { color: #c084fc; border-color: rgba(168,85,247,0.25); background: rgba(124,58,237,0.08); }
  .skill-card-m.hw .skill-tag-m.primary { border-color: rgba(168,85,247,0.55); background: rgba(124,58,237,0.18); color: #e9d5ff; }
  .skill-card-m.mech .skill-tag-m { color: #6ee7b7; border-color: rgba(6,214,160,0.25); background: rgba(6,214,160,0.06); }
  .skill-card-m.mech .skill-tag-m.primary { border-color: rgba(6,214,160,0.5); background: rgba(6,214,160,0.14); color: #a7f3d0; }
  .skill-card-m.sw .skill-tag-m   { color: #c084fc; border-color: rgba(168,85,247,0.25); background: rgba(168,85,247,0.06); }
  .skill-card-m.sw .skill-tag-m.primary { border-color: rgba(168,85,247,0.55); background: rgba(168,85,247,0.15); color: #e9d5ff; }
  .skill-card-m.ai .skill-tag-m   { color: #6ee7b7; border-color: rgba(6,214,160,0.25); background: rgba(6,214,160,0.06); }
  .skill-card-m.ai .skill-tag-m.primary { border-color: rgba(6,214,160,0.5); background: rgba(6,214,160,0.14); color: #a7f3d0; }
}



.pcb-board {
  position: relative;
  width: 100%;
  min-width: 1000px;
  aspect-ratio: 10 / 6;
  background: #050508;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a1a24;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

.quad-label {
  position: absolute;
  color: var(--secondary);
  opacity: 0.7;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 5;
}
.quad-label.top-left { top: 25px; left: 25px; }
.quad-label.top-right { top: 25px; right: 25px; text-align: right; }
.quad-label.bottom-left { bottom: 25px; left: 25px; }
.quad-label.bottom-right { bottom: 25px; right: 25px; text-align: right; }

.pcb-traces {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.pcb-trace {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawTrace 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: opacity 0.3s, stroke-width 0.3s, stroke 0.3s;
}
@keyframes drawTrace { to { stroke-dashoffset: 0; } }

.pcb-trace.active { opacity: 1; stroke-width: 3; }
.trace-hw { stroke: #7c3aed; }
.trace-mech { stroke: #06d6a0; }
.trace-sw { stroke: #a855f7; }
.trace-ai { stroke: #06d6a0; }
.trace-cross { stroke: #ffffff; opacity: 0.15; stroke-dasharray: 4; }
.trace-cross.active { opacity: 0.8; stroke-dasharray: none; }

.pulse-dot {
  opacity: 0;
  animation: fadeInPulse 0.5s 2s forwards;
  pointer-events: none;
}
@keyframes fadeInPulse { to { opacity: 1; } }

.pulse-hw { fill: #7c3aed; filter: drop-shadow(0 0 5px #7c3aed); }
.pulse-mech { fill: #06d6a0; filter: drop-shadow(0 0 5px #06d6a0); }
.pulse-sw { fill: #a855f7; filter: drop-shadow(0 0 5px #a855f7); }
.pulse-ai { fill: #06d6a0; filter: drop-shadow(0 0 5px #06d6a0); }
.pulse-cross { fill: #ffffff; filter: drop-shadow(0 0 4px #fff); }

.pcb-nodes {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}

.pcb-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 4px;
  background: #0a0a0f;
  color: var(--node-color);
  border: 1px solid var(--node-color);
  font-family: var(--mono);
  font-size: 0.70rem;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.pcb-node.primary {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-width: 2px;
  box-shadow: 0 0 12px var(--glow-color), inset 0 0 10px #020204;
  text-shadow: 0 0 5px var(--node-color);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(2px);
}

.pcb-node::after {
  content: attr(data-cat);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  border: 1px solid var(--node-color);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.node-hw { --node-color: #7c3aed; --glow-color: rgba(124, 58, 237, 0.4); }
.node-mech { --node-color: #06d6a0; --glow-color: rgba(6, 214, 160, 0.4); }
.node-sw { --node-color: #a855f7; --glow-color: rgba(168, 85, 247, 0.4); }
.node-ai { --node-color: #06d6a0; --glow-color: rgba(6, 214, 160, 0.4); }

.pcb-node:hover, .pcb-node.active {
  background: var(--node-color);
  color: #000;
  text-shadow: none;
  box-shadow: 0 0 20px var(--node-color);
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 20;
}
.pcb-node:hover::after { opacity: 1; }

.pcb-board.hovering .pcb-node:not(.active) { opacity: 0.3; filter: grayscale(100%); }
.pcb-board.hovering .pcb-trace:not(.active) { opacity: 0.05; }

/* ============================================================
   BEYOND THE LAB SECTION
   ============================================================ */
#beyond { background: transparent; }

.beyond-grid {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .beyond-grid {
    flex-direction: column;
  }
}

.beyond-card {
  display: flex;
  flex-direction: column;
}

.volthub-card { flex: 1.25; }
.rotaract-card { flex: 1; }

.beyond-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.beyond-icon {
  font-size: 2rem;
  line-height: 1;
}

.beyond-title {
  font-family: var(--mono);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.beyond-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.beyond-content {
  flex: 1;
}

.beyond-carousel-wrapper {
  margin-top: 1rem;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface2);
}

.beyond-carousel-wrapper .mc-slide img {
  opacity: 0.85;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: transparent;
  min-height: calc(100vh - 160px); /* Leave room for footer and status bar */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.contact-intro strong { color: #fb923c; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
  color: inherit;
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-row:hover { padding-left: 0.5rem; }
.contact-row:hover .contact-row-key { color: var(--glow); }
.contact-row:hover .contact-row-val { color: var(--text); }

/* Contact terminal with typing effect */
.contact-typed-line {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
  opacity: 0;
  min-height: 1.3em;
}
.contact-typed-line.typed { opacity: 1; }

.contact-prompt {
  font-family: var(--mono);
  color: var(--secondary);
  font-size: 0.8rem;
  width: 16px;
  flex-shrink: 0;
}
.contact-row-key {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 90px;
  letter-spacing: 0.08em;
  transition: var(--transition);
}
.contact-row-val {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: var(--transition);
  word-break: break-all;
}

.contact-cta-area {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2rem 4rem 2rem; /* Extra bottom padding so it doesn't hide behind status bar */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.footer-copy strong { color: var(--glow); }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.footer-socials a:hover { color: var(--glow); }

/* ============================================================
   STATUS BAR (bottom of screen)
   ============================================================ */
.status-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: auto;
  min-height: 28px;
  padding: 6px 1rem;
  background: rgba(13, 8, 32, 0.95);
  border-top: 1px solid var(--border-bright);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  z-index: 999;
  font-weight: 500;
  backdrop-filter: blur(12px);
}
.status-bar-right { display: flex; gap: 1.5rem; }
.status-indicator { display: flex; align-items: center; gap: 0.4rem; color: var(--secondary); }
.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 6px var(--secondary);
  animation: pulse-dot2 2s infinite;
}
@keyframes pulse-dot2 {
  0%,100%{ opacity:1; box-shadow: 0 0 4px var(--secondary); }
  50%{ opacity:0.5; box-shadow: 0 0 10px var(--secondary); }
}

/* ============================================================
   GLOW DIVIDER
   ============================================================ */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.25;
  margin: 0 auto;
}

/* ============================================================
   OSC / HERO VISUAL
   ============================================================ */
.osc-wrap {
  position: relative;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.25rem;
  overflow: hidden;
}
.osc-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.osc-label span { color: var(--secondary); }
.osc-screen {
  background: rgba(3,0,10,0.7);
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.robot-svg { filter: drop-shadow(0 0 20px rgba(124,58,237,0.35)); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; text-align: center; }
  .hero-visual     { display: none; }
  .hero-terminal-boot { align-items: center; }
  .hero-ctas       { justify-content: center; }
  .hero-location   { justify-content: center; }
  .about-grid      { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: repeat(2, 1fr); }
  .skills-grid     { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links       { display: none; }
  .hamburger       { display: flex; }
  /* Disable 3D tilt on mobile */
  .project-card    { transform: none !important; }
}

@media (max-width: 600px) {
  section          { padding: 70px 0; }
  .projects-grid   { grid-template-columns: 1fr; }
  .hero-name       { font-size: 2.8rem; }
  footer           { flex-direction: column; align-items: center; text-align: center; }
  .status-bar-right { display: none; }
  .skill-tag       { transform: translateY(0) !important; opacity: 1 !important; }
}

/* Counter */
.counter-num { color: var(--glow); font-weight: 700; }

/* Section separator */
.section-separator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.4;
}
.section-separator span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.separator-line { flex: 1; height:1px; background: var(--border); }

/* ============================================================
   MODAL MEDIA — Photo Carousel + Video Player
   ============================================================ */

/* Container that replaces the old modal-hero img */
.modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(10, 5, 25, 0.9);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

/* ---- PLACEHOLDER (no media yet) ---- */
.mc-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.mc-placeholder span {
  font-size: 2rem;
  opacity: 0.4;
}
.mc-placeholder p {
  opacity: 0.5;
}

/* ---- PHOTO CAROUSEL ---- */
.mc-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.mc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.mc-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.mc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Arrow buttons */
.mc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 4, 28, 0.65);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}
.mc-arrow:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--glow);
}
.mc-prev { left: 0.75rem; }
.mc-next { right: 0.75rem; }

/* Dot indicators */
.mc-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}
.mc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(226, 217, 243, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}
.mc-dot.active {
  background: var(--glow);
  transform: scale(1.35);
}

/* ---- VIDEO PLAYER ---- */
.mv-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.mv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mv-unmute {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 4, 28, 0.70);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}
.mv-unmute:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}
