/* ======================================
   RETRO PORTFOLIO — Playful CRT Aesthetic
   Narrow layout (~480px) like pomofocus.io
   ====================================== */

:root {
  --bg-deep: #0f1318;
  --bg-main: #151b22;
  --bg-card: #1a2230;
  --bg-card-hover: #1f2938;
  --bg-elevated: #253040;

  --text-primary: #c8d6e5;
  --text-secondary: #8a9bb5;
  --text-muted: #556680;

  --accent: #5b9cf5;
  --accent-dim: #3d7ad4;
  --accent-glow: #7bb4ff;
  --accent-subtle: rgba(91, 156, 245, 0.1);

  --orange: #e09850;
  --green: #6bcf8e;
  --green-dim: rgba(107, 207, 142, 0.12);
  --blue: #5b9cf5;
  --blue-dim: rgba(91, 156, 245, 0.12);
  --pink: #d476a0;
  --pink-dim: rgba(212, 118, 160, 0.1);
  --gold: #d4b85c;
  --gold-dim: rgba(212, 184, 92, 0.12);

  --border: #243040;
  --border-light: #2e3e52;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'DM Mono', 'IBM Plex Mono', 'Courier New', monospace;
  --font-body: 'IBM Plex Mono', 'DM Mono', monospace;

  --container-width: 480px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Overlays ---- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.35) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: rgba(15, 19, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.blink { animation: blink 1.2s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav-links { display: flex; gap: 14px; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s, transform 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

/* ---- Hero ---- */
.hero {
  padding: 50px 0 30px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-dim);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-title { margin-bottom: 14px; }

.hero-line {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 4px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  text-shadow: 0 0 40px rgba(91, 156, 245, 0.15);
}

/* Role tags */
.hero-roles {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.role-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-tag:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.role-1 {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.role-2 {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(91, 156, 245, 0.25);
}

.role-3 {
  background: var(--pink-dim);
  color: var(--pink);
  border: 1px solid rgba(212, 118, 160, 0.25);
}

.hero-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 24px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.highlight {
  color: var(--blue);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(107, 207, 142, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(107, 207, 142, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 4px rgba(107, 207, 142, 0.3); }
}

/* Floating achievement badges */
.hero-floaters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.floater {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: default;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.2s;
}

.floater:hover {
  transform: scale(1.1) rotate(-2deg) !important;
}

.floater-1 {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(212, 184, 92, 0.2);
  animation-delay: 0s;
}

.floater-2 {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(107, 207, 142, 0.2);
  animation-delay: 1s;
}

.floater-3 {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(91, 156, 245, 0.2);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 4px 20px rgba(91, 156, 245, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 13px;
}

/* ---- Dividers ---- */
.divider {
  text-align: center;
  padding: 28px 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  opacity: 0.35;
}

.divider-art {
  transition: opacity 0.3s, letter-spacing 0.4s;
}

.divider:hover .divider-art {
  opacity: 1;
  letter-spacing: 8px;
}

/* ---- Section common ---- */
.section { padding: 16px 0 36px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

/* ---- About ---- */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s;
}

.about-card:hover { border-color: var(--accent-dim); }

.about-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.avatar-placeholder {
  width: 72px; height: 72px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.3s ease, border-color 0.3s;
}

.avatar-placeholder:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent);
}

.avatar-face {
  transition: transform 0.3s;
}

.avatar-placeholder:hover .avatar-face {
  display: inline-block;
  animation: wiggle 0.4s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.about-text p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Fun facts row */
.about-fun-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.fun-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: default;
  transition: transform 0.2s, color 0.2s;
}

.fun-fact:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.fun-fact-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-value {
  font-size: 13px;
  color: var(--text-primary);
}

/* ---- Skills ---- */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: border-color 0.3s, transform 0.2s;
}

.skill-group:hover {
  border-color: var(--accent-dim);
  transform: translateX(3px);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-icon {
  font-size: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: default;
  transition: all 0.2s ease;
}

.skill-chip:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ---- Projects ---- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.project-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--bg-elevated);
  position: absolute;
  top: 8px;
  right: 16px;
  line-height: 1;
  user-select: none;
  transition: color 0.3s;
}

.project-card:hover .project-number { color: rgba(91, 156, 245, 0.06); }

.project-emoji {
  font-size: 24px;
  margin-bottom: 8px;
  display: inline-block;
  transition: transform 0.3s;
}

.project-card:hover .project-emoji {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.project-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* Project stat bar */
.project-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.stat-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-deep);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-fill {
  height: 100%;
  width: var(--fill);
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 3px;
  animation: fillBar 1.2s ease-out both;
  animation-play-state: paused;
}

.project-card.reveal.visible .stat-fill {
  animation-play-state: running;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--fill); }
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

/* Agent pipeline viz */
.project-agents {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.agent-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  background: var(--pink-dim);
  color: var(--pink);
  border: 1px solid rgba(212, 118, 160, 0.2);
  padding: 2px 8px;
  border-radius: 3px;
  transition: transform 0.2s, background 0.2s;
}

.agent-chip:hover {
  transform: scale(1.08);
  background: rgba(212, 118, 160, 0.2);
}

.agent-arrow {
  color: var(--text-muted);
  font-size: 10px;
  opacity: 0.5;
}

/* Winner card */
.project-card-winner {
  border-color: rgba(212, 184, 92, 0.2);
  background: linear-gradient(135deg, var(--bg-card), rgba(212, 184, 92, 0.03));
}

.project-card-winner:hover {
  border-color: rgba(212, 184, 92, 0.4);
}

.winner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(212, 184, 92, 0.25);
  padding: 3px 10px;
  border-radius: 4px;
  animation: shimmer 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---- Timeline / Experience ---- */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--border-light), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 9px; height: 9px;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--accent-dim);
}

