/* ════════════════════════════════════════════════════
   ASLBEK UTAYEV — style.css
   asldev.uz · Premium Dark Engineering Portfolio
════════════════════════════════════════════════════ */

/* ── 0. RESET & TOKENS ─────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  /* Palette */
  --c-bg:        #05070b;
  --c-bg2:       #090c12;
  --c-bg3:       #0e1420;
  --c-surf:      #111722;
  --c-bdr:       rgba(255,255,255,.06);
  --c-bdr2:      rgba(255,255,255,.10);

  --c-accent:    #0ea5e9;           /* sky-500   */
  --c-accent-d:  rgba(14,165,233,.10);
  --c-accent-g:  rgba(14,165,233,.25);
  --c-pm:        #818cf8;           /* indigo-400 – PM accent */
  --c-green:     #34d399;
  --c-yellow:    #fbbf24;
  --c-red:       #f87171;

  --c-text:      #f1f5f9;
  --c-text2:     #94a3b8;
  --c-text3:     #475569;

  /* Typography */
  --f-display: 'Syne', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  /* Sizing */
  --nav-h:  68px;
  --cont:   1160px;
  --radius: 10px;

  /* Easing */
  --ease:  cubic-bezier(.25,.46,.45,.94);
  --ease2: cubic-bezier(.16,1,.3,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-display);
  line-height: 1.65;
  overflow-x: hidden;
  min-width: 320px;
}

::selection { background: var(--c-accent); color: #000; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-bdr2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }

/* ── 1. NOISE TEXTURE ──────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
}

/* ── 2. LAYOUT UTILS ───────────────────────────── */
.container {
  width: 100%;
  max-width: var(--cont);
  margin-inline: auto;
  padding-inline: 40px;
}

.section {
  position: relative;
  padding-block: 110px;
  z-index: 1;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.section__tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-accent);
}

.section__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 56px;
}

/* ── 3. BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 7px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.btn--primary {
  background: var(--c-accent);
  color: #000;
}
.btn--primary:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--c-accent-g);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--c-text2);
  border: 1px solid var(--c-bdr2);
}
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }

.btn--sm { padding: 8px 18px; font-size: 12px; }


/* ── 4. LANGUAGE SWITCHER ──────────────────────── */
.lang {
  display: flex;
  gap: 2px;
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: 7px;
  padding: 3px;
}
.lang--lg { flex-direction: row; }

.lang__btn {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-text3);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.lang__btn:hover { color: var(--c-text2); }
.lang__btn.is-active { background: var(--c-accent); color: #000; }


/* ════════════════════════════════════════════════
   5. NAVBAR
════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}

.navbar.scrolled {
  background: rgba(5,7,11,.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--c-bdr);
}

.navbar__wrap {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--cont);
  margin-inline: auto;
  padding-inline: 40px;
  gap: 32px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--c-text);
  transition: color .2s;
}
.navbar__logo:hover { color: var(--c-accent); }
.navbar__logo-icon { flex-shrink: 0; }
.navbar__logo-text {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
}
.navbar__logo-text em,
.footer__logo em { font-style: normal; color: var(--c-accent); }

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.navbar__link {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text3);
  padding: 7px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.navbar__link:hover { color: var(--c-text); background: rgba(255,255,255,.05); }
.navbar__link.active { color: var(--c-accent); }

/* Right */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar__cta { display: inline-flex; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: 7px;
  padding: 0 9px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--c-text2);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s, width .3s;
  transform-origin: center;
}
.burger.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ── DRAWER ─────────────────────────────────── */
.drawer {
  display: none; /* shown via JS by adding 'is-open' */
  position: fixed;
  inset: 0;
  z-index: 300;
}
.drawer.is-open { display: block; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease) both;
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--c-bg2);
  border-left: 1px solid var(--c-bdr);
  display: flex;
  flex-direction: column;
  animation: slideIn .3s var(--ease2) both;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-bdr);
  height: var(--nav-h);
}
.drawer__x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: 7px;
  color: var(--c-text2);
  transition: color .2s, border-color .2s;
}
.drawer__x:hover { color: var(--c-text); border-color: var(--c-bdr2); }

.drawer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  gap: 2px;
}
.drawer__link {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text2);
  padding: 13px 0;
  border-bottom: 1px solid var(--c-bdr);
  transition: color .2s, padding-left .2s;
}
.drawer__link:last-child { border-bottom: none; }
.drawer__link:hover { color: var(--c-accent); padding-left: 6px; }

.drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--c-bdr);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer__foot .btn--primary { width: 100%; justify-content: center; }


/* ════════════════════════════════════════════════
   6. HERO
════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
}
.hero__blob--1 {
  width: 600px; height: 600px;
  background: var(--c-accent);
  top: -200px; right: -150px;
}
.hero__blob--2 {
  width: 400px; height: 400px;
  background: var(--c-pm);
  bottom: 0; left: -120px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: 64px;
  padding-block: 80px;
}

/* Left */
.hero__left { display: flex; flex-direction: column; gap: 28px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
  animation: fadeUp .5s .1s var(--ease2) both;
}
.hero__dot {
  width: 7px; height: 7px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse 2.5s ease infinite;
}

.hero__name {
  display: flex;
  flex-direction: column;
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
  animation: fadeUp .5s .15s var(--ease2) both;
}
.hero__name-last { color: var(--c-accent); }

.hero__tagline {
  font-family: var(--f-mono);
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--c-text2);
  min-height: 26px;
  animation: fadeUp .5s .2s var(--ease2) both;
}
.hero__cursor {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--c-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp .5s .25s var(--ease2) both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeUp .5s .3s var(--ease2) both;
}
.hstat { text-align: left; }
.hstat__n {
  display: block;
  font-family: var(--f-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1;
}
.hstat__l {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text3);
  margin-top: 5px;
}
.hstat__sep {
  width: 1px; height: 38px;
  background: var(--c-bdr2);
}

/* Right — Code card */
.hero__right {
  position: relative;
  animation: fadeUp .5s .2s var(--ease2) both;
}

