/* ══════════════════════════════════════════════════════════════════════
   HARSH — PREMIUM MULTI-THEMED WEBGL PORTFOLIO
   style.css — Complete Production-Ready Stylesheet
   ══════════════════════════════════════════════════════════════════════ */

/* ────────────────────── THEME CUSTOM PROPERTIES ────────────────────── */

:root {
  /* Cyberpunk */
  --cyber-primary: #00f0ff;
  --cyber-secondary: #ff2d7b;
  --cyber-bg: #0a0a0f;
  --cyber-text: #ffffff;
  --cyber-glow: 0 0 20px rgba(0, 240, 255, 0.5);

  /* Holographic */
  --holo-primary: #00d4ff;
  --holo-secondary: #a855f7;
  --holo-accent: #7c3aed;
  --holo-bg: linear-gradient(135deg, #1a0533 0%, #0f0a2e 40%, #0a1628 100%);
  --holo-text: #e0e7ff;
  --holo-glow: 0 0 30px rgba(0, 212, 255, 0.3);

  /* Matrix */
  --matrix-primary: #00ff41;
  --matrix-bg: #050505;
  --matrix-dim: #00cc33;
  --matrix-text: #00ff41;
  --matrix-glow: 0 0 15px rgba(0, 255, 65, 0.4);

  /* Synthwave */
  --synth-primary: #ff2d95;
  --synth-secondary: #00f0ff;
  --synth-purple: #7b2ff7;
  --synth-bg: linear-gradient(180deg, #ff2d95 -20%, #7b2ff7 40%, #0a0a2e 100%);
  --synth-text: #ffffff;
  --synth-glow: 0 0 25px rgba(255, 45, 149, 0.5);

  /* Mil-Spec */
  --mil-primary: #ffd700;
  --mil-secondary: #ff6b35;
  --mil-bg: #2a2a2a;
  --mil-text: #d4d4d4;
  --mil-green: #00ff41;
  --mil-glow: 0 0 15px rgba(255, 215, 0, 0.3);

  /* Shared */
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ────────────────────── GLOBAL RESET ────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow: hidden;
  height: 100vh;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ────────────────────── CUSTOM SCROLLBAR ────────────────────── */

#scroll-container::-webkit-scrollbar {
  width: 6px;
}

#scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

#scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: background 0.3s;
}

#scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

#scroll-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.03);
  -webkit-overflow-scrolling: touch;
}

/* ────────────────────── SECTIONS BASE ────────────────────── */

.section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.section-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
}

.hidden {
  display: none !important;
}

/* ────────────────────── CANVAS LAYERS ────────────────────── */

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  pointer-events: none;
}

#transition-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ══════════════════════════════════════════════════════════════════════
   BOOT SCREEN
   ══════════════════════════════════════════════════════════════════════ */

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

#boot-screen.boot-complete {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

#boot-terminal {
  width: min(90vw, 600px);
  font-family: var(--font-mono);
  color: #00ff41;
}

#boot-lines {
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre-wrap;
  min-height: 180px;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

#boot-progress {
  margin-top: 2rem;
  height: 3px;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

#boot-progress-bar {
  height: 100%;
  width: 0%;
  background: #00ff41;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.6), 0 0 30px rgba(0, 255, 65, 0.3);
  transition: width 0.3s ease;
}

#boot-status {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: rgba(0, 255, 65, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.2);
}

/* ══════════════════════════════════════════════════════════════════════
   AUDIO TOGGLE
   ══════════════════════════════════════════════════════════════════════ */

#audio-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
}

#audio-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

#audio-toggle[data-muted='false'] .audio-icon-off,
#audio-toggle[data-muted='true'] .audio-icon-on {
  display: none;
}

#audio-toggle[data-muted='false'] .audio-icon-on,
#audio-toggle[data-muted='true'] .audio-icon-off {
  display: block;
}

/* ── TOP NAVIGATION ── */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(2, 2, 3, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 153, 255, 0.15);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(0, 153, 255, 0.8);
  letter-spacing: 0.3em;
  text-shadow: 0 0 10px rgba(0, 153, 255, 0.4);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links button {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(0, 153, 255, 0.5);
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.2s;
  padding: 5px;
}

.nav-links button:hover,
.nav-links button.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 153, 255, 0.8);
}

