/* ─── Theme Variables ─────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg-rgb:      10, 10, 10;
  --bg-card:     #141414;
  --border:      rgba(255, 255, 255, 0.08);
  --border-hover:rgba(255, 255, 255, 0.18);
  --text:        #e4e4e7;
  --text-muted:  #71717a;
  --accent:      #00e5ff;
  --accent-hover:#40edff;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --radius:      10px;
  --max-w:       680px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:          #fafafa;
    --bg-rgb:      250, 250, 250;
    --bg-card:     #ffffff;
    --border:      rgba(0, 0, 0, 0.08);
    --border-hover:rgba(0, 0, 0, 0.18);
    --text:        #18181b;
    --text-muted:  #52525b;
    --accent:      #0284c7;
    --accent-hover:#0369a1;
  }
}

/* ─── Base ────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a, a:visited {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ─── Layout ──────────────────────────────────────────────────── */
nav,
main,
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}


.nav-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.prompt-user {
  color: var(--accent);
}

.prompt-sep {
  color: var(--text-muted);
}

.prompt-symbol {
  color: var(--text-muted);
  margin-left: 2px;
}

.prompt-cursor {
  color: var(--accent);
  animation: blink 1.1s step-start infinite;
}

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

.btn-resume {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-resume:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 56px;
}

.greeting {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ─── Social Links ────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ─── Sections ────────────────────────────────────────────────── */
main section {
  margin-bottom: 52px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── About ───────────────────────────────────────────────────── */
.about p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

/* ─── Experience ──────────────────────────────────────────────── */
.experience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child {
  padding-top: 0;
}

.exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
}

.exp-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.exp-role {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Skills ──────────────────────────────────────────────────── */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.skill-tags span:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ─── Highlight Cards ─────────────────────────────────────────── */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  border-radius: 4px;
  padding: 2px 8px;
}

@media (prefers-color-scheme: light) {
  .card-tag {
    background: rgba(2, 132, 199, 0.08);
  }
}

.highlight-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.highlight-card p:last-child {
  margin-bottom: 0;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
}

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-sep {
  margin: 0 10px;
}

/* ─── Fade-in Animation ───────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main section,
footer {
  opacity: 0;
}

body.loaded main section,
body.loaded footer {
  animation: fadeUp 0.5s ease forwards;
}

body.loaded .hero          { animation-delay: 0.05s; }
body.loaded .about         { animation-delay: 0.15s; }
body.loaded .experience    { animation-delay: 0.25s; }
body.loaded .skills        { animation-delay: 0.35s; }
body.loaded .highlights    { animation-delay: 0.45s; }
body.loaded footer         { animation-delay: 0.55s; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .prompt-name-mid { display: none; }
  .prompt-sep { display: none; }
  .nav-logo { font-size: 14px; }
  .btn-resume { font-size: 12px; padding: 5px 10px; }

  h1 {
    font-size: 38px;
  }

  .tagline {
    font-size: 16px;
  }

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

  .hero {
    padding: 32px 0 40px;
  }

  main section {
    margin-bottom: 40px;
  }

  .exp-item {
    flex-direction: column;
    gap: 4px;
  }

  .exp-date {
    min-width: unset;
  }
}
