:root {
  color-scheme: dark;
  --bg: #101216;
  --panel: #191d24;
  --panel-soft: #202630;
  --text: #f2f4f8;
  --muted: #9ba5b4;
  --accent: #9be15d;
  --line: rgba(255,255,255,.09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16,18,22,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-weight: 800; letter-spacing: -.04em; font-size: 20px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .text-link:hover { color: var(--accent); }

.hero {
  padding: 104px 0 92px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
}
h1 { margin: 18px 0; font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -.065em; }
h1 span { color: var(--accent); }
.lead { color: var(--muted); max-width: 610px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  transition: .2s;
}
.button.primary { background: var(--accent); color: #17200f; border-color: var(--accent); }
.button:hover { transform: translateY(-2px); }

.profile-card {
  background: linear-gradient(145deg, #252d36, #171b22);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--accent);
  color: #17200f;
  font-size: 25px;
  font-weight: 900;
}
.profile-card h2 { font-size: 24px; margin: 26px 0 4px; }
.profile-card p { color: var(--muted); margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #c8d3c0; font-size: 13px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

section { padding: 68px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2.section-title { margin: 8px 0 0; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.045em; }
.section-note { color: var(--muted); max-width: 390px; font-size: 14px; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: .2s;
}
.project:hover { transform: translateY(-4px); border-color: rgba(155,225,93,.4); }
.project-visual {
  min-height: 190px;
  padding: 24px;
  display: flex;
  align-items: end;
  background: radial-gradient(circle at 80% 20%, rgba(155,225,93,.25), transparent 34%), linear-gradient(135deg, #293440, #171b22);
}
.project-visual.alt { background: radial-gradient(circle at 20% 20%, rgba(111,157,255,.28), transparent 36%), linear-gradient(135deg, #293044, #171b22); }
.mock-window { width: 100%; padding: 13px; border-radius: 12px; background: rgba(9,12,16,.72); border: 1px solid rgba(255,255,255,.12); }
.mock-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.mock-dots i { width: 6px; height: 6px; background: #77818e; border-radius: 50%; }
.mock-line { height: 7px; width: 62%; margin: 8px 0; border-radius: 8px; background: #46515e; }
.mock-line.short { width: 36%; background: var(--accent); }
.mock-line.blue { background: #8daeff; }
.mock-line.wide-82 { width: 82%; }
.mock-line.wide-75 { width: 75%; }
.mock-line.wide-55 { width: 55%; }
.mock-line.wide-68 { width: 68%; }
.project-body { padding: 22px; }
.project-body h3 { margin: 0 0 8px; font-size: 21px; }
.project-body p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.project-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.project-heading h3 { margin: 0; }
.confidential-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 190, 92, .35);
  border-radius: 999px;
  color: #ffd08a;
  background: rgba(255, 190, 92, .09);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { color: #c4ccd6; background: var(--panel-soft); padding: 5px 10px; border-radius: 999px; font-size: 11px; }

.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skill { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 17px; font-weight: 650; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 42px; }
.about-grid p { color: var(--muted); margin-top: 0; }

.contact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.contact h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.04em; }
.contact p { margin: 0; color: var(--muted); }
footer { padding: 28px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 70px 0; gap: 32px; }
  .profile-card { min-height: 250px; }
  .section-head, .contact { align-items: flex-start; flex-direction: column; }
  .projects, .about-grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 13px; font-size: 12px; }
}
@media (max-width: 440px) {
  .container { width: min(100% - 28px, 1100px); }
  nav { min-height: 64px; }
  .nav-links a:nth-child(2) { display: none; }
  .skills { grid-template-columns: 1fr 1fr; }
  .contact { padding: 24px; }
}