.nav-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 85, 0, 0.8);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #0f0;
  border-radius: 50%;
  animation: blink 1.2s infinite;
  box-shadow: 0 0 8px #0f0;
}

@media (max-width: 768px) {
  #top-nav {
    padding: 10px 15px;
    background: rgba(2, 2, 3, 0.85);
  }
  .nav-logo, .nav-status {
    display: none;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 15px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links button {
    font-size: 0.65rem;
    white-space: nowrap;
    padding: 4px 6px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   MINI-MAP NAVIGATION
   ══════════════════════════════════════════════════════════════════════ */

#mini-map {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.minimap-track {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  z-index: -1;
}

#minimap-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--cyber-primary);
  border-radius: 1px;
  transition: height 0.4s var(--ease-out-expo), background-color 0.5s ease;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.minimap-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-back);
  position: relative;
  z-index: 1;
  padding: 0;
}

.minimap-dot:hover {
  border-color: #fff;
  transform: scale(1.2);
}

.minimap-dot.active {
  background: var(--cyber-primary);
  border-color: var(--cyber-primary);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5), 0 0 24px rgba(0, 240, 255, 0.2);
}

.minimap-tooltip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyber-primary);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.minimap-dot:hover .minimap-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ══════════════════════════════════════════════════════════════════════
   DOWNLOAD CV BUTTON
   ══════════════════════════════════════════════════════════════════════ */

#download-cv {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  overflow: hidden;
}

#download-cv:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cv-icon {
  font-size: 1rem;
  line-height: 1;
}

.cv-text {
  line-height: 1;
}

.cv-progress {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.cv-progress.active {
  display: flex;
}

.cv-progress-bar {
  width: 70%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.cv-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--cyber-primary);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  animation: cv-fill 2s var(--ease-out-expo) forwards;
}

.cv-progress-text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cyber-primary);
  letter-spacing: 0.15em;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

@keyframes cv-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   COMMAND PALETTE
   ══════════════════════════════════════════════════════════════════════ */

#command-palette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

#command-palette:not(.hidden) {
  animation: palette-in 0.25s var(--ease-out-expo) forwards;
}

.palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.palette-modal {
  position: relative;
  z-index: 1;
  width: min(90vw, 600px);
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: scale(0.95);
  opacity: 0;
  animation: palette-modal-in 0.3s var(--ease-out-expo) 0.05s forwards;
}

.palette-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.palette-shortcut {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

#palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  caret-color: var(--cyber-primary);
}

#palette-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.palette-esc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#palette-results {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
}

#palette-results::-webkit-scrollbar {
  width: 4px;
}

#palette-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.palette-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.palette-result:hover,
.palette-result.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.palette-result.active {
  border-left: 2px solid var(--cyber-primary);
}

@keyframes palette-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes palette-modal-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   KONAMI OVERLAY
   ══════════════════════════════════════════════════════════════════════ */

#konami-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.konami-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: konami-flash-out 0.6s ease forwards;
  pointer-events: none;
}

.konami-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: konami-rainbow 2s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.5));
  position: relative;
  z-index: 1;
}

.konami-secret {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.5rem;
  opacity: 0;
  animation: konami-fade-in 0.8s ease 1s forwards;
  position: relative;
  z-index: 1;
}

@keyframes konami-flash-out {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes konami-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes konami-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.6; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 1: HERO — CYBERPUNK THEME
   ══════════════════════════════════════════════════════════════════════ */

#hero[data-theme='cyberpunk'] {
  background: transparent;
}

#hero[data-theme='cyberpunk']::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  gap: 1.5rem;
}

.hero-glitch-wrapper {
  position: relative;
  display: inline-block;
}

/* ── GLITCH TEXT ── */

.hero-name,
.glitch {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.glitch::before {
  color: var(--cyber-primary);
  z-index: -1;
  animation: glitch-1 3.5s infinite linear alternate-reverse;
  clip-path: inset(0 0 0 0);
}

.glitch::after {
  color: var(--cyber-secondary);
  z-index: -2;
  animation: glitch-2 3.8s infinite linear alternate-reverse;
  clip-path: inset(0 0 0 0);
}

/* ── HERO SUBTITLE ── */

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyber-primary);
  animation: typewriter 3s steps(20) 1s forwards, blink 0.75s step-end infinite;
  width: 0;
}

.cursor-blink {
  color: var(--cyber-primary);
  animation: blink 0.75s step-end infinite;
  font-weight: 100;
}

