/* =========================================================
   Bashar Kharban — Personal Website
   Built by WASL Technologies
   ========================================================= */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #e8edf7;
  --muted: #94a3b8;
  --dim: #64748b;
  --amber: #ffb547;
  --orange: #ff7a3d;
  --cyan: #38bdf8;
  --violet: #8b5cf6;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--amber) 0%, var(--orange) 40%, var(--cyan) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  color-scheme: dark;
}

html[lang="ar"] {
  --font-head: "Cairo", system-ui, sans-serif;
  --font-body: "Cairo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
body.drawer-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; display: block; }
::selection { background: var(--amber); color: #111; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; gap: 26px; justify-items: center; }
.preloader__logo { width: 92px; height: 92px; }
.pl-hex {
  fill: none; stroke: var(--amber); stroke-width: 2.5;
  stroke-dasharray: 300; stroke-dashoffset: 300; stroke-linejoin: round;
  animation: draw 1.4s var(--ease) forwards;
}
.pl-b, .pl-k { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.pl-b { stroke: #fff; animation: draw 1.1s .35s var(--ease) forwards; }
.pl-k { stroke: url(#bkGrad); animation: draw 1s .6s var(--ease) forwards; }
.pl-node { fill: var(--amber); opacity: 0; transform-origin: 59px 50px; animation: nodePop .5s 1.2s var(--ease) forwards; }
@keyframes nodePop { from { opacity: 0; transform: scale(0); } 60% { transform: scale(1.6); } to { opacity: 1; transform: scale(1); } }
.preloader__bar { width: 160px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad); animation: load 1.3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes load { to { width: 100%; } }

/* ---------- Background ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(56, 189, 248, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.bg-glow { position: fixed; z-index: -3; border-radius: 50%; filter: blur(110px); opacity: .5; pointer-events: none; }
.bg-glow--1 { width: 520px; height: 520px; background: #ff7a3d33; top: -160px; inset-inline-end: -120px; animation: float1 18s ease-in-out infinite; }
.bg-glow--2 { width: 600px; height: 600px; background: #38bdf826; bottom: -220px; inset-inline-start: -200px; animation: float2 22s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-80px, 120px) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(120px, -80px) scale(1.1); } }
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; background: var(--amber); margin: -3px 0 0 -3px; }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(255, 181, 71, .55); margin: -19px 0 0 -19px; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 181, 71, .08); border-color: var(--amber); }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 1001; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .scroll-progress span { transform-origin: right; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  height: var(--header-h);
  transition: background .4s, border-color .4s, height .4s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--border);
  --header-h: 66px;
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.logo__mark {
  width: 42px; height: 42px; flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(255, 122, 61, .45));
  transition: transform .6s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(60deg) scale(1.06); }
.logo__mark--lg { width: 52px; height: 52px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.nav { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.nav__link { position: relative; padding: 8px 16px; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .3s, background .3s; }
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: #111; background: var(--amber); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: .9rem;
  transition: border-color .3s, background .3s, transform .3s;
}
.lang-btn:hover { border-color: var(--amber); background: var(--surface-2); }
.lang-btn__icon svg { width: 18px; height: 18px; transition: transform .8s var(--ease); }
.lang-btn:hover .lang-btn__icon svg { transform: rotate(180deg); }
.lang-btn__label { font-family: "Cairo", "Inter", sans-serif; }

/* Burger */
.burger { display: none; width: 46px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.burger span { position: absolute; inset-inline-start: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s, width .4s var(--ease); }
.burger span:nth-child(1) { top: 15px; width: 22px; }
.burger span:nth-child(2) { top: 22px; width: 14px; }
.burger span:nth-child(3) { top: 29px; width: 18px; }
.burger:hover span { width: 22px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s, background .35s, border-color .35s, color .35s;
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn--sm { height: 42px; padding: 0 20px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); background-size: 160% auto; color: #111; box-shadow: 0 10px 34px -10px rgba(255, 122, 61, .7); }
.btn--primary:hover { background-position: right center; box-shadow: 0 16px 44px -10px rgba(255, 122, 61, .85); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--border-2); background: var(--surface); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Drawer (mobile side menu) ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(3, 6, 12, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s;
}
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 1200;
  width: min(360px, 86vw);
  background: linear-gradient(180deg, #0d1426 0%, #080d18 100%);
  border-inline-start: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  transform: translateX(105%);
  transition: transform .6s var(--ease);
  overflow-y: auto;
  box-shadow: -30px 0 80px -20px rgba(0,0,0,.7);
}
html[dir="rtl"] .drawer { transform: translateX(-105%); box-shadow: 30px 0 80px -20px rgba(0,0,0,.7); }
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.drawer__profile { display: flex; align-items: center; gap: 12px; }
.drawer__profile strong { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; }
.drawer__profile small { color: var(--muted); font-size: .78rem; }
.drawer__close { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .3s; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__close:hover { transform: rotate(90deg); border-color: var(--amber); }

.drawer__nav { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; flex: 1; }
.drawer__link {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 14px;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
  opacity: 0; transform: translateX(30px);
  transition: background .3s, color .3s, opacity .5s var(--ease), transform .5s var(--ease);
}
html[dir="rtl"] .drawer__link { transform: translateX(-30px); }
body.drawer-open .drawer__link { opacity: 1; transform: none; }
body.drawer-open .drawer__link:nth-child(1) { transition-delay: .12s; }
body.drawer-open .drawer__link:nth-child(2) { transition-delay: .17s; }
body.drawer-open .drawer__link:nth-child(3) { transition-delay: .22s; }
body.drawer-open .drawer__link:nth-child(4) { transition-delay: .27s; }
body.drawer-open .drawer__link:nth-child(5) { transition-delay: .32s; }
body.drawer-open .drawer__link:nth-child(6) { transition-delay: .37s; }
body.drawer-open .drawer__link:nth-child(7) { transition-delay: .42s; }
.drawer__link:hover, .drawer__link.is-active { background: var(--surface-2); color: var(--amber); }
.drawer__num { font-family: "Space Grotesk", monospace; font-size: .75rem; color: var(--dim); width: 22px; }
.drawer__link.is-active .drawer__num { color: var(--amber); }

.drawer__foot { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.drawer__contact { display: grid; gap: 4px; text-align: center; font-size: .85rem; color: var(--muted); }
.drawer__contact a:hover { color: var(--amber); }

.lang-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  height: 50px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.lang-switch__opt { position: relative; z-index: 1; display: grid; place-items: center; font-weight: 700; transition: color .4s; font-family: "Cairo", "Inter", sans-serif; }
.lang-switch__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--grad); transition: transform .5s var(--ease); }
html[lang="en"] .lang-switch__opt[data-l="en"], html[lang="ar"] .lang-switch__opt[data-l="ar"] { color: #111; }
html[lang="ar"] .lang-switch__thumb { transform: translateX(100%); }
html[dir="rtl"] .lang-switch { direction: ltr; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
.reveal[data-delay="6"] { transition-delay: .6s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 100px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25);
  color: #a7f3d0; font-size: .85rem; font-weight: 500; margin-bottom: 26px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero__greet { font-size: 1.15rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.hero__name { font-family: var(--font-head); font-size: clamp(3.2rem, 8.5vw, 7rem); font-weight: 700; line-height: .98; letter-spacing: -.03em; margin-bottom: 26px; }
html[lang="ar"] .hero__name { letter-spacing: 0; line-height: 1.2; font-weight: 900; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-word { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1.2s var(--ease); }
.split-line:nth-child(2) .split-word { transition-delay: .12s; }
body.is-ready .split-word { transform: none; }

.hero__typed {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: "Space Grotesk", var(--font-body); font-size: clamp(.95rem, 2.2vw, 1.15rem); font-weight: 500;
  margin-bottom: 24px; max-width: 100%;
}
html[lang="ar"] .hero__typed { font-family: "Cairo", sans-serif; }
.hero__typed-prefix { color: var(--amber); font-family: "Space Grotesk", monospace; }
.caret { width: 2px; height: 1.2em; background: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__desc { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .92rem; }
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--amber); }
.hero__meta a:hover { color: var(--amber); }

/* Hero visual */
.hero__visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(440px, 100%); aspect-ratio: 1; transform-style: preserve-3d; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); inset: 0; }
.orbit__ring--1 { animation: spin 40s linear infinite; }
.orbit__ring--2 { inset: 12%; border-style: solid; border-color: rgba(56, 189, 248, .18); animation: spin 28s linear infinite reverse; }
.orbit__ring--3 { inset: 24%; border-color: rgba(255, 181, 71, .2); animation: spin 20s linear infinite; }
.orbit__ring--1::before, .orbit__ring--2::before, .orbit__ring--3::before {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: -5px; left: calc(50% - 5px);
}
.orbit__ring--1::before { background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.orbit__ring--2::before { background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orbit__ring--3::before { background: var(--orange); box-shadow: 0 0 18px var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit__core {
  position: absolute; inset: 28%;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
  transform: translateZ(40px) rotate(45deg);
  animation: corefloat 6s ease-in-out infinite;
}
@keyframes corefloat { 50% { transform: translateZ(40px) rotate(45deg) translate(-6px, -6px); } }
.blueprint { width: 128%; height: 128%; transform: rotate(-45deg); }
.blueprint .draw { fill: none; stroke: url(#bpGrad); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.blueprint .draw.thin { stroke-width: 1.2; stroke: rgba(255,255,255,.35); }
body.is-ready .blueprint .draw { animation: drawLine 2.6s var(--ease) forwards; }
body.is-ready .blueprint .draw:nth-child(3) { animation-delay: .3s; }
body.is-ready .blueprint .draw:nth-child(4) { animation-delay: .6s; }
body.is-ready .blueprint .draw:nth-child(5) { animation-delay: .9s; }
body.is-ready .blueprint .draw:nth-child(6) { animation-delay: 1.1s; }
body.is-ready .blueprint .draw:nth-child(7) { animation-delay: 1.3s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.blueprint .node { fill: var(--bg); stroke: var(--amber); stroke-width: 1.6; opacity: 0; }
body.is-ready .blueprint .node { animation: fadeIn .4s 1.6s forwards, nodePulse 2.4s 2s ease-in-out infinite; }
@keyframes nodePulse { 50% { fill: var(--amber); } }
.bp-label { font-family: "Space Grotesk", monospace; font-size: 8px; letter-spacing: 3px; fill: rgba(255,255,255,.45); }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(13, 20, 38, .78); border: 1px solid var(--border-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.6);
  transform: translateZ(80px);
}
.chip__ico { font-size: 1.05rem; }
.chip--1 { top: 6%; inset-inline-start: -4%; animation: bob 5s ease-in-out infinite; }
.chip--2 { top: 18%; inset-inline-end: -8%; animation: bob 6s .6s ease-in-out infinite; }
.chip--3 { bottom: 16%; inset-inline-start: -8%; animation: bob 5.5s 1.2s ease-in-out infinite; }
.chip--4 { bottom: 4%; inset-inline-end: 0; animation: bob 6.5s .3s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--dim); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue__mouse { width: 24px; height: 38px; border: 1.5px solid var(--dim); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-cue__mouse span { width: 3px; height: 8px; border-radius: 3px; background: var(--amber); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: 26px 0; border-block: 1px solid var(--border); background: rgba(255,255,255,.015); overflow: hidden; transform: rotate(-1.5deg) scale(1.03); margin: 20px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; direction: ltr; }
.marquee__track span { font-family: var(--font-head); font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 700; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .4s; }
.marquee__track span:hover { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.marquee__track i { font-style: normal; color: var(--amber); font-size: 1.3rem; align-self: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 130px 0; }
.section__head { max-width: 760px; margin-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: "Space Grotesk", var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: "Cairo", sans-serif; font-size: .95rem; }
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--amber); }
.section__title { font-family: var(--font-head); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
html[lang="ar"] .section__title { letter-spacing: 0; line-height: 1.35; font-weight: 800; }

.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 181, 71, .12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about__text p { color: var(--muted); font-size: 1.06rem; margin-bottom: 20px; }
.about__text .lead { color: var(--text); font-size: 1.3rem; line-height: 1.6; font-weight: 500; }
.about__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; font-weight: 500; transition: border-color .3s, transform .3s var(--ease); }
.pill:hover { border-color: var(--amber); transform: translateY(-3px); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { padding: 30px 26px; transition: border-color .4s, transform .2s; }
.stat:hover { border-color: rgba(255, 181, 71, .35); }
.stat__num { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.stat__num sup { font-size: .5em; vertical-align: super; }
.stat__label { color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* ---------- Experience ---------- */
.tabs { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 54px; }
.tab { position: relative; z-index: 1; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .4s; white-space: nowrap; }
.tab.is-active { color: #111; }
.tabs__indicator { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--grad); transition: transform .55s var(--ease), width .55s var(--ease); }

.timeline { position: relative; display: none; padding-inline-start: 56px; }
.timeline.is-active { display: grid; gap: 28px; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } }
.timeline__line { position: absolute; top: 8px; bottom: 8px; inset-inline-start: 15px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.timeline__line span { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--amber), var(--cyan)); transform-origin: top; transform: scaleY(0); }

.t-item { position: relative; }
.t-item__dot { position: absolute; top: 34px; inset-inline-start: -49px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); box-shadow: 0 0 0 6px rgba(255, 181, 71, .1); transition: transform .4s var(--ease), background .4s; }
.t-item:hover .t-item__dot { transform: scale(1.3); background: var(--amber); }

.t-card { padding: 30px 32px; transition: border-color .4s, transform .5s var(--ease); }
.t-card:hover { border-color: rgba(255, 181, 71, .3); transform: translateX(6px); }
html[dir="rtl"] .t-card:hover { transform: translateX(-6px); }
.t-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.t-card__date { font-family: "Space Grotesk", var(--font-body); font-size: .85rem; font-weight: 600; color: var(--amber); padding: 5px 12px; border-radius: 8px; background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .2); }
html[lang="ar"] .t-card__date { font-family: "Cairo", sans-serif; }
.t-card__role { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.t-card__org { color: var(--cyan); font-size: .95rem; font-weight: 500; margin-bottom: 16px; }
.t-card__list { list-style: none; display: grid; gap: 10px; }
.t-card__list li { position: relative; padding-inline-start: 26px; color: var(--muted); }
.t-card__list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.tag--live { color: #a7f3d0; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25); }
.tag--done { color: #bae6fd; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .25); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }

/* ---------- WASL ---------- */
.wasl__hero { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; padding: 60px 56px; overflow: hidden; margin-bottom: 26px; border-color: rgba(255, 181, 71, .22); background: linear-gradient(135deg, rgba(255, 122, 61, .12), rgba(56, 189, 248, .06) 60%, rgba(255,255,255,.02)); }
.wasl__shine { position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 181, 71, .14) 80%, transparent 90%); animation: spin 12s linear infinite; pointer-events: none; }
.wasl__intro { position: relative; }
.wasl__intro .section__title { margin-bottom: 10px; }
.wasl__sub { font-family: "Space Grotesk", var(--font-body); color: var(--amber); font-weight: 600; margin-bottom: 18px; }
html[lang="ar"] .wasl__sub { font-family: "Cairo", sans-serif; }
.wasl__desc { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 28px; }
.wasl__cta .wasl__url { font-family: "Space Grotesk", sans-serif; font-weight: 500; opacity: .7; font-size: .85em; padding-inline-start: 10px; border-inline-start: 1px solid rgba(0,0,0,.25); }
html[dir="rtl"] .wasl__cta svg { transform: scaleX(-1); }
.wasl__logo { position: relative; display: grid; place-items: center; }
.wasl__logo-glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 70, .35), transparent 65%); filter: blur(20px); animation: glowPulse2 5s ease-in-out infinite; }
@keyframes glowPulse2 { 50% { transform: scale(1.15); opacity: .6; } }
.wasl__logo-inner {
  position: relative; display: grid; place-items: center;
  width: 250px; aspect-ratio: 1; border-radius: 36px; padding: 30px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), #0b1120;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(255, 181, 71, .08), inset 0 1px 0 rgba(255,255,255,.12);
  animation: logoFloat 7s ease-in-out infinite;
  transition: border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.wasl__logo-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 5s 1s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.wasl__logo-inner img { width: 100%; height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.wasl__logo:hover .wasl__logo-inner { border-color: rgba(255, 181, 71, .45); box-shadow: 0 30px 80px -20px rgba(255, 122, 61, .45), inset 0 1px 0 rgba(255,255,255,.12); }
@keyframes logoFloat { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-14px); } }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { position: relative; padding: 32px 26px 28px; overflow: hidden; transition: border-color .4s; }
.service:hover { border-color: rgba(255, 181, 71, .3); }
.service__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px; background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .25); color: var(--amber); transform: translateZ(30px); transition: transform .5s var(--ease), background .4s, color .4s; }
.service:hover .service__icon { background: var(--amber); color: #111; transform: translateZ(30px) rotate(-8deg) scale(1.06); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; transform: translateZ(20px); }
.service p { color: var(--muted); font-size: .95rem; transform: translateZ(10px); }
.service__num { position: absolute; top: 18px; inset-inline-end: 22px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); line-height: 1; }

/* ---------- Education ---------- */
.edu { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.edu__card { padding: 40px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: border-color .4s; }
.edu__card:hover { border-color: rgba(255, 181, 71, .3); }
.edu__card--main { border-color: rgba(56, 189, 248, .22); background: linear-gradient(160deg, rgba(56, 189, 248, .08), rgba(255,255,255,.015)); }
.edu__badge { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 10px; background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #fff; box-shadow: 0 14px 40px -10px rgba(56, 189, 248, .6); transform: translateZ(30px); }
.edu__badge--alt { background: var(--grad); color: #111; box-shadow: 0 14px 40px -10px rgba(255, 122, 61, .6); }
.edu__badge svg { width: 32px; height: 32px; }
.edu__card h3 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin-top: 6px; }
.edu__deg { color: var(--cyan); font-weight: 600; }
.edu__school { color: var(--text); font-weight: 500; opacity: .85; }
.edu__card p:not(.edu__deg):not(.edu__school) { color: var(--muted); }
.edu__progress { width: 100%; margin-top: 16px; }
.edu__progress-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.edu__bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.edu__bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width 1.8s var(--ease) .3s; }

/* ---------- Skills ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 22px; }
.skill-group { padding: 30px; transition: border-color .4s; }
.skill-group:hover { border-color: rgba(255, 181, 71, .3); }
.skill-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.skill-group__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--surface-2); border: 1px solid var(--border); }
.skill-group h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.s-chip { padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: .92rem; font-weight: 500; transition: transform .35s var(--ease), border-color .35s, background .35s, color .35s; cursor: default; }
.s-chip:hover { transform: translateY(-4px); border-color: var(--amber); background: rgba(255, 181, 71, .1); color: var(--amber); }

.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lang-card { display: flex; align-items: center; gap: 24px; padding: 26px 30px; }
.lang-card h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.lang-card p { color: var(--muted); font-size: .95rem; }
.ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.ring__fg { fill: none; stroke: url(#bpGrad); stroke: var(--amber); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 2s var(--ease) .3s; }
.lang-card.is-in .ring__fg { stroke-dashoffset: calc(327 - 327 * var(--p) / 100); }
.ring__txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Cairo", "Space Grotesk", sans-serif; font-weight: 800; font-size: 1.2rem; }

/* ---------- Contact ---------- */
.contact__box { padding: 80px 60px; text-align: center; overflow: hidden; border-color: rgba(255, 181, 71, .2); }
.contact__glow { position: absolute; width: 600px; height: 600px; left: 50%; top: -340px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 122, 61, .3), transparent 65%); pointer-events: none; animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 50% { opacity: .5; transform: translateX(-50%) scale(1.2); } }
.contact__box .eyebrow { position: relative; }
.contact__box .eyebrow::after { content: ""; width: 34px; height: 1.5px; background: var(--amber); }
.contact__title { position: relative; font-family: var(--font-head); font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; }
html[lang="ar"] .contact__title { letter-spacing: 0; line-height: 1.35; font-weight: 800; }
.contact__sub { position: relative; color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 46px; }
.contact__cards { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 38px; }
.c-card { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .35s, background .35s, transform .35s var(--ease); min-width: 0; }
.c-card:hover { border-color: var(--amber); background: rgba(255, 181, 71, .06); }
.c-card__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 181, 71, .1); color: var(--amber); margin-bottom: 6px; }
.c-card__ico svg { width: 24px; height: 24px; }
.c-card__label { font-size: .8rem; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
html[lang="ar"] .c-card__label { letter-spacing: 0; font-size: .9rem; }
.c-card__val { font-weight: 600; word-break: break-word; font-size: .98rem; }
.contact__actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 50px; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .9rem; }
.footer__by strong { color: var(--amber); }

/* ---------- To top & toast ---------- */
.to-top { position: fixed; bottom: 104px; inset-inline-end: 26px; z-index: 900; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #111; box-shadow: 0 10px 30px -8px rgba(255, 122, 61, .7); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .4s var(--ease); }
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.toast { position: fixed; bottom: 30px; left: 50%; z-index: 2000; transform: translate(-50%, 30px); padding: 14px 24px; border-radius: 14px; background: #111a2e; border: 1px solid rgba(52, 211, 153, .4); color: #a7f3d0; font-weight: 600; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 26px; inset-inline-end: 22px; z-index: 950;
  display: grid; place-items: center;
  animation: waIn .9s 2.2s var(--ease) both, waFloat 3.6s 3.1s ease-in-out infinite;
}
@keyframes waIn { from { opacity: 0; transform: translateY(40px) scale(.4) rotate(-30deg); } }
@keyframes waFloat { 50% { translate: 0 -8px; } }
.wa-float__btn {
  position: relative; z-index: 2;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3ee07f, #1fb457);
  color: #fff;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .65), inset 0 2px 0 rgba(255,255,255,.35);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float:hover .wa-float__btn { transform: scale(1.1) rotate(-10deg); box-shadow: 0 18px 44px -8px rgba(37, 211, 102, .85); }
.wa-float__ring {
  position: absolute; z-index: 1; width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .6);
  animation: waRing 2.6s ease-out infinite;
}
.wa-float__ring--2 { animation-delay: 1.3s; }
@keyframes waRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.wa-float__tip {
  position: absolute; z-index: 3; inset-inline-end: calc(100% + 14px); top: 50%;
  padding: 10px 16px; border-radius: 12px; white-space: nowrap;
  background: #fff; color: #0b1120; font-size: .88rem; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
  opacity: 0; transform: translate(10px, -50%); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease);
}
html[dir="rtl"] .wa-float__tip { transform: translate(-10px, -50%); }
.wa-float__tip::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -6px; width: 12px; height: 12px;
  background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.wa-float:hover .wa-float__tip, .wa-float.show-tip .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
.c-card--wa .c-card__ico { background: rgba(37, 211, 102, .12); color: #3ee07f; }
.c-card--wa:hover { border-color: #25d366; background: rgba(37, 211, 102, .06); }
.footer__by a:hover strong { text-decoration: underline; }

/* Language switch fade */
body.lang-switching main, body.lang-switching .header__inner, body.lang-switching .footer { opacity: 0; transform: translateY(8px); }
main { overflow-x: clip; }
main, .header__inner, .footer { transition: opacity .35s ease, transform .35s ease; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__desc { margin-inline: auto; }
  .hero__ctas, .hero__meta { justify-content: center; }
  .hero__visual { order: -1; }
  .orbit { width: min(320px, 78vw); }
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .wasl__hero { grid-template-columns: 1fr; padding: 44px 32px; text-align: center; }
  .wasl__desc { margin-inline: auto; }
  .wasl__logo { order: -1; }
  .wasl__logo-inner { width: 190px; border-radius: 30px; padding: 22px; }
  .edu { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: calc(100% - 32px); }
  .header__inner { gap: 10px; }
  .logo__text { display: none; }
  .lang-btn { height: 46px; padding: 0 14px; }
  .section { padding: 90px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 60px; }
  .hero__typed { font-size: .92rem; padding: 8px 14px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .hero__meta { flex-direction: column; align-items: center; gap: 8px; }
  .chip { font-size: .76rem; padding: 7px 11px; }
  .chip--1 { inset-inline-start: -2%; }
  .chip--2 { inset-inline-end: -4%; }
  .chip--3 { inset-inline-start: -4%; }
  .stats { gap: 12px; }
  .stat { padding: 22px 18px; }
  .services, .skills__grid, .langs { grid-template-columns: 1fr; }
  .tabs { display: grid; width: 100%; }
  .tab { padding: 12px 10px; font-size: .88rem; }
  .timeline { padding-inline-start: 34px; }
  .timeline__line { inset-inline-start: 7px; }
  .t-item__dot { inset-inline-start: -35px; width: 16px; height: 16px; top: 30px; }
  .t-card { padding: 24px 20px; }
  .t-card:hover { transform: none; }
  .t-card__role { font-size: 1.2rem; }
  .edu__card { padding: 30px 22px; }
  .contact__box { padding: 56px 20px; }
  .contact__actions .btn { width: 100%; }
  .wasl__cta { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
  .to-top { bottom: 88px; inset-inline-end: 22px; width: 46px; height: 46px; }
  .wa-float { bottom: 18px; inset-inline-end: 16px; }
  .wa-float__btn { width: 58px; height: 58px; }
  .wa-float__ring { width: 58px; height: 58px; }
  .marquee { margin: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .split-word { transform: none; }
  .blueprint .draw { stroke-dashoffset: 0; }
  .blueprint .node { opacity: 1; }
}
