@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #fafafa;
  --bg-surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #16a34a;
  --accent-dim: rgba(22, 163, 74, 0.07);
  --accent-hover: #15803d;
  --border: #e2e8f0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 1100px;
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Navigation ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  vertical-align: middle;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-name {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.hero-description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-height: 500px;
  width: auto;
  border-radius: 16px;
}

/* ── Resume page ── */

.resume-page {
  padding-top: 100px;
  padding-bottom: 60px;
}

.resume-header {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.resume-header h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 0.25rem;
}

.resume-subtitle {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.resume-contact a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.resume-contact svg {
  width: 14px;
  height: 14px;
}

.resume-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 800px;
  margin-top: 1.5rem;
}

.resume-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.resume-section { margin-bottom: 2rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.experience-item {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

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

.experience-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.experience-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}

.experience-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.experience-bullets li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.7;
}

.experience-bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.6rem;
}

.skill-category {
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.skill-category h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: fit-content;
}

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

.skill-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  background: var(--bg);
  border-radius: 5px;
  border: 1px solid var(--border);
}

.volunteering-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.volunteering-item {
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.volunteering-item .experience-header {
  margin-bottom: 0;
}

.volunteering-item h3 {
  font-size: 0.95rem;
}

.volunteering-org {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.education-item {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.education-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.education-meta .date {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
}

.education-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.education-note::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ── Footer ── */

footer {
  padding: 2rem 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-text {
    align-items: center;
    order: 2;
  }

  .hero-image { order: 1; }

  .hero-image img { max-width: 240px; }

  .hero-description { margin: 0 auto; }

  .social-links { justify-content: center; }

  .nav-links { gap: 1.25rem; }

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

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

  .experience-header { flex-direction: column; }

  .resume-contact { gap: 0.75rem; }
}

/* ── Print ── */

@media print {
  nav, .resume-actions, footer { display: none; }

  .resume-page { padding-top: 0; padding-bottom: 0; }

  body { font-size: 9.5pt; line-height: 1.5; }

  .resume-header { margin-bottom: 0.75rem; }

  .resume-header h1 { font-size: 1.5rem; margin-bottom: 0; }

  .resume-summary { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.5; }

  .resume-contact { margin-top: 0.5rem; gap: 0.75rem; }

  .resume-section { margin-bottom: 0.75rem; }

  .section-label { margin-bottom: 0.5rem; }

  .experience-item, .skill-category, .education-item, .volunteering-item {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
  }

  .experience-item { padding: 0.5rem 0; }

  .experience-bullets { gap: 0.15rem; }

  .experience-bullets li { font-size: 0.8rem; line-height: 1.45; }

  .skills-grid { gap: 0.25rem; }

  .skill-category { padding: 0.3rem 0; border: none; }

  .skill-tag { font-size: 0.7rem; padding: 0.1rem 0.4rem; }

  .education-item { padding: 0.5rem 0; border: none; }

  .volunteering-item { padding: 0.4rem 0; border: none; }

  .volunteering-list { gap: 0.25rem; }

  .page-break { break-before: page; }
}
