/* ===========================================================
   Ahmad Shook — Portfolio
   Design tokens, base, layout
   =========================================================== */

:root {
  /* Accent (blue → violet) */
  --accent-1: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,92,246,.16));

  /* Dark theme (default) */
  --bg: #07080f;
  --bg-2: #0a0b15;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f3fb;
  --text-2: #aeb4c8;
  --text-3: #6f768d;
  --glass-blur: 18px;
  --shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  --ring: 0 0 0 1px rgba(255,255,255,.05);

  --maxw: 1180px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --font-display: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="light"] {
  --bg: #f4f5fa;
  --bg-2: #eceef6;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0d1020;
  --text-2: #444c63;
  --text-3: #7b829a;
  --shadow: 0 24px 60px -28px rgba(35, 45, 90, .28);
  --ring: 0 0 0 1px rgba(15,23,42,.04);
}

/* Arabic font swap */
:root[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .4s var(--ease);
}

::selection { background: rgba(139,92,246,.35); color: #fff; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 { letter-spacing: 0; line-height: 1.25; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

section { position: relative; padding-block: clamp(72px, 9vw, 132px); }

/* ---------- Animated background field ---------- */
.bg-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-field::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(55% 45% at 12% 18%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(50% 50% at 50% 100%, rgba(34,211,238,.10), transparent 60%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; }
.orb.a { width: 460px; height: 460px; background: radial-gradient(circle, #3b82f6, transparent 70%); top: -120px; right: -80px; animation: drift1 22s var(--ease) infinite; }
.orb.b { width: 520px; height: 520px; background: radial-gradient(circle, #8b5cf6, transparent 70%); top: 38%; left: -160px; animation: drift2 28s var(--ease) infinite; }
.orb.c { width: 360px; height: 360px; background: radial-gradient(circle, #22d3ee, transparent 70%); bottom: -120px; left: 46%; animation: drift3 25s var(--ease) infinite; }
:root[data-theme="light"] .orb { opacity: .32; }

@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-60px,50px) scale(1.12);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(70px,-40px) scale(1.08);} }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-50px,-30px) scale(1.15);} }

.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .orb{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Section header ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface);
}
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--accent-2); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 20px 0 14px; }
.sec-head p { color: var(--text-2); font-size: clamp(15px, 1.5vw, 18px); }

.gradient-text {
  background: linear-gradient(120deg, var(--accent-3), var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .4s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  margin: 16px auto; max-width: var(--maxw); width: calc(100% - 40px);
  padding: 11px 11px 11px 20px;
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
}
.nav.scrolled .nav-inner { background: var(--surface-2); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 18px -4px rgba(99,102,241,.7);
}
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  font-size: 14.5px; color: var(--text-2); padding: 9px 14px; border-radius: 100px;
  transition: all .25s var(--ease); position: relative; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }

/* language pill */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-3); font-weight: 600;
  font-size: 12.5px; padding: 6px 11px; border-radius: 100px; transition: all .25s var(--ease);
  font-family: var(--font-display);
}
.lang-switch button.active { color: #fff; background: var(--grad); box-shadow: 0 4px 12px -3px rgba(99,102,241,.6); }
.lang-switch button:not(.active):hover { color: var(--text); }

.menu-toggle { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  position: relative; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(99,102,241,.65); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(99,102,241,.8); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent-2); }

/* ============ HERO ============ */
.hero { padding-top: 150px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.hero-status {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2);
  padding: 8px 15px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); margin-bottom: 26px;
}
.hero-status .live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.5);} 70%{box-shadow:0 0 0 9px rgba(52,211,153,0);} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: .98; margin-bottom: 22px; }
:root[lang="ar"] .hero h1 { line-height: 1.15; }
.hero .titles { font-family: var(--font-display); font-size: clamp(15px, 1.8vw, 20px); font-weight: 500; color: var(--text); margin-bottom: 18px; min-height: 1.4em; }
.hero .titles .sep { color: var(--accent-2); margin-inline: 8px; }
.hero .headline { font-size: clamp(16px, 1.7vw, 20px); color: var(--text-2); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.hero-stats .stat .l { font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
:root[lang="ar"] .hero-stats .stat .l { text-transform: none; letter-spacing: 0; }

/* portrait */
.hero-portrait { position: relative; justify-self: center; }
.portrait-frame {
  position: relative; width: min(380px, 78vw); aspect-ratio: 4/4.6; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  background: var(--bg-2);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,15,.7), transparent 45%); }
