/* ============================================
   SAFEEK S · CYBERPUNK PORTFOLIO
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-alt: #10101a;
  --panel: rgba(20, 20, 32, 0.6);
  --border: rgba(0, 255, 255, 0.15);
  --border-hot: rgba(255, 0, 255, 0.35);
  --text: #e6e6f0;
  --text-dim: #8888a0;
  --neon-cyan: #00ffff;
  --neon-pink: #ff00ff;
  --neon-purple: #a855f7;
  --neon-green: #00ff9d;
  --glow-cyan: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
  --glow-pink: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Radial glow behind content */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.08), transparent 40%);
  pointer-events: none;
  z-index: -2;
  animation: bg-pulse 12s ease-in-out infinite;
}

@keyframes bg-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Canvas grid */
#grid-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.4;
}

/* Scanlines overlay */
.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 255, 255, 0.015) 3px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
  text-decoration: none;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.5px;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.3s ease;
}

.nav-brand:hover {
  transform: scale(1.25);
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.brand-name { color: inherit; font-weight: 600; }

.brand-smile {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  display: inline-block;
  line-height: 1;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* On hover: rotate :) 90° CW to become a horizontal smiley ‿ */
.nav-brand:hover .brand-smile {
  transform: rotate(90deg);
}

.brand-handle {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-left: 0.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  align-items: center;
  margin-left: auto;
  margin-right: 1.5rem;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  margin-left: auto;
  z-index: 101;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-num {
  color: var(--text-dim);
  font-size: 0.7em;
  margin-right: 0.3em;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-links a:hover .nav-num {
  color: var(--neon-cyan);
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  transition: width 0.35s ease, left 0.35s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::before {
  width: 100%;
  left: 0;
}

.nav-links a.nav-resume {
  color: var(--neon-pink);
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a.nav-resume:hover {
  color: var(--neon-pink);
  background: rgba(255, 0, 255, 0.12);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
  transform: translateY(-1px);
}

.nav-links a.nav-resume::before { display: none; }

.nav-links a.nav-resume svg {
  display: block;
  transition: transform 0.3s ease;
}

.nav-links a.nav-resume:hover svg {
  transform: translateY(1px);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem 3rem 3rem;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-inner { max-width: 900px; }

.hero-greet {
  color: var(--neon-pink);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-shadow: var(--glow-pink);
  animation: fade-in 1s ease-out;
}

.hero-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 4px;
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* Glitch effect */
.glitch {
  position: relative;
  color: var(--text);
  text-shadow:
    0.05em 0 0 rgba(255, 0, 255, 0.75),
    -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
    0 0.025em 0 rgba(0, 255, 157, 0.75);
  animation: glitch 3.5s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.glitch::before {
  animation: glitch-1 2.5s infinite;
  color: var(--neon-cyan);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 2s infinite;
  color: var(--neon-pink);
  z-index: -2;
}

@keyframes glitch {
  0%, 100% {
    text-shadow:
      0.05em 0 0 rgba(255, 0, 255, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
      0 0.025em 0 rgba(0, 255, 157, 0.75);
  }
  14%, 49% {
    text-shadow:
      0.05em 0 0 rgba(255, 0, 255, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
      0 0.025em 0 rgba(0, 255, 157, 0.75);
  }
  15% {
    text-shadow:
      -0.05em -0.025em 0 rgba(255, 0, 255, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 255, 0.75),
      -0.05em -0.05em 0 rgba(0, 255, 157, 0.75);
  }
  50% {
    text-shadow:
      0.025em 0.05em 0 rgba(255, 0, 255, 0.75),
      0.05em 0 0 rgba(0, 255, 255, 0.75),
      0 -0.05em 0 rgba(0, 255, 157, 0.75);
  }
  99% {
    text-shadow:
      -0.025em 0 0 rgba(255, 0, 255, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 255, 0.75),
      -0.025em -0.05em 0 rgba(0, 255, 157, 0.75);
  }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 30% 0); transform: translate(-3px, 2px); }
  40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -1px); }
  60% { clip-path: inset(10% 0 60% 0); transform: translate(-1px, 1px); }
  80% { clip-path: inset(70% 0 5% 0); transform: translate(1px, -2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  25% { clip-path: inset(30% 0 40% 0); transform: translate(2px, -1px); }
  50% { clip-path: inset(60% 0 10% 0); transform: translate(-2px, 2px); }
  75% { clip-path: inset(15% 0 55% 0); transform: translate(1px, 1px); }
}

.hero-role {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 1.5rem;
  font-weight: 500;
  min-height: 2.5rem;
}

.prompt {
  color: var(--neon-pink);
  margin-right: 0.5rem;
}

.caret {
  display: inline-block;
  color: var(--neon-cyan);
  animation: blink 1s step-end infinite;
  font-weight: 700;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-tag {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.accent {
  color: var(--neon-cyan);
  font-weight: 500;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--neon-pink);
  text-shadow: var(--glow-pink);
}

.stat-plus {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), 0 0 60px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.btn-outline:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SECTIONS ============ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 3rem;
  position: relative;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.section-num {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-pink);
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: var(--glow-pink);
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 2px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--text);
  font-size: 1rem;
}

.terminal {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.15),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: rgba(20, 20, 32, 0.9);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.terminal-body {
  padding: 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.output { color: var(--neon-cyan); }
.output.success {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

/* ============================================
   ABOUT — Interactive blocks (pills + journey)
   ============================================ */
.about-interactive {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.2rem;
}

.about-interactive:last-child { margin-bottom: 0; }

.interactive-label {
  color: var(--neon-pink);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: var(--glow-pink);
}

/* --- Ask-me-about pills --- */
.askme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.pill:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
}

.pill.active {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  background: rgba(255, 0, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.2);
}

.askme-answer {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
  min-height: 4.5em;
  border-left: 2px solid var(--neon-cyan);
  padding-left: 1rem;
  transition: opacity 0.25s ease;
}

.askme-hint {
  color: var(--text-dim);
  font-style: italic;
}

.askme-answer.fade { opacity: 0; }

/* --- Journey timeline --- */
.journey-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1.2rem;
  padding: 0.3rem 0;
}

.journey-track::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 16px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--border) 0%,
    var(--neon-cyan) 50%,
    var(--neon-pink) 100%);
  z-index: 0;
}

.journey-dot {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.3rem 0.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  position: relative;
  z-index: 1;
  font-family: inherit;
  transition: all 0.25s ease;
  border-radius: 6px;
}

.journey-dot::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  margin-bottom: 0.45rem;
  transition: all 0.25s ease;
}

.journey-dot:hover {
  color: var(--text);
}

.journey-dot:hover::before {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.journey-dot.active {
  color: var(--neon-pink);
}

.journey-dot.active::before {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink);
  transform: scale(1.2);
}

.dot-year {
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.dot-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.journey-chapter {
  border-left: 2px solid var(--neon-pink);
  padding: 0.2rem 0 0.2rem 1rem;
  transition: opacity 0.25s ease;
  min-height: 5em;
}

.chapter-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.chapter-body {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
}

.journey-chapter.fade { opacity: 0; }

@media (max-width: 600px) {
  .dot-label { display: none; }
  .journey-dot { padding: 0.4rem 0.2rem; }
  .journey-track::before { top: 18px; }
}

/* ============ SKILLS ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  transition: left 0.6s;
}

.skill-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}

.skill-card:hover::before { left: 100%; }

.skill-cat {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-pink);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: var(--glow-pink);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--text);
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(255, 0, 255, 0.12);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 6px rgba(255, 0, 255, 0.6);
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  z-index: 2;
}

.timeline-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon-pink);
  border-radius: 4px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.timeline-content:hover {
  border-left-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateX(6px);
}

.timeline-date {
  color: var(--neon-pink);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.timeline-role {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.timeline-company {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
}

.timeline-bullets li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
}

/* ============ PROJECTS ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.8rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-cyan), transparent, var(--neon-pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 255, 0.15);
}

.project-card:hover::after { opacity: 1; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.project-id {
  color: var(--neon-pink);
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: var(--glow-pink);
}

.project-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  letter-spacing: 1px;
}

.project-status.live {
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.project-status.shipped {
  color: var(--neon-cyan);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.project-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-pink);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.project-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 0 4px currentColor);
}

.project-card:hover .project-icon {
  color: var(--neon-cyan);
  transform: scale(1.15) rotate(-6deg);
}

.project-year {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-right: auto;
  margin-left: 0.8rem;
}

.project-tagline {
  color: var(--neon-cyan);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.project-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-desc:last-of-type {
  margin-bottom: 1.2rem;
}

.inline-link {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--neon-cyan);
  transition: color 0.2s, border-color 0.2s;
}

.inline-link:hover {
  color: var(--neon-pink);
  border-bottom-color: var(--neon-pink);
  text-shadow: var(--glow-pink);
}

.project-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--neon-pink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.project-link:hover {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  transform: translateX(4px);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============ CONTACT ============ */
.contact-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
}

.contact-sub {
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
  text-align: left;
}

.contact-link:hover {
  border-color: var(--neon-pink);
  box-shadow: var(--glow-pink);
  transform: translateY(-4px);
}

.contact-icon {
  color: var(--neon-cyan);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: var(--glow-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 4px currentColor);
}

.contact-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-value {
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-all;
}

/* ============ FOOTER ============ */
.footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-signal {
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(0, 255, 157, 0.5);
}

.footer-signal a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-signal a:hover {
  opacity: 0.7;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav {
    padding: 0.8rem 1rem;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }
  .nav-brand { font-size: 1.1rem; letter-spacing: 1px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: rgba(4, 40, 63, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 2rem;
    margin: 0;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 0.6rem 1rem;
    white-space: nowrap;
  }
  .nav-links a.nav-resume { padding: 0.4rem 1.1rem; font-size: 1rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav { padding: 0.6rem 0.8rem; gap: 0.4rem; }
  .nav-brand { font-size: 1rem; }
  .hero { padding: 5rem 1.2rem 3rem; }
  .hero-tag { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-stats { gap: 1rem; margin-bottom: 2rem; }
  .stat-num { font-size: 1.75rem; }
  .stat-plus { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .btn { text-align: center; padding: 0.8rem 1.2rem; font-size: 0.9rem; }
  .section { padding: 3rem 1.2rem; }
  .section-title { font-size: 1.4rem; }

  /* Experience timeline — align vertical line to center of the 14px dot */
  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: 6px; }
  .timeline-dot { left: -1.5rem; width: 14px; height: 14px; }

  .contact-links { grid-template-columns: 1fr; }
  /* Cat stays visible on mobile — touch drags move it via bridged events. */
  #oneko { transform: scale(0.9); transform-origin: top left; }
  .theme-btn { width: 20px; height: 20px; }
  .theme-switcher { padding: 0.2rem; gap: 0.25rem; }
}

/* ============================================
   RESUME MODAL
   ============================================ */
.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.resume-modal.open {
  display: flex;
  animation: fade-in 0.25s ease-out;
}

.resume-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.resume-modal-panel {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 4rem);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(0, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  flex-shrink: 0;
}

.resume-modal-file {
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon-cyan);
  font-size: 0.9rem;
  text-shadow: var(--glow-cyan);
  letter-spacing: 1px;
}

.resume-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.resume-download-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.resume-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.resume-modal-close:hover {
  background: rgba(255, 0, 255, 0.15);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.resume-modal-body {
  padding: 2rem 2.4rem;
  overflow-y: auto;
  color: var(--text);
  line-height: 1.7;
  scroll-behavior: smooth;
}

.resume-modal-body--pdf {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.resume-pdf-frame {
  flex: 1;
  width: 100%;
  min-height: 60vh;
  border: none;
  background: #f5f5f5;
  display: block;
}

.resume-modal-body--pdf .resume-modal-footer {
  padding: 1rem 1.4rem;
  margin: 0;
  border-top: 1px solid var(--border);
  background: var(--panel);
  flex-shrink: 0;
}

.resume-modal-body::-webkit-scrollbar { width: 8px; }
.resume-modal-body::-webkit-scrollbar-track { background: transparent; }
.resume-modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.resume-head { margin-bottom: 2rem; }

.resume-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 0.3rem;
}

.resume-title {
  color: var(--neon-pink);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  text-shadow: var(--glow-pink);
}

.resume-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.resume-meta a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.resume-meta a:hover {
  color: var(--neon-cyan);
}

.resume-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.resume-section:last-of-type {
  border-bottom: none;
}

.resume-section-title {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-cyan);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.resume-skills {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.4rem 1.5rem;
  font-size: 0.9rem;
}

.resume-skills dt {
  font-weight: 700;
  color: var(--neon-pink);
}

.resume-skills dd {
  color: var(--text);
  margin: 0;
}

.resume-job {
  margin-bottom: 1.8rem;
}

.resume-job:last-child { margin-bottom: 0; }

.resume-job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.resume-job-head h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
}

.resume-job-company {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: italic;
  margin: 0;
}

.resume-job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  color: var(--neon-pink);
  font-size: 0.8rem;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.resume-job-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.4rem 0 0.6rem;
}

.resume-job ul {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
}

.resume-job ul li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.resume-job ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
}

.resume-job ul li strong {
  color: var(--neon-cyan);
  font-weight: 500;
}

.resume-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.resume-modal-footer .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
}

body.resume-open { overflow: hidden; }

@media (max-width: 700px) {
  .resume-modal { padding: 0; }
  .resume-modal-panel {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .resume-modal-body { padding: 1.4rem 1.2rem; }
  .resume-name { font-size: 1.5rem; letter-spacing: 2px; }
  .resume-skills {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .resume-skills dt { margin-top: 0.6rem; }
  .resume-job-head {
    flex-direction: column;
    gap: 0.3rem;
  }
  .resume-job-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }
  .resume-modal-actions .resume-download-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
  }
  .resume-modal-footer {
    flex-direction: column-reverse;
  }
  .resume-modal-footer .btn { width: 100%; }
}

/* ============================================
   ONEKO CAT (recolors per theme)
   ============================================ */
#oneko {
  transition: filter 0.5s ease;
  filter: sepia(1) hue-rotate(280deg) saturate(5) brightness(1.05)
          drop-shadow(0 0 4px #ff00ff)
          drop-shadow(0 0 8px rgba(255, 0, 255, 0.4));
}

[data-theme="space"] #oneko {
  filter: sepia(1) hue-rotate(230deg) saturate(4) brightness(0.9)
          drop-shadow(0 0 4px #a855f7)
          drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

[data-theme="glass"] #oneko {
  filter: sepia(0.3) hue-rotate(200deg) saturate(2) brightness(1.15)
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

[data-theme="terminal"] #oneko {
  filter: brightness(0.4) sepia(1) hue-rotate(60deg) saturate(6)
          drop-shadow(0 0 4px rgba(0, 255, 0, 0.8));
}

[data-theme="aquarium"] #oneko {
  filter: sepia(1) hue-rotate(340deg) saturate(6) brightness(1.1)
          drop-shadow(0 0 4px #ff8c00)
          drop-shadow(0 0 10px rgba(255, 140, 0, 0.5));
}

/* ============================================
   EDUCATION section
   ============================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon-pink);
  border-radius: 4px;
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.edu-card:hover {
  border-left-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}

.edu-date {
  color: var(--neon-pink);
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.edu-degree {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.edu-school {
  color: var(--neon-cyan);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.edu-loc {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ============================================
   THEME SWITCHER UI
   ============================================ */
/* Hidden by default. Themes still switchable via localStorage or JS default.
   To re-enable the UI switcher, set display: flex here. */
.theme-switcher {
  display: none;
  gap: 0.4rem;
  align-items: center;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.theme-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover { transform: scale(1.15); }
.theme-btn.active { border-color: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }

.theme-btn span {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
}

.swatch-cyber { background: linear-gradient(135deg, #00ffff, #ff00ff); }
.swatch-space { background: radial-gradient(circle at 30% 30%, #a855f7, #1e1b4b); }
.swatch-glass { background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(168,85,247,0.7)); }
.swatch-term  { background: radial-gradient(circle, #00ff00 20%, #000 70%); }
.swatch-aqua  { background: linear-gradient(180deg, #7dd3fc 0%, #06b6d4 50%, #0e7490 100%); }


/* ============================================
   THEME: SPACE / COSMIC
   ============================================ */
[data-theme="space"] {
  --bg: #050510;
  --bg-alt: #0a0a1c;
  --panel: rgba(30, 27, 75, 0.4);
  --border: rgba(168, 85, 247, 0.2);
  --border-hot: rgba(99, 102, 241, 0.4);
  --text: #e6e6ff;
  --text-dim: #9090b0;
  --neon-cyan: #818cf8;
  --neon-pink: #a855f7;
  --neon-purple: #c084fc;
  --neon-green: #22d3ee;
  --glow-cyan: 0 0 12px rgba(129, 140, 248, 0.5), 0 0 24px rgba(129, 140, 248, 0.25);
  --glow-pink: 0 0 12px rgba(168, 85, 247, 0.5), 0 0 24px rgba(168, 85, 247, 0.25);
  font-family: 'Orbitron', sans-serif;
}

[data-theme="space"] body,
[data-theme="space"] .hero-tag,
[data-theme="space"] .about-text,
[data-theme="space"] .timeline-bullets,
[data-theme="space"] .project-desc {
  font-family: 'Inter', sans-serif;
}

[data-theme="space"] body::before {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(192, 132, 252, 0.08), transparent 60%);
}

[data-theme="space"] .scanlines { display: none; }

[data-theme="space"] .nav-brand,
[data-theme="space"] .section-title,
[data-theme="space"] .hero-name,
[data-theme="space"] .timeline-role,
[data-theme="space"] .project-title,
[data-theme="space"] .skill-cat,
[data-theme="space"] .contact-heading {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
}

[data-theme="space"] .hero-name {
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text);
  text-shadow: none;
  animation: none;
}
[data-theme="space"] .hero-name::before,
[data-theme="space"] .hero-name::after { display: none; }

[data-theme="space"] .hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="space"] .btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}

[data-theme="space"] .stat-num {
  background: linear-gradient(135deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

[data-theme="space"] .terminal {
  background: rgba(15, 12, 45, 0.7);
  border-color: var(--border);
}

/* ============================================
   THEME: GLASSMORPHISM / BENTO
   ============================================ */
[data-theme="glass"] {
  --bg: #0f0824;
  --bg-alt: #1a0f3a;
  --panel: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --border-hot: rgba(255, 255, 255, 0.25);
  --text: #f5f5ff;
  --text-dim: #a8a8c8;
  --neon-cyan: #7dd3fc;
  --neon-pink: #f0abfc;
  --neon-purple: #c4b5fd;
  --neon-green: #86efac;
  --glow-cyan: 0 0 20px rgba(125, 211, 252, 0.3);
  --glow-pink: 0 0 20px rgba(240, 171, 252, 0.3);
  font-family: 'Inter', sans-serif;
}

[data-theme="glass"] body,
[data-theme="glass"] .hero-tag,
[data-theme="glass"] .about-text p,
[data-theme="glass"] .timeline-bullets,
[data-theme="glass"] .project-desc,
[data-theme="glass"] .contact-sub {
  font-family: 'Inter', sans-serif;
}

[data-theme="glass"] body::before {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(240, 171, 252, 0.25), transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(125, 211, 252, 0.2), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 181, 253, 0.15), transparent 50%);
}

[data-theme="glass"] .scanlines { display: none; }

[data-theme="glass"] .nav {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="glass"] .nav-brand,
[data-theme="glass"] .section-title,
[data-theme="glass"] .hero-name,
[data-theme="glass"] .timeline-role,
[data-theme="glass"] .project-title,
[data-theme="glass"] .skill-cat,
[data-theme="glass"] .contact-heading {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
  font-weight: 700;
}

[data-theme="glass"] .hero-name {
  color: var(--text);
  text-shadow: none;
  font-weight: 800;
  letter-spacing: -3px;
  animation: none;
}
[data-theme="glass"] .hero-name::before,
[data-theme="glass"] .hero-name::after { display: none; }

[data-theme="glass"] .hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #f0abfc 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="glass"] .skill-card,
[data-theme="glass"] .project-card,
[data-theme="glass"] .timeline-content,
[data-theme="glass"] .contact-link,
[data-theme="glass"] .terminal {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

[data-theme="glass"] .skill-card:hover,
[data-theme="glass"] .project-card:hover,
[data-theme="glass"] .contact-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="glass"] .btn-primary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

[data-theme="glass"] .btn-outline {
  border-radius: 50px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="glass"] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="glass"] .tag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
}

[data-theme="glass"] .projects-grid {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
}

[data-theme="glass"] .project-card:nth-child(1),
[data-theme="glass"] .project-card:nth-child(4) {
  grid-column: span 4;
}

[data-theme="glass"] .project-card:nth-child(2),
[data-theme="glass"] .project-card:nth-child(3),
[data-theme="glass"] .project-card:nth-child(5),
[data-theme="glass"] .project-card:nth-child(6) {
  grid-column: span 2;
}

@media (max-width: 900px) {
  [data-theme="glass"] .projects-grid { grid-template-columns: 1fr; }
  [data-theme="glass"] .project-card:nth-child(n) { grid-column: span 1; }
}

[data-theme="glass"] .stat-num {
  background: linear-gradient(135deg, #f0abfc, #7dd3fc);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* ============================================
   THEME: TERMINAL / DEV
   ============================================ */
[data-theme="terminal"] {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --panel: rgba(0, 20, 0, 0.4);
  --border: rgba(0, 255, 0, 0.25);
  --border-hot: rgba(0, 255, 0, 0.6);
  --text: #00ff00;
  --text-dim: #00aa00;
  --neon-cyan: #00ff00;
  --neon-pink: #00ff00;
  --neon-purple: #00cc00;
  --neon-green: #00ff00;
  --glow-cyan: 0 0 8px rgba(0, 255, 0, 0.6), 0 0 16px rgba(0, 255, 0, 0.3);
  --glow-pink: 0 0 8px rgba(0, 255, 0, 0.6);
}

[data-theme="terminal"] * {
  font-family: 'VT323', 'JetBrains Mono', monospace !important;
}

[data-theme="terminal"] body {
  color: var(--text);
  font-size: 1.15rem;
}

[data-theme="terminal"] body::before {
  background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.08), transparent 70%);
}

[data-theme="terminal"] .scanlines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 255, 0, 0.06) 3px,
    transparent 3px
  );
  opacity: 0.8;
}

