@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=JetBrains+Mono:wght@300;400;500&display=swap&font-display=swap');

/* ── Variables ── */
:root {
  --bg-primary: #0e0c09;
  --bg-secondary: #13110d;
  --bg-card: #111009;
  --gold: #c9a84c;
  --gold-dim: #8a6e2f;
  --gold-faint: #2a2010;
  --text-primary: #f2e6ce;
  --text-secondary: #dccaaa;
  --text-muted: #a09070;
  --text-faint: #3a3020;
  --border: #1e1a12;
  --border-mid: #2a2318;
}

/* ══════════════════════════════════
   LIGHT MODE — full override
══════════════════════════════════ */
body.light {
  --bg-primary:    #faf7f1;
  --bg-secondary:  #f1ebe0;
  --bg-card:       #e9e2d4;
  --gold:          #8c6020;
  --gold-dim:      #b07828;
  --gold-faint:    #f0e4c4;
  --text-primary:  #16120a;
  --text-secondary:#2c2212;
  --text-muted:    #5e4c2e;
  --text-faint:    #a8966e;
  --border:        #d8ccb0;
  --border-mid:    #c4b48e;
}

/* ── Force solid opaque backgrounds — canvas must not bleed through ── */
body.light { background: #faf7f1; }

body.light #hero {
  background: linear-gradient(135deg, #faf7f1 0%, #f1ebe0 60%, #e9e2d4 100%);
}
body.light #hero::after {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(140,96,32,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(140,96,32,0.04) 0%, transparent 50%);
}
body.light #about,
body.light #skills,
body.light #contact  { background: #f1ebe0; }
body.light #projects { background: #faf7f1; }
body.light footer    { background: #e9e2d4; border-top-color: var(--border-mid); }
body.light .github-strip {
  background: #e9e2d4;
  border-color: var(--border);
}
body.light section, body.light nav, body.light footer { isolation: isolate; }

/* Navbar */
body.light #navbar.scrolled {
  background: rgba(250,247,241,0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-mid);
}

