:root {
  --cream: #f5efe4;
  --card-bg: #faf6ee;
  --ink: #2e2a22;
  --ink-soft: #6b6355;
  --sage: #7c8f6e;
  --sage-dark: #5c6e51;
  --terracotta: #bd6a4b;
  --sky: #a9c2cc;
  --tan: #d9c7a8;
  --radius-lg: 32px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #cbd9c6 0%, #a9c2cc 100%);
  overflow-x: hidden;
}

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

.page-bg {
  min-height: 100vh;
  padding: 24px 5vw 48px;
}

/* ---------- Hero card ---------- */

.hero-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 0 40px 40px;
  box-shadow: 0 20px 60px rgba(46, 42, 34, 0.12);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto 20px;
  padding: 14px 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo span { color: var(--sage-dark); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.resume-btn {
  background: var(--sage-dark);
  color: var(--cream);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.resume-btn:hover { background: var(--ink); }

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 40px;
  margin: 0 -40px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #eef2e6 0%, #e6eef1 100%);
  border-radius: var(--radius-lg);
}

@media (min-width: 701px) {
  .hero { flex-wrap: nowrap; }
  .hero-text { flex-shrink: 1; min-width: 0; }
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 320px;
}

.pill-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
}

.pill-btn:hover { background: var(--sage-dark); }

.pill-btn.dark { background: var(--sage-dark); }

.hero-visual {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: min(460px, 100%);
  max-width: 100%;
}

.blob {
  aspect-ratio: 1402 / 1122;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blob::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sky) 55%, var(--terracotta) 100%);
  border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%;
  opacity: 0.85;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stats {
  display: flex;
  border-top: 1px solid rgba(46, 42, 34, 0.12);
  padding-top: 32px;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 140px;
  padding-right: 40px;
  border-right: 1px solid rgba(46, 42, 34, 0.12);
}

.stat:last-child { border-right: none; }

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
}

.stat span {
  color: var(--ink-soft);
  font-size: 14px;
}

.stat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.stat-link-label {
  font-size: 22px;
  font-weight: 800;
}

.stat-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 0.2s, color 0.2s;
}

.stat-link:hover .stat-chevron {
  transform: translateX(4px);
  color: var(--sage-dark);
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 12px 0;
}

.section.alt { padding-top: 56px; }

.section h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-note {
  color: var(--ink-soft);
  margin-top: 10px;
  font-size: 14px;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 130px 32px 1fr;
  column-gap: 8px;
  margin-bottom: 28px;
}

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

.timeline-dates {
  padding-top: 34px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -28px;
  left: 50%;
  width: 2px;
  background: rgba(46, 42, 34, 0.18);
  transform: translateX(-50%);
}

.timeline-entry:first-child .timeline-marker::before { top: 41px; }
.timeline-entry:last-child .timeline-marker::before { bottom: calc(100% - 41px); }

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage-dark);
  border: 3px solid var(--cream);
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

.timeline-content {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid rgba(46, 42, 34, 0.08);
}

.timeline-content h3 { font-size: 20px; }

.timeline-company {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  margin-top: 2px;
}

.timeline-content > p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.timeline-project {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--sage);
}

.timeline-project h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.timeline-project p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  background: var(--cream);
  border: 1px solid rgba(46, 42, 34, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(46, 42, 34, 0.08);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sky), var(--tan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h3 { padding: 20px 20px 0; font-size: 18px; }
.project-card p { padding: 8px 20px 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.text-link {
  display: inline-block;
  margin: 14px 20px 20px;
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

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

.contact-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 48px 40px;
  background-image: url('../assets/images/Bg.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px rgba(46, 42, 34, 0.12);
}

.contact-card h2 { text-align: center; }

.contact-wrap {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 32px auto 0;
}

.contact-info {
  display: flex;
  width: 75%;
  margin: 0 auto 12px;
}

.social-row {
  display: flex;
  gap: 12px;
  width: 75%;
  margin: 0 auto 28px;
}

.social-pill {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--sage-dark);
  border: 1px solid rgba(46, 42, 34, 0.12);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-pill:hover { background: var(--ink); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 75%;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(46, 42, 34, 0.18);
  background: var(--cream);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sage);
}

.contact-form button {
  margin-top: 4px;
  background: var(--sage-dark);
  color: var(--cream);
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover { background: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-text h1 { font-size: 40px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .navbar { padding: 12px 20px; }
  .hero { padding: 32px 20px 40px; margin: 0 -20px; }
  .hero-visual { margin: 0 auto; }
  .stats { flex-direction: column; gap: 20px; }
  .stat { border-right: none; padding-right: 0; }
  .hero-card { padding: 0 20px 32px; }
  .contact-card { padding: 28px 20px; }
  .contact-info, .social-row, .contact-form { width: 100%; }
  .social-pill { padding: 8px; gap: 4px; }
  .social-pill svg { width: 14px; height: 14px; }
}

@media (max-width: 340px) {
  .social-pill { padding: 6px; gap: 3px; }
  .social-pill svg { width: 12px; height: 12px; }
}

@media (max-width: 600px) {
  .timeline-entry {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .timeline-marker { display: none; }
  .timeline-dates {
    padding-top: 0;
    text-align: left;
  }
}
