:root {
  --ink: #111827;
  --muted: #5f6877;
  --soft: #f5f7fb;
  --line: #dde3ec;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #134e4a;
  --gold: #c58a2b;
  --navy: #172033;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.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(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(221, 227, 236, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-list li,
.contact-card a,
.contact-card p {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 0.86rem;
}

.site-nav {
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section-pad {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 78px);
  background:
    linear-gradient(130deg, rgba(15, 118, 110, 0.12), rgba(197, 138, 43, 0.08) 38%, transparent 70%),
    #fbfcfe;
}

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

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 4.6vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-copy {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button svg,
.contact-list svg,
.contact-card svg,
.skills-grid svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--teal-dark);
  box-shadow: 0 16px 36px rgba(19, 78, 74, 0.25);
}

.button.secondary {
  color: var(--teal-dark);
  border: 1px solid rgba(19, 78, 74, 0.25);
  background: #ffffff;
}

.profile-panel {
  padding: clamp(20px, 3vw, 34px);
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-panel img {
  width: min(260px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto 26px;
  border: 10px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  margin-bottom: 4px;
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-panel p:not(.profile-name) {
  color: rgba(255, 255, 255, 0.76);
}

.contact-list {
  display: grid;
  gap: 13px;
  padding: 22px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.contact-list li {
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
}

.contact-list a {
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-weight: 800;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.social-links a:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  padding: 30px clamp(18px, 4vw, 44px);
  background: #ffffff;
}

.stats-band strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skills-grid article,
.cert-grid article,
.project-columns article,
.timeline-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skills-grid article {
  min-height: 220px;
  padding: 24px;
}

.skills-grid svg {
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
  color: var(--teal);
}

.skills-grid p,
.timeline-item p,
.timeline-item li,
.project-columns p,
.cert-grid p,
.cert-grid small,
.language-list,
.contact-section p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
  background: var(--soft);
}

.sticky-heading {
  position: sticky;
  top: 110px;
  align-self: start;
}

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

.timeline-item {
  position: relative;
  padding: 28px 28px 26px 34px;
  overflow: hidden;
}

.timeline-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: linear-gradient(var(--teal), var(--gold));
}

.date {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
}

.meta {
  margin-bottom: 14px;
  font-weight: 700;
}

.timeline-item ul {
  padding-left: 20px;
  margin: 0;
}

.project-section {
  background: var(--navy);
  color: #ffffff;
}

.project-section .eyebrow {
  color: #6ee7df;
}

.project-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-columns > div {
  display: grid;
  gap: 14px;
}

.project-columns h3 {
  margin-bottom: 8px;
  color: #f5d59b;
  font-size: 1.4rem;
}

.project-columns article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.project-columns p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cert-grid article {
  padding: 22px;
}

.cert-grid h3 {
  font-size: 1rem;
}

.cert-grid p {
  margin-bottom: 8px;
  font-weight: 700;
}

.cert-grid span,
.cert-grid small {
  display: block;
}

.cert-grid span {
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 800;
}

.language-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: #f8faf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  font-weight: 800;
}

.language-list span {
  padding: 13px 18px;
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card a,
.contact-card p {
  gap: 12px;
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card svg {
  color: var(--teal);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #0d1424;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .stats-band,
  .project-columns,
  .language-band {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid article {
    min-height: auto;
  }

  .language-list {
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .profile-panel,
  .timeline-item,
  .contact-card {
    padding: 22px;
  }
}