/* Cards */
body.light .project-card {
  background: linear-gradient(160deg, #ede5d2 0%, #f5f0e6 100%);
  border-color: var(--border-mid);
}
body.light .project-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 0 0 1px var(--border-mid);
}
body.light .contact-card {
  background: linear-gradient(135deg, #ede5d2 0%, #f5f0e6 100%);
  border-color: var(--border-mid);
}

/* Stats */
body.light .stat-item { background: #faf7f1; }
body.light .stat-item:hover { background: rgba(140,96,32,0.04); }
body.light .stat-item:hover .stat-number { text-shadow: 0 0 20px rgba(140,96,32,0.25); }

/* Shimmer headings */
body.light .section-title,
body.light .projects-title,
body.light .contact-heading {
  background: linear-gradient(135deg, #16120a 0%, #8c6020 50%, #16120a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
body.light .contact-heading em { -webkit-text-fill-color: var(--gold); }

/* Skills pips */
body.light .pip { background: var(--border-mid); }
body.light .pip.filled { background: var(--gold); box-shadow: 0 0 6px rgba(140,96,32,0.35); }

/* Tags */
body.light .tag { border-color: var(--border-mid); color: var(--text-muted); background: transparent; }
body.light .tag:hover { background: var(--gold-faint); border-color: var(--gold-dim); color: var(--gold); }

/* Nav links */
body.light .nav-links a { color: var(--text-muted); }
body.light .nav-links a:hover,
body.light .nav-links a.active { color: var(--gold); }
body.light .nav-badge { color: var(--gold); border-color: var(--border-mid); background: var(--gold-faint); }
body.light .logo-dot { box-shadow: 0 0 6px var(--gold-dim), 0 0 12px rgba(140,96,32,0.3); }

/* Mobile nav */
body.light .mobile-nav { background: #f1ebe0; border-color: var(--border); }
body.light .mobile-nav a { color: var(--text-secondary); border-color: var(--border); }
body.light .mobile-overlay { background: rgba(0,0,0,0.15); }

/* Back to top */
body.light #back-to-top { background: #f1ebe0; border-color: var(--border-mid); }

/* Scrollbar */
body.light ::-webkit-scrollbar-track { background: #faf7f1; }
body.light ::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* Section break */
body.light .section-break-line { background: linear-gradient(to right, transparent, var(--border-mid)); }
body.light .section-break-line:last-child { background: linear-gradient(to left, transparent, var(--border-mid)); }

/* Ornament */
body.light .ornament::before { background: linear-gradient(to right, transparent, var(--border-mid)); }
body.light .ornament::after  { background: linear-gradient(to left, transparent, var(--border-mid)); }

/* About photo */
body.light .about-photo { filter: grayscale(5%) sepia(10%) contrast(1.04) brightness(0.97); }
body.light .about-photo-wrap::before { border-color: var(--border-mid); }
body.light .about-photo-wrap::after  { border-color: var(--border); }

/* Pull quote */
body.light .about-pull-quote { color: var(--text-secondary); }

/* Footer */
body.light .footer-copy { color: var(--text-muted); }
body.light .footer-sub  { color: var(--text-faint); }
body.light .footer-credit { color: var(--text-muted); }
body.light .footer-links a { color: var(--text-muted); }

/* GitHub graph cells */
body.light .github-cell       { background: var(--border); }
body.light .github-cell.l1    { background: rgba(140,96,32,0.18); }
body.light .github-cell.l2    { background: rgba(140,96,32,0.38); }
body.light .github-cell.l3    { background: rgba(140,96,32,0.62); }
body.light .github-cell.l4    { background: rgba(140,96,32,0.88); }
body.light .github-strip-label,
body.light .github-strip-left { color: var(--text-muted); }

/* Social links */
body.light .social-link { border-color: var(--border); color: var(--text-muted); }
body.light .social-link:hover { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-faint); }

/* Contact email */
body.light .contact-email { color: var(--gold); border-color: var(--gold-dim); }
body.light .copy-btn { border-color: var(--border-mid); color: var(--text-muted); }
body.light .copy-btn:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-faint); }
body.light .copy-toast { background: #f1ebe0; border-color: var(--border-mid); color: var(--gold); }

/* Project category badges — slightly more muted in light */
body.light .project-cat--backend   { background: rgba(80,140,175,0.1);  border-color: rgba(80,140,175,0.25);  color: #3a7a9c; }
body.light .project-cat--fullstack { background: rgba(110,80,175,0.1);  border-color: rgba(110,80,175,0.25);  color: #6040a8; }
body.light .project-cat--ai        { background: rgba(40,140,90,0.1);   border-color: rgba(40,140,90,0.25);   color: #227848; }
body.light .project-cat--frontend  { background: rgba(175,120,40,0.1);  border-color: rgba(175,120,40,0.25);  color: #8c6020; }
body.light .project-cat--opensource{ background: rgba(175,60,60,0.1);   border-color: rgba(175,60,60,0.25);   color: #9c3030; }
body.light .project-cat--infra     { background: rgba(40,140,130,0.1);  border-color: rgba(40,140,130,0.25);  color: #1e7a70; }

/* Hamburger */
body.light .hamburger span { background: var(--gold-dim); }

/* Scanlines — remove in light */
body.light #hero::before { opacity: 0; }

/* Hero text contrast boost */
body.light .hero-eyebrow { color: var(--gold-dim); }
body.light .hero-subtitle { color: var(--text-secondary); }
body.light .hero-desc { color: var(--text-muted); }
body.light .hero-headline { color: var(--text-primary); }
body.light .italic-gold { color: var(--gold); }

/* Buttons in light */
body.light .btn-primary { background: var(--gold); color: #faf7f1; border-color: var(--gold); }
body.light .btn-primary:hover { background: transparent; color: var(--gold); }
body.light .btn-ghost { color: var(--gold); border-color: var(--border-mid); }
body.light .btn-ghost:hover { border-color: var(--gold); background: var(--gold-faint); }
body.light .btn-download { color: var(--text-muted); border-color: var(--border-mid); }
body.light .btn-download:hover { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-faint); }

/* Scroll arrow */
body.light .scroll-indicator span { color: var(--text-faint); }
body.light .scroll-arrow { border-color: var(--border-mid); }

/* Project link buttons */
body.light .project-link-btn { border-color: var(--border); color: var(--text-muted); }
body.light .project-link-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }

/* Theme toggle */
body.light .theme-toggle { border-color: var(--border-mid); color: var(--text-muted); }
body.light .theme-toggle:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-faint); }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  isolation: isolate;
}
/* All sections sit above the fixed rain canvas */
section, nav, footer { position: relative; z-index: 2; }
/* Sections: semi-opaque so rain peeks through very subtly */
#about     { background: rgba(19,17,13,0.96); }
#skills    { background: rgba(19,17,13,0.96); }
#education { background: rgba(14,12,9,0.96); }
#contact   { background: rgba(19,17,13,0.96); }
footer     { background: rgba(14,12,9,0.97); }
/* Hero: strong left-side vignette so text is crisp, right stays open for globe */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14,12,9,0.88) 0%, rgba(14,12,9,0.6) 45%, rgba(14,12,9,0.05) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.04) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: none; }

/* ── Custom Cursor ── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border 0.25s ease;
  mix-blend-mode: normal;
}
#cursor.expanded {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid var(--gold);
}

/* ── Page Load Overlay ── */
#overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9000;
  animation: overlayWipe 1.2s cubic-bezier(0.77,0,0.175,1) 0.3s forwards;
}
@keyframes overlayWipe {
  0%   { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.mono { font-family: 'JetBrains Mono', monospace; }
.serif { font-family: 'Playfair Display', serif; }
.gold { color: var(--gold); }
.muted { color: var(--text-muted); }

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

/* ── Ornament divider ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold-dim);
  margin: 3rem 0;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}
.ornament::after { background: linear-gradient(to left, transparent, var(--gold-dim)); }
.ornament span { font-size: 12px; color: var(--gold); }

/* ── Gold shimmer on section headings ── */
.section-title, .projects-title, .contact-heading {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
/* Contact heading override — keep gold italic */
.contact-heading em {
  -webkit-text-fill-color: var(--gold);
  font-style: italic;
}

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(14, 12, 9, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--gold-dim);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.nav-logo:hover { color: var(--gold); }
.nav-logo-arrow {
  font-size: 0.7rem;
  color: var(--gold-dim);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.nav-logo:hover .nav-logo-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}
.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: filamentFlicker 3s ease-in-out infinite;
  box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold-dim);
}
@keyframes filamentFlicker {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold-dim); }
  10%       { opacity: 0.85; box-shadow: 0 0 3px var(--gold); }
  20%       { opacity: 1; box-shadow: 0 0 8px var(--gold), 0 0 16px var(--gold-dim); }
  50%       { opacity: 0.9; box-shadow: 0 0 5px var(--gold), 0 0 10px var(--gold-dim); }
  70%       { opacity: 1; }
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  border: 1px solid var(--gold-dim);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  background: rgba(201,168,76,0.07);
  box-shadow: 0 0 12px rgba(201,168,76,0.08), inset 0 0 12px rgba(201,168,76,0.04);
  transition: box-shadow 0.3s ease;
}
.nav-badge:hover {
  box-shadow: 0 0 20px rgba(201,168,76,0.15), inset 0 0 16px rgba(201,168,76,0.06);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-mid);
  z-index: 99;
  padding: 6rem 2.5rem 2.5rem;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
}
.mobile-overlay.open { display: block; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}
/* Scanlines */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1.4s forwards;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1.7s forwards;
}
.hero-headline .italic-gold {
  font-style: italic;
  color: var(--gold);
  display: block;
}
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 2s forwards;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 2.2s forwards;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 2.4s forwards;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid var(--gold);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid var(--gold-dim);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
  transform: translateY(-2px);
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid var(--border-mid);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.btn-download:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-faint);
  transform: translateY(-2px);
}
.btn-download svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Floating diamonds */
.hero-bg-diamonds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.diamond-ornament {
  position: absolute;
  color: var(--text-faint);
  font-size: clamp(1.5rem, 3vw, 3rem);
  animation: slowRotate var(--duration, 20s) linear infinite;
  opacity: 0.5;
}
@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 2.8s forwards;
}
.scroll-indicator span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  transform: rotate(45deg);
  animation: bounceDown 1.5s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════
   SECTION SHARED STYLES
