:root {
  --bg: #090b10;
  --surface: #10141d;
  --surface-soft: #151b26;
  --text: #f4f7fb;
  --muted: #a7b0c0;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #2dd4bf;
  --accent-strong: #38bdf8;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 92px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 12px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

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

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 44px;
  min-height: 78vh;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  padding: 0 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-panel,
.skill-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.hero-panel {
  padding: 24px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.13);
}

.stats {
  display: grid;
  gap: 18px;
  margin: 0;
}

.stats div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
}

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

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.projects-grid-single {
  grid-template-columns: minmax(0, 680px);
}

.skill-card,
.project-card {
  padding: 22px;
}

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-card li,
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 10px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  border-left: 1px solid var(--accent);
  background: transparent;
  padding: 18px 0 18px 24px;
}

.timeline-date {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-item .company {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-item ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.timeline-item li::marker {
  color: var(--accent);
}

.timeline-item p,
.project-card p,
.contact-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-topline span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.project-links {
  margin-top: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer p {
  margin: 0;
}

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

  .nav-links {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 20, 29, 0.98);
    padding: 10px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
  }

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

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav,
  .section,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .brand span:last-child {
    display: inline;
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: 3rem;
  }

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

  .project-topline {
    display: block;
  }
}