.night-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--matrix-primary);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
  letter-spacing: 0.1em;
}

/* ── SCROLL CTA ── */

.hero-scroll-cta {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hero-scroll-cta:hover {
  opacity: 0.8;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  animation: bounce-down 2s ease-in-out infinite;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 2: IDENTITY — HOLOGRAPHIC GLASSMORPHISM
   ══════════════════════════════════════════════════════════════════════ */

#identity[data-theme='holographic'] {
  background: linear-gradient(135deg, #1a0533 0%, #0f0a2e 40%, #0a1628 100%);
}

.identity-content {
  gap: 2.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.holo-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--holo-primary) 0%, var(--holo-secondary) 50%, var(--holo-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  text-align: center;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* ── GLASS CARD ── */

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.glass-card:hover .card-glow {
  opacity: 1;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
}

.glass-card > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

.highlight-bhagwadhari {
  color: #ffd700;
  font-weight: 700;
  background: linear-gradient(90deg, #ffd700 0%, #ffaa00 30%, #ffd700 60%, #ffaa00 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s linear infinite;
}

.accent {
  color: var(--holo-primary);
  font-weight: 600;
}

.card-subtitle {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--holo-primary);
  margin-bottom: 1rem;
}

.bio-text,
.academic-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--holo-text);
}

.identity-bio {
  margin-bottom: 1.5rem;
}

.identity-academics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── SKILLS RADAR ── */

#skills-radar {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* ── TIMELINE ── */

.timeline-card {
  max-height: 480px;
  overflow-y: auto;
}

.timeline-card::-webkit-scrollbar {
  width: 4px;
}

.timeline-card::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 2px;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 212, 255, 0.2);
  margin-top: 1rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -22px; /* 16px padding + 6px to center over 2px border */
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--holo-primary);
  box-shadow: 0 0 10px var(--holo-primary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--holo-secondary);
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

.timeline-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--holo-text);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 3: PROJECTS — RETRO MATRIX THEME
   ══════════════════════════════════════════════════════════════════════ */

#projects[data-theme='nova'] {
  background: radial-gradient(circle at center, #0a0a16 0%, #03030a 100%);
}

.projects-content {
  gap: 2.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.nova-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 153, 255, 0.5), 0 0 30px rgba(0, 153, 255, 0.3), 0 0 60px rgba(153, 0, 255, 0.2);
  letter-spacing: 0.15em;
  font-weight: 700;
}

/* ── CAROUSEL ── */

.carousel-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.carousel-viewport {
  overflow-x: auto;
  flex: 1;
  border-radius: 12px;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 2rem;
}

.carousel-btn {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  width: 50px;
  height: 50px;
  min-width: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 153, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.2);
  transform: scale(1.05);
}

/* ── GRID EXPLODE ── */
.projects-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  position: relative;
  min-height: 400px;
}

.grid-node {
  background: linear-gradient(145deg, rgba(15, 15, 25, 0.8) 0%, rgba(5, 5, 12, 0.9) 100%);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, box-shadow 0.3s;
  text-align: center;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.grid-node:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 153, 255, 0.2);
  border-color: rgba(0, 153, 255, 0.5);
}

