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

:root {
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --text: #1c1917;
  --text-muted: #78716c;
  --accent: #0d0d0d;
  --accent-soft: #e7e5e4;
  --white: #ffffff;
  --radius: 12px;
  --max-width: 720px;
  --nav-height: 60px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-soft);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-link.active {
  color: var(--white);
  background: var(--accent);
}

/* ===== Layout ===== */
.page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
}

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

/* ===== Page Sections (toggle) ===== */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadePageIn 0.35s ease;
}

@keyframes fadePageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-compact {
  padding: 80px 0 60px;
}

.name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 12px;
}

.name-sm {
  font-size: clamp(2rem, 5vw, 3rem);
}

.tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}

.subtitle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.subtitle a:hover {
  text-decoration: underline;
}

/* ===== Section ===== */
.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 600px;
}

.section-text strong {
  font-weight: 600;
  color: var(--accent);
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  position: relative;
  max-width: 420px;
}

.card-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ===== Awards Grid ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.award-card {
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.award-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.award-card-wide {
  grid-column: span 2;
}

.award-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.award-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.award-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.award-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.award-text a:hover {
  color: #57534e;
}

/* ===== Skills Cloud ===== */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--white);
  border: 1px solid var(--accent-soft);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===== Links ===== */
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.link-btn:hover {
  background: #292524;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--accent-soft);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-compact {
    padding: 60px 0 40px;
  }

  .section {
    padding: 60px 0;
  }

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

  .award-card-wide {
    grid-column: span 1;
  }

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

  .link-btn {
    justify-content: center;
  }

  .card {
    max-width: 100%;
  }

  .nav-brand {
    font-size: 0.85rem;
  }

  .nav-link {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ===== Fade-in Animation ===== */
.page-section.active .section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-section.active .section.visible {
  opacity: 1;
  transform: translateY(0);
}
