:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f1f5f2;
  --text: #1f2933;
  --muted: #5d6673;
  --line: #dbe3dc;
  --accent: #216869;
  --accent-dark: #153f40;
  --accent-soft: #d8ebe7;
  --gold: #d79a32;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 104, 105, 0.14), transparent 28%),
    linear-gradient(135deg, #fbfaf7 0%, #eef5f0 100%);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
}

.brand {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-list {
  align-items: center;
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-link {
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.hero {
  padding: 76px 0 96px;
}

.hero-layout {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.hero-content {
  max-width: 760px;
}

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

h1,
.section-title {
  color: var(--text);
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.3rem);
  max-width: 880px;
}

.lead {
  color: var(--muted);
  font-size: 1.16rem;
  margin-top: 22px;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.profile-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 104, 105, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  padding: 28px;
}

.profile-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 2.5rem;
  font-weight: 900;
  justify-content: center;
  width: 118px;
}

.profile-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 4px;
}

.profile-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.profile-stats div {
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 16px;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: var(--accent-dark);
  font-size: 1.45rem;
}

.profile-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 88px 0;
}

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

.section-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy p + p {
  margin-top: 16px;
}

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

.card,
.project-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
}

.card {
  min-height: 230px;
  padding: 26px;
}

.card h3,
.project-card h3 {
  color: var(--accent-dark);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p,
.project-card p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 18px;
}

.tag-list li {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 800;
  padding: 7px 10px;
}

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

.project-card {
  overflow: hidden;
}

.project-visual {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(33, 104, 105, 0.88), rgba(215, 154, 50, 0.86)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 12px);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  min-height: 150px;
  padding: 20px;
}

.project-visual-alt {
  background:
    linear-gradient(135deg, rgba(31, 41, 51, 0.9), rgba(33, 104, 105, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 14px);
}

.project-visual span {
  font-size: 3rem;
  font-weight: 900;
}

.project-body {
  padding: 24px;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.contact-card {
  display: grid;
  font-style: normal;
  gap: 12px;
  padding: 24px;
}

.contact-card a {
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  overflow-wrap: anywhere;
  padding-bottom: 12px;
  text-decoration: none;
}

.contact-card a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-card a:hover,
.contact-card a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-layout {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-layout a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(215, 154, 50, 0.55);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .navbar,
  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    flex-wrap: wrap;
  }

  .hero {
    padding: 48px 0 68px;
  }

  .hero-layout,
  .section-layout,
  .contact-layout,
  .grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav-link {
    padding: 9px 10px;
  }

  .profile-card,
  .card,
  .project-body,
  .contact-card {
    padding: 20px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }
}
