/* ============================================
   DESIGN SYSTEM — CSS Custom Properties
   ============================================ */
:root {
  --bg-primary: #FAF7F2;
  --bg-surface: #F2EDE4;
  --accent: #C1440E;
  --accent-light: #F5E6DF;
  --text-primary: #1A1410;
  --text-secondary: #6B5B4E;
  --border: #DDD5C8;
  --text-on-accent: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Serif 4', serif;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

section {
  scroll-margin-top: 80px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 64px 0;
}

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

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

/* ============================================
   UTILITY
   ============================================ */
.accent-text {
  color: var(--accent);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 68px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.nav-resume-btn {
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
}

.nav-resume-btn:hover {
  background: var(--accent) !important;
  color: var(--text-on-accent) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 40px;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }

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

  .nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  padding: 40px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 0 0 55%;
}

.hero-photo {
  flex: 0 0 45%;
  display: flex;
  justify-content: flex-end;
}

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-label-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.05;
}

.open-to-work-badge {
  display: inline-block;
  background: #2D6A2D;
  color: #ffffff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.hero-tagline {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 20px;
  line-height: 1.6;
}

.hero-location {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1.5px solid var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #A33A0C;
  border-color: #A33A0C;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--text-on-accent);
}

.hero-icons {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.hero-icons a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.hero-icons a:hover {
  color: var(--accent);
}

.hero-img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--border);
}

.hero-img-fallback {
  width: 420px;
  height: 420px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: left;
    gap: 40px;
  }

  .hero-text {
    flex: 1;
  }

  .hero-photo {
    flex: 1;
    justify-content: center;
  }

  .hero-img,
  .hero-img-fallback {
    width: 300px;
    height: 300px;
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   SKILLS — Compact Definition Layout
   ============================================ */
.skills-list {
  border-top: 1px solid var(--border);
}

.skill-row {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.skill-category {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  width: 30%;
  flex-shrink: 0;
}

.skill-values {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--text-primary);
  width: 70%;
}

@media (max-width: 768px) {
  .skill-row {
    flex-direction: column;
    gap: 4px;
  }

  .skill-category,
  .skill-values {
    width: 100%;
  }
}

/* ============================================
   EXPERIENCE — TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

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

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

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 28px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
  z-index: 1;
}

.timeline-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-company {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-position {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.timeline-date {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-project-block {
  margin-top: 12px;
}

.timeline-project-name {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.timeline-tech-pills .pill {
  font-size: 12px;
  padding: 4px 12px;
}

.timeline-bullets {
  list-style: disc;
  margin-left: 20px;
  margin-top: 16px;
}

.timeline-bullets li {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 8px;
}

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

.timeline-divider {
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.timeline-subproject {
  margin-top: 16px;
}

/* Keep .pill styles for experience tech pills */
.pill {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #E8C4B5;
  border-radius: 100px;
  padding: 6px 16px;
  transition: all 0.2s ease;
  cursor: default;
}

.pill:hover {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -30px;
  }

  .timeline-card {
    padding: 20px 24px;
  }

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

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

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  transition: all 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 4px 20px rgba(193, 68, 14, 0.08);
  transform: translateY(-2px);
}

.project-card--featured {
  grid-column: 1 / -1;
  border-left: 4px solid var(--accent);
  position: relative;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.featured-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
}

.project-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.8;
}

.project-bullets {
  list-style: disc;
  margin-left: 20px;
  margin-top: 12px;
}

.project-bullets li {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.project-bullets li:last-child {
  margin-bottom: 0;
}

.project-footer {
  margin-top: 16px;
}

.project-link {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--accent);
}

.project-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: 1;
  }
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
}

.cert-name {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.cert-issuer {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EDUCATION
   ============================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.edu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
}

.edu-degree {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.edu-focus {
  font-weight: 400;
  font-style: italic;
}

.edu-institution {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--accent);
  margin-top: 8px;
}

.edu-meta {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

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

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  position: relative;
}

.testimonial-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial-text {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.85;
  font-style: italic;
  margin-top: 40px;
  border: none;
  padding: 0;
}

.testimonial-attribution {
  margin-top: 20px;
}

.testimonial-name {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.testimonial-role {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1A1410;
  padding: 60px 40px;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #FAF7F2;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 24px auto;
}

.footer-icons a {
  color: #A89485;
  display: flex;
  align-items: center;
}

.footer-icons a:hover {
  color: var(--accent);
}

.footer-divider {
  border-top: 1px solid #3A2E28;
  margin: 24px 0;
}

.footer-copyright {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #6B5B4E;
}

/* ============================================
   MOBILE SECTION PADDING
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 24px;
  }

  .section-heading {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }
}