.grid-node-index {
  font-family: var(--font-mono);
  color: var(--pink);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.grid-node-title {
  font-family: var(--font-tech);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.grid-node.shattered {
  pointer-events: none;
  opacity: 0;
}

/* Focused Detailed Card */
.focus-card-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  width: 100%;
  max-width: 420px;
}

.focus-card-wrapper.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.card-glass-panel {
  background: linear-gradient(145deg, rgba(15, 15, 25, 0.95) 0%, rgba(5, 5, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 153, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stacked-card:hover[data-stack="0"] .card-glass-panel {
  transform: translateY(-8px);
  border-color: rgba(0, 153, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 153, 255, 0.15);
}

.stacked-card:hover[data-stack="0"] .card-glass-panel::before {
  transform: translateX(100%);
}

.card-nova-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(0, 153, 255, 0.8);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.card-nova-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 153, 255, 0.5), transparent);
}

.project-name {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.project-desc {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.project-footer {
  margin-top: auto;
}

.nova-btn {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid rgba(0, 153, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nova-btn:hover {
  background: rgba(0, 153, 255, 0.2);
  border-color: rgba(0, 153, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.3);
  transform: translateY(-2px);
}

/* ── CAROUSEL DOTS ── */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--matrix-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease-out-back);
}

.carousel-dot.active {
  background: var(--matrix-primary);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 4: ACHIEVEMENTS — SYNTHWAVE 80s
   ══════════════════════════════════════════════════════════════════════ */

#achievements[data-theme='synthwave'] {
  background: linear-gradient(180deg, #1a0028 0%, #170030 20%, #1a0040 50%, #0a0a2e 100%);
}

.achievements-content {
  gap: 2.5rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.synthwave-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 10px rgba(255, 45, 149, 0.6),
    0 0 30px rgba(255, 45, 149, 0.3),
    0 0 60px rgba(255, 45, 149, 0.15);
  text-align: center;
}

/* ── SYNTHWAVE GRID FLOOR ── */

.synthwave-grid {
  position: absolute;
  bottom: 0;
  left: -20%;
  width: 140%;
  height: 45%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 45, 149, 0.15) 0px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 45, 149, 0.1) 0px,
      transparent 1px,
      transparent 40px
    );
  transform: perspective(400px) rotateX(55deg);
  transform-origin: center top;
  animation: grid-scroll 4s linear infinite;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* ── ACHIEVEMENT CARDS ── */

#achievements .carousel-btn {
  border-color: var(--synth-primary);
  color: var(--synth-primary);
}

#achievements .carousel-btn:hover {
  background: var(--synth-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 45, 149, 0.4);
}

.achievement-card {
  min-width: 280px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  scroll-snap-align: start;
}
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s var(--ease-out-expo);
  flex-shrink: 0;
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 149, 0.3);
  box-shadow: 0 12px 40px rgba(255, 45, 149, 0.15);
}

.achievement-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.achievement-card .cert-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  padding: 1rem 1.2rem 0.5rem;
  text-shadow: 0 0 12px rgba(255, 45, 149, 0.4);
}

.achievement-card .cert-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  padding: 0 1.2rem 1.2rem;
}

#achievements .carousel-dot {
  border-color: var(--synth-primary);
}

#achievements .carousel-dot.active {
  background: var(--synth-primary);
  box-shadow: 0 0 8px rgba(255, 45, 149, 0.5);
}

/* ── SOCIAL NODES ── */

.social-nodes {
  text-align: center;
  margin-top: 1rem;
}

.social-heading {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}

.social-node:hover {
  transform: scale(1.2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.social-node[data-brand='instagram']:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-node[data-brand='telegram']:hover {
  background: #0088cc;
}

.social-node[data-brand='linkedin']:hover {
  background: #0077b5;
}

.social-node[data-brand='github']:hover {
  background: #333;
}

.social-node[data-brand='leetcode']:hover {
  background: #FFA116;
}

.social-node[data-brand='whatsapp']:hover {
  background: #25D366;
}

.social-node[data-brand='discord']:hover {
  background: #5865F2;
}

.social-node[data-brand='kaggle']:hover {
  background: #20BEFF;
}

.social-node[data-brand='gmail']:hover {
  background: #EA4335;
}

.social-label {
  font-family: var(--font-tech);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  bottom: -22px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
}

.social-node:hover .social-label {
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════════════════
   SECTION 5: NETWORK — NEON GRID
   ══════════════════════════════════════════════════════════════════════ */
#network[data-theme='neon'] {
  background: var(--neon-bg);
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.neon-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2em;
  text-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), 0 0 40px var(--neon-secondary);
  text-align: center;
  margin-bottom: 4rem;
}


/* ══════════════════════════════════════════════════════════════════════
   SECTION 6: VAULT — MIL-SPEC SECURITY
   ══════════════════════════════════════════════════════════════════════ */

#vault[data-theme='milspec'] {
  background: var(--mil-bg);
}

.vault-content {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  gap: 0;
}

.hazard-border {
  position: relative;
  width: 100%;
}

.hazard-stripe-top,
.hazard-stripe-bottom {
  height: 20px;
  background: repeating-linear-gradient(
    45deg,
    var(--mil-primary),
    var(--mil-primary) 12px,
    #000 12px,
    #000 24px
  );
  background-size: 34px 100%;
  animation: hazard-scroll 3s linear infinite;
}

.hazard-stripe-top {
  border-radius: 8px 8px 0 0;
}

.hazard-stripe-bottom {
  border-radius: 0 0 8px 8px;
}

