:root {
  --bg: #f3f8f2;
  --bg-2: #e6f2e5;
  --surface: #ffffff;
  --surface-soft: #f7fbf7;
  --text: #13351d;
  --muted: #4e6d57;
  --primary: #2d8f4b;
  --primary-dark: #1f6b37;
  --line: #cde3d1;
  --shadow: 0 12px 30px rgba(24, 75, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.65;
}

.side-leaf-art {
  position: fixed;
  left: -58px;
  top: 34%;
  width: clamp(120px, 14vw, 210px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 2;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
}

p {
  margin: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 16%, rgba(45, 143, 75, 0.15), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(72, 171, 95, 0.14), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(31, 107, 55, 0.1), transparent 30%),
    linear-gradient(to top, rgba(31, 107, 55, 0.03) 0%, transparent 45%);
  pointer-events: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
}

.nav-wrap {
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.leaf {
  font-size: 1.1rem;
}

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 107, 55, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-outline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-outline::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: var(--primary);
  transition: height 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--primary);
}

.btn-outline:hover::before {
  height: 100%;
}

.hero-section {
  padding: 8rem 0 3rem;
  overflow: hidden;
}

.hero {
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 1.7rem 2.2rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 44rem;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wave {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave-animation 2.5s infinite;
}

@keyframes wave-animation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0deg); }
}

.hero-sub {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 42rem;
}

.hero-intro {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0;
}

.hero-cta {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-image-outline {
  --hero-wave-shape: polygon(
    8% 3%, 24% 0%, 41% 4%, 58% 1%, 75% 4%, 92% 8%,
    99% 23%, 96% 41%, 100% 59%, 97% 77%, 90% 93%,
    73% 98%, 56% 95%, 39% 99%, 22% 95%, 7% 90%,
    1% 73%, 4% 56%, 0% 39%, 3% 23%
  );
  width: min(470px, 100%);
  aspect-ratio: 1 / 1;
  position: relative;
  padding: 0.85rem;
  background: linear-gradient(145deg, rgba(45, 143, 75, 0.38), rgba(27, 93, 49, 0.18));
  clip-path: var(--hero-wave-shape);
  -webkit-clip-path: var(--hero-wave-shape);
  box-shadow: 0 18px 34px rgba(20, 75, 45, 0.22);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: var(--hero-wave-shape);
  -webkit-clip-path: var(--hero-wave-shape);
  display: block;
}

.contact-bar-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.contact-bar {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-items,
.social-items {
  display: flex;
  gap: 0.7rem 1.2rem;
  flex-wrap: wrap;
}

.contact-chip,
.social-chip {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-chip i,
.social-chip i {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.contact-chip img,
.social-chip img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.soft-section,
.block-section {
  padding: 4.4rem 0;
}

.soft-section {
  background: rgba(245, 252, 245, 0.7);
}

.with-top-border {
  border-top: 1px solid var(--line);
}

.section-title-row {
  padding-bottom: 1.1rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(19, 53, 29, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.section-index {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 600;
}

.label-dark {
  color: var(--text);
  font-weight: 600;
}

.language-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.language-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.language-pills span {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 1.1rem 1.5rem;
  align-items: start;
}

.experience-side-art {
  position: sticky;
  top: 5.2rem;
  display: flex;
  justify-content: center;
}

.experience-side-art img {
  width: 100%;
  max-width: 160px;
  opacity: 0.9;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 200px) minmax(0, 1fr);
  gap: 1rem;
}

.timeline-left h3 {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
}

.timeline-left p {
  color: var(--muted);
}

.timeline-mid {
  position: relative;
  padding-left: 1.2rem;
}

.timeline-mid::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: -2.25rem;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child .timeline-mid::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: -0.3rem;
  top: 0.2rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
}

.timeline-mid p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 600;
}

.timeline-right p {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.item-tags span {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #edf8ef;
  border: 1px solid #bfe1c7;
  color: #1f6b37;
}

.edu-skill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem 2rem;
  align-items: start;
}

.education-line-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.education-line-item {
  display: block;
}

.education-line-content {
  width: 100%;
}

.education-line-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.education-line-item .education-meta {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.education-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.education-org-logo {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  border-radius: 4px;
  display: inline-block;
}

.education-date {
  white-space: nowrap;
}

.education-line-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}

.skill-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf8;
  min-height: 180px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

.skill-card-logo {
  width: 100%;
  max-width: 4.6rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.skill-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.skill-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.latest-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.work-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.06rem;
}

.work-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.credential-org-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.credential-org-link > img:first-of-type {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.credential-org-link > img.credential-org-logo--round {
  border-radius: 50%;
}

.credential-org-link .credential-external-icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
  object-fit: contain;
  opacity: 0.75;
  flex-shrink: 0;
}

.work-card a {
  margin-top: 0.6rem;
  display: inline-flex;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
}

.credential-link-icon {
  align-items: center;
}

.credential-link-icon img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.label {
  color: var(--muted);
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #accab2;
  background: transparent;
  padding: 0.5rem 0;
  color: var(--text);
  font: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-status {
  min-height: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.social-links,
.direct-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
}

.social-links a,
.direct-links a {
  color: var(--muted);
  text-decoration: none;
}

.direct-links a {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.2rem;
}

.site-footer {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(45, 143, 75, 0.16);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-layout,
  .experience-layout,
  .timeline-item,
  .edu-skill-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    justify-content: center;
  }

  .timeline-mid::before {
    bottom: -1rem;
  }

  .experience-side-art {
    justify-content: flex-start;
  }

  .experience-side-art img {
    max-width: 130px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-side,
  .social-links,
  .direct-links {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .side-leaf-art {
    display: none;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section {
    padding-top: 9.5rem;
  }

  .field-row,
  .latest-work-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-bar {
    justify-content: flex-start;
  }
}

@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .no-print,
  .navbar,
  .site-footer,
  .side-leaf-art,
  #download-pdf {
    display: none !important;
  }

  * {
    box-shadow: none !important;
    background: transparent !important;
  }
}
