:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --text: #16202b;
  --muted: #5b6776;
  --line: #e2e7ee;
  --accent: #2456e6;
  --accent-dark: #1a41b8;
  --accent-soft: #e9eeff;
  --violet: #7a4de8;
  --green: #14a06a;
  --red: #e5484d;
  --radius: 16px;
  --shadow: 0 18px 45px -18px rgba(36, 86, 230, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 1em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; font-size: .95rem;
}
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
nav a.btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  border: 2px solid var(--accent); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; margin-bottom: .6em; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 90px;
  background: linear-gradient(160deg, #eef3ff 0%, #f6f1ff 55%, #ffffff 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.blob-1 { width: 380px; height: 380px; background: #b8ccff; top: -120px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: #d9c8ff; bottom: -140px; left: -80px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Sample dashboard window */
.hero-visual { position: relative; }
.window {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; transform: rotate(1.2deg);
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e2; }
.window-bar i:nth-child(1) { background: #ff6b6b; }
.window-bar i:nth-child(2) { background: #ffc857; }
.window-bar i:nth-child(3) { background: #52d68a; }
.window-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.window-body { padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }
.stat small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.stat b { font-size: 1.25rem; }
.stat b.up { color: var(--green); }
.stat b.down { color: var(--red); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 96px; margin: 16px 0; padding: 0 4px; border-bottom: 1px solid var(--line); }
.chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent), #7fa0ff); }
.rows { display: grid; gap: 8px; font-size: .85rem; }
.row { display: flex; align-items: center; gap: 10px; }
.row em { margin-left: auto; font-style: normal; color: var(--muted); }
.pill { font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill.in { background: #dcf5ea; color: #0c7a50; }
.pill.out { background: #fde3e4; color: #b3282d; }
.float-card {
  position: absolute; left: -22px; bottom: -46px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow);
}
.float-card small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }

/* Project */
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  border: 1px solid var(--line); border-radius: 22px; padding: 32px; background: var(--bg);
  box-shadow: 0 10px 40px -24px rgba(22, 32, 43, .25);
}
.project-visual {
  position: relative; min-height: 420px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, #e9eeff, #f1eaff); padding: 24px;
}
.phone {
  width: 190px; background: #16202b; border-radius: 30px; padding: 8px; box-shadow: var(--shadow);
  transform: translateX(-64px) rotate(-3deg);
}
.phone-notch { width: 60px; height: 6px; border-radius: 6px; background: #37424f; margin: 4px auto 8px; }
.phone-screen { background: #fff; border-radius: 22px; padding: 16px 14px; min-height: 250px; font-size: .82rem; }
.phone-screen > b { display: block; font-size: 1rem; margin-bottom: 12px; }
.field { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.field small { display: block; color: var(--muted); font-size: .66rem; }
.phone-btn { margin-top: 14px; text-align: center; background: var(--accent); color: #fff; border-radius: 8px; padding: 8px; font-weight: 600; }
.doc {
  position: absolute; right: 16px; bottom: 34px; width: 150px; background: #fff; border-radius: 10px;
  padding: 14px; box-shadow: var(--shadow); transform: rotate(3deg); font-size: .78rem;
}
.doc-head { margin-bottom: 10px; }
.doc-head small { display: block; color: var(--muted); font-size: .66rem; }
.doc-line { height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 7px; }
.doc-line.short { width: 60%; }
.doc-total { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.doc-total small { color: var(--muted); font-size: .68rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: .45em; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--accent-soft); border-radius: 999px; padding: 4px 13px; font-size: .84rem; color: var(--accent-dark); font-weight: 500; }
.note { color: var(--muted); font-size: .82rem; margin: 12px 0 0; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff;
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { position: relative; padding-top: 4px; }
.step span {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.step p { color: var(--muted); }

/* About */
.about > div { max-width: 760px; }

/* Contact */
.contact {
  text-align: center; color: #fff; border-radius: 26px; padding: 64px 24px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
}
.contact h2 { margin-bottom: .4em; }
.contact p { max-width: 50ch; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .88); }
.contact .links a { color: #fff; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }

/* Scroll fade-in (only when JavaScript is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Tablets and phones */
@media (max-width: 860px) {
  .hero-grid, .project, .about { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 70px; }
  .hero-visual { max-width: 460px; margin: 10px auto 0; }
  .window { transform: none; }
  .float-card { left: 8px; bottom: -66px; }
  .hero-visual { margin-bottom: 56px; }
  .section { padding: 56px 0; }
  .project { padding: 20px; gap: 24px; }
  nav { gap: 14px; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .project-visual { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 0; padding: 22px 12px; }
  .phone { width: 140px; transform: rotate(-3deg); flex: none; }
  .phone-screen { min-height: 0; padding: 12px 10px; font-size: .74rem; }
  .doc { position: static; width: 112px; transform: rotate(3deg); flex: none; padding: 10px; }
  .doc-line { display: none; }
  .doc-total { margin-top: 8px; flex-direction: column; align-items: flex-start; }
}

/* ---- Project-manager layout additions ---- */

.badge {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--text);
  box-shadow: 0 6px 18px -12px rgba(36, 86, 230, .5);
}
.stat b.warn { color: #c77700; }

/* Sample program board */
.ws { display: grid; gap: 12px; margin-top: 16px; }
.wsrow { display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: 12px; font-size: .82rem; }
.track { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--accent), #7fa0ff); }
.track i.amber { background: linear-gradient(90deg, #f59f00, #ffc857); }
.pill { font-style: normal; }
.pill.done { background: var(--accent-soft); color: var(--accent-dark); }
.pill.ok { background: #dcf5ea; color: #0c7a50; }
.pill.risk { background: #fff0d1; color: #8a5a00; }
.wsrow .pill { min-width: 62px; text-align: center; }

/* Key numbers */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.numbers b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--accent); }
.numbers span { color: var(--muted); font-size: .92rem; line-height: 1.4; display: block; margin-top: 4px; }

/* Experience timeline */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.job {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
}
.job::before {
  content: ""; position: absolute; left: -29px; top: 30px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.job-head { margin-bottom: 12px; }
.job-head h3 { margin: 0 0 2px; font-size: 1.2rem; }
.job-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.job-head b { color: var(--text); }
.job ul { margin: 0; padding-left: 20px; color: var(--muted); }
.job li { margin-bottom: .45em; }
.job li::marker { color: var(--accent); }

.sub { margin-top: 36px; }
.section-lead { color: var(--muted); max-width: 64ch; margin-top: -.4em; margin-bottom: 28px; }
.also { margin: 26px 0 0; color: var(--muted); }
.also b { color: var(--text); }
.project-body h3 { font-size: 1.25rem; }

/* About: education & languages */
.facts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 20px; }
.facts h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .5em; }
.facts p { margin: 0 0 .8em; color: var(--muted); line-height: 1.5; }
.facts b { color: var(--text); }

@media (max-width: 860px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .facts { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .timeline { padding-left: 22px; }
  .job { padding: 18px; }
  .job::before { left: -23px; top: 24px; }
  .wsrow { grid-template-columns: 1fr auto; }
  .wsrow .track { grid-column: 1 / -1; grid-row: 2; }
}
