/* css/styles.css — Design Token System */

/* === TOKENS === */
:root {
  --bg: #ffffff;
  --bg-warm: #fbfaf8;
  --bg-hover: #f5f3ef;
  --bg-accent: #fdf0f2;
  --text: #37352f;
  --text-secondary: #6b6a67;
  --text-light: #8a8985;
  --accent: #e94560;
  --accent-text: #c4324a;
  --accent-soft: #fce4e8;
  --border: rgba(55, 53, 47, 0.09);
  --border-hover: rgba(55, 53, 47, 0.16);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  --max-w: 920px;
  --section-py: 60px;
  --section-px: 24px;
  --radius: 6px;
  --radius-card: 12px;
  --radius-photo: 16px;
}

/* === BASE === */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--text);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* === FOCUS RINGS === */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === SECTION LAYOUT === */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
}
.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* === TYPOGRAPHY === */
.font-serif { font-family: 'Newsreader', Georgia, serif; }

.hero-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.cta-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
}

.bio-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.positioning-text {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}

.section-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.section-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* === BUTTONS === */
.btn-dark {
  display: inline-block;
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-dark:hover { opacity: 0.8; }

.btn-outline {
  display: inline-block;
  color: var(--text);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border-hover);
  background: transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--bg-hover);
  border-color: rgba(55, 53, 47, 0.25);
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--section-px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav-link--resume {
  font-weight: 600;
  color: var(--text);
}
.nav-cta {
  display: inline-block;
  background: var(--text);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #4a4a44; }
.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: all 0.2s ease;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.nav-overlay.active { display: flex; }
.nav-overlay a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 12px 24px;
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* === FOOTER === */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 24px var(--section-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }

/* === TAGS === */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-warm);
  color: var(--text-secondary);
}
.tag--core {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.tag--impact {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

/* === CERT CALLOUT === */
.cert-callout {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.cert-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.cert-badge--aws { background: #fff3e0; color: #e65100; }
.cert-badge--azure { background: #e3f2fd; color: #1565c0; }
.cert-badge--pp { background: #f3e5f5; color: #7b1fa2; }

/* === PROJECT CARDS === */
.project-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.project-card:hover {
  border-color: var(--border-hover);
}

/* === FILTER BUTTONS === */
.filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.filter-btn--active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* === SCROLL SPY NAV === */
.scroll-spy-nav {
  position: sticky;
  top: 80px;
  align-self: flex-start;
}
.scroll-spy-link {
  display: block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
.scroll-spy-link:hover {
  color: var(--text-secondary);
}
.scroll-spy-link--active {
  color: var(--text);
  border-left-color: var(--accent);
  font-weight: 600;
}

@media (max-width: 767px) {
  .scroll-spy-nav {
    position: sticky;
    top: 49px;
    display: flex;
    overflow-x: auto;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 var(--section-px);
    z-index: 50;
  }
  .scroll-spy-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 12px 16px;
  }
  .scroll-spy-link--active {
    border-bottom-color: var(--accent);
    border-left-color: transparent;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* === PRINT === */
@media print {
  .nav, .footer, .nav-overlay, .skip-link,
  .btn-dark, .btn-outline, .scroll-spy-nav {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: white;
  }
  .section {
    padding: 20px 0;
    max-width: 100%;
  }
}
