:root {
  --bg: #f2f7f4;
  --surface: #ffffff;
  --ink: #102118;
  --muted: #5f6f66;
  --brand: #0d7a57;
  --brand-2: #1e9b77;
  --line: #d7e4dd;
  --shadow: 0 18px 45px rgba(16, 33, 24, 0.08);
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 10% 10%, #e7f6ef 0, #f2f7f4 40%, #f6faf8 100%);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.sitename {
  font-family: "Space Grotesk", sans-serif;
}

.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 24px));
  height: 76px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 122, 87, 0.12);
  box-shadow: 0 8px 30px rgba(16, 33, 24, 0.1);
  z-index: 999;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.main {
  margin-left: 0;
  padding-top: 112px;
}

@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 0 !important;
  }
}

.logo {
  gap: 10px;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(13, 122, 87, 0.25);
}

.header .sitename {
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}

.navmenu ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu a {
  color: #204134;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 14px;
  transition: all 0.2s ease;
}

.navmenu a:hover,
.navmenu .active {
  background: rgba(13, 122, 87, 0.12);
  color: var(--brand);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf6f1;
  color: var(--brand);
}

.hero {
  padding: 58px 0 26px;
  position: relative;
}

.hero .row {
  align-items: stretch !important;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(13, 122, 87, 0.15), rgba(30, 155, 119, 0.05));
  z-index: -1;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand);
}

.hero h2 {
  font-size: clamp(2rem, 4.7vw, 3.5rem);
  line-height: 1.06;
  margin: 0.2rem 0 1rem;
}

.hero-copy {
  color: #243d31;
  font-size: 1.03rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.25rem 0;
}

.btn-primary-solid,
.btn-outline-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-primary-solid {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(13, 122, 87, 0.28);
}

.btn-primary-solid:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-soft {
  color: var(--brand);
  border: 1px solid rgba(13, 122, 87, 0.35);
  background: #f5fcf8;
}

.btn-outline-soft:hover {
  color: #08543b;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-row span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #2b4538;
}

.hero-card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-card img {
  width: 100%;
  height: clamp(360px, 58vh, 620px);
  object-fit: cover;
  object-position: center 18%;
}

.hero-card-body {
  padding: 18px;
}

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

.hero-card-body ul {
  margin: 0;
  padding-left: 1rem;
  color: #324d40;
}

.section {
  padding: 62px 0;
}

.light-background {
  background: transparent;
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.about-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

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

.about-card,
.project-card,
.contact-card,
.timeline-item,
.award-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-card,
.project-card,
.contact-card,
.timeline-item {
  padding: 18px;
}

.about-card p,
.project-card p,
.contact-card p {
  color: #334d41;
}

.skills-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-col {
  padding: 18px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.skill-col h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.skills .progress {
  height: auto;
  background: transparent;
  border-radius: 0;
  margin-bottom: 14px;
}

.skills .progress .skill {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2b4639;
  margin-bottom: 6px;
}

.skills .progress-bar-wrap {
  height: 8px;
  border-radius: 999px;
  background: #e4efe9;
}

.skills .progress-bar {
  width: 0;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-radius: 999px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline .meta {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
}

.timeline ul {
  margin: 0;
  padding-left: 1rem;
  color: #354f42;
}

.award-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
}

.award-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.award-link {
  font-weight: 700;
  color: var(--brand);
}

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

.project-card span {
  display: block;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--brand);
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.contact-card a {
  color: #1d5743;
  font-weight: 700;
}

.footer {
  background: transparent;
  padding: 30px 0 45px;
}

.footer p {
  color: #678073;
  margin: 0;
}

.scroll-top {
  background: var(--brand);
}

@media (max-width: 1199px) {
  .header {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    justify-content: flex-start;
    gap: 12px;
  }

  .header .header-toggle {
    display: inline-flex !important;
    margin-left: auto;
  }

  .navmenu {
    display: none;
  }

  .header.header-show .navmenu {
    display: block;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 10px;
  }

  .header.header-show .navmenu ul {
    flex-direction: column;
  }

  .social-links {
    display: none;
  }

  .about-grid,
  .project-grid,
  .contact-grid,
  .skills-matrix,
  .award-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-card img {
    height: clamp(300px, 52vw, 460px);
    object-position: center 14%;
  }

  .main {
    padding-top: 106px;
  }
}

@media (max-width: 575px) {
  .hero-card img {
    height: 320px;
    object-position: center 10%;
  }
}
