:root {
  --ink: #f4f7fb;
  --muted: #9aa7b7;
  --paper: #0d1117;
  --surface: #151b23;
  --surface-strong: #1d2632;
  --line: #2d3745;
  --accent: #36c2a0;
  --accent-strong: #69dec1;
  --apricot: #f1b86d;
  --rose: #e56f87;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(54, 194, 160, 0.1), transparent 28rem),
    linear-gradient(180deg, #0d1117 0%, #111720 44%, #0d1117 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(13, 17, 23, 0.86);
  border-bottom: 1px solid rgba(45, 55, 69, 0.82);
  backdrop-filter: blur(16px);
}

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

.site-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 8vh 6vw 14vh;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.82) 44%, rgba(13, 17, 23, 0.38) 100%),
    linear-gradient(180deg, transparent 64%, var(--paper) 100%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0;
  color: #c7d0dc;
  font-size: 1.18rem;
}

.hero-actions,
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  font-weight: 800;
}

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

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

.button.secondary {
  color: var(--ink);
  background: rgba(21, 27, 35, 0.72);
}

.section {
  padding: 92px 6vw;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-strong);
  font-weight: 800;
}

.inline-link:hover {
  color: var(--accent);
}

.resume-viewer {
  height: min(82vh, 860px);
  min-height: 560px;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.resume-viewer object {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.resume-fallback {
  display: grid;
  min-height: 100%;
  place-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}

.resume-fallback p {
  margin: 0;
  color: var(--muted);
}

.resume-fallback a {
  color: var(--accent-strong);
  font-weight: 800;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.about-grid p,
.contact-copy p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.stats-panel,
.skills-card,
.timeline-card,
.project-card,
.blog-post,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.resume-section,
.focus-section {
  background: rgba(21, 27, 35, 0.36);
  border-block: 1px solid rgba(45, 55, 69, 0.58);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-panel div {
  min-height: 130px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-panel div:last-child {
  border-right: 0;
}

.stats-panel strong {
  display: block;
  color: var(--rose);
  font-size: 2rem;
  line-height: 1;
}

.stats-panel span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.timeline-card,
.skills-card,
.project-card,
.blog-post,
.contact-form {
  padding: 26px;
}

.timeline-card span,
.blog-post span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.timeline-card h3,
.skills-card h3,
.project-card h3,
.blog-post h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.timeline-card p,
.project-card p,
.blog-post p {
  margin: 0;
  color: var(--muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  padding: 7px 11px;
  background: rgba(54, 194, 160, 0.12);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.project-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.project-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--apricot);
  color: #241806;
  font-weight: 800;
}

.project-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-post {
  display: grid;
  grid-template-columns: 170px minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.blog-post h3 {
  margin-top: 0;
}

.contact-copy a {
  color: var(--accent);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface-strong);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #778496;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 6vw;
    display: none;
    width: min(280px, 88vw);
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .hero {
    min-height: 760px;
    padding-top: 9vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(13, 17, 23, 0.97) 0%, rgba(13, 17, 23, 0.88) 58%, rgba(13, 17, 23, 0.46) 100%),
      linear-gradient(180deg, transparent 64%, var(--paper) 100%);
  }

  .about-grid,
  .contact-grid,
  .resume-grid,
  .card-grid,
  .blog-post {
    grid-template-columns: 1fr;
  }

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

  .stats-panel div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-panel div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .section {
    padding: 70px 5vw;
  }

  .hero {
    min-height: 700px;
    padding: 56px 5vw 110px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }
}
