/* ============================================================
   Sohaib Basharat — Portfolio
   Modern dark theme · RTL-first · glassmorphism · aurora bg
   ============================================================ */

:root {
  /* palette */
  --bg: #07090f;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #eef1f8;
  --text-dim: #aab2c5;
  --text-mute: #6b748a;

  --violet: #7c5cff;
  --indigo: #5b6bff;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --pink: #f472b6;

  --grad: linear-gradient(120deg, #7c5cff 0%, #5b8bff 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,92,255,.18), rgba(34,211,238,.18));

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-glow: 0 0 60px -10px rgba(124, 92, 255, .45);

  --font-fa: "Vazirmatn", "Vazir", system-ui, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font: var(--font-fa);

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lang-en { --font: var(--font-en); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lang-en { line-height: 1.65; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(124, 92, 255, .35); color: #fff; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(70px, 11vw, 140px); position: relative; }
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Background
   ============================================================ */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 120% at 50% -10%, #0d1326 0%, var(--bg) 55%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.aurora--1 { width: 50vw; height: 50vw; background: radial-gradient(circle, #7c5cff, transparent 65%); top: -12vw; inset-inline-start: -8vw; animation: drift1 22s var(--ease) infinite alternate; }
.aurora--2 { width: 44vw; height: 44vw; background: radial-gradient(circle, #22d3ee, transparent 65%); top: 18vw; inset-inline-end: -10vw; animation: drift2 26s var(--ease) infinite alternate; }
.aurora--3 { width: 40vw; height: 40vw; background: radial-gradient(circle, #2dd4bf, transparent 65%); bottom: -10vw; inset-inline-start: 30vw; opacity: .35; animation: drift3 30s var(--ease) infinite alternate; }

@keyframes drift1 { to { transform: translate(8vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-6vw, 6vw) scale(1.1); } }
@keyframes drift3 { to { transform: translate(4vw, -8vw) scale(1.2); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.noise {
  position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress + cursor */
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: var(--grad); z-index: 1000; box-shadow: 0 0 12px rgba(124,92,255,.7); }
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.16), transparent 60%);
  transform: translate(-50%, -50%); pointer-events: none; z-index: 1; transition: opacity .3s; opacity: 0;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  transition: background .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 9, 15, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 800; font-size: 16px; letter-spacing: .5px;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-glow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 15px; font-weight: 700; }
.brand__text em { font-style: normal; font-size: 11.5px; color: var(--text-mute); }
.brand--sm .brand__mark { width: 36px; height: 36px; font-size: 14px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 15px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  color: var(--text-dim); transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; inset-inline: 15px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}

.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-family: var(--font-en); font-size: 12px; font-weight: 600;
}
.lang-toggle__opt { padding: 5px 11px; border-radius: 999px; color: var(--text-mute); transition: .25s; }
.lang-toggle__opt.is-active { background: var(--grad); color: #fff; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); position: relative; }
.nav__burger span { position: absolute; inset-inline: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============================================================
   Buttons & chips
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 13px; font-size: 14.5px; font-weight: 600; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s; white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(124,92,255,.7); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(124,92,255,.85); }
.btn--ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.btn.is-copied { background: var(--teal); color: #05221d; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-dim);
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 22px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: 110px 60px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; width: 100%; }
.hero__title { font-size: clamp(40px, 7vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; margin-bottom: 14px; }
.hero__hi { display: block; font-size: clamp(17px, 2.4vw, 22px); font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.hero__role { font-size: clamp(18px, 2.6vw, 26px); font-weight: 600; color: var(--text); margin-bottom: 20px; }
.hero__lead { font-size: clamp(15px, 1.8vw, 17.5px); color: var(--text-dim); max-width: 52ch; margin-bottom: 34px; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__socials { display: flex; gap: 12px; margin-bottom: 38px; }
.social {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  transition: transform .25s var(--ease), color .25s, border-color .25s, background .25s;
}
.social:hover { color: #fff; transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }

.hero__stats { display: flex; align-items: center; gap: 22px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-size: clamp(24px, 3vw, 32px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font); }
.stat__label { font-size: 12.5px; color: var(--text-mute); }
.stat__sep { width: 1px; height: 36px; background: var(--border); }

/* hero visual */
.hero__visual { position: relative; perspective: 1200px; }
.codecard { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.codecard__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.codecard__file { margin-inline-start: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); direction: ltr; }
.codecard__body { padding: 22px 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; direction: ltr; text-align: left; overflow-x: auto; color: #c9d3e6; }
.codecard__body code { white-space: pre; }
.c-key { color: #c792ea; } .c-cls { color: #82aaff; } .c-prop { color: #f78c6c; } .c-str { color: #c3e88d; } .c-fn { color: #82aaff; }
.codecard__chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 22px; }
.chip { font-family: var(--font-en); font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--grad-soft); border: 1px solid var(--border); color: #d7defb; }

.floaty {
  position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 14px;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow); color: var(--text);
}
.floaty--1 { top: -22px; inset-inline-start: -18px; animation: float 5s var(--ease) infinite; }
.floaty--2 { bottom: -22px; inset-inline-end: -14px; animation: float 6s var(--ease) infinite .8s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-hint { position: absolute; inset-inline: 0; bottom: 26px; margin: auto; width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; display: block; }
.scroll-hint span { position: absolute; inset-inline: 0; top: 8px; margin: auto; width: 4px; height: 8px; border-radius: 4px; background: var(--text-dim); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 26px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-en); font-weight: 600; font-size: 16px; color: var(--text-mute); white-space: nowrap; }
.marquee__track span:nth-child(2n) { color: var(--violet); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ============================================================
   Section heads
   ============================================================ */
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__eyebrow { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--violet); letter-spacing: .04em; margin-bottom: 14px; text-transform: uppercase; }
.section__title { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.section__sub { margin-top: 16px; color: var(--text-dim); font-size: 16px; }

/* ============================================================
   About
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.about__text p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 18px; }
.about__text p:first-child { color: var(--text); font-size: 18px; }
.about__cards { display: grid; gap: 16px; }
.hcard { border-radius: var(--radius); padding: 24px 26px; transition: transform .35s var(--ease), border-color .35s, background .35s; }
.hcard:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.hcard__icon { font-size: 26px; margin-bottom: 12px; }
.hcard h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.hcard p { color: var(--text-dim); font-size: 14.5px; }

/* ============================================================
   Skills
   ============================================================ */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skillcat { border-radius: var(--radius); padding: 26px 28px; transition: transform .35s var(--ease), border-color .35s; }
.skillcat:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.skillcat:first-child { grid-column: 1 / -1; }
.skillcat__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.skillcat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--violet); }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-family: var(--font-en); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); transition: .25s;
}
.tag:hover { color: #fff; border-color: var(--violet); background: rgba(124,92,255,.14); transform: translateY(-2px); }

/* ============================================================
   Projects / showcases
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filter {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--surface); transition: .25s;
}
.filter:hover { color: #fff; border-color: var(--border-strong); }
.filter.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -12px rgba(124,92,255,.7); }

.showcases { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 90px); }
.showcase {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  opacity: 1; transition: opacity .4s, transform .4s;
}
.showcase.is-hidden { display: none; }
.showcase.is-rev .showcase__media { order: 2; }

.showcase__content { max-width: 540px; }
.showcase__badges { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.badge { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); }
.badge--live { color: #6ee7b7; border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.10); }
.badge--live::before { content: "●"; font-size: 9px; margin-inline-end: 6px; vertical-align: middle; }
.badge--private { color: #fbbf77; border-color: rgba(251,146,60,.3); background: rgba(251,146,60,.08); }
.badge--cat { color: #c4b5fd; border-color: rgba(124,92,255,.3); background: rgba(124,92,255,.10); }

.showcase__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.showcase__tagline { color: var(--text-dim); font-size: 16px; margin-bottom: 22px; }
.showcase__features { display: grid; gap: 11px; margin-bottom: 24px; }
.showcase__features li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); list-style: none; }
.showcase__features li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 7px; margin-top: 3px;
  background: var(--grad-soft) padding-box, var(--grad) border-box; border: 1px solid transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px; border: 1px solid var(--border);
}
.showcase__tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.showcase__role { font-size: 13.5px; color: var(--text-mute); margin-bottom: 22px; padding-inline-start: 14px; border-inline-start: 2px solid var(--violet); }
.showcase__role b { color: var(--text-dim); font-weight: 600; }
.showcase__links { display: flex; flex-wrap: wrap; gap: 12px; }
.showcase__link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); transition: .25s;
}
.showcase__link:hover { background: var(--surface-2); transform: translateY(-3px); border-color: var(--violet); }
.showcase__link--primary { background: var(--grad); border-color: transparent; color: #fff; }
.showcase__link--primary:hover { box-shadow: 0 14px 30px -12px rgba(124,92,255,.8); }
.showcase__link svg { width: 16px; height: 16px; }
.showcase__link--disabled { opacity: .55; cursor: not-allowed; }
.showcase__link--disabled:hover { transform: none; border-color: var(--border-strong); background: var(--surface); }

/* ---- media: device mockups ---- */
.showcase__media { position: relative; }
.mock-glow { position: absolute; inset: 8% 6%; background: var(--grad); filter: blur(70px); opacity: .35; z-index: -1; border-radius: 50%; }

/* browser mockup */
.browser { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #0d1118; transition: transform .4s var(--ease); }
.showcase__media:hover .browser { transform: translateY(-6px); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #141a26; border-bottom: 1px solid var(--border); }
.browser__bar .dot { width: 11px; height: 11px; }
.browser__url { margin-inline-start: 12px; flex: 1; height: 26px; border-radius: 8px; background: rgba(255,255,255,.05); display: flex; align-items: center; padding-inline: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); direction: ltr; }
.browser__screen { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: #0d1118; }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; transition: opacity .3s; }

/* phone mockup */
.phone { width: min(300px, 78%); margin-inline: auto; border-radius: 40px; padding: 11px; background: linear-gradient(160deg, #1a2030, #0c0f17); border: 1px solid var(--border-strong); box-shadow: var(--shadow); position: relative; transition: transform .4s var(--ease); }
.showcase__media:hover .phone { transform: translateY(-6px); }
.phone::before { content: ""; position: absolute; top: 20px; inset-inline: 0; margin: auto; width: 96px; height: 7px; border-radius: 4px; background: #05070c; z-index: 3; }
.phone__screen { border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 19.2; background: #05221d; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }

/* thumbnails */
.thumbs { display: flex; gap: 9px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.thumb { width: 58px; height: 40px; border-radius: 9px; overflow: hidden; border: 1.5px solid var(--border); opacity: .55; transition: .25s; cursor: pointer; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; border-color: var(--violet); box-shadow: 0 0 0 2px rgba(124,92,255,.3); }

/* cover (projects without screenshots) */
.cover { border-radius: var(--radius-lg); aspect-ratio: 16 / 11; position: relative; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; place-items: center; transition: transform .4s var(--ease); }
.showcase__media:hover .cover { transform: translateY(-6px); }
.cover--realestate { background: linear-gradient(150deg, #1b1340, #241a5e 55%, #0e1330); }
.cover--eye { background: linear-gradient(150deg, #062a2e, #0a3d44 55%, #05181f); }
.cover--vpn { background: linear-gradient(150deg, #0a1f3d, #11315e 55%, #07142b); }
.cover__pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%); }
.cover__inner { position: relative; text-align: center; z-index: 2; padding: 30px; }
.cover__emoji { font-size: 58px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); margin-bottom: 14px; }
.cover__label { font-family: var(--font-en); font-weight: 700; font-size: 20px; letter-spacing: .02em; color: #fff; opacity: .92; }
.cover__sub { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px; direction: ltr; }
.cover__orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; }
.cover--realestate .cover__orb { width: 180px; height: 180px; background: #7c5cff; top: -40px; inset-inline-end: -30px; }
.cover--eye .cover__orb { width: 180px; height: 180px; background: #2dd4bf; bottom: -40px; inset-inline-start: -30px; }
.cover--vpn .cover__orb { width: 180px; height: 180px; background: #38bdf8; top: -40px; inset-inline-start: -30px; }

/* ============================================================
   Contact
   ============================================================ */
.section--contact { padding-bottom: clamp(80px, 12vw, 150px); }
.contact { position: relative; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); text-align: center; overflow: hidden; }
.contact__glow { position: absolute; top: -40%; inset-inline: 0; margin: auto; width: 60%; height: 100%; background: var(--grad); filter: blur(120px); opacity: .25; z-index: 0; }
.contact > * { position: relative; z-index: 1; }
.contact__title { font-size: clamp(26px, 4.4vw, 44px); font-weight: 800; margin-bottom: 16px; line-height: 1.12; }
.contact__lead { color: var(--text-dim); font-size: 16.5px; max-width: 46ch; margin: 0 auto 32px; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.contact__links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.contact__link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-en); font-size: 14px; color: var(--text-dim); direction: ltr; transition: color .25s; }
.contact__link:hover { color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 34px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand strong { font-size: 15px; }
.footer__note { font-size: 14px; color: var(--text-mute); }
.footer__heart { color: var(--pink); }
.footer__top { font-size: 14px; color: var(--text-dim); transition: color .25s; }
.footer__top:hover { color: #fff; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(4,6,12,.92); backdrop-filter: blur(8px); padding: 4vw; }
.lightbox.is-open { display: flex; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox__img { max-width: 90vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--border-strong); }
.lightbox__close { position: absolute; top: 22px; inset-inline-end: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 18px; color: #fff; }
.lightbox__close:hover { background: var(--surface-2); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 26px; color: #fff; line-height: 1; }
.lightbox__nav:hover { background: var(--surface-2); }
.lightbox__nav--prev { inset-inline-start: 18px; }
.lightbox__nav--next { inset-inline-end: 18px; }
.lightbox__caption { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; color: var(--text-dim); font-size: 14px; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { max-width: 520px; }
  .about { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 34px; }
  .showcase.is-rev .showcase__media { order: 0; }
  .showcase__content { max-width: 620px; }
}

@media (max-width: 720px) {
  .nav__links { position: fixed; inset-block-start: 74px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px clamp(20px,5vw,40px) 24px; background: rgba(7,9,15,.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .4s var(--ease); }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 13px 16px; font-size: 16px; }
  .nav__link.is-active::after { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .hero__stats { gap: 16px; flex-wrap: wrap; }
  .hero__visual { display: none; }
  .floaty { display: none; }
  .contact__links { gap: 16px; flex-direction: column; }
}

@media (max-width: 420px) {
  .hero__socials { flex-wrap: wrap; }
  .stat__sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Print (Download Resume → Save as PDF)
   ============================================================ */
@media print {
  .bg-layer, .nav, .scroll-progress, .cursor-glow, .marquee, .scroll-hint,
  .floaty, .filters, .footer__top, .lightbox, .hero__visual, .thumbs,
  .lang-toggle, .nav__burger { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding-block: 24px; }
  .glass, .browser, .phone, .cover { box-shadow: none; border: 1px solid #ddd; background: #fff; }
  .grad-text, .stat__num, .section__eyebrow { color: #5b3bdb !important; -webkit-text-fill-color: #5b3bdb; }
  a { color: #111; }
}