.vault-inner {
  background: rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 215, 0, 0.15);
  border-right: 1px solid rgba(255, 215, 0, 0.15);
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.vault-title {
  font-family: var(--font-tech);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.vault-icon {
  color: var(--mil-primary);
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
  margin: 0 0.3em;
}

.vault-description {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.6;
}

.vault-terminal {
  background: #111;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  width: 100%;
  max-width: 450px;
  font-family: var(--font-mono);
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vault-prompt {
  color: var(--matrix-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.vault-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex: 1;
  caret-color: var(--matrix-primary);
  width: 100%;
}

.vault-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.vault-submit-btn {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 12px 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease-out-expo);
}

.vault-submit-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.vault-submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

.vault-feedback {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.5em;
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.vault-feedback.success {
  color: var(--matrix-primary);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.vault-feedback.error {
  color: #ff4444;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */

@keyframes glitch-1 {
  0%   { clip-path: inset(42% 0 25% 0); transform: translate(-3px, 0); }
  5%   { clip-path: inset(80% 0 5%  0); transform: translate(2px, 0); }
  10%  { clip-path: inset(15% 0 60% 0); transform: translate(-1px, 0); }
  15%  { clip-path: inset(55% 0 10% 0); transform: translate(3px, 0); }
  20%  { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); }
  25%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  30%  { clip-path: inset(75% 0 15% 0); transform: translate(1px, 0); }
  35%  { clip-path: inset(20% 0 55% 0); transform: translate(-3px, 0); }
  40%  { clip-path: inset(90% 0 2%  0); transform: translate(2px, 0); }
  45%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  50%  { clip-path: inset(45% 0 30% 0); transform: translate(-1px, 0); }
  55%  { clip-path: inset(10% 0 70% 0); transform: translate(3px, 0); }
  60%  { clip-path: inset(65% 0 20% 0); transform: translate(-2px, 0); }
  65%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  70%  { clip-path: inset(35% 0 45% 0); transform: translate(1px, 0); }
  75%  { clip-path: inset(85% 0 5%  0); transform: translate(-3px, 0); }
  80%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  85%  { clip-path: inset(50% 0 25% 0); transform: translate(2px, 0); }
  90%  { clip-path: inset(5%  0 80% 0); transform: translate(-1px, 0); }
  95%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  100% { clip-path: inset(60% 0 15% 0); transform: translate(3px, 0); }
}

@keyframes glitch-2 {
  0%   { clip-path: inset(15% 0 60% 0); transform: translate(3px, 0); }
  5%   { clip-path: inset(60% 0 15% 0); transform: translate(-2px, 0); }
  10%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  15%  { clip-path: inset(40% 0 30% 0); transform: translate(1px, 0); }
  20%  { clip-path: inset(80% 0 5%  0); transform: translate(-3px, 0); }
  25%  { clip-path: inset(25% 0 50% 0); transform: translate(2px, 0); }
  30%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  35%  { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 0); }
  40%  { clip-path: inset(10% 0 70% 0); transform: translate(3px, 0); }
  45%  { clip-path: inset(50% 0 25% 0); transform: translate(-2px, 0); }
  50%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  55%  { clip-path: inset(35% 0 40% 0); transform: translate(1px, 0); }
  60%  { clip-path: inset(85% 0 3%  0); transform: translate(-3px, 0); }
  65%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  70%  { clip-path: inset(20% 0 55% 0); transform: translate(2px, 0); }
  75%  { clip-path: inset(55% 0 20% 0); transform: translate(-1px, 0); }
  80%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  85%  { clip-path: inset(45% 0 30% 0); transform: translate(3px, 0); }
  90%  { clip-path: inset(75% 0 10% 0); transform: translate(-2px, 0); }
  95%  { clip-path: inset(0 0 0 0);     transform: translate(0); }
  100% { clip-path: inset(30% 0 45% 0); transform: translate(1px, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.8; }
}

@keyframes scanline-scroll {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100vh; }
}

@keyframes grid-scroll {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 0 40px; }
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40%                      { transform: rotate(45deg) translateY(-8px); }
  60%                      { transform: rotate(45deg) translateY(-4px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes hazard-scroll {
  0%   { background-position: 0 0; }
  100% { background-position: 34px 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  10%      { transform: translateX(-8px) rotate(-1deg); }
  20%      { transform: translateX(8px) rotate(1deg); }
  30%      { transform: translateX(-6px) rotate(-0.5deg); }
  40%      { transform: translateX(6px) rotate(0.5deg); }
  50%      { transform: translateX(-4px) rotate(-0.5deg); }
  60%      { transform: translateX(4px) rotate(0.5deg); }
  70%      { transform: translateX(-2px) rotate(0); }
  80%      { transform: translateX(2px) rotate(0); }
  90%      { transform: translateX(-1px) rotate(0); }
}

@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   SCREEN EFFECTS (body classes applied via JS)
   ══════════════════════════════════════════════════════════════════════ */

body.shake {
  animation: shake 0.5s ease-in-out;
}

body.red-flash::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 0, 0, 0.3);
  z-index: 9999;
  pointer-events: none;
  animation: flash-out 0.6s ease forwards;
}

body.green-flash::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 255, 65, 0.2);
  z-index: 9999;
  pointer-events: none;
  animation: flash-out 0.6s ease forwards;
}

body.pixelated {
  filter: contrast(1.1) saturate(1.3);
  image-rendering: pixelated;
}

@keyframes flash-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* On tablet/mobile, don't force snap — content can overflow viewport */
  #scroll-container {
    scroll-snap-type: none;
  }

  .section {
    min-height: auto;
    scroll-snap-align: none;
  }

  .section-content {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Identity section needs to grow for timeline */
  #identity .section-content {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Achievements section needs to grow for social nodes */
  #achievements .section-content {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-name,
  .glitch {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .identity-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .glass-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .holo-title,
  .synthwave-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  /* Timeline mobile */
  .timeline-card {
    max-height: none;
    overflow-y: visible;
  }

  .timeline-container {
    gap: 1.2rem;
    padding-left: 14px;
  }

  .timeline-dot {
    left: -20px;
    width: 8px;
    height: 8px;
  }

  .timeline-date {
    font-size: 0.7rem;
  }

  .timeline-text {
    font-size: 0.8rem;
  }

  /* Skills radar */
  #skills-radar {
    width: 280px !important;
    height: 280px !important;
  }

  .project-card {
    min-width: 250px;
    max-width: 250px;
    padding: 1.2rem;
  }

  .achievement-card {
    min-width: 240px;
    max-width: 240px;
  }

  /* Carousel touch UX */
  .carousel-viewport {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .social-grid {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-node {
    width: 60px;
    height: 60px;
  }

  .social-node svg {
    width: 22px;
    height: 22px;
  }

  #mini-map {
    right: 0.75rem;
    gap: 14px;
  }

  .minimap-dot {
    width: 10px;
    height: 10px;
  }

  .minimap-tooltip {
    display: none;
  }

  #download-cv {
    top: 1rem;
    right: 1rem;
    padding: 6px 12px;
    font-size: 0.65rem;
  }

  #audio-toggle {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 38px;
    height: 38px;
  }

  .vault-inner {
    padding: 2rem 1.5rem;
  }

  .vault-title {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    letter-spacing: 0.1em;
  }

  .palette-modal {
    width: 95vw;
    border-radius: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 480px)
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .section-content {
    padding: 1rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-name,
  .glitch {
    font-size: clamp(2.2rem, 14vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .hero-scroll-cta {
    bottom: 2rem;
  }

  .scroll-label {
    font-size: 0.5rem;
  }

  .holo-title,
  .synthwave-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .identity-grid {
    gap: 1rem;
  }

  .identity-content {
    gap: 1.5rem;
  }

  .glass-card {
    padding: 1.2rem;
    border-radius: 14px;
  }

  .card-subtitle {
    font-size: 0.7rem;
  }

  .bio-text,
  .academic-text {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  /* Timeline mobile compact */
  .timeline-container {
    gap: 1rem;
    padding-left: 12px;
  }

  .timeline-dot {
    left: -18px;
    width: 8px;
    height: 8px;
  }

  .timeline-date {
    font-size: 0.65rem;
  }

  .timeline-text {
    font-size: 0.78rem;
  }

  /* Skills radar smaller */
  #skills-radar {
    width: 240px !important;
    height: 240px !important;
  }

  .project-card {
    min-width: 85vw;
    max-width: 85vw;
    padding: 1rem;
  }

  .project-card .project-name {
    font-size: 0.9rem;
  }

  .project-card .project-desc {
    font-size: 0.75rem;
  }

  .achievement-card {
    min-width: 80vw;
    max-width: 80vw;
  }

  .achievement-card img {
    max-height: 140px;
  }

  .achievement-card .cert-name {
    font-size: 0.8rem;
    padding: 0.8rem 1rem 0.4rem;
  }

  .achievement-card .cert-desc {
    font-size: 0.75rem;
    padding: 0 1rem 1rem;
  }

  .social-grid {
    gap: 0.8rem;
  }

  .social-node {
    width: 50px;
    height: 50px;
  }

  .social-node svg {
    width: 18px;
    height: 18px;
  }

  .social-label {
    font-size: 0.45rem;
  }

  .social-heading {
    font-size: 0.9rem;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.9rem;
  }

  #mini-map {
    right: 0.4rem;
    gap: 10px;
  }

  .minimap-dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }

  .minimap-dot.active {
    transform: scale(1.25);
  }

  .vault-terminal {
    padding: 0.8rem;
  }

  .vault-prompt {
    font-size: 0.65rem;
  }

  .vault-input {
    font-size: 0.8rem;
    width: 100%;
  }

  .vault-submit-btn {
    padding: 10px 24px;
    font-size: 0.75rem;
    width: 100%;
  }

  .matrix-title {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }

  .crt-frame {
    padding: 0.8rem;
  }

  .hazard-stripe-top,
  .hazard-stripe-bottom {
    height: 14px;
  }

  .vault-inner {
    padding: 1.5rem 1rem;
  }

  .vault-description {
    font-size: 0.65rem;
  }

  #boot-terminal {
    width: 95vw;
  }

  #boot-lines {
    font-size: 0.65rem;
    line-height: 1.6;
  }

  .konami-text {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .konami-secret {
    font-size: 0.8rem;
  }

  /* CV download on mobile */
  #download-cv {
    top: 0.75rem;
    right: 0.75rem;
    padding: 5px 10px;
    font-size: 0.6rem;
  }

  /* Audio toggle mobile */
  #audio-toggle {
    bottom: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #scroll-container {
    scroll-behavior: auto;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   SELECTION & FOCUS STYLING
   ══════════════════════════════════════════════════════════════════════ */

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyber-primary);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: inherit;
}

