:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef4f7;
  --text: #172026;
  --muted: #65717a;
  --line: #dce5ea;
  --primary: #0f766e;
  --primary-dark: #0b4f4a;
  --accent: #d97706;
  --ink: #0e171c;
  --shadow: 0 24px 70px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 248, 251, 0.95) 40%),
    var(--bg);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 251, 0.9);
  border-bottom: 1px solid rgba(220, 229, 234, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-mark,
.project-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.mobile-cv-link {
  display: none;
}

.nav-links a:hover,
.hero-meta a:hover {
  color: var(--primary);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-action,
.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.24);
}

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

.button.secondary:hover,
.nav-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: calc(100vh - 76px);
  padding: 58px 0 40px;
}

.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: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

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

.hero-text {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-meta span {
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: 10% -6% -8% 14%;
  content: "";
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.2), rgba(217, 119, 6, 0.16)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(23, 32, 38, 0.05) 28px 29px);
  border-radius: 14px;
  transform: rotate(3deg);
}

.console-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 24px;
  color: #f7fbfc;
  background: #101a20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}

.console-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.console-top span:nth-child(2) {
  background: #f59e0b;
}

.console-top span:nth-child(3) {
  background: #22c55e;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.status-row p,
.metric-grid span {
  margin: 0;
  color: rgba(247, 251, 252, 0.64);
}

.status-row strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.pulse {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #22c55e 0 28%, transparent 29%),
    radial-gradient(circle, rgba(34, 197, 94, 0.24) 0 58%, transparent 59%);
  animation: pulse 1.8s ease-in-out infinite;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.metric-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
}

.terminal-lines {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: #9ee7db;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.terminal-lines span::before {
  content: "$ ";
  color: #fbbf24;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.summary-band div {
  min-height: 112px;
  padding: 24px;
  background: var(--surface);
}

.summary-band strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.summary-band span {
  color: var(--muted);
}

.content-section {
  padding: 84px 0;
}

.section-heading {
  max-width: 770px;
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

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

.skills-grid article,
.timeline-card,
.project-card,
.education-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

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

.skills-grid p,
.project-card p,
.muted,
.education-list span {
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
}

.timeline-date {
  padding-top: 22px;
  color: var(--primary);
  font-weight: 800;
}

.timeline-card {
  padding: 26px;
}

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

.timeline-card li + li {
  margin-top: 8px;
}

.project-grid {
  grid-template-columns: 1fr 1fr;
}

.project-card {
  min-height: 340px;
  padding: 28px;
}

.project-card.featured {
  background: linear-gradient(140deg, #ffffff 0%, #ecf8f5 100%);
}

.project-icon {
  margin-bottom: 26px;
  background: var(--primary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.cert-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
}

.education-list {
  display: grid;
  gap: 12px;
}

.education-list article {
  padding: 18px;
}

.education-list strong,
.education-list span {
  display: block;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 70px;
  padding: 42px;
  color: #ffffff;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(14, 23, 28, 0.96)),
    #0e171c;
}

.contact-section .eyebrow {
  color: #a7f3d0;
}

.contact-section h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.contact-section .button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.76;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links,
  .nav-action {
    display: none;
  }

  .site-header.menu-open .nav-links {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header.menu-open .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-header.menu-open .nav-links .mobile-cv-link {
    display: block;
    color: var(--primary);
    font-weight: 800;
  }

  .site-header.menu-open .nav-links a:last-child {
    border-bottom: 0;
  }

  .menu-button {
    display: block;
  }

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

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

  .summary-band,
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-date {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .summary-band {
    width: min(100% - 28px, 1160px);
  }

  .content-section {
    padding: 58px 0;
  }

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

  .console-card {
    min-height: auto;
    padding: 18px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 28px 18px;
  }

  footer {
    flex-direction: column;
  }
}
