/* ============================================================
   CUSTOM PROPERTIES — DARK MODE (default)
   ============================================================ */
:root {
  --bg:             #04090f;
  --bg-card:        rgba(4, 18, 42, 0.55);
  --bg-card-hover:  rgba(4, 18, 42, 0.75);
  --border:         rgba(0, 217, 188, 0.14);
  --border-hover:   rgba(0, 217, 188, 0.32);

  --text-primary:   #e0f0ff;
  --text-secondary: #7ba8c4;
  --text-muted:     #3a5870;

  /* turquoise = primary accent */
  --accent-magenta:     #00d9bc;
  --accent-magenta-dim: rgba(0, 217, 188, 0.12);

  /* neon green = secondary accent */
  --accent-cyan:        #39ff14;
  --accent-cyan-dim:    rgba(57, 255, 20, 0.1);

  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:      12px;
  --radius-sm:   6px;
  --radius-pill: 100px;
  --nav-h:       60px;
  --blur:        14px;
  --max-w:       1100px;

  --ease:      0.2s ease;
  --ease-slow: 0.55s ease;
}

/* ============================================================
   CUSTOM PROPERTIES — LIGHT MODE
   ============================================================ */
[data-theme="light"] {
  --bg:             #f0fffe;
  --bg-card:        rgba(255, 255, 255, 0.75);
  --bg-card-hover:  rgba(255, 255, 255, 0.95);
  --border:         rgba(0, 110, 95, 0.15);
  --border-hover:   rgba(0, 110, 95, 0.3);

  --text-primary:   #031a14;
  --text-secondary: #1e5045;
  --text-muted:     #4a7a6e;

  --accent-magenta:     #007a6a;
  --accent-magenta-dim: rgba(0, 122, 106, 0.1);

  --accent-cyan:        #267300;
  --accent-cyan-dim:    rgba(38, 115, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img  { max-width: 100%; display: block; }
kbd  {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ============================================================
   ANIMATED BACKGROUND MESH
   ============================================================ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.11; }

.blob-1 { width: 640px; height: 640px; background: #002d5a; top: -220px; left: -160px; animation: blob1 20s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; background: #00d9bc; bottom: -200px; right: -120px; animation: blob2 24s ease-in-out infinite; }
.blob-3 { width: 380px; height: 380px; background: #39ff14; top: 45%; right: 25%; animation: blob3 16s ease-in-out infinite; opacity: 0.07; }
.blob-4 { width: 320px; height: 320px; background: #003d70; bottom: 25%; left: 15%; animation: blob4 22s ease-in-out infinite; }

@keyframes blob1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(55px,75px) scale(1.08); } 66% { transform: translate(-35px,35px) scale(0.94); } }
@keyframes blob2 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-70px,-55px) scale(1.06); } 66% { transform: translate(45px,-25px) scale(1.12); } }
@keyframes blob3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px,-70px) scale(1.14); } }
@keyframes blob4 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,55px) scale(0.88); } }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--ease), box-shadow var(--ease);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); transition: color var(--ease); }
.nav-links a:hover { color: var(--accent-magenta); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-magenta); border-color: var(--accent-magenta); }
/* icon visibility — dark mode shows moon, light mode shows sun */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   LAYOUT
   ============================================================ */
main { position: relative; z-index: 1; }
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   GLASSMORPHISM CARD
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.glass-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  position: relative;
}

.hero-content {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-identity { text-align: center; }

.hero-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent-magenta);
  margin-top: 0.4rem;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  color: var(--text-muted);
  margin-top: 0.6rem;
  letter-spacing: 0.01em;
}

/* ── Terminal ── */
.terminal {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.7), 0 0 0 1px var(--border), 0 0 60px rgba(0,217,188,0.08);
  background: #0c0c14;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.terminal-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin-left: 0.5rem; }

.terminal-body {
  padding: 1.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  line-height: 1.8;
  min-height: 230px;
}

.t-line   { display: block; white-space: pre-wrap; word-break: break-word; }
.t-user   { color: var(--accent-cyan); }
.t-host   { color: var(--text-muted); }
.t-cmd    { color: var(--text-primary); }
.t-out    { color: var(--accent-cyan); opacity: 0.85; }
.t-spacer { display: block; height: 0.35em; }

.cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--accent-magenta);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2.2s ease-in-out infinite;
  transition: color var(--ease);
}
.scroll-hint:hover { color: var(--accent-magenta); }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   IMPACT
   ============================================================ */
.section-impact { padding-top: 3rem; padding-bottom: 3rem; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.impact-card { text-align: center; }

.impact-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.impact-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}

.impact-arrow {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-muted);
}

.impact-label {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.impact-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-card { max-width: 760px; }
.about-card p { color: var(--text-secondary); margin-bottom: 1rem; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--text-primary); }

.about-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  float: right;
  margin: 0 0 1.25rem 1.5rem;
  border: 2px solid var(--border);
}

/* ============================================================
   FEATURED ANALYTICS PRODUCTS
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* data-project attribute marks cards that will become click-to-modal — cursor ready */
.featured-card { display: flex; flex-direction: column; gap: 0.9rem; }
[data-project] { cursor: default; }
[data-project]:hover { border-color: var(--accent-magenta); }

.featured-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.featured-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

/* Badges */
.badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid;
}

.badge-internal {
  color: var(--text-muted);
  border-color: var(--text-muted);
  background: rgba(71, 85, 105, 0.12);
}

.badge-public {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan-dim);
  background: var(--accent-cyan-dim);
}

/* Stack pills */
.stack-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.stack-pill {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-magenta-dim);
  color: var(--accent-magenta);
  border: 1px solid rgba(224, 64, 251, 0.2);
}

