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

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #ededed;
  --text-secondary: #b4b4b4;
  --text-disabled: #8a8a8a;
  --accent: #3291ff;
  --accent-dim: rgba(50, 145, 255, 0.12);
  --green: #00ca51;
  --green-dim: rgba(0, 202, 81, 0.15);
  --nav-bg: rgba(0, 0, 0, 0.85);
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: #66b0ff;
}

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

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg, rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 202, 81, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 202, 81, 0); }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s;
}

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

/* ── HERO ── */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge .sep {
  color: var(--text-disabled);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-sub {
    white-space: normal;
  }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-platforms {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
}

.platform-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.platform-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn-primary:hover {
  background: #e0e0e0;
  color: #000;
  border-color: #e0e0e0;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--bg-elevated);
}

/* ── SECTION COMMON ── */
section {
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-transform: uppercase;
}

/* ── SYSTEM SPECS (ABOUT) ── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s;
}

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

.spec-card-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-disabled);
  margin-bottom: 16px;
}

.spec-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.spec-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-bar-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.skill-bar-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-disabled);
}

.skill-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(50, 145, 255, 0.18);
}

/* ── EXECUTION FLOW (EXPERIENCE) ── */
.flow-track {
  display: flex;
  gap: 0;
  position: relative;
}

.flow-step {
  flex: 1;
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  margin: 0 8px;
  transition: border-color 0.15s, background 0.15s;
}

.flow-step:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.flow-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.flow-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.flow-step .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-disabled);
  margin-bottom: 12px;
}

.flow-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 14px;
}

.flow-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(50, 145, 255, 0.18);
}

/* ── PROJECT GRID (BENTO) ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.card-link-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  text-indent: 200%;
  white-space: nowrap;
}

.bento-card a.split-link {
  position: relative;
  z-index: 2;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bento-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(50, 145, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.bento-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-disabled);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.bento-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.bento-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-stat-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-disabled);
}

.bento-stat-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bento-card .flow-tags {
  margin-top: auto;
  padding-top: 16px;
}

.split-link {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-disabled);
  transition: color 0.15s, border-color 0.15s;
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--text-disabled);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

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

.term {
  position: relative;
  cursor: help;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.18);
}

.term::before,
.term::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translate(-50%, 4px);
}

.term::before {
  content: attr(data-tip);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: #0a0a0a;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.term::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #0a0a0a;
  border-right: 1px solid var(--border-hover);
  border-bottom: 1px solid var(--border-hover);
  transform: translate(-50%, 4px) rotate(45deg);
  bottom: calc(100% + 6px);
  z-index: 10;
}

.term:hover::before,
.term:focus::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.term:hover::after,
.term:focus::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.split-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── EDUCATION ── */
.edu-row {
  display: flex;
  gap: 16px;
}

.edu-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s;
}

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

.edu-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-card .degree {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.edu-card .edu-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.edu-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-disabled);
  border: 1px solid var(--border);
}

.edu-chip.gpa {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(0, 202, 81, 0.18);
}

/* ── CONTACT / FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-disabled);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link .prefix {
  color: var(--text-disabled);
}

@keyframes contactGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); background: transparent; }
  15% { box-shadow: 0 0 28px 8px rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.12); }
  50% { box-shadow: 0 0 16px 4px rgba(59, 130, 246, 0.2); background: rgba(59, 130, 246, 0.06); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); background: transparent; }
}

.contact-highlight {
  animation: contactGlow 1.8s ease-out;
  padding: 8px 12px;
  margin: -8px -12px;
  border-radius: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .flow-track {
    flex-direction: column;
  }

  .flow-step {
    margin: 4px 0;
  }

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

  .bento-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .edu-row {
    flex-direction: column;
  }

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

  .nav-status {
    display: none;
  }

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

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

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

/* ── SUBTLE GRID BG ── kept as Tailwind blue intentionally (liked) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ── GLOW ── kept as Tailwind blue intentionally (liked) */
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.bento-icon i {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 2px;
}