[data-theme="terminal"] .nav {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--border);
}

[data-theme="terminal"] .nav-brand,
[data-theme="terminal"] .hero-name,
[data-theme="terminal"] .section-title {
  color: var(--text);
  text-shadow: var(--glow-cyan);
  animation: none;
}
[data-theme="terminal"] .hero-name::before,
[data-theme="terminal"] .hero-name::after { display: none; }

[data-theme="terminal"] .hero-name {
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: 4px;
  -webkit-text-fill-color: initial;
}

[data-theme="terminal"] .hero-name::after {
  content: '_';
  display: inline;
  animation: blink 1s step-end infinite;
}

[data-theme="terminal"] .hero-greet,
[data-theme="terminal"] .accent,
[data-theme="terminal"] .section-num,
[data-theme="terminal"] .timeline-date,
[data-theme="terminal"] .project-id,
[data-theme="terminal"] .prompt {
  color: var(--text);
  text-shadow: var(--glow-cyan);
}

[data-theme="terminal"] .hero-role {
  color: var(--text);
}

[data-theme="terminal"] .stat-num {
  color: var(--text);
  text-shadow: var(--glow-cyan);
  -webkit-text-fill-color: initial;
  background: none;
}

[data-theme="terminal"] .stat-plus {
  color: var(--text);
  text-shadow: var(--glow-cyan);
}

