:root {
  --bg: #08090c;
  --bg-alt: #0e1013;
  --surface: #15171c;
  --surface-2: #1a1d24;
  --border: #26292f;
  --text: #f2efe8;
  --text-dim: #96999f;
  --accent: #d4af6a;
  --accent-soft: #e8cf9a;
  --accent-2: #4fd6c4;
  --radius: 16px;
  --max-width: 1000px;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f4;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f1ea;
    --border: #e6e1d6;
    --text: #1a1a1a;
    --text-dim: #66665f;
    --accent: #a9793a;
    --accent-soft: #8a5e26;
    --accent-2: #0f8f80;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--accent); color: #08090c; }

/* Nav */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  #navbar { background: rgba(250, 248, 244, 0.78); }
}

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

.nav-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.3px;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

#nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  transition: color 0.2s;
  position: relative;
}

#nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

#nav-links a:not(.nav-cta):hover::after { width: 100%; }

#nav-links a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: #08090c !important;
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 130px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: -20%;
  right: -20%;
  height: 560px;
  background: radial-gradient(480px 380px at 50% 40%, rgba(212, 175, 106, 0.16), transparent 100%),
              radial-gradient(420px 340px at 38% 65%, rgba(79, 214, 196, 0.10), transparent 100%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }

.hero-avatar {
  width: 116px;
  height: 116px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 3px;
  box-shadow: 0 0 0 1px var(--border), 0 20px 40px -14px rgba(212, 175, 106, 0.35);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 22px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 36px;
  letter-spacing: 0.2px;
}

.hero-meta-dot { color: var(--accent); }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #08090c;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 106, 0.5);
}

.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(212, 175, 106, 0.65); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

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

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-title {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0 0 32px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-dim);
  margin: -20px 0 40px;
}

.about-content p {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 760px;
}

.about-content em {
  color: var(--accent-soft);
  font-style: normal;
  font-weight: 600;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(212, 175, 106, 0.5);
}

.timeline-marker-alt {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(79, 214, 196, 0.4);
}

.timeline-content h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 600;
}

.timeline-company {
  color: var(--accent);
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 0.92rem;
}

.timeline-date {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.timeline-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 640px;
}

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

.skill-group h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--accent);
  letter-spacing: 0.2px;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  transition: border-color 0.2s, transform 0.2s;
}

.tag-list li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* AI section */
.ai-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.ai-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 14px;
}

.ai-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.ai-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* Recommendations */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rec-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.rec-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 16px;
}

.rec-card footer {
  color: var(--text-dim);
  font-size: 0.83rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-card footer strong { color: var(--accent); font-size: 0.92rem; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 50px 24px 70px;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer p { font-family: var(--serif); font-size: 1rem; margin-bottom: 6px; }

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 720px) {
  #nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  #nav-links.open { display: flex; }
  #nav-toggle { display: block; }
  .skills-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
}
