/* ═══════════════════════════════════════════════════════════
   Armin Daraei — Portfolio  ·  Liquid Glass / Dark Violet-Blue
   ═══════════════════════════════════════════════════════════ */

/* ─── Fonts (self-hosted, works in Iran without VPN) ─── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InterVar';
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

/* ─── Design tokens ─── */
:root {
  --bg: #05060e;
  --bg-2: #0a0c1c;
  --text: #eef0ff;
  --muted: #9aa3c7;
  --soft: #c7cbe6;
  --accent: #7c6aff;
  --accent-2: #4f9dff;
  --cyan: #56d0ff;
  --grad: linear-gradient(115deg, #9d8bff 0%, #6a8bff 50%, #56d0ff 100%);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --surface: rgba(255, 255, 255, .045);
  --radius: 24px;
  --font-head: 'Space Grotesk', 'InterVar', system-ui, sans-serif;
  --font-body: 'InterVar', system-ui, sans-serif;
  --nav-h: 74px;
}
html[lang="fa"] {
  --font-head: 'Vazirmatn', 'InterVar', system-ui, sans-serif;
  --font-body: 'Vazirmatn', 'InterVar', system-ui, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(124, 106, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); }

.container { width: min(1120px, 100% - 2.4rem); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── Glass recipe (iOS liquid-glass) ─── */
.glass {
  background: linear-gradient(155deg, rgba(255,255,255,.085), rgba(255,255,255,.025) 42%, rgba(255,255,255,.05));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow:
    0 12px 44px -14px rgba(2, 3, 18, .7),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(255, 255, 255, .02);
}
.glass-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  font-size: .82rem; color: var(--soft); font-weight: 500;
}

/* ─── Background: orbs + grid + noise ─── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 800px at 70% -10%, #0b0d22 0%, var(--bg) 55%); }
.orb { position: absolute; border-radius: 50%; filter: blur(95px); opacity: .5; will-change: transform; }
.orb-1 { width: 520px; height: 520px; top: -140px; inset-inline-start: -120px; background: rgba(108, 92, 255, .38); animation: drift1 22s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; top: 30%; inset-inline-end: -160px; background: rgba(47, 107, 255, .3); animation: drift2 26s ease-in-out infinite alternate; }
.orb-3 { width: 400px; height: 400px; bottom: -160px; inset-inline-start: 30%; background: rgba(64, 201, 255, .17); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(70px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-60px, -50px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(40px, -60px) scale(1.15); } }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(900px 620px at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(900px 620px at 50% 0%, #000 20%, transparent 78%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: .028;
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Navbar ─── */
.nav-wrap { position: fixed; top: 16px; inset-inline: 0; z-index: 100; display: flex; justify-content: center; padding-inline: 16px; }
.nav {
  width: min(880px, 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .8rem; border-radius: 999px;
  transition: box-shadow .35s, background .35s;
}
.nav.scrolled { box-shadow: 0 14px 50px -12px rgba(2,3,18,.85), inset 0 1px 0 rgba(255,255,255,.12); }
.brand { font-family: 'Space Grotesk', monospace, sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: .5px; padding-inline: .6rem; }
.brand em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: .15rem; }
.nav-links a {
  display: block; padding: .48rem .85rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--text); background: rgba(124,106,255,.16); box-shadow: inset 0 0 0 1px rgba(124,106,255,.28); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.06);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .85rem;
  transition: background .25s, transform .25s, border-color .25s;
}
.lang-btn:hover { background: rgba(124,106,255,.2); border-color: rgba(124,106,255,.45); transform: translateY(-1px); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.06); place-items: center; }
.menu-btn .icon-close { display: none; }
.menu-btn.open .icon-menu { display: none; }
.menu-btn.open .icon-close { display: block; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: rgba(4, 5, 14, .72);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { display: grid; gap: .4rem; text-align: center; }
.mobile-menu a {
  display: block; padding: .8rem 2.6rem; border-radius: 18px;
  font-size: 1.25rem; font-weight: 600; color: var(--soft);
  transition: background .25s, color .25s;
}
.mobile-menu a:hover { color: #fff; background: rgba(124,106,255,.16); }

/* ─── Hero ─── */
.hero { position: relative; display: flex; align-items: center; min-height: 100svh; padding-top: calc(var(--nav-h) + 34px); padding-bottom: 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hello-chip { color: var(--soft); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero-name { font-family: var(--font-head); font-size: clamp(2.5rem, 6.5vw, 4.1rem); font-weight: 800; line-height: 1.18; margin-top: 1.1rem; letter-spacing: -.5px; }
html[lang="fa"] .hero-name { line-height: 1.4; letter-spacing: 0; }
.hero-role { display: flex; align-items: center; margin-top: .8rem; font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 600; color: var(--soft); min-height: 2em; }
.caret { width: 2px; height: 1.2em; margin-inline-start: 5px; background: var(--grad); border-radius: 2px; animation: blink 1.05s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-tag { margin-top: 1.1rem; max-width: 33rem; color: var(--muted); font-size: 1.02rem; }
html[lang="fa"] .hero-tag { line-height: 2.05; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.55rem; border-radius: 16px;
  font-weight: 600; font-size: .95rem; line-height: 1.4; white-space: nowrap;
  transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s, background .28s, border-color .28s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c5cff 0%, #4f8cff 100%);
  box-shadow: 0 10px 34px -8px rgba(103, 108, 255, .55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -8px rgba(103, 108, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost {
  color: var(--text);
  background: linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); border-color: rgba(124,106,255,.5); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.meta-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted); font-size: .85rem; }
.meta-chip .icon { color: var(--accent); }

/* hero photo */
.hero-visual { display: flex; justify-content: center; }
.photo-frame { position: relative; width: min(420px, 82vw); }
.photo-frame img {
  position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px -20px rgba(2, 3, 18, .9);
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.photo-ring {
  position: absolute; inset: -3px; z-index: 0; border-radius: 39px;
  background: conic-gradient(from var(--angle), rgba(124,106,255,0) 0%, rgba(124,106,255,.95) 18%, rgba(79,157,255,.95) 38%, rgba(86,208,255,.8) 52%, rgba(124,106,255,0) 68%, rgba(124,106,255,0) 100%);
  filter: blur(14px); opacity: .6;
  animation: ringSpin 9s linear infinite;
}
@keyframes ringSpin { to { --angle: 360deg; } }
.chip { position: absolute; z-index: 2; font-size: .8rem; font-weight: 600; color: var(--soft); white-space: nowrap; }
.chip b { font-weight: 800; }
.chip .icon { color: var(--accent); }
.chip-a { top: 26px; inset-inline-end: -18px; animation: floatA 5.5s ease-in-out infinite; }
.chip-b { bottom: 30px; inset-inline-start: -22px; animation: floatB 6.5s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateY(-9px); } }
@keyframes floatB { 50% { transform: translateY(9px); } }

.scroll-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); color: var(--muted);
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--text); border-color: var(--border-strong); }
@keyframes bounce { 50% { transform: translateX(-50%) translateY(7px); } }

/* ─── Stats ─── */
.stats { padding-block: 1.2rem 0; margin-top: -1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.5rem 1rem; border-radius: 22px; text-align: center; transition: transform .3s, border-color .3s; }
.stat:hover { transform: translateY(-4px); border-color: rgba(124,106,255,.4); }
.stat-v { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; line-height: 1.3; }
.stat-l { margin-top: .2rem; color: var(--muted); font-size: .85rem; }

/* ─── Sections ─── */
.section { padding-block: 5.2rem; }
.sec-head { text-align: center; margin-bottom: 2.8rem; }
.sec-chip { margin-bottom: 1.1rem; color: var(--soft); }
.sec-chip .icon { color: var(--accent); }
.sec-title { font-family: var(--font-head); font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.4px; }
html[lang="fa"] .sec-title { letter-spacing: 0; }
.sec-sub { margin-top: .7rem; color: var(--muted); font-size: .98rem; }

/* ─── About ─── */
.about-card { padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: 28px; }
.about-text { font-size: 1.03rem; color: var(--soft); max-width: 60rem; }
html[lang="fa"] .about-text { line-height: 2.1; }
.about-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 1.9rem; }
.info-tile {
  display: flex; align-items: center; gap: .75rem;
  padding: .95rem 1.05rem; border-radius: 18px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.info-tile:hover { border-color: rgba(124,106,255,.4); background: rgba(124,106,255,.07); }
.info-tile > .icon { color: var(--accent); width: 1.35em; height: 1.35em; }
.info-k { display: block; color: var(--muted); font-size: .76rem; }
.info-v { display: block; font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.info-v[dir="ltr"] { font-size: .78rem; letter-spacing: -.1px; }

/* ─── Skills ─── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.skill-card { padding: 1.7rem; border-radius: 26px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.skill-card:hover { transform: translateY(-5px); border-color: rgba(124,106,255,.38); box-shadow: 0 20px 60px -18px rgba(80, 70, 220, .35), inset 0 1px 0 rgba(255,255,255,.12); }
.skill-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.skill-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; }
.skill-ico .icon { width: 1.45em; height: 1.45em; }
.ico-a { background: rgba(124,106,255,.14); color: #a794ff; border: 1px solid rgba(124,106,255,.3); }
.ico-b { background: rgba(79,157,255,.13); color: #7db4ff; border: 1px solid rgba(79,157,255,.3); }
.ico-c { background: rgba(86,208,255,.11); color: #7ddcff; border: 1px solid rgba(86,208,255,.28); }
.skill-head h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; }
.skill-s { color: var(--muted); font-size: .78rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  font-size: .83rem; color: var(--soft);
  transition: border-color .25s, background .25s;
}
.pills li:hover { border-color: rgba(124,106,255,.45); background: rgba(124,106,255,.1); }
.pills li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

/* ─── Experience timeline ─── */
.timeline { position: relative; padding-inline-start: 2.1rem; max-width: 54rem; margin-inline: auto; }
.timeline::before {
  content: ''; position: absolute; inset-block: 10px; inset-inline-start: 7px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, rgba(124,106,255,.7), rgba(79,157,255,.45), rgba(86,208,255,.08));
}
.tl-item { position: relative; padding: 1.75rem 1.8rem; border-radius: 26px; margin-bottom: 1.4rem; transition: transform .3s, border-color .3s; }
.tl-item:hover { transform: translateX(0) translateY(-3px); border-color: rgba(124,106,255,.35); }
.tl-dot {
  position: absolute; inset-inline-start: calc(-2.1rem + 1px); top: 2.2rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124, 106, 255, .18), 0 0 18px rgba(124, 106, 255, .8);
}
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.tl-head h3 { font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; }
.tl-date { font-size: .78rem; }
.tl-org { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.tl-org .icon { color: var(--accent); }
.tl-points { margin-top: 1rem; }
.tl-points li { position: relative; padding-inline-start: 1.15rem; margin-block: .5rem; color: var(--soft); font-size: .95rem; }
html[lang="fa"] .tl-points li { line-height: 2; }
.tl-points li::before { content: ''; position: absolute; inset-inline-start: 0; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.15rem; }
.tags span {
  padding: .32rem .72rem; border-radius: 9px; font-size: .75rem; font-weight: 500;
  color: #b9c0ff; background: rgba(124,106,255,.1); border: 1px solid rgba(124,106,255,.22);
}

/* ─── Projects ─── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.prj-card { padding: 1.85rem; border-radius: 28px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.prj-card:hover { transform: translateY(-5px); border-color: rgba(86,208,255,.35); box-shadow: 0 20px 60px -18px rgba(40, 120, 220, .3), inset 0 1px 0 rgba(255,255,255,.12); }
.prj-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.prj-ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; }
.prj-ico .icon { width: 1.55em; height: 1.55em; }
.prj-flag { font-size: .74rem; }
.prj-card h3 { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; margin-top: 1.3rem; }
.prj-meta { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; color: var(--muted); font-size: .86rem; }
.prj-meta .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.prj-card p { margin-top: .85rem; color: var(--soft); font-size: .94rem; }
html[lang="fa"] .prj-card p { line-height: 2.05; }

/* ─── Education & Certifications ─── */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 54rem; margin-inline: auto; }
.col-title { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--soft); }
.col-title .icon { color: var(--accent); }
.edu-item { padding: 1.45rem 1.55rem; border-radius: 22px; margin-bottom: .95rem; transition: transform .3s, border-color .3s; }
.edu-item:hover { transform: translateY(-3px); border-color: rgba(124,106,255,.35); }
.edu-date { font-size: .74rem; margin-bottom: .7rem; }
.edu-item h4 { font-size: 1.04rem; font-weight: 700; }
.edu-item p { margin-top: .3rem; color: var(--muted); font-size: .88rem; }
.cert { display: flex; align-items: center; gap: 1rem; }
.cert-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(124,106,255,.13); color: #a794ff; border: 1px solid rgba(124,106,255,.3); flex-shrink: 0; }
.cert-ico .icon { width: 1.4em; height: 1.4em; }

/* ─── Contact ─── */
.contact-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.2rem, 4vw, 2.5rem);
  border-radius: 32px;
}
.contact-panel::before {
  content: ''; position: absolute; inset: -40% -20% auto; height: 70%;
  background: radial-gradient(closest-side, rgba(124,106,255,.16), transparent);
  pointer-events: none;
}
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; position: relative; }
.socials { display: flex; justify-content: center; gap: .9rem; margin-top: 1.7rem; position: relative; }
.social {
  width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center;
  color: var(--soft); transition: transform .3s, color .3s, border-color .3s, box-shadow .3s;
}
.social .icon { width: 1.45em; height: 1.45em; }
.social:hover { transform: translateY(-4px); color: #fff; border-color: rgba(124,106,255,.55); box-shadow: 0 12px 34px -8px rgba(103,108,255,.5); }

/* ─── Footer ─── */
.footer { border-top: 1px solid rgba(255,255,255,.06); padding-block: 1.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .86rem; }
.heart { color: #ff4d6d; animation: heartbeat 1.6s ease-in-out infinite; display: inline-block; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.25); } 24% { transform: scale(1); } }
.sep { opacity: .5; }

/* ─── Back to top & toast ─── */
#toTop {
  position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--soft);
  background: linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s, transform .35s, visibility .35s, border-color .3s;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { border-color: rgba(124,106,255,.55); color: #fff; }
#toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translate(-50%, 14px); z-index: 80;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(79,140,255,.85));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, transform .35s, visibility .35s;
}
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#toast .icon { color: #b7ffe3; }

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1) var(--d, 0s), transform .8s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding-top: calc(var(--nav-h) + 50px); }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: -1; margin-top: .5rem; }
  .photo-frame { width: min(330px, 74vw); }
  .chip-a { inset-inline-end: -8px; }
  .chip-b { inset-inline-start: -8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .about-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .projects-grid, .edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav { width: 100%; }
}
@media (max-width: 640px) {
  .section { padding-block: 3.8rem; }
  .hero-tag { font-size: .95rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; padding: .8rem 1rem; font-size: .9rem; }
  .timeline { padding-inline-start: 1.7rem; }
  .tl-dot { inset-inline-start: calc(-1.7rem + 1px); }
  .tl-item { padding: 1.35rem 1.3rem; }
  .about-info { grid-template-columns: 1fr; }
  .stat-v { font-size: 1.7rem; }
  .stat { padding: 1.15rem .7rem; }
  .contact-actions .btn { width: 100%; justify-content: center; font-size: .88rem; }
  .scroll-hint { display: none; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
