/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-bg:         #f8f9fa;
  --color-bg-alt:     #e9ecef;
  --color-text:       #212529;
  --color-text-muted: #6c757d;
  --color-accent:     #0d6e6e;
  --color-accent-dark:#095858;
  --color-border:     #dee2e6;
  --color-white:      #ffffff;
  --font:             'Inter', sans-serif;
  --max-width:        800px;
  --section-pad:      60px;
  --radius:           6px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

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

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

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

.nav-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background-color: var(--color-white);
  padding: var(--section-pad) 24px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.headshot {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  border: 4px solid var(--color-bg-alt);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.intro {
  font-size: 1rem;
  color: #495057;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 11px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background-color 0.15s;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 3px;
}

/* ============================================================
   Shared Section Styles
   ============================================================ */
.section {
  padding: var(--section-pad) 24px;
}

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

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

h2 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Experience
   ============================================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.experience-item {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.exp-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.exp-org {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0;
}

.exp-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 0.9rem;
  color: #495057;
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.exp-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================================
   Skills
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.skill-group h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.tag-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.tag-secondary {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* When tags appear on a white section background */
.section:not(.section-alt) .tag-secondary {
  background-color: var(--color-bg-alt);
}

/* ============================================================
   Projects
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.project-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.project-card p {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.6;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-container {
  text-align: center;
}

.contact-container p {
  max-width: 520px;
  margin: 0 auto 32px;
  color: #495057;
}

.contact-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}

.contact-badge:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.contact-badge:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 3px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: var(--color-text);
  color: #adb5bd;
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ============================================================
   Responsive — Tablet & Desktop (640px+)
   ============================================================ */
@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

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

/* ============================================================
   Responsive — Small Mobile (up to 480px)
   ============================================================ */
@media (max-width: 480px) {
  .nav-links {
    gap: 14px;
  }

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

  .hero h1 {
    font-size: 1.75rem;
  }

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

  .exp-date {
    white-space: normal;
  }
}

/* ============================================================
   Responsive — Tiny screens (up to 360px)
   ============================================================ */
@media (max-width: 360px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 10px 16px;
    gap: 6px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}