.portrait-glow { position: absolute; inset: -30px; border-radius: 40px; background: var(--grad); filter: blur(50px); opacity: .35; z-index: -1; }
.portrait-tag {
  position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: 16px;
  background: rgba(12,14,26,.55); backdrop-filter: blur(14px);
}
.portrait-tag .pin { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-soft); display: grid; place-items: center; color: var(--accent-3); }
.portrait-tag .pin svg { width: 19px; height: 19px; }
.portrait-tag .pt-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff; }
.portrait-tag .pt-sub { font-size: 12px; color: #c3c8da; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 100px; border: 1px solid var(--border-strong);
  background: rgba(14,16,28,.7); backdrop-filter: blur(14px); font-size: 13px; font-weight: 600;
  font-family: var(--font-display); box-shadow: var(--shadow); color: #fff;
}
:root[data-theme="light"] .float-chip { background: rgba(255,255,255,.85); color: var(--text); }
:root[data-theme="light"] .portrait-tag { background: rgba(255,255,255,.7); }
:root[data-theme="light"] .portrait-tag .pt-title { color: var(--text); }
:root[data-theme="light"] .portrait-tag .pt-sub { color: var(--text-2); }
.float-chip svg { width: 15px; height: 15px; color: var(--accent-3); }
.float-chip.f1 { top: 34px; left: -26px; animation: floaty 5s var(--ease) infinite; }
.float-chip.f2 { top: 50%; right: -34px; animation: floaty 6s var(--ease) infinite .8s; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* ============ GLASS CARD base ============ */
.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--ring);
}

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.about-lead { font-size: clamp(18px, 2vw, 23px); font-family: var(--font-display); font-weight: 500; line-height: 1.4; margin-bottom: 22px; }
.about-body p { color: var(--text-2); margin-bottom: 16px; font-size: 16px; }
.about-facts { display: grid; gap: 12px; }
.fact {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
  transition: all .3s var(--ease);
}
.fact:hover { border-color: var(--border-strong); transform: translateX(4px); }
:root[dir="rtl"] .fact:hover { transform: translateX(-4px); }
.fact .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); color: var(--accent-3); display: grid; place-items: center; }
.fact .ic svg { width: 20px; height: 20px; }
.fact .ft { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.fact .fd { font-size: 13.5px; color: var(--text-3); }

/* ============ SKILLS ============ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.skill {
  padding: 22px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  transition: all .35s var(--ease); position: relative; overflow: hidden;
}
.skill:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.skill-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.skill-name { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.skill-name .si { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); color: var(--accent-3); display: grid; place-items: center; flex: none; }
.skill-name .si svg { width: 20px; height: 20px; }
.skill-pct { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-2); }
.bar { height: 7px; border-radius: 100px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.bar > i { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--grad); transition: width 1.3s var(--ease); }

/* ============ PROJECTS ============ */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.proj {
  padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  transition: all .4s var(--ease); position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.proj::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .4s var(--ease); }
.proj:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.proj:hover::before { opacity: 1; }
.proj > * { position: relative; z-index: 1; }
.proj-ic { width: 54px; height: 54px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 10px 24px -8px rgba(99,102,241,.6); }
.proj-ic svg { width: 26px; height: 26px; }
.proj-cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 8px; }
:root[lang="ar"] .proj-cat { letter-spacing: 0; text-transform: none; }
.proj h3 { font-size: 21px; margin-bottom: 10px; }
.proj p { color: var(--text-2); font-size: 15px; flex: 1; }
.proj-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text); }
.proj-foot svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.proj:hover .proj-foot svg { transform: translateX(5px); }
:root[dir="rtl"] .proj-foot svg { transform: scaleX(-1); }
:root[dir="rtl"] .proj:hover .proj-foot svg { transform: scaleX(-1) translateX(5px); }

/* ============ TUTORING ============ */
.tutor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tutor-feat { padding: 26px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: all .35s var(--ease); }
.tutor-feat:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tf-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); color: var(--accent-3); display: grid; place-items: center; margin-bottom: 18px; }
.tf-ic svg { width: 26px; height: 26px; }
.tutor-feat h3 { font-size: 18px; margin-bottom: 8px; }
.tutor-feat p { color: var(--text-2); font-size: 14.5px; }

