/* ============================================================
   Neural Terminal — Portfolio
   Fonts: Bebas Neue · Outfit · JetBrains Mono
   ============================================================ */

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

/* --- Tokens --- */
:root {
  --bg:             #050508;
  --bg-2:           #0b0b14;
  --bg-3:           #111120;
  --bg-4:           #181828;
  --accent:         #00e5ff;
  --accent-dim:     rgba(0, 229, 255, 0.1);
  --accent-mid:     rgba(0, 229, 255, 0.25);
  --accent-glow:    rgba(0, 229, 255, 0.45);
  --purple:         #a78bfa;
  --purple-dim:     rgba(167, 139, 250, 0.12);
  --text:           #e2e2f0;
  --text-muted:     #7878a0;
  --text-faint:     #3a3a58;
  --border:         rgba(255, 255, 255, 0.055);
  --border-accent:  rgba(0, 229, 255, 0.18);
  --font-display:   'Bebas Neue', sans-serif;
  --font-body:      'Outfit', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
}

/* --- Base --- */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-mid); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent-dim); color: var(--accent); }

/* --- Layout --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5.5rem 0; position: relative; }

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

.section-alt::before,
.section-alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-accent) 40%, var(--border-accent) 60%, transparent 100%);
}
.section-alt::before { top: 0; }
.section-alt::after  { bottom: 0; }

/* --- Section Header --- */
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.4rem 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
  text-shadow: 0 0 20px var(--accent-glow);
}
.nav-logo:hover { opacity: 0.65; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--accent); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.btn-outline-sm {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline-sm:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 14px var(--accent-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--accent); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Radial vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 85% at 50% 50%, transparent 20%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.2s forwards;
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 2rem;
  background: var(--bg-2);
}

.dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%       { opacity: 0.3; box-shadow: 0 0 4px var(--accent); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  line-height: 0.93;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.name-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
}
.name-line:nth-child(1) { animation-delay: 0.35s; }
.name-line:nth-child(2) { animation-delay: 0.5s; }
.name-line.accent       { color: var(--accent); text-shadow: 0 0 40px rgba(0, 229, 255, 0.3); }

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 1.5em;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.65s forwards;
}

.role-prefix { color: var(--accent); margin-right: 0.1rem; }
.typewriter { color: var(--text); }
.cursor-blink { color: var(--accent); animation: blink 1s step-end infinite; }

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

.hero-summary {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.95s forwards;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.8rem 2.25rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 0 24px var(--accent-glow);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px var(--accent-glow);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.8rem 2.25rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.hero-socials {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 1.1s forwards;
}

.social-link {
  color: var(--text-faint);
  width: 20px; height: 20px;
  display: block;
  transition: all 0.2s;
}
.social-link svg { width: 20px; height: 20px; display: block; }
.social-link:hover {
  color: var(--accent);
  transform: translateY(-3px);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease) 1.5s forwards;
}

.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

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

.about-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat-card {
  background: var(--bg-3);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 0.2s;
}
.stat-card:hover { background: var(--bg-4); }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.03em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.skill-group {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.skill-group:hover {
  border-color: var(--border-accent);
  background: var(--bg-4);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

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

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.28rem 0.72rem;
  border-radius: 3px;
  cursor: default;
  transition: all 0.2s;
}
.skill-tag:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}
.skill-tag.primary {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(0,229,255,0.1) 85%, transparent 100%);
}

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

.timeline-dot {
  position: absolute;
  left: calc(-1.75rem - 4px);
  top: 10px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.3s, background 0.3s;
}
.timeline-content:hover {
  border-color: var(--border-accent);
  background: var(--bg-3);
}

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

.job-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

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

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
}

.job-bullets { list-style: none; margin-bottom: 1.25rem; }

.job-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0.22rem 0 0.22rem 1.1rem;
  position: relative;
}
.job-bullets li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0.3rem;
  color: var(--accent);
  font-size: 0.68rem;
}

.job-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.job-tags span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid rgba(167,139,250,0.18);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* ===== PUBLICATIONS ===== */
.pub-section { margin-bottom: 3.25rem; }
.pub-section:last-child { margin-bottom: 0; }

.pub-category {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.pub-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pub-list { display: flex; flex-direction: column; gap: 0.875rem; }

.pub-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-accent);
  border-radius: 0 8px 8px 0;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pub-card:hover {
  border-color: var(--border-accent);
  transform: translateX(5px);
}
.pub-card.policy {
  border-left-color: rgba(167,139,250,0.35);
}
.pub-card.policy:hover {
  border-color: rgba(167,139,250,0.35);
}

.pub-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}
.pub-badge.policy {
  color: var(--purple);
  background: var(--purple-dim);
  border-color: rgba(167,139,250,0.2);
}

.pub-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.pub-authors {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.pub-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.pub-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}
.pub-link:hover { opacity: 0.65; }

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

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.project-card:hover::before { transform: scaleX(1); }

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 20px var(--accent-dim);
}

.project-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--accent);
  opacity: 0.7;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

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

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

/* ===== AWARDS ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.award-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-4);
}

.award-icon {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.award-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.award-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Education block */
.education-block {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.edu-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.edu-card:hover { border-color: var(--border-accent); }

.edu-left h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

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

.edu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.edu-gpa {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-intro {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.3s var(--ease);
}
.contact-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-3);
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.contact-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.contact-phone {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg-2);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.footer-resume {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}
.footer-resume:hover { opacity: 0.65; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 0; right: -100%; bottom: 0;
    width: 72%;
    max-width: 280px;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.75rem;
    transition: right 0.35s var(--ease);
    z-index: 205;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 0.95rem; }
  .hamburger { display: flex; }

  .hero-name { font-size: clamp(3rem, 16vw, 5.5rem); }
  .hero-content { padding-top: 6rem; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .timeline { padding-left: 1.25rem; }
  .timeline-item { padding-left: 1.75rem; }
  .timeline-dot { left: calc(-1.25rem - 4px); }
  .timeline-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

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

  .edu-card { flex-direction: column; align-items: flex-start; }
  .edu-right { align-items: flex-start; }

  .scroll-indicator { display: none; }
  .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .section-title { font-size: 2rem; }
}

/* Overlay for mobile nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.7);
  z-index: 199;
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.show {
  opacity: 1;
  pointer-events: all;
}