[data-theme="terminal"] .btn-primary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  text-shadow: var(--glow-cyan);
  box-shadow: none;
}

[data-theme="terminal"] .btn-primary:hover {
  background: var(--text);
  color: #000;
  text-shadow: none;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

[data-theme="terminal"] .btn-outline {
  color: var(--text);
  border-color: var(--text);
}

[data-theme="terminal"] .skill-card,
[data-theme="terminal"] .project-card,
[data-theme="terminal"] .timeline-content,
[data-theme="terminal"] .contact-link,
[data-theme="terminal"] .terminal {
  background: rgba(0, 20, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 0;
}

[data-theme="terminal"] .project-card::before,
[data-theme="terminal"] .skill-card::before {
  content: '> ';
  position: static;
  color: var(--text);
  background: none;
  width: auto;
  height: auto;
  animation: none;
}

[data-theme="terminal"] .tag {
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  color: var(--text);
}

[data-theme="terminal"] .tag::before {
  content: '[';
}
[data-theme="terminal"] .tag::after {
  content: ']';
}

[data-theme="terminal"] .contact-heading {
  color: var(--text);
  text-shadow: var(--glow-cyan);
  -webkit-text-fill-color: initial;
  background: none;
}

[data-theme="terminal"] .project-status.live,
[data-theme="terminal"] .project-status.shipped,
[data-theme="terminal"] .output.success {
  color: var(--text);
  background: transparent;
  border-color: var(--text);
}

[data-theme="terminal"] .timeline::before {
  background: var(--text);
}

[data-theme="terminal"] .timeline-dot {
  background: var(--bg);
  border-color: var(--text);
  box-shadow: 0 0 8px var(--text);
}

[data-theme="terminal"] .footer-signal {
  color: var(--text);
}

[data-theme="terminal"] .glitch { animation: none; text-shadow: var(--glow-cyan); }

/* ============================================
   THEME: AQUARIUM / OCEAN
   ============================================ */
[data-theme="aquarium"] {
  --bg: #04283f;
  --bg-alt: #063a5c;
  --panel: rgba(255, 255, 255, 0.08);
  --border: rgba(125, 211, 252, 0.25);
  --border-hot: rgba(253, 186, 116, 0.5);
  --text: #f0f9ff;
  --text-dim: #b8d8ea;
  --neon-cyan: #7dd3fc;
  --neon-pink: #fdba74;   /* coral / goldfish */
  --neon-purple: #a5f3fc;
  --neon-green: #34d399;
  --glow-cyan: 0 0 12px rgba(125, 211, 252, 0.5);
  --glow-pink: 0 0 12px rgba(253, 186, 116, 0.5);
  font-family: 'Inter', sans-serif;
}

[data-theme="aquarium"] body,
[data-theme="aquarium"] .hero-tag,
[data-theme="aquarium"] .about-text p,
[data-theme="aquarium"] .timeline-bullets,
[data-theme="aquarium"] .project-desc,
[data-theme="aquarium"] .contact-sub {
  font-family: 'Inter', sans-serif;
}

[data-theme="aquarium"] body {
  background:
    linear-gradient(180deg,
      #7dd3fc 0%,           /* sky blue */
      #38bdf8 12%,          /* surface */
      #0ea5e9 30%,          /* shallow */
      #0369a1 60%,          /* deep */
      #082f49 100%);        /* dark bottom */
  background-attachment: fixed;
}

[data-theme="aquarium"] body::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(253, 186, 116, 0.08), transparent 50%);
}

[data-theme="aquarium"] .scanlines { display: none; }

[data-theme="aquarium"] .nav {
  background: rgba(4, 40, 63, 0.6);
  border-bottom: 1px solid var(--border);
}

[data-theme="aquarium"] .nav-brand,
[data-theme="aquarium"] .section-title,
[data-theme="aquarium"] .hero-name,
[data-theme="aquarium"] .timeline-role,
[data-theme="aquarium"] .project-title,
[data-theme="aquarium"] .skill-cat,
[data-theme="aquarium"] .contact-heading {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0;
  font-weight: 700;
}

[data-theme="aquarium"] .hero-name {
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(4, 40, 63, 0.6);
  animation: none;
}
[data-theme="aquarium"] .hero-name::before,
[data-theme="aquarium"] .hero-name::after { display: none; }

[data-theme="aquarium"] .hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #fdba74 60%, #f97316 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="aquarium"] .skill-card,
[data-theme="aquarium"] .project-card,
[data-theme="aquarium"] .timeline-content,
[data-theme="aquarium"] .contact-link,
[data-theme="aquarium"] .terminal {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

[data-theme="aquarium"] .skill-card:hover,
[data-theme="aquarium"] .project-card:hover,
[data-theme="aquarium"] .contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(253, 186, 116, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(4, 40, 63, 0.5);
}

[data-theme="aquarium"] .btn-primary {
  background: linear-gradient(135deg, #fdba74, #f97316);
  background-color: #f97316;
  color: #082f49;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(253, 186, 116, 0.4);
  overflow: visible;
  letter-spacing: 0.5px;
}

[data-theme="aquarium"] .btn-outline {
  border-radius: 50px;
  color: #f0f9ff;
  border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="aquarium"] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.3);
}

[data-theme="aquarium"] .tag {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  border-color: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.9rem;
}

[data-theme="aquarium"] .tag:hover {
  background: rgba(253, 186, 116, 0.2);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: none;
}

[data-theme="aquarium"] .stat-num {
  background: linear-gradient(135deg, #fdba74, #7dd3fc);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

[data-theme="aquarium"] .terminal-body {
  color: var(--text);
}
[data-theme="aquarium"] .output {
  color: var(--neon-pink);
}
