:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #101828;
  --text: #172033;
  --muted: #667085;
  --line: #d9e0ea;
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --accent: #f59e0b;
  --soft: #e6f4f1;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 251, 0.9);
  border-bottom: 1px solid rgba(217, 224, 234, 0.75);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--surface-strong);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #ffffff;
  font-size: 0.9rem;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(52px, 8vw, 110px) clamp(20px, 5vw, 72px) 72px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.12), transparent 34%),
    var(--bg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--surface-strong);
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--surface-strong);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  color: var(--surface-strong);
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--surface-strong);
}

.profile-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.avatar {
  width: 116px;
  height: 116px;
  border: 4px solid var(--soft);
  border-radius: 50%;
  object-fit: cover;
}

.profile-panel p,
.project-card p,
.timeline p,
.footer p {
  color: var(--muted);
}

.quick-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
  font-weight: 700;
}

.quick-facts dd {
  margin: 0;
  color: var(--surface-strong);
  font-weight: 800;
  text-align: right;
}

.section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

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

.project-card {
  display: flex;
  min-height: 365px;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card.featured {
  background: var(--surface-strong);
  color: #ffffff;
}

.project-card.featured h3,
.project-card.featured a {
  color: #ffffff;
}

.project-card.featured p {
  color: #cbd5e1;
}

.project-topline,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-topline {
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-type,
.project-status,
.tag-list li {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card.featured .project-type,
.project-card.featured .project-status,
.project-card.featured .tag-list li {
  background: rgba(255, 255, 255, 0.11);
  color: #e0f2f1;
}

.tag-list {
  margin: auto 0 20px;
  padding: 0;
  list-style: none;
}

.project-card a {
  color: var(--primary);
  font-weight: 800;
}

.split-section {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

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

.skill-columns > div {
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
  content: "✓";
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 900;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin: 30px clamp(20px, 5vw, 72px) 80px;
  padding: clamp(26px, 5vw, 48px);
  background: var(--surface-strong);
  border-radius: 8px;
  color: #ffffff;
}

.contact-section h2 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
}

.contact-section .eyebrow {
  color: var(--accent);
}

.footer {
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .project-grid,
  .skill-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.3rem, 16vw, 4rem);
  }

  .quick-facts div,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-facts dd {
    text-align: left;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}