══════════════════════════════════ */
section { padding: 6rem 0; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
#about { background: var(--bg-secondary); }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Photo frame ── */
.about-photo-wrap {
  position: relative;
  width: 100%;
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--gold-dim);
  z-index: 0;
  pointer-events: none;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  right: -12px; bottom: -12px;
  border: 1px solid var(--border-mid);
  z-index: 0;
  pointer-events: none;
}
.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(30%) sepia(20%) contrast(1.05) brightness(0.88);
  mix-blend-mode: normal;
}
/* gold gradient overlay on photo */
.about-photo-inner {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.about-photo-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,12,9,0.1) 0%,
    rgba(14,12,9,0.0) 40%,
    rgba(201,168,76,0.08) 80%,
    rgba(14,12,9,0.5) 100%
  );
  pointer-events: none;
}
/* name tag at bottom of photo */
.photo-name-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1rem 1.2rem 0.8rem;
  background: linear-gradient(to top, rgba(14,12,9,0.92), transparent);
}
.photo-name-tag span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
/* corner ticks on photo */
.about-photo-wrap .corner {
  position: absolute;
  width: 14px; height: 14px;
  z-index: 3;
  pointer-events: none;
}
.corner-tl { top: 0; left: 0; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.corner-tr { top: 0; right: 0; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.corner-bl { bottom: 0; left: 0; border-bottom: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.corner-br { bottom: 0; right: 0; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.about-pull-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.about-pull-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.about-right p { color: var(--text-secondary); margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-right .bio-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.stat-item {
  background: var(--bg-primary);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: background 0.3s ease;
}
.stat-item:hover {
  background: rgba(201,168,76,0.04);
}
.stat-item:hover .stat-number {
  text-shadow: 0 0 24px rgba(201,168,76,0.4);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--gold);
  display: block;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
#projects { background: var(--bg-primary); }
.projects-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}
.projects-roman {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}
.projects-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: linear-gradient(160deg, rgba(20,18,12,0.98) 0%, rgba(14,12,9,0.98) 100%);
  border: 1px solid var(--border-mid);
  border-top: 1px solid var(--border);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Corner accent — top left */
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-top: 1px solid var(--gold-dim);
  border-left: 1px solid var(--gold-dim);
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
  pointer-events: none;
}
/* Gold sweep top border */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--border-mid), inset 0 0 60px rgba(201,168,76,0.03);
  border-color: var(--border-mid);
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover::after  { width: 56px; height: 56px; border-color: var(--gold); }
.project-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
}
.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.project-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.project-tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.project-links {
  display: flex;
  gap: 0.75rem;
}
.project-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.project-link-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}
.project-link-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ══════════════════════════════════
   SKILLS