.timeline-dot-active {
  background: var(--accent) !important;
  box-shadow: 0 0 12px rgba(91, 156, 245, 0.4);
}

.timeline-now {
  position: absolute;
  left: -56px;
  top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.timeline-highlights li {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.timeline-highlights li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.timeline-highlights strong {
  color: var(--accent);
  font-weight: 500;
}

.timeline-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: default;
  transition: transform 0.2s;
}

.badge:hover { transform: scale(1.06); }

.badge-gold {
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(212, 184, 92, 0.2);
}

.badge-blue {
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(91, 156, 245, 0.2);
}

/* ---- Certifications ticker ---- */
.section-certs { padding-bottom: 20px; }

.cert-ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.cert-ticker {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.cert-ticker:hover { animation-play-state: paused; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cert-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: default;
  transition: color 0.2s;
}

.cert-item:hover { color: var(--text-primary); }

.cert-icon {
  color: var(--accent-dim);
  font-size: 8px;
}

/* ---- Contact ---- */
.section-contact {
  text-align: center;
  padding-bottom: 16px;
}

.contact-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-btn-icon {
  font-size: 16px;
  transition: transform 0.3s;
}

.contact-btn:hover .contact-btn-icon {
  animation: wiggle 0.4s ease;
}

.social-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.social-sep {
  color: var(--border-light);
  font-size: 12px;
}

/* ---- Footer ---- */
.footer {
  padding: 36px 0 50px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.footer-art pre {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.25;
  margin-bottom: 14px;
  display: inline-block;
  text-align: left;
}

.footer-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-copy {
  font-size: 10px;
  color: var(--border-light);
}

.footer-easter-egg {
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.5s;
}

.footer:hover .footer-easter-egg { opacity: 1; }

.easter-egg-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.5;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Staggered children reveal */
.reveal.visible .skill-group,
.reveal.visible .project-card,
.reveal.visible .timeline-item {
  animation: fadeInUp 0.4s ease-out both;
}

.reveal.visible .skill-group:nth-child(1),
.reveal.visible .project-card:nth-child(1),
.reveal.visible .timeline-item:nth-child(1) { animation-delay: 0s; }

.reveal.visible .skill-group:nth-child(2),
.reveal.visible .project-card:nth-child(2),
.reveal.visible .timeline-item:nth-child(2) { animation-delay: 0.08s; }

.reveal.visible .skill-group:nth-child(3),
.reveal.visible .project-card:nth-child(3),
.reveal.visible .timeline-item:nth-child(3) { animation-delay: 0.16s; }

.reveal.visible .skill-group:nth-child(4),
.reveal.visible .project-card:nth-child(4),
.reveal.visible .timeline-item:nth-child(4) { animation-delay: 0.24s; }

.reveal.visible .skill-group:nth-child(5) { animation-delay: 0.32s; }

/* ---- Responsive ---- */
@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 10px; }
  .hero-name { font-size: 36px; }
  .section-title { font-size: 24px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-floaters { flex-wrap: wrap; }
  .timeline-now { display: none; }
  .project-agents { gap: 3px; }
  .agent-chip { font-size: 8px; padding: 2px 6px; }
}

/* ---- Selection & scrollbar ---- */
::selection { background: var(--accent); color: var(--bg-deep); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
