@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Manrope:wght@500;600;700;800&family=Unbounded:wght@500;600;700&display=swap');

/* ============================================================
   style.css — оновлений дизайн сайту
   ============================================================ */

:root {
  --mx: .5;
  --my: .35;
  --bg: #04060c;
  --card: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.09);
  --text: #eef2f9;
  --muted: #93a1b8;
  --accent: #4d7dff;
  --accent-2: #a06bff;
  --accent-3: #2dd4bf;
  --success: #10b981;
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));
  --radius: 20px;
  --container: 1080px;
}

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

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 84px; }

::selection { background: rgba(77,125,255,.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }

/* ---------- АВРОРА: ЖИВИЙ ФОН ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora__blob {
  position: absolute; border-radius: 50%;
  transform: translate3d(
    calc((var(--mx) - .5) * var(--par)),
    calc((var(--my) - .5) * var(--par)), 0);
  transition: transform 1.2s cubic-bezier(.15,.55,.25,1);
}
.aurora__blob i { display: block; width: 100%; height: 100%; border-radius: 50%; filter: blur(70px); opacity: .5; }
.aurora__blob--1 { width: 46vw; height: 46vw; left: -8vw; top: -12vw; --par: -70px; }
.aurora__blob--1 i { background: radial-gradient(circle at 35% 35%, rgba(77,125,255,.55), transparent 65%); animation: drift1 16s ease-in-out infinite; }
.aurora__blob--2 { width: 40vw; height: 40vw; right: -6vw; top: -6vw; --par: 90px; }
.aurora__blob--2 i { background: radial-gradient(circle at 60% 40%, rgba(160,107,255,.5), transparent 65%); animation: drift2 19s ease-in-out infinite; }
.aurora__blob--3 { width: 50vw; height: 50vw; left: 25vw; top: 55vh; --par: 50px; }
.aurora__blob--3 i { background: radial-gradient(circle at 50% 50%, rgba(45,212,191,.28), transparent 65%); animation: drift3 23s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%,-7%) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-7%,6%) scale(.95); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5%,5%) scale(1.12); } }

.aurora__grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- ШАПКА ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(4,6,12,.65);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.logo {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: clamp(13px, 3.4vw, 16.5px);
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  white-space: nowrap; padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--card); }
@media (max-width: 620px) { .header__cta { display: none; } }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-block; text-decoration: none; padding: 12px 22px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(77,125,255,.4); }
.btn--ghost {
  background: var(--card); border: 1px solid var(--line); color: var(--text); box-shadow: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(77,125,255,.5); box-shadow: none; }
.btn--small { padding: 8px 16px; font-size: 14px; }

/* ---------- HERO ТА ЖИВИЙ СТАТУС ---------- */
.hero { padding: 48px 0 0; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }

.status-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.28);
  backdrop-filter: blur(8px);
  margin-bottom: 18px;
}
.status-badge__dot {
  position: relative; width: 8px; height: 8px;
  border-radius: 50%; background: var(--success);
}
.status-badge__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--success); opacity: .75;
  animation: pulseDot 2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes pulseDot { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.status-badge__text { color: #86efac; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

.hero__hello { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.hero h1 {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1.15; margin-bottom: 12px;
}

/* TYPEWRITER ТЕКСТ */
.hero__role {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  font-weight: 600; min-height: 1.7em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-bottom: 16px;
  display: inline-flex; align-items: center;
}
.cursor {
  display: inline-block; color: var(--accent-2); font-weight: 400;
  animation: blink 0.9s infinite; margin-left: 2px;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.hero__pitch { color: var(--muted); max-width: 480px; margin-bottom: 24px; font-size: 15.5px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ОНОВЛЕНА РАМКА АВАТАРА ---------- */
.hero__photo-wrapper {
  position: relative; max-width: 320px; margin: 0 auto;
}
.photo-frame {
  position: relative; padding: 10px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(77,125,255,.4), rgba(160,107,255,.15), rgba(45,212,191,.35));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px rgba(77,125,255,.2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0,0,0,.7), 0 0 45px rgba(77,125,255,.35);
}
.photo-frame img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 20px;
}
/* стильні кутові неонові мітки */
.photo-frame__corner {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--accent-3); border-style: solid; pointer-events: none;
}
.photo-frame__corner--tl { top: -4px; left: -4px; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.photo-frame__corner--br { bottom: -4px; right: -4px; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }

/* ---------- СТАТИСТИКА ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 44px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stat b {
  display: block; font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- СЕКЦІЇ ТА КАРТКИ ---------- */
.section { padding: 64px 0 0; }
.section__head { margin-bottom: 26px; }
.section__label {
  display: inline-block; color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.section h2 { font-family: "Unbounded", sans-serif; font-size: clamp(1.35rem, 4.5vw, 1.9rem); line-height: 1.25; }
.lead { color: var(--muted); max-width: 780px; margin-bottom: 14px; }

.grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(77,125,255,.5);
  box-shadow: 0 18px 44px rgba(2,5,14,.6);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.07) 46%, transparent 60%);
  transform: translateX(-130%); transition: transform .9s ease; pointer-events: none;
}
.card:hover::after { transform: translateX(130%); }

.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.card h3 { font-size: 16.5px; line-height: 1.35; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.card__link { color: inherit; text-decoration: none; transition: color .2s; }
.card__link:hover { color: #9dbcff; }

.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(77,125,255,.14); color: #9dbcff; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.tag--violet { background: rgba(160,107,255,.16); color: #c7adff; }
.tag--soft { background: rgba(255,255,255,.04); color: var(--muted); border: 1px solid var(--line); }

/* ---------- КЛЮЧОВИЙ ДОСВІД (GOV4YOU & ВМЦ) ---------- */
.featured-experience { display: grid; gap: 18px; }
.exp-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(77,125,255,.28);
  border-radius: 22px; padding: 26px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.exp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77,125,255,.6);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.exp-card__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.exp-card__header h3 { font-size: 19px; font-weight: 700; margin-top: 4px; }
.exp-card__body { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 820px; }

.exp-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(77,125,255,.2); color: #9dbcff;
}
.exp-badge--gov { background: rgba(45,212,191,.2); color: #5eead4; }

.when { color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }

a.org {
  display: inline-block; color: #9dbcff; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border-bottom: 1px dashed rgba(157,188,255,.4);
  transition: color .2s, border-color .2s; margin-top: 4px;
}
a.org::after { content: " ↗"; font-size: .85em; opacity: .8; }
a.org:hover { color: #d7e4ff; border-color: #d7e4ff; }

/* ---------- ЧИПИ ТА ПОСИЛАННЯ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.skills__chips { margin-top: 14px; }

a.chip--link { color: #9dbcff; text-decoration: none; border-color: rgba(157,188,255,.35); }
a.chip--link::after { content: " ↗"; font-size: .8em; opacity: .8; }
a.chip--link:hover { color: #d7e4ff; border-color: #d7e4ff; }

.inline-link {
  color: #9dbcff; text-decoration: none;
  border-bottom: 1px dashed rgba(157,188,255,.4);
  transition: color .2s, border-color .2s;
}
.inline-link:hover { color: #d7e4ff; border-color: #d7e4ff; }

/* ---------- КОНТАКТНА ПЛАШКА ТА ФУТЕР ---------- */
.contact {
  position: relative; overflow: hidden; margin-top: 64px; padding: 40px 24px; text-align: center;
  background: linear-gradient(180deg, rgba(77,125,255,.12), rgba(160,107,255,.08));
  border: 1px solid var(--line); border-radius: 26px;
}
.contact h2 { font-family: "Unbounded", sans-serif; font-size: clamp(1.3rem, 4.5vw, 1.8rem); margin-bottom: 10px; }
.contact p { color: var(--muted); margin-bottom: 22px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact__note { margin-top: 16px; margin-bottom: 0 !important; font-size: 14px; }

.footer { padding: 28px 0 34px; text-align: center; color: var(--muted); font-size: 13.5px; }
.footer b { color: var(--text); }

/* ---------- МОДАЛЬНЕ ВІКНО КОНТАКТІВ ---------- */
.contact-modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 20px;
}
.contact-modal[hidden] { display: none; }
.contact-modal__backdrop {
  position: absolute; inset: 0; background: rgba(2,4,10,.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .25s ease both;
}
.contact-modal__panel {
  position: relative; width: 100%; max-width: 420px;
  background: rgba(14,18,30,.95);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 28px 22px 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  animation: popIn .32s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.contact-modal__label {
  color: var(--accent); font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px;
}
.contact-modal__panel h2 {
  font-family: "Unbounded", sans-serif; font-size: clamp(1.2rem, 4.6vw, 1.5rem); margin-bottom: 20px;
}
.contact-modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.contact-modal__close svg { width: 16px; height: 16px; }
.contact-modal__close:hover { color: var(--text); border-color: var(--accent); background: rgba(77,125,255,.12); }

.contact-list { display: grid; gap: 10px; }
.contact-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s, background .2s;
}
.contact-row:hover {
  border-color: rgba(77,125,255,.6);
  background: rgba(77,125,255,.1);
  transform: translateY(-2px);
}
.contact-row__icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--grad); color: #fff;
}
.contact-row__icon svg { width: 19px; height: 19px; }
.contact-row__text { display: grid; min-width: 0; }
.contact-row__label { color: var(--muted); font-size: 12px; font-weight: 600; }
.contact-row__value { font-size: 14.5px; font-weight: 700; word-break: break-all; }
.contact-modal__note { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- ПОЯВА ПРИ СКРОЛІ ---------- */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .grid > .reveal:nth-child(2), .js .stats > .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid > .reveal:nth-child(3), .js .stats > .reveal:nth-child(3) { transition-delay: .16s; }
.js .grid > .reveal:nth-child(4), .js .stats > .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora__blob i, .photo-frame, .contact-modal__backdrop, .contact-modal__panel { animation: none !important; }
  .aurora__blob { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none !important; }
  * { transition-duration: .01ms !important; }
}