.featured-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.sample-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: -0.25rem;
}

.featured-links { display: flex; gap: 0.75rem; margin-top: auto; }

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--ease), border-color var(--ease);
}
.featured-link:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

/* ============================================================
   ALL REPOS
   ============================================================ */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.repo-card { display: flex; flex-direction: column; gap: 0.6rem; }

.repo-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.repo-link-icon { color: var(--text-muted); transition: color var(--ease); flex-shrink: 0; }
.repo-link-icon:hover { color: var(--accent-magenta); }
.repo-link-icon svg { width: 15px; height: 15px; display: block; }

.repo-desc { font-size: 0.84rem; color: var(--text-secondary); flex: 1; }
.repo-desc.empty { color: var(--text-muted); font-style: italic; }

.repo-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: auto;
}

.meta-item { display: flex; align-items: center; gap: 3px; }
.meta-item svg { width: 12px; height: 12px; }

.lang-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Loading */
.loading-state { grid-column: 1/-1; display: flex; justify-content: center; padding: 3.5rem; }
.spinner { display: inline-block; width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--accent-magenta); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-list li {
  font-size: 0.855rem;
  color: var(--text-secondary);
  padding: 0.36rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before { content: '›'; color: var(--accent-magenta); font-family: var(--font-mono); font-size: 1rem; flex-shrink: 0; line-height: 1; }

.exposure-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(71, 85, 105, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(71, 85, 105, 0.3);
  margin-left: auto;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-magenta), var(--accent-cyan), transparent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -1.75rem;
  top: 1.6rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent-magenta);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(0, 217, 188, 0.55);
  z-index: 1;
}

.timeline-marker-dim { background: var(--text-muted); box-shadow: none; }
.timeline-item-dim .timeline-card { opacity: 0.65; }

.timeline-card { display: flex; flex-direction: column; gap: 0.75rem; }

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-role { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.timeline-company { font-size: 0.82rem; color: var(--accent-cyan); font-family: var(--font-mono); display: block; margin-top: 2px; }
.timeline-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

.timeline-bullets { padding-left: 0; }
.timeline-bullets li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}
.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-magenta);
  font-family: var(--font-mono);
}

.timeline-brief { font-size: 0.855rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; }

.timeline-inline-link { color: var(--accent-cyan); text-decoration: none; }
.timeline-inline-link:hover { text-decoration: underline; }

/* ============================================================
   EDUCATION
   ============================================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.education-card { display: flex; flex-direction: column; gap: 0.4rem; }

.edu-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.edu-degree { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.edu-school { font-size: 0.855rem; color: var(--text-secondary); }
.edu-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

.edu-meta.in-progress {
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-meta.in-progress::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.education-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  opacity: 0.45;
}

.todo-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner { text-align: center; max-width: 560px; }
.contact-tagline { font-size: 1.05rem; color: var(--text-secondary); margin: 0.5rem 0 1rem; }

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.7rem 1.4rem;
}
.contact-btn:hover { color: var(--accent-magenta); border-color: var(--accent-magenta); }
.contact-icon { width: 18px; height: 18px; flex-shrink: 0; }

.easter-egg-hint {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent-cyan); }
footer a:hover { text-decoration: underline; }

/* ============================================================
   TOAST (i18n easter egg)
   ============================================================ */
#toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  backdrop-filter: blur(var(--blur));
  z-index: 200;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  white-space: nowrap;
}

#toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.accent-magenta { color: var(--accent-magenta); }
.accent-cyan    { color: var(--accent-cyan); }

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */
[data-theme="light"] #navbar.scrolled {
  background: rgba(240, 255, 254, 0.92);
}

/* Terminal stays dark — terminals are always dark */
[data-theme="light"] .terminal {
  background: #04090f;
  box-shadow: 0 25px 70px rgba(0,80,70,0.2), 0 0 0 1px rgba(0,110,95,0.2);
}
[data-theme="light"] .terminal-titlebar {
  background: rgba(0, 217, 188, 0.05);
  border-bottom-color: rgba(0, 217, 188, 0.12);
}

[data-theme="light"] .blob { opacity: 0.08; }
[data-theme="light"] .blob-1 { background: #005a50; }
[data-theme="light"] .blob-2 { background: #00d9bc; }
[data-theme="light"] .blob-3 { background: #39ff14; }
[data-theme="light"] .blob-4 { background: #006b5e; }

[data-theme="light"] .nav-links {
  background: rgba(240, 255, 254, 0.97);
}

[data-theme="light"] .education-placeholder {
  border-color: rgba(0, 110, 95, 0.25);
}

[data-theme="light"] footer {
  background: rgba(200, 245, 240, 0.5);
}

[data-theme="light"] .timeline-marker {
  box-shadow: 0 0 8px rgba(0, 122, 106, 0.5);
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
  .repos-grid    { grid-template-columns: 1fr; }
  .impact-grid   { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 600px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    background: rgba(4, 9, 15, 0.97);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a    { font-size: 0.95rem; }

  .section        { padding: 3.5rem 1.1rem; }
  .section-impact { padding: 2rem 1.1rem; }

  .terminal-body  { padding: 1.1rem 1.25rem; }
  .timeline       { padding-left: 1.4rem; }

  .contact-links  { flex-direction: column; align-items: stretch; }
  .contact-btn    { justify-content: center; }

  .timeline-header { flex-direction: column; gap: 0.25rem; }
  .timeline-date   { font-size: 0.72rem; }

  .blob { opacity: 0.065; }

  /* Collapse terminal typewriter to static on very small screens */
  .terminal-body { min-height: 180px; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .blob, .scroll-hint, .spinner, .cursor { animation: none !important; }
  .cursor { opacity: 1; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
