:root {
  --ink: #111827;
  --muted: #5b6472;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --line: #dfe4ea;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #d97706;
  --coral: #d95d4f;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #ffffff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 251, 248, 0.94);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-photo {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.site-header.is-scrolled .brand-photo {
  border-color: rgba(15, 118, 110, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--amber);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 32;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.88) 0%, rgba(5, 10, 18, 0.68) 43%, rgba(5, 10, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.25), rgba(5, 10, 18, 0.58));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 72px;
}

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

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.32);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-grid,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.intro-copy p,
.contact-section p,
.skill-card p,
.project-card p,
.education-card p,
.experience-card li,
.role-line {
  color: var(--muted);
   font-size: 14px;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.stats-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.stats-band div {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: #ffffff;
}

.stats-band strong {
  color: var(--teal-dark);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
}

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

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

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

.skill-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

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

.skill-card h3 {
  color: var(--teal-dark);
}

.projects-section {
  padding-top: 44px;
}

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

.project-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 28px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.project-top span {
  color: var(--coral);
  font-weight: 800;
}

.project-top p {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 26px;
}

.project-links a,
.contact-panel a,
.contact-panel span,
.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

.project-links a:hover,
.contact-panel a:hover,
.site-footer a:hover {
  color: var(--amber);
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1120px) / 2));
  background: #e9f3f1;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 30px;
  border-left: 5px solid var(--teal);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.experience-section {
  padding-top: 44px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 58px);
  padding: 32px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.role-line {
  margin: 8px 0 0;
  font-weight: 800;
}

.experience-card ul {
  margin: 0;
  padding-left: 20px;
}

.experience-card li + li {
  margin-top: 10px;
}

.education-section {
  padding-top: 44px;
}

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

.education-card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.education-card h3 {
  color: var(--teal-dark);
}

.education-card span {
  display: inline-block;
  margin-top: 12px;
  color: var(--coral);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #ffffff;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    pointer-events: none;
    background: rgba(5, 10, 18, 0);
    backdrop-filter: blur(0);
    transition: background 0.28s ease, backdrop-filter 0.28s ease;
  }

  .nav-backdrop.is-open {
    pointer-events: auto;
    background: rgba(5, 10, 18, 0.78);
    backdrop-filter: blur(8px);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(94vw, 380px);
    gap: 12px;
    padding: 96px 18px 28px;
    border-left: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 0;
    color: var(--ink);
    background: #f8fbfa;
    box-shadow: -24px 0 50px rgba(17, 24, 39, 0.22);
    pointer-events: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.32s ease, visibility 0.32s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    opacity: 1;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .site-nav a:hover {
    border-color: rgba(217, 119, 6, 0.35);
    transform: translateX(-3px);
  }

  .nav-toggle {
    display: block;
  }

  .intro-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .experience-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .section {
    padding: 68px 0;
  }

  .stats-band,
  .skills-grid,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    min-height: 132px;
  }

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