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

:root {
  --bg: #0f0f0f;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 48px;
  background: rgba(15,15,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: padding 0.3s;
}
nav.scrolled { padding: 14px 48px; }
.nav-logo {
  font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--accent); transition: width 0.2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a:hover::after { width: 100%; }

/* SECTIONS */
section { padding: 100px 0; }
.container { max-width: 860px; margin: 0 auto; padding: 0 48px; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 80px;
  position: relative;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
#hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 20px;
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.6s 0.1s forwards;
}
.hero-name {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--text); margin-bottom: 16px;
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.6s 0.25s forwards;
}
.hero-title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300; color: var(--muted); margin-bottom: 40px;
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.6s 0.4s forwards;
}
.hero-title span { color: var(--accent); font-weight: 500; }
.btn-group {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.6s 0.55s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 6px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #33ddff; text-decoration: none; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* SECTION HEADERS */
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 36px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 48px;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ABOUT */
.about-text {
  font-size: 18px; line-height: 1.8; color: var(--muted); max-width: 640px;
}
.about-text strong { color: var(--text); }
.about-text + .about-text { margin-top: 16px; }

/* EXPERIENCE */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px; padding: 32px 0; border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-date { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.timeline-company { font-size: 15px; font-weight: 600; color: var(--accent); }
.timeline-role { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.timeline-bullets li {
  font-size: 15px; color: var(--muted); padding-left: 16px; position: relative;
}
.timeline-bullets li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent);
}

/* TIMELINE DIVIDER */
.timeline-divider {
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.timeline-divider span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.timeline-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* INTERN TIMELINE ITEMS */
.timeline-item--intern .timeline-company { color: var(--muted); font-weight: 500; }
.timeline-item--intern .timeline-role { font-size: 16px; color: var(--text); }
.timeline-item--intern .timeline-bullets li { font-size: 14px; }
.timeline-item--intern .timeline-bullets li::before { color: var(--muted); }
.timeline-team { font-size: 13px; font-weight: 400; color: var(--muted); }

/* SKILLS */
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
  padding: 8px 16px; border-radius: 4px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: all 0.2s;
}
.skill-pill:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}

/* EDUCATION */
.edu-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px; margin-bottom: 20px;
}
.edu-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; margin-bottom: 24px;
}
.edu-degree { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.edu-minors { font-size: 14px; color: var(--muted); }
.edu-meta { text-align: right; flex-shrink: 0; }
.edu-honors {
  font-size: 13px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.edu-gpa { font-size: 13px; color: var(--muted); }
.edu-coursework {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  padding-top: 20px; border-top: 1px solid var(--border); margin-bottom: 16px;
}
.edu-course-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 6px;
}
.edu-awards { display: flex; flex-direction: column; gap: 6px; }
.edu-award-item {
  font-size: 14px; color: var(--muted); padding-left: 16px; position: relative;
}
.edu-award-item::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* CUAIR CARD */
.cuair-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
  position: relative; overflow: hidden;
}
.cuair-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.cuair-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; margin-bottom: 20px; flex-wrap: wrap;
}
.cuair-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.cuair-sub { font-size: 13px; color: var(--muted); }
.cuair-badges { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.cuair-badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 4px; background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.25); color: var(--accent);
  white-space: nowrap; letter-spacing: 0.02em;
}
.cuair-desc { font-size: 15px; color: var(--muted); line-height: 1.75; }

/* CONTACT */
.contact-inner {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 48px;
}
.contact-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.contact-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--muted); transition: color 0.2s;
}
.contact-link:hover { color: var(--accent); text-decoration: none; }

/* CMD TRIGGER (nav button) */
.cmd-trigger {
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; gap: 4px;
}
.cmd-trigger span {
  font-size: 12px; font-weight: 600; color: var(--muted);
  font-family: 'Inter', sans-serif; letter-spacing: 0.02em;
}
.cmd-trigger:hover { border-color: var(--accent); }
.cmd-trigger:hover span { color: var(--accent); }

/* COMMAND PALETTE OVERLAY */
.cmd-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 18vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
}
.cmd-overlay.open {
  opacity: 1; pointer-events: all;
}
.cmd-modal {
  width: 100%; max-width: 560px; margin: 0 24px;
  background: #111111;
  border: 1px solid #303030;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(-10px) scale(0.97);
  transition: transform 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}
.cmd-overlay.open .cmd-modal {
  transform: translateY(0) scale(1);
}
.cmd-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #222;
}
.cmd-prompt {
  color: var(--accent); font-size: 18px; line-height: 1;
  flex-shrink: 0; margin-bottom: 1px;
}
.cmd-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--text); caret-color: var(--accent);
}
.cmd-input::placeholder { color: #3a3a3a; }
.cmd-results {
  max-height: 340px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #2a2a2a transparent;
}
.cmd-results::-webkit-scrollbar { width: 4px; }
.cmd-results::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }
.cmd-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; cursor: pointer;
  transition: background 0.1s;
}
.cmd-item:hover { background: #181818; }
.cmd-item.active { background: rgba(0, 212, 255, 0.07); }
.cmd-icon {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  background: #1a1a1a; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.cmd-item.active .cmd-icon { border-color: var(--accent); color: var(--accent); }
.cmd-text { flex: 1; min-width: 0; }
.cmd-label { font-size: 14px; font-weight: 500; color: var(--text); }
.cmd-desc  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.cmd-enter {
  font-size: 12px; color: #333;
  transition: color 0.15s;
}
.cmd-item.active .cmd-enter { color: var(--accent); }
.cmd-empty {
  padding: 36px 20px; text-align: center;
  font-size: 14px; color: #444;
}
.cmd-footer {
  padding: 10px 20px; border-top: 1px solid #1e1e1e;
  display: flex; gap: 16px; align-items: center;
}
.cmd-hint {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #3a3a3a;
}
.cmd-hint kbd {
  background: #1e1e1e; border: 1px solid #2e2e2e;
  border-radius: 3px; padding: 1px 5px;
  font-size: 10px; color: #555; font-family: 'Inter', sans-serif;
}

/* FOOTER */
footer {
  text-align: center; padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}

@media (max-width: 640px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .container { padding: 0 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .nav-links { display: none; }
  section { padding: 72px 0; }
  .edu-header { flex-direction: column; gap: 8px; }
  .edu-meta { text-align: left; }
  .cuair-header { flex-direction: column; }
  .cuair-badges { margin-top: 4px; }
}