/* ══════════════════════════════════════════════════════════════════════
   QUANTUM THEME — NETWORK SECTION
   ══════════════════════════════════════════════════════════════════════ */

#network[data-theme='quantum'] {
  background: linear-gradient(135deg, #050818 0%, #0a0f2e 30%, #0d1117 60%, #070b1a 100%);
}

.quantum-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2em;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5), 0 0 30px rgba(0, 255, 204, 0.2), 0 0 60px rgba(112, 0, 255, 0.15);
  text-align: center;
  margin-bottom: 3rem;
}

.network-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  gap: 2rem;
}

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  width: 100%;
  align-items: start;
}

.network-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.network-subtitle {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 255, 204, 0.7);
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
  text-align: center;
  margin-bottom: 0.5rem;
}

#network .social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

#network .social-node {
  border-color: rgba(0, 255, 204, 0.25);
  background: rgba(0, 255, 204, 0.04);
}

#network .social-node:hover {
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.3), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 204, 0.12);
  border-radius: 20px;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 255, 204, 0.6);
}

.form-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 204, 0.15);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s var(--ease-out-expo);
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
  border-color: rgba(0, 255, 204, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.15), inset 0 0 8px rgba(0, 255, 204, 0.05);
  background: rgba(0, 0, 0, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
}

.contact-submit-btn {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, #00ffcc, #00d4ff);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 204, 0.35), 0 0 60px rgba(0, 255, 204, 0.15);
}

.contact-submit-btn.sending {
  pointer-events: none;
  opacity: 0.7;
}

.contact-feedback {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.1em;
  min-height: 1.2rem;
}

.contact-feedback.success {
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.contact-feedback.error {
  color: #ff4444;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

@media (max-width: 768px) {
  .network-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #network .section-content {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .quantum-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .network-subtitle {
    font-size: 0.7rem;
  }

  .contact-card {
    padding: 1.2rem;
    border-radius: 14px;
  }

  .form-input {
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
  }

  .contact-submit-btn {
    padding: 12px 24px;
    font-size: 0.75rem;
    width: 100%;
  }
}