══════════════════════════════════ */
#skills { background: var(--bg-secondary); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.skills-bars { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-row {}
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.skill-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.skill-pips {
  display: flex;
  gap: 5px;
}
.pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-mid);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.pip.filled {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201,168,76,0.4);
}

.skills-tags {}
.tag-group { margin-bottom: 1.5rem; }
.tag-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border-mid);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.tag:hover { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-faint); }

/* ══════════════════════════════════
   EDUCATION
══════════════════════════════════ */
#education { background: var(--bg-primary); }

.education-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* Vertical timeline line */
.education-grid::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 10%, var(--gold-dim) 90%, transparent);
}
.edu-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s ease;
}
.edu-card:last-child { border-bottom: none; }
.edu-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  padding-top: 0.2rem;
  position: relative;
}
.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}
.edu-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-mid);
  border: 1.5px solid var(--gold-dim);
  position: absolute;
  right: -2.75rem;
  top: 0.35rem;
  z-index: 1;
  flex-shrink: 0;
}
.edu-dot--active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201,168,76,0.5);
}
.edu-right { padding-left: 0.5rem; }
.edu-degree {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.edu-school {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.edu-detail {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
#contact {
  background: var(--bg-secondary);
  text-align: center;
  padding: 8rem 0 6rem;
}
.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.contact-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.contact-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}
.contact-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  display: inline-block;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s ease;
}
.contact-email:hover { border-color: var(--gold); }
.copy-btn {
  background: none;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
  cursor: none;
}
.copy-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-faint);
}
.copy-btn svg { width: 14px; height: 14px; fill: currentColor; }
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-secondary);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.4rem;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border-mid);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.social-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-faint);
}
.social-link .arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 0.8rem;
}
.social-link:hover .arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════
   READING PROGRESS BAR
══════════════════════════════════ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ══════════════════════════════════
   THEME TOGGLE