.tutor-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--border-strong);
  background: var(--grad-soft); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  position: relative; overflow: hidden;
}
.tutor-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 130% at 100% 0%, rgba(139,92,246,.20), transparent 60%); pointer-events: none; }
.tc-info { position: relative; flex: 1 1 420px; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tc-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; font-family: var(--font-display);
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.tc-chip svg { width: 15px; height: 15px; color: var(--accent-3); flex: none; }
.tc-info h3 { font-size: clamp(21px, 2.6vw, 30px); margin-bottom: 10px; }
.tc-info p { color: var(--text-2); font-size: 15.5px; max-width: 540px; }
.tc-action { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tc-phone { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 16px; letter-spacing: .01em; direction: ltr; }
.btn-wa { background: #25D366; color: #04210f; box-shadow: 0 12px 30px -10px rgba(37,211,102,.5); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(37,211,102,.7); }
.btn-wa svg { width: 20px; height: 20px; }

/* ============ EXPERIENCE TIMELINE ============ */
.timeline { position: relative; max-width: 820px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent-1), var(--accent-2), transparent); }
:root[dir="rtl"] .timeline::before { left: auto; right: 19px; }
.tl-item { position: relative; padding-inline-start: 64px; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node { position: absolute; left: 8px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); display: grid; place-items: center; }
:root[dir="rtl"] .tl-node { left: auto; right: 8px; }
.tl-node::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.tl-card { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: all .3s var(--ease); }
.tl-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.tl-period { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--accent-3); margin-bottom: 6px; }
.tl-card h3 { font-size: 19px; margin-bottom: 6px; }
.tl-card p { color: var(--text-2); font-size: 14.5px; }

/* ============ STRENGTHS ============ */
.strength-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.strength {
  display: flex; align-items: center; gap: 11px; padding: 14px 20px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--surface);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: all .3s var(--ease); cursor: default;
}
.strength .sd { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); transition: all .3s var(--ease); }
.strength:hover { transform: translateY(-4px) scale(1.03); border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -10px rgba(99,102,241,.6); }
.strength:hover .sd { background: #fff; }

/* ============ LANGUAGES ============ */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lang-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: all .3s var(--ease); }
.lang-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.lang-card .lc-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.lang-card .lc-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.lang-card .lc-level { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.lang-card .lc-flag { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.contact-aside h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.contact-aside p { color: var(--text-2); font-size: 16px; margin-bottom: 28px; max-width: 380px; }
.contact-list { display: grid; gap: 12px; margin-bottom: 30px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); transition: all .3s var(--ease); }
.contact-row:hover { border-color: var(--border-strong); transform: translateX(4px); }
:root[dir="rtl"] .contact-row:hover { transform: translateX(-4px); }
.contact-row .cr-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); color: var(--accent-3); display: grid; place-items: center; flex: none; }
.contact-row .cr-ic svg { width: 19px; height: 19px; }
.contact-row .cr-l { font-size: 12px; color: var(--text-3); }
.contact-row .cr-v { font-family: var(--font-display); font-weight: 600; font-size: 15px; word-break: normal; overflow-wrap: break-word; }
.contact-row span { min-width: 0; }
.socials { display: flex; gap: 10px; }
.social {
  width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--text); transition: all .3s var(--ease);
}
.social:hover { transform: translateY(-4px); border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(99,102,241,.6); }
.social svg { width: 20px; height: 20px; }

.contact-form { padding: clamp(24px, 3vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; font-family: var(--font-display); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: all .25s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { font-size: 14px; margin-top: 6px; min-height: 20px; }
.form-status.ok { color: #34d399; }
.form-status.err { color: #fb7185; }
.contact-form .btn-primary { width: 100%; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding-block: 64px 40px; position: relative; }
.footer-quote { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.footer-quote .fq-mark { font-family: var(--font-display); font-size: 60px; line-height: 0; color: var(--accent-2); opacity: .4; }
.footer-quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 3vw, 32px); line-height: 1.3; margin-top: 18px; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.footer-bar .fb-links { display: flex; gap: 18px; }
.footer-bar a:hover { color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-status, .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero .headline { margin-inline: auto; }
  .hero-portrait { order: -1; margin-bottom: 12px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav-inner { padding: 10px 10px 10px 16px; }
  .mobile-menu {
    position: fixed; inset: 78px 12px auto 12px; z-index: 99;
    padding: 14px; border-radius: var(--r-lg); display: none; flex-direction: column; gap: 4px;
    background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 13px 16px; border-radius: var(--r-sm); color: var(--text-2); font-family: var(--font-display); font-weight: 500; }
  .mobile-menu a:hover { background: var(--surface); color: var(--text); }
  .field.row2 { grid-template-columns: 1fr; }
  .brand .full { display: none; }
  section { padding-block: 64px; }
}
@media (min-width: 761px) { .mobile-menu { display: none !important; } }
