/* ===================================================
   Design tokens
=================================================== */
:root {
  --color-bg: #FAF6F1;
  --color-surface: #FFFFFF;
  --color-text: #2E2A26;
  --color-text-muted: #6B645C;
  --color-border: #E8E1D9;
  --color-accent: #7C9885;
  --color-accent-dark: #5C7A67;
  --color-accent-soft: #C9D6C4;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --max-width: 1120px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(46, 42, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(46, 42, 38, 0.10);
}

/* ===================================================
   Reset & base
=================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

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

.section { padding: 96px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 40px;
}

/* ===================================================
   Buttons
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ===================================================
   Header / Nav
=================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: var(--color-accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ===================================================
   Hero
=================================================== */
.hero {
  padding: 120px 0 96px;
  background:
    radial-gradient(circle at 15% 20%, rgba(124,152,133,0.12), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(201,214,196,0.35), transparent 40%);
}

.hero-inner { max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 10px;
}

.tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 34px;
  max-width: 600px;
}

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

/* ===================================================
   About
=================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
}

.about-text p { color: var(--color-text-muted); margin-bottom: 18px; }
.about-text .btn { margin-top: 8px; }

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-skills {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  align-self: start;
}

.about-skills h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.skills-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 20px;
}
.skills-list li:last-child { border-bottom: none; }
.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ===================================================
   Experience
=================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 48px;
}

.timeline-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 4px solid var(--color-accent);
}

.timeline-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.timeline-heading h3 { font-size: 1.15rem; }

.timeline-dates {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.timeline-org {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-list li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 20px;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.education-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

.education-block h3 { font-size: 1.05rem; margin-bottom: 18px; }

.education-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.education-list li:last-child { border-bottom: none; }

.edu-degree { color: var(--color-text-muted); }
.edu-degree strong { color: var(--color-text); }

.edu-date {
  color: var(--color-text-muted);
  white-space: nowrap;
  margin-left: 16px;
}

/* ===================================================
   Projects
=================================================== */
.projects { background: var(--color-surface); }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-thumb {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}

.thumb-icon { font-size: 1.8rem; }
.thumb-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }

.thumb-a { background: linear-gradient(135deg, #7C9885, #5C7A67); }
.thumb-b { background: linear-gradient(135deg, #3D5A6C, #2C4250); }
.thumb-c { background: linear-gradient(135deg, #C9B458, #A89440); }
.thumb-d { background: linear-gradient(135deg, #81B29A, #4F8267); }
.thumb-e { background: linear-gradient(135deg, #6B8F71, #435C46); }
.thumb-f { background: linear-gradient(135deg, #6B645C, #4A453F); }

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: rgba(124, 152, 133, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-accent-dark);
}
.card-link:hover { text-decoration: underline; }

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}

/* ===================================================
   Contact
=================================================== */
.contact-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.contact .section-intro { margin-left: auto; margin-right: auto; }

.contact-links {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.contact-links a { font-weight: 600; color: var(--color-text); }
.contact-links a:hover { color: var(--color-accent-dark); }
.contact-links .dot { margin: 0 12px; }

/* ===================================================
   Footer
=================================================== */
.site-footer { border-top: 1px solid var(--color-border); padding: 28px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.back-to-top { font-weight: 600; }
.back-to-top:hover { color: var(--color-accent-dark); }

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 96px 0 64px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }

  .main-nav.open { display: flex; }
}
