/* ═══════════════════════════════════════════════════
   THEME SYSTEM — Auto / Light / Dark
═══════════════════════════════════════════════════ */
:root {
  --accent: #00AD9F;
  --accent-light: #00C7B7;
  --accent-glow: rgba(0, 173, 159, 0.15);

  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.22s;
  --dur-slow: 0.4s;

  /* ── Dark (default) ── */
  --bg: #0C0E14;
  --bg-alt: #10131C;
  --bg-card: #141720;
  --bg-card-h: #1b1f2e;
  --border: rgba(255, 255, 255, 0.075);
  --border-h: rgba(0, 173, 159, 0.4);
  --text: #DDE1EC;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;
  --nav-bg: rgba(12, 14, 20, 0.9);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ── Light ── */
[data-theme="light"] {
  --bg: #F2F4F8;
  --bg-alt: #E8EBF2;
  --bg-card: #FFFFFF;
  --bg-card-h: #F8F9FC;
  --border: rgba(0, 0, 0, 0.08);
  --border-h: rgba(0, 173, 159, 0.45);
  --text: #0F1117;
  --text-muted: #6B7280;
  --text-dim: #4B5563;
  --nav-bg: rgba(242, 244, 248, 0.92);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ── Auto → follows system ── */
@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --bg: #F2F4F8;
    --bg-alt: #E8EBF2;
    --bg-card: #FFFFFF;
    --bg-card-h: #F8F9FC;
    --border: rgba(0, 0, 0, 0.08);
    --border-h: rgba(0, 173, 159, 0.45);
    --text: #0F1117;
    --text-muted: #6B7280;
    --text-dim: #4B5563;
    --nav-bg: rgba(242, 244, 248, 0.92);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-slow) var(--ease);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-b {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

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

.nav-links a.nav-active {
  color: var(--accent);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.theme-btn:hover {
  border-color: var(--border-h);
  color: var(--accent);
}

#themeIcon {
  font-size: 13px;
  line-height: 1;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}

.nav-social:hover {
  color: var(--accent);
  border-color: var(--border-h);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  padding: 64px 0 48px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  white-space: nowrap;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 10px;
}

.name-accent {
  color: var(--accent);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.3vw, 14.5px);
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 15.5px;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 173, 159, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-h);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Photo ── */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.photo-frame {
  width: 272px;
  height: 272px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px var(--accent-glow), var(--shadow);
  position: relative;
  z-index: 1;
  background-image: url(/assets/images/dev.jpg);
  background-size: 150%;
  background-position: 68% 28%;
}

.photo-badge {
  position: absolute;
  bottom: 4px;
  right: -12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 2;
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.stat-plus {
  font-size: 18px;
  color: var(--accent-light);
}

.stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════════════════════ */
.page-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 18px;
}

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

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

.about-cta {
  font-style: italic;
  color: var(--text-muted) !important;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 24px !important;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.highlight-item:hover {
  border-color: var(--border-h);
  transform: translateX(3px);
}

.highlight-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.5;
}

.highlight-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.highlight-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}

.highlight-val a {
  color: var(--accent);
}

.highlight-val a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.skill-category:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.skill-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}

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

.skill-tag-primary {
  background: rgba(0, 173, 159, 0.1);
  border-color: rgba(0, 173, 159, 0.25);
  color: var(--accent-light);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   AWARDS
═══════════════════════════════════════════════════ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.award-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.award-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.award-year {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.award-emoji {
  font-size: 22px;
}

.award-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.award-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   TIMELINE — vertical single column
═══════════════════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.tl-item {
  display: flex;
  gap: 16px;
}

.tl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 6px;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent);
  flex-shrink: 0;
  z-index: 1;
}

.tl-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 5px;
  min-height: 16px;
}

.tl-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  transition: border-color var(--dur) var(--ease);
}

.tl-card:hover {
  border-color: var(--border-h);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}

.tl-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-company {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 9px;
  font-style: italic;
}

.tl-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 10px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.project-header {
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, var(--ph-from, #00AD9F), var(--ph-to, #00C7B7));
  flex-shrink: 0;
}

.project-cat {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  margin-bottom: 5px;
}

.project-name {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  display: flex;
  column-gap: 8px;
}

.project-name img {
  background: var(--bg);
  border-radius: 50%;
  padding: 5px;
}

.project-period {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.project-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.project-pts li {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 5px;
  line-height: 1.5;
}

.project-pts li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 10px;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.tech {
  background: rgba(0, 173, 159, 0.1);
  border: 1px solid rgba(0, 173, 159, 0.2);
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 10.5px;
  color: var(--accent-light);
  font-weight: 600;
}

.project-press {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.press-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.press-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.press-links a {
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 500;
  transition: opacity var(--dur) var(--ease);
}

.press-links a:hover {
  opacity: 0.65;
}

/* ═══════════════════════════════════════════════════
   IMPACT
═══════════════════════════════════════════════════ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.impact-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.impact-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

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

.impact-num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.impact-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.impact-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  margin-bottom: 28px;
  align-items: flex-start;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer-socials a:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.footer-col-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--delay, 0s);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 1024px
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .photo-frame {
    width: 230px;
    height: 230px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 768px
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 18px;
    gap: 2px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 14.5px;
    padding: 10px 12px;
  }

  .hamburger {
    display: flex;
  }

  #themeLabel {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 40px 0 36px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 28px;
    text-align: center;
    margin-bottom: 32px;
  }

  .hero-badge {
    margin: 0 auto 20px;
  }

  .hero-sub {
    max-width: 100%;
    margin: 0 auto 28px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-name {
    letter-spacing: -1.5px;
  }

  .photo-frame {
    width: 200px;
    height: 200px;
  }

  .photo-badge {
    font-size: 11px;
    right: -4px;
  }

  .photo-glow {
    inset: -20px;
  }

  /* Stats — 2×2 */
  .stats-bar {
    flex-wrap: wrap;
    border-radius: var(--radius);
  }

  .stat-item {
    flex: 0 0 50%;
    border-bottom: 1px solid var(--border);
    padding: 16px 10px;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  /* .stat-item:nth-child(5),
  .stat-item:nth-child(6)    { border-bottom: none; } */
  .stat-divider {
    display: none;
  }

  .stat-num {
    font-size: 22px;
  }

  /* Sections */
  .page-section {
    padding: 52px 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Small ≤ 480px
═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-name {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn {
    justify-content: center;
  }

  .hero-badge {
    font-size: 10.5px;
    white-space: normal;
    text-align: center;
  }
}