/* == THEME == */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --accent: #059669;
  --accent-soft: rgba(5, 150, 105, 0.08);
  --border: #E2E8F0;
  --radius: 12px;
  --max: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* == NAV == */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--text); }
.nav nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--accent); text-decoration: none; }

/* == LAYOUT == */
.hero, .section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
.section-title::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  margin-top: 0.4rem;
  background: var(--accent);
  border-radius: 2px;
}

/* == HERO (mobile first: photo on top, text below) == */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-photo {
  width: clamp(160px, 45vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%; /* keeps the face centered when cropped */
  border-radius: 50%;
}

.eyebrow {
  color: var(--accent); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem;
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.15; margin: 0.5rem 0; }
.hero h2 { font-size: clamp(1.1rem, 4vw, 1.6rem); color: var(--muted); font-weight: 500; }
.accent { color: var(--accent); }
.lead { max-width: 600px; margin: 1.25rem auto 1.75rem; color: var(--muted); font-size: 1.1rem; }
.hero .buttons { justify-content: center; }

/* == BUTTONS == */
.buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-outline { color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

/* == CARDS + GRID  == */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card .tags { margin-top: 0.75rem; font-size: 0.85rem; color: var(--accent); }
.links { display: flex; gap: 1rem; margin-top: 1rem; font-weight: 600; font-size: 0.95rem; }

/* == SKILLS == */
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.skills li {
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
}
.muted { margin-top: 1.25rem; color: var(--muted); }

/* == TIMELINE == */
.timeline { list-style: none; border-left: 3px solid var(--border); padding-left: 1.5rem; }
.timeline li { position: relative; margin-bottom: 1.4rem; color: var(--muted); }
.timeline li strong { display: block; color: var(--text); }
.timeline li::before {
  content: "";
  position: absolute; left: -2.05rem; top: 0.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--muted);
}
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.current::before { border-color: var(--accent); background: var(--bg); }

/* == FOOTER == */
.footer {
  text-align: center; padding: 2rem 1rem;
  color: var(--muted); border-top: 1px solid var(--border); font-size: 0.9rem;
}

/* == ACCESSIBILITY == */
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }


@media (max-width: 699px) {
  html { scroll-padding-top: 90px; }
  .nav { padding: 0.6rem 1rem; gap: 0.25rem; }
  .nav nav {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    gap: 1.1rem; font-size: 0.9rem; padding-bottom: 0.2rem;
    scrollbar-width: none;
  }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { white-space: nowrap; }
}

/* == TABLET AND UP ==*/
@media (min-width: 700px) {
  .nav { padding: 1rem 2.5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  
  .hero {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 3rem;
    padding-top: 5rem;
  }
  .hero-photo { order: 2; justify-self: center; width: clamp(220px, 28vw, 320px); }
  .hero-text { order: 1; }
  .lead { margin-left: 0; margin-right: 0; }
  .hero .buttons { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