══════════════════════════════════ */
.theme-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-faint);
}
.theme-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-moon { display: none; }
body.light .theme-toggle .icon-sun  { display: none; }
body.light .theme-toggle .icon-moon { display: block; }

/* ══════════════════════════════════
   PROJECT CATEGORY TAGS
══════════════════════════════════ */
.project-cat-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.project-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid;
  font-weight: 500;
}
.project-cat--backend   { color: #7eb8d4; border-color: rgba(126,184,212,0.3); background: rgba(126,184,212,0.07); }
.project-cat--fullstack { color: #a68fd4; border-color: rgba(166,143,212,0.3); background: rgba(166,143,212,0.07); }
.project-cat--ai        { color: #74c99a; border-color: rgba(116,201,154,0.3); background: rgba(116,201,154,0.07); }
.project-cat--frontend  { color: #d4a86a; border-color: rgba(212,168,106,0.3); background: rgba(212,168,106,0.07); }
.project-cat--opensource{ color: #d47e7e; border-color: rgba(212,126,126,0.3); background: rgba(212,126,126,0.07); }
.project-cat--infra     { color: #8fd4c9; border-color: rgba(143,212,201,0.3); background: rgba(143,212,201,0.07); }

/* ══════════════════════════════════
   GITHUB ACTIVITY STRIP
══════════════════════════════════ */
.github-strip {
  background: rgba(14,12,9,0.97);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
}
.github-strip-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.github-strip-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.github-strip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.github-strip-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.github-graph {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  overflow: hidden;
}
.github-graph-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.github-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.2s ease;
}
.github-cell.l1 { background: rgba(201,168,76,0.15); }
.github-cell.l2 { background: rgba(201,168,76,0.35); }
.github-cell.l3 { background: rgba(201,168,76,0.6);  }
.github-cell.l4 { background: rgba(201,168,76,0.9);  }
.github-strip-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-mid);
  padding: 0.5rem 1rem;
  flex-shrink: 0;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.github-strip-cta:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-faint);
}

/* ══════════════════════════════════
   SECTION BREAK
══════════════════════════════════ */
.section-break {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.section-break-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-mid));
}
.section-break-line:last-child {
  background: linear-gradient(to left, transparent, var(--border-mid));
}
.section-break-diamond {
  font-size: 0.55rem;
  color: var(--gold-dim);
  letter-spacing: 0.3em;
}

/* ══════════════════════════════════
   CONTACT CARD
══════════════════════════════════ */
.contact-card {
  max-width: 760px;
  margin: 0 auto 3rem;
  border: 1px solid var(--border-mid);
  border-left: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(20,18,12,0.98) 0%, rgba(14,12,9,0.98) 100%);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.contact-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
}
.contact-card-left { text-align: left; }
.contact-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.contact-avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf74;
  box-shadow: 0 0 8px rgba(76,175,116,0.6);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.contact-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0;
}
.contact-card-right { flex-shrink: 0; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--gold-dim);
  padding: 2rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-left { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.footer-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.footer-credit {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }

/* ══════════════════════════════════
   BACK TO TOP
══════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 42px;
  height: 42px;
  background: var(--bg-secondary);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  opacity: 0;
  transform: translateY(12px) rotate(45deg);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
  pointer-events: auto;
}
#back-to-top:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(201,168,76,0.25);
}
#back-to-top svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transform: rotate(-45deg);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-badge  { display: none; }
  .hamburger  { display: flex; }
  .mobile-nav { display: flex; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-photo-wrap { max-width: 240px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; gap: 3rem; }

  .education-grid::before { left: 100px; }
  .edu-card { grid-template-columns: 100px 1fr; gap: 2rem; }
  .edu-dot { right: -2.25rem; }
}

@media (max-width: 768px) {
  .github-graph { display: none; }
  .github-strip-inner { gap: 1rem; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 200px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-ghost, .btn-download { text-align: center; }
  .projects-header { flex-direction: column; gap: 0.25rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-credit { display: none; }
  .contact-card-inner { flex-direction: column; text-align: center; }
  .contact-card-left { text-align: center; }
  .contact-avail { justify-content: center; }
  #back-to-top { bottom: 1.2rem; right: 1.2rem; width: 36px; height: 36px; }
}

@media (max-width: 380px) {
  .stats-row { grid-template-columns: 1fr; }
}
