:root {
  --navy: #2C3E50;
  --accent: #A0876A;
  --accent-hover: #8a7059;
  --bg: #FAF8F5;
  --card-bg: #ffffff;
  --text: #2a2a2a;
  --muted: #5a5650;
  --divider: #ddd8d0;
}
 
/* ─── Base ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }
 
body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
 
/* ─── Header ────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--navy);
  color: white;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
 
header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  margin: 0;
  color: white;
  letter-spacing: -0.01em;
}
 
header .tagline {
  font-size: 0.78rem;
  margin: 0.3rem 0 0.6rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
 
nav a {
  margin: 0 6px;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
}
 
nav a:hover {
  background-color: rgba(255,255,255,0.12);
  color: white;
}
 
nav a.active {
  background-color: rgba(255,255,255,0.18);
}
 
/* ─── Section base ──────────────────────────────────── */
.section {
  padding: 2.5rem 1rem;
  max-width: 1100px;
  margin: 0 auto 1rem;
  display: block;
  scroll-margin-top: 90px;
}
 
.section h2 {
  font-family: 'Lora', Georgia, serif;
  color: var(--navy);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.25rem;
}
 
.about-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.08);
  padding: 2.5rem 2.5rem 3rem;
}
 
.about-card h2 {
  margin-bottom: 0;
}
 
/* ─── Hero ──────────────────────────────────────────── */
.hero {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.08);
  padding: 3.5rem 2.5rem;
  margin-bottom: 2rem;
  max-width: 1100px;
}
 
.hero-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: nowrap;
}
 
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
 
.hero-img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--accent);
  box-shadow: 0 6px 20px rgba(44,62,80,0.15);
  display: block;
}
 
/* Resume + LinkedIn side by side */
.hero-actions {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}
 
.hero-resume-btn {
  flex: 1;
  text-align: center;
  box-sizing: border-box;
  font-size: 0.88rem;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
}
 
.hero-linkedin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  flex-shrink: 0;
}
 
.linkedin-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  display: block;
}
 
/* Right column: text */
.hero-text {
  flex: 1;
  min-width: 0;
}
 
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
 
.hero-text h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.25;
  text-align: left;
}
 
.hero-bio {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.5rem;
  max-width: 560px;
}
 
/* Skills grid */
.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  border-top: 1px solid var(--divider);
  padding-top: 1.25rem;
}
 
.hero-highlights li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}
 
.highlight-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(160,135,106,0.12);
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 6px;
}
 
/* ─── Buttons ───────────────────────────────────────── */
.btn, button {
  padding: 0.7rem 1.2rem;
  background: var(--navy);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
 
.btn:hover, button:hover {
  background: var(--accent);
}
 
/* ─── Contact ───────────────────────────────────────── */
#contact {
  display: block;
  padding: 3rem 1rem;
}
 
#contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}
 
#contact form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}
 
#contact input,
#contact textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--divider);
  border-radius: 8px;
  transition: border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}
 
#contact input:focus,
#contact textarea:focus {
  border-color: var(--accent);
  outline: none;
}
 
#contact label {
  text-align: left;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
 
#contact button {
  background-color: var(--navy);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-end;
  transition: background-color 0.2s;
}
 
#contact button:hover { background-color: var(--accent); }
 
/* ─── Scroll-to-top ─────────────────────────────────── */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: var(--navy);
  color: #fff;
  border: none;
  border-radius: 30%;
  width: 48px;
  height: 48px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
 
#scrollToTopBtn:hover {
  background-color: var(--accent);
  transform: scale(1.1);
}
 
/* ─── Timeline ──────────────────────────────────────── */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}
 
.timeline-entry {
  padding: 0 0 2rem 1.25rem;
  border-left: 2px solid var(--divider);
  position: relative;
}
 
.timeline-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
 
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
 
.timeline-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
 
.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
 
.timeline-title a {
  color: inherit;
  text-decoration: none;
}
 
.timeline-title a:hover { text-decoration: underline; }
 
.timeline-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
 
.leadership-timeline { margin-top: 1.5rem; }
 
/* ─── Project cards ─────────────────────────────────── */
.portfolio-subsection { margin-bottom: 2rem; }
 
.project {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.07);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
 
.project img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
 
/* ─── Footer ────────────────────────────────────────── */
.footer {
  background-color: var(--navy);
  padding: 1.5rem 1rem;
  color: white;
}
 
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
 
.footer-contact a {
  color: #b0bec8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
 
.footer-contact a:hover { color: white; }
 
.footer-contact .icon-link img {
  width: 22px;
  height: 22px;
  transition: transform 0.2s;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}
 
.footer-contact .icon-link img:hover {
  transform: scale(1.2);
  opacity: 1;
}
 
/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1.25rem;
  }
 
  .about-card {
    padding: 1.75rem 1.25rem 2rem;
  }
 
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }
 
  .hero-left {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
 
  .hero-img {
    width: 160px;
    height: 200px;
  }
 
  .hero-actions {
    width: 100%;
    max-width: 280px;
  }
 
  .hero-text h2 {
    font-size: 1.5rem;
  }
 
  .hero-highlights {
    grid-template-columns: 1fr;
  }
 
  nav a {
    display: inline-block;
    margin: 4px 4px;
    font-size: 0.85rem;
  }
 
  .section {
    padding: 1.5rem 0.75rem;
  }
 
  header h1 { font-size: 1.7rem; }
 
  #contact form {
    padding: 1.25rem;
    box-shadow: none;
  }
 
  #contact button {
    align-self: stretch;
    width: 100%;
  }
}
 
@media (min-width: 1440px) {
  .section { max-width: 1200px; }
}
 
/* Contact layout helpers */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}
 
.contact-form { flex: 1 1 60%; min-width: 280px; }