.ccard {
  background: var(--c-bg2);
  border: 1px solid var(--c-bdr2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
  z-index: 2;
}
.ccard__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--c-surf);
  border-bottom: 1px solid var(--c-bdr);
}
.ccard__d {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ccard__d--r { background: #f87171; }
.ccard__d--y { background: #fbbf24; }
.ccard__d--g { background: #34d399; }
.ccard__filename {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-text2);
  margin-left: 6px;
  flex: 1;
}
.ccard__lang {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-text3);
  background: var(--c-bg3);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--c-bdr);
}
.ccard__code {
  padding: 20px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.75;
  overflow-x: auto;
  background: var(--c-bg);
  color: var(--c-text2);
}
/* Syntax colors */
.ck  { color: #93c5fd; }  /* keyword */
.ci  { color: #e2e8f0; }  /* identifier */
.cs  { color: #86efac; }  /* string */
.cn  { color: #fca5a1; }  /* number */
.cc  { color: #475569; font-style: italic; }  /* comment */
.cf  { color: #7dd3fc; }  /* function */
.ct  { color: #fcd34d; }  /* template var */
.ccard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--c-surf);
  border-top: 1px solid var(--c-bdr);
}
.ccard__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-green);
}
.ccard__status-dot {
  width: 6px; height: 6px;
  background: var(--c-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.ccard__meta { font-family: var(--f-mono); font-size: 11px; color: var(--c-text3); }

/* Floating pills */
.hero__pill {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--c-bdr2);
  background: var(--c-bg2);
  backdrop-filter: blur(8px);
  color: var(--c-text2);
  z-index: 3;
  white-space: nowrap;
}
.hero__pill--tl { top: -14px; left: -16px; }
.hero__pill--br { bottom: -14px; right: -16px; }

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s 1s var(--ease2) both;
}
.hero__scroll-bar {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}


/* ════════════════════════════════════════════════
   7. ABOUT
════════════════════════════════════════════════ */
.about { background: var(--c-bg2); }

.about__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: start;
}

/* Terminal */
.about__left { display: flex; flex-direction: column; gap: 20px; }

.terminal {
  background: var(--c-bg);
  border: 1px solid var(--c-bdr2);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 12.5px;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--c-surf);
  border-bottom: 1px solid var(--c-bdr);
}
.td { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.td--r { background: #f87171; }
.td--y { background: #fbbf24; }
.td--g { background: #34d399; }
.terminal__name { font-size: 11px; color: var(--c-text3); margin-left: 4px; }
.terminal__body {
  padding: 16px 18px;
  line-height: 1.9;
  color: var(--c-text2);
}
.tp { color: var(--c-green); margin-right: 8px; }
.to { color: var(--c-text); padding-left: 20px; }
.tj { color: var(--c-text2); padding-left: 8px; }
.tk { color: #93c5fd; }
.ts { color: #86efac; }
.tn { color: #fca5a1; }
.tb { color: #c4b5fd; }
.t-cur { color: var(--c-accent); animation: blink 1s step-end infinite; }

/* Availability */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--c-green);
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
  border-radius: 20px;
  padding: 7px 14px;
}
.avail__dot {
  width: 7px; height: 7px;
  background: var(--c-green);
  border-radius: 50%;
  animation: pulse 2.5s ease infinite;
  flex-shrink: 0;
}

/* Text */
.about__heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.about__p {
  font-size: 15px;
  color: var(--c-text2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__vals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.aval {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.aval:hover { border-color: rgba(14,165,233,.3); transform: translateX(4px); }
.aval__ico { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.aval strong { display: block; font-size: 13px; color: var(--c-text); margin-bottom: 3px; }
.aval p { font-size: 12px; color: var(--c-text3); font-family: var(--f-mono); line-height: 1.5; }


/* ════════════════════════════════════════════════
   8. SKILLS
════════════════════════════════════════════════ */
.skills { background: var(--c-bg); }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skcard {
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.skcard:hover {
  border-color: rgba(14,165,233,.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
}
.skcard__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--c-bdr);
}
.skcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.st {
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 5px;
  background: var(--c-bg);
  border: 1px solid var(--c-bdr);
  color: var(--c-text2);
  transition: border-color .2s, color .2s, background .2s;
  cursor: default;
}
.st:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-d);
}
.st--hi {
  border-color: rgba(14,165,233,.25);
  color: var(--c-accent);
  background: var(--c-accent-d);
}


/* ════════════════════════════════════════════════
   9. PROJECTS
════════════════════════════════════════════════ */
.projects { background: var(--c-bg2); }

.plist { display: flex; flex-direction: column; gap: 2px; }

.pitem {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: start;
  gap: 24px;
  padding: 28px 24px;
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, background .25s;
  cursor: default;
  position: relative;
}
.pitem + .pitem { margin-top: 8px; }
.pitem:hover {
  border-color: rgba(14,165,233,.3);
  background: var(--c-bg3);
  transform: translateX(4px);
}
.pitem--feat {
  border-color: rgba(14,165,233,.15);
  background: linear-gradient(90deg, rgba(14,165,233,.04) 0%, transparent 60%);
}
.pitem--feat:hover { border-color: var(--c-accent); }

.pitem__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-text3);
  padding-top: 3px;
}
.pitem__body { display: flex; flex-direction: column; gap: 10px; }
.pitem__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.ptag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--c-accent-d);
  color: var(--c-accent);
  border: 1px solid rgba(14,165,233,.18);
}
.ptag--pm {
  background: rgba(129,140,248,.1);
  color: var(--c-pm);
  border-color: rgba(129,140,248,.2);
}
.pitem__title { font-size: 17px; font-weight: 700; color: var(--c-text); }
.pitem__desc { font-size: 13.5px; color: var(--c-text2); line-height: 1.7; }
.pbadge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 4px;
}
.pbadge--done {
  background: rgba(52,211,153,.1);
  color: var(--c-green);
  border: 1px solid rgba(52,211,153,.2);
}
.pbadge--wip {
  background: rgba(251,191,36,.1);
  color: var(--c-yellow);
  border: 1px solid rgba(251,191,36,.2);
}
.pitem__arrow {
  font-size: 18px;
  color: var(--c-text3);
  align-self: center;
  justify-self: end;
  transition: color .2s, transform .2s;
}
.pitem:hover .pitem__arrow { color: var(--c-accent); transform: translateX(3px); }


/* ════════════════════════════════════════════════
   10. CONTACT
════════════════════════════════════════════════ */
.contact { background: var(--c-bg); }

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__left { display: flex; flex-direction: column; }
.contact__h { margin-bottom: 20px; }
.contact__sub {
  font-size: 15px;
  color: var(--c-text2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.clinks { display: flex; flex-direction: column; gap: 10px; }
.clink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-text2);
  transition: border-color .2s, color .2s, transform .2s;
}
.clink:hover { border-color: rgba(14,165,233,.35); color: var(--c-accent); transform: translateX(4px); }
.clink__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--c-accent-d);
  border: 1px solid rgba(14,165,233,.18);
  border-radius: 7px;
  font-size: 13px;
  color: var(--c-accent);
  flex-shrink: 0;
  font-style: normal;
}

/* Form */
.cform { display: flex; flex-direction: column; gap: 18px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform__f { display: flex; flex-direction: column; gap: 7px; }
.cform__l {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text3);
}
.cform__i {
  background: var(--c-surf);
  border: 1px solid var(--c-bdr);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.cform__i:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-d); }
.cform__i::placeholder { color: var(--c-text3); }
.cform__i.has-error { border-color: var(--c-red) !important; }
.cform__ta { resize: vertical; min-height: 120px; }
.cform__btn { align-self: flex-start; }
.cform__ok {
  display: none;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--c-green);
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
  border-radius: 7px;
  padding: 12px 16px;
  text-align: center;
}
.cform__ok.show { display: block; }


/* ════════════════════════════════════════════════
   11. FOOTER
════════════════════════════════════════════════ */
.footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-bdr);
  padding-block: 24px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text2);
  transition: color .2s;
}
.footer__logo:hover { color: var(--c-accent); }
.footer__logo em { font-style: normal; color: var(--c-accent); }
.footer__copy {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-text3);
  text-align: center;
}
.footer__up {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--c-bdr);
  border-radius: 7px;
  color: var(--c-text3);
  transition: border-color .2s, color .2s, transform .2s;
}
.footer__up:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }


/* ════════════════════════════════════════════════
   12. ANIMATIONS
════════════════════════════════════════════════ */
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:none } }
@keyframes slideIn { from { transform:translateX(100%) } to { transform:none } }
@keyframes blink   { 0%,100% { opacity:1 } 50% { opacity:0 } }
@keyframes pulse   { 0%,100% { opacity:1 } 50% { opacity:.4 } }
@keyframes scrollAnim {
  0%,100% { transform:scaleY(1); opacity:1 }
  50% { transform:scaleY(.5); opacity:.4 }
}

/* Scroll reveal */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease2), transform .65s var(--ease2);
}
.rv.visible { opacity: 1; transform: none; }
.rv-l { transition-delay: .08s; }
.rv-2 { transition-delay: .12s; }
.rv-3 { transition-delay: .18s; }
.rv-4 { transition-delay: .24s; }
.rv-5 { transition-delay: .30s; }


/* ════════════════════════════════════════════════
   13. RESPONSIVE
════════════════════════════════════════════════ */

/* 1100px — moderate desktop */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 400px; gap: 48px; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
}

/* 960px — narrow desktop / landscape tablet */
@media (max-width: 960px) {
  :root { --nav-h: 62px; }
  .container { padding-inline: 28px; }
  .section { padding-block: 88px; }

  /* Navbar: hide desktop nav & cta, show burger */
  .navbar__nav,
  .navbar__cta { display: none; }
  .burger { display: flex; }
  .navbar__wrap { padding-inline: 28px; }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 64px;
    gap: 56px;
    text-align: center;
  }
  .hero__left { align-items: center; }
  .hero__eyebrow { justify-content: center; }
  .hero__name { align-items: center; }
  .hero__btns { justify-content: center; }
  .hero__stats { justify-content: center; }

  .hero__right { order: -1; max-width: 480px; margin-inline: auto; }
  .hero__pill--tl { top: -10px; left: 0; }
  .hero__pill--br { bottom: -10px; right: 0; }

  /* About */
  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__left {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  /* Contact */
  .contact__layout { grid-template-columns: 1fr; gap: 48px; }
}

/* 680px — mobile landscape / small tablet */
@media (max-width: 680px) {
  .container { padding-inline: 20px; }
  .section { padding-block: 72px; }

  .hero__name { font-size: clamp(44px, 12vw, 72px); }

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

  /* Projects list */
  .pitem { grid-template-columns: 40px 1fr; }
  .pitem__arrow { display: none; }

  /* Contact form */
  .cform__row { grid-template-columns: 1fr; gap: 16px; }
  .cform__btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}

/* 480px — small phones */
@media (max-width: 480px) {
  .hero__btns { flex-direction: column; width: 100%; }
  .hero__btns .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-wrap: wrap; gap: 20px 24px; }
  .hstat__sep { display: none; }

  .navbar__wrap { padding-inline: 16px; }
  .navbar__right { gap: 8px; }
  .lang { display: none; } /* hide lang in navbar on tiny screens, it's in drawer */

  .section__title { margin-bottom: 36px; }
}