/* ============================================================
   BinAref — design system v2 (ported verbatim from binaref.com)
   ============================================================ */
/* ============================================================
   BinAref — design system v2
   ============================================================ */
:root {
  --bg: #06060d;
  --panel: #0d0e18;
  --panel2: #11121e;
  --text: #f0f5fa;
  --dim: #8a95a5;
  --faint: #5b6574;
  --ice: #9fd6f5;
  --ice-hi: #d3ecff;
  --ice-deep: #67abd9;
  --ice-soft: rgba(159,214,245,0.09);
  --border: rgba(255,255,255,0.08);
  --border2: rgba(159,214,245,0.18);
  --glass: rgba(13,14,24,0.38);
  --glass-hi: rgba(18,20,33,0.55);
  --ink: #04141f;
  --ease: cubic-bezier(.22,.75,.25,1);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Ambient glow field — sits beneath the PCB canvas */
body::before {
  content: ""; position: fixed; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(44% 52% at 12% 6%,  rgba(159,214,245,.075), transparent 66%),
    radial-gradient(36% 44% at 88% 10%, rgba(139,150,235,.05),  transparent 64%),
    radial-gradient(52% 60% at 50% 110%, rgba(159,214,245,.055), transparent 62%);
}
/* Film grain — above canvas, below content */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(159,214,245,0.28); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c1d2c; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #262738; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: none; filter: none; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 48px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: var(--nav-bg, rgba(6,6,13,0.5));
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, padding .35s var(--ease);
}
.nav.scrolled {
  padding: 10px 48px;
  background: var(--nav-bg-scrolled, rgba(6,6,13,0.8));
  border-bottom-color: var(--border);
  box-shadow: 0 16px 48px -20px rgba(0,0,0,.75);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo img { height: 21px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  position: relative;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--dim); text-decoration: none; padding: 6px 1px;
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--ice), rgba(159,214,245,.2));
  transition: right .35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { right: 0; }
.nav-cta {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--ink);
  background: linear-gradient(135deg, var(--ice-hi), var(--ice) 55%, var(--ice-deep));
  padding: 10px 20px; border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(211,236,255,.35), 0 6px 22px -8px rgba(159,214,245,.4);
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.nav-cta:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(211,236,255,.4), 0 10px 30px -8px rgba(159,214,245,.5);
}

/* mega dropdown (the old Services-panel design, rebuilt) */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-chev { font-size: 9px; opacity: .55; margin-inline-start: 3px; }
.nav-dd::after {
  /* invisible bridge so the pointer can travel into the panel */
  content: ""; position: absolute; top: 100%; height: 18px; left: -30px; right: -30px;
  display: none;
}
.nav-dd:hover::after { display: block; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(620px, calc(100vw - 40px));
  padding: 16px; border-radius: 18px;
  background: var(--nav-bg-scrolled, rgba(10,14,20,.94));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 34px 80px -28px rgba(0,0,0,.75);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease), visibility .25s;
  z-index: 60;
}
.nav-dd:hover .nav-dd-panel, .nav-dd-panel:hover {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-panel:empty { display: none; }
.nav-dd-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 4px 12px 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--faint);
}
.nav-dd-head a { color: var(--ice); text-decoration: none; font-size: 11.5px; }
.nav-dd-head a:hover { text-decoration: underline; }
.nav-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-dd-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 12px; border-radius: 12px; text-decoration: none;
  transition: background .2s ease;
}
.nav-dd-item:hover { background: rgba(159,214,245,.08); }
.nav-dd-t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.nav-dd-d {
  font-size: 11.5px; line-height: 1.5; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* GLOBAL CANVAS */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* BinAref brandmark — the REAL logo wordmark (separated words, blue
   accents) sits behind the content in every design; each design
   restyles it (the lava theme burns it into the canvas instead).
   The appearance picker can turn it off site-wide. */
#brandmark {
  position: fixed; inset: 0; z-index: 1; display: none;
  align-items: center; justify-content: center;
  pointer-events: none; user-select: none; overflow: hidden;
}
#brandmark img { width: min(74vw, 900px); height: auto; }
html[data-brand="off"] #brandmark { display: none !important; }

/* design 1's non-lava themes (grid / gradients / minimal) show the
   mark as a quiet ice ghost — lava draws its own on the canvas */
html:not([data-design])[data-bgtype="code"] #brandmark,
html:not([data-design])[data-bgtype="gradient"] #brandmark,
html:not([data-design])[data-bgtype="color"] #brandmark,
html:not([data-design])[data-bgtype="image"] #brandmark { display: flex; }
html:not([data-design]) #brandmark img {
  opacity: .07;
  filter: drop-shadow(0 0 46px rgba(159,214,245,.5));
}
[data-theme="light"]:not([data-design]) #brandmark img { opacity: .09; }

/* HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 48px 90px;
}
.hero-content { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--ice); margin-bottom: 34px;
  padding: 9px 18px 9px 14px; border-radius: 100px;
  border: 1px solid var(--border2); background: rgba(159,214,245,.055);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 12px var(--ice);
  animation: blink 2.4s ease-in-out infinite; flex: none;
}
.hero-h1 {
  font-size: clamp(46px, 7.6vw, 100px); line-height: .97;
  letter-spacing: -.042em; font-weight: 700;
  margin-bottom: 30px; max-width: 14ch;
  background: linear-gradient(180deg, #ffffff 52%, #b9cfdf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Arabic needs taller lines — at .97 the two hero lines collide
   (ascenders/marks overlap; owner report 2026-07-12) */
[dir="rtl"] .hero-h1 { line-height: 1.24; letter-spacing: 0; }
[dir="rtl"] .sec-h2, [dir="rtl"] .proj-h2,
[dir="rtl"] .contact-h2, [dir="rtl"] .p-title { line-height: 1.32; letter-spacing: 0; }
.hero-h1 .hero-accent {
  background: linear-gradient(115deg, var(--ice-hi) 5%, var(--ice) 55%, var(--ice-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65;
  color: var(--dim); max-width: 56ch; margin-bottom: 44px;
}
.hero-sub em {
  font-style: normal; color: var(--text);
  border-bottom: 1px solid rgba(159,214,245,.4); padding-bottom: 1px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--ink);
  background: linear-gradient(135deg, var(--ice-hi), var(--ice) 55%, var(--ice-deep));
  padding: 16px 30px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(211,236,255,.35), 0 14px 38px -14px rgba(159,214,245,.45);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.cta-primary span { transition: transform .25s var(--ease); }
.cta-primary:hover {
  transform: translateY(-2px); filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(211,236,255,.45), 0 20px 48px -14px rgba(159,214,245,.55);
}
.cta-primary:hover span { transform: translateX(4px); }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--text); background: var(--glass); padding: 16px 30px; border-radius: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-decoration: none; border: 1px solid var(--border2);
  transition: background .3s, border-color .3s, transform .25s var(--ease);
}
.cta-secondary:hover { background: var(--ice-soft); border-color: var(--ice); transform: translateY(-2px); }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; max-width: 700px; }
.tech-tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  color: var(--dim); background: var(--glass);
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.tech-tag:hover { color: var(--ice); border-color: var(--border2); transform: translateY(-2px); }
.scroll-ind {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px;
  color: var(--faint); letter-spacing: .32em; text-indent: .32em;
}
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(var(--ice), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}

/* SECTION SHARED */
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .14em;
  color: var(--ice); margin-bottom: 26px; text-transform: uppercase;
}
.sec-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--ice); box-shadow: 0 0 12px rgba(159,214,245,.7);
}
.sec-h2 {
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.034em; font-weight: 700;
  background: linear-gradient(180deg, #ffffff 60%, #c2d5e4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hairline gradient dividers */
.about::before, .projects::before, .contact::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 96px)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2) 18%, var(--border2) 82%, transparent);
}

/* ABOUT */
.about {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 130px 48px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 76px; align-items: start;
}
.about-bio .sec-h2 { margin-bottom: 30px; }
.about-bio p { font-size: 17px; line-height: 1.8; color: var(--dim); margin-bottom: 22px; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio p strong { color: var(--text); font-weight: 500; }
.phil-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--border); border-radius: 20px; padding: 36px 34px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.6);
}
.phil-card::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211,236,255,.35), transparent);
}
.phil-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  pointer-events: none; transition: opacity .45s;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,20%), rgba(159,214,245,.07), transparent 65%);
}
.phil-card:hover::after { opacity: 1; }
.phil-head { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.phil-head-label {
  font-family: var(--mono); font-size: 13px;
  font-weight: 600; letter-spacing: .06em; color: var(--text);
}
.phil-item { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.phil-k {
  font-family: var(--mono); font-size: 12px; color: var(--ice); margin-top: 2px; flex: none;
  text-shadow: 0 0 14px rgba(159,214,245,.4);
}
.phil-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }
.phil-body { font-size: 14px; line-height: 1.6; color: var(--dim); }

/* SKILLS */
.skills {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 90px 48px 130px;
}
.skills-head { margin-bottom: 54px; }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.skill-card {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 28px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .35s, background .35s, transform .35s var(--ease), box-shadow .35s;
}
.skill-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(211,236,255,.5), transparent);
  transition: opacity .4s;
}
.skill-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  pointer-events: none; transition: opacity .45s;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(159,214,245,.08), transparent 65%);
}
.skill-card:hover {
  border-color: var(--border2); background: var(--glass-hi);
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -30px rgba(0,0,0,.65);
}
.skill-card:hover::before, .skill-card:hover::after { opacity: 1; }
.skill-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(160deg, rgba(159,214,245,.16), rgba(159,214,245,.05));
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--ice);
  font-family: var(--mono); font-size: 18px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(211,236,255,.14);
  transition: box-shadow .35s, transform .35s var(--ease);
}
.skill-card:hover .skill-icon { box-shadow: inset 0 1px 0 rgba(211,236,255,.2), 0 8px 24px -8px rgba(159,214,245,.35); transform: translateY(-2px); }
.skill-icon svg { width: 26px; height: 26px; }
.skill-title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 10px; }
.skill-body { font-size: 14px; line-height: 1.65; color: var(--dim); }
.stack-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--faint); margin-right: 8px; }
.stack-chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  color: var(--dim); background: var(--glass);
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.stack-chip:hover { color: var(--ice); border-color: var(--border2); transform: translateY(-2px); }

/* PROJECTS */
.projects {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto; padding: 110px 48px 130px;
}
.proj-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: 40px;
}
.proj-h2 {
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.034em; font-weight: 700;
  background: linear-gradient(180deg, #ffffff 60%, #c2d5e4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* the count stat — a big number + label (owner: nicer than [ 06 / 09 ]) */
.proj-count { display: flex; align-items: baseline; gap: 10px; }
.count-num {
  font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 4vw, 44px);
  line-height: 1; letter-spacing: .02em;
  background: linear-gradient(115deg, var(--ice-hi) 5%, var(--ice) 55%, var(--ice-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--faint); max-width: 140px; line-height: 1.5; }

/* "all projects / all courses" row under the featured grids */
.all-row { display: flex; justify-content: center; margin-top: 38px; }

/* the /projects, /courses, /tech listing pages */
.listing { padding-top: 150px; min-height: 72vh; }
.listing-sub { margin-top: 12px; font-size: 14.5px; color: var(--dim); max-width: 480px; line-height: 1.6; }

/* "read more →" line at the foot of capability / technology cards */
.skill-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ice);
  opacity: .75; transition: opacity .25s ease;
}
.skill-card:hover .skill-more { opacity: 1; }
.skill-more-arr { transition: transform .25s ease; display: inline-block; }
.skill-card:hover .skill-more-arr { transform: translateX(4px); }
[dir="rtl"] .skill-more-arr { transform: scaleX(-1); }
[dir="rtl"] .skill-card:hover .skill-more-arr { transform: scaleX(-1) translateX(4px); }
.skill-emoji { font-size: 26px; line-height: 1; }

.filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; cursor: pointer;
  color: var(--dim); background: var(--glass);
  border: 1px solid var(--border); padding: 10px 18px; border-radius: 100px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .25s, border-color .25s, background .25s, transform .2s var(--ease), box-shadow .25s;
}
.filter-btn:hover:not(.active) { color: var(--text); border-color: var(--border2); transform: translateY(-1px); }
.filter-btn.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--ice-hi), var(--ice) 55%, var(--ice-deep));
  border-color: transparent; font-weight: 600;
  box-shadow: 0 8px 24px -10px rgba(159,214,245,.45);
}
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.proj-card {
  cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; min-height: 240px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .35s, transform .35s var(--ease), background .35s, box-shadow .35s;
}
.proj-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(211,236,255,.5), transparent);
  transition: opacity .4s;
}
.proj-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  pointer-events: none; transition: opacity .45s;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(159,214,245,.08), transparent 65%);
}
.proj-card:hover {
  border-color: var(--border2); transform: translateY(-5px); background: var(--glass-hi);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(159,214,245,.06);
}
.proj-card:hover::before, .proj-card:hover::after { opacity: 1; }
.proj-card.hidden { display: none; }
.proj-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.proj-card-top .badge { margin-left: auto; }
.proj-thumb {
  width: 52px; height: 52px; border-radius: 13px; flex: none; overflow: hidden;
  background: #0a0a14; border: 1px solid var(--border2);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.6);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.proj-card:hover .proj-thumb { transform: scale(1.05); box-shadow: 0 10px 26px -8px rgba(0,0,0,.7); }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-num {
  position: absolute; bottom: 26px; right: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--faint);
  transition: opacity .3s, transform .3s var(--ease);
}
.proj-arrow {
  position: absolute; bottom: 23px; right: 26px;
  color: var(--ice); font-size: 17px; opacity: 0; transform: translateX(-8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.proj-card:hover .proj-num { opacity: 0; transform: translateX(8px); }
.proj-card:hover .proj-arrow { opacity: 1; transform: none; }
.proj-title { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 9px; }
.proj-summary { font-size: 14px; line-height: 1.6; color: var(--dim); margin-bottom: 20px; flex: 1; }
.proj-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-right: 40px; }
.proj-chip {
  font-family: var(--mono); font-size: 11px;
  color: var(--faint); border: 1px solid var(--border); padding: 4px 10px; border-radius: 100px;
  transition: color .25s, border-color .25s;
}
.proj-card:hover .proj-chip { color: var(--dim); border-color: var(--border2); }

/* BADGES */
.badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; white-space: nowrap; border: 1px solid;
}
.badge-live     { color: #7fe0a8; background: rgba(127,224,168,.12); border-color: rgba(127,224,168,.3); }
.badge-published{ color: #9fd6f5; background: rgba(159,214,245,.14); border-color: rgba(159,214,245,.35); }
.badge-active   { color: #9fd6f5; background: rgba(159,214,245,.10); border-color: rgba(159,214,245,.25); }
.badge-beta     { color: #e6c989; background: rgba(230,201,137,.12); border-color: rgba(230,201,137,.3); }
.badge-dev      { color: #b6a8e6; background: rgba(182,168,230,.12); border-color: rgba(182,168,230,.3); }
.badge-concept  { color: #8a95a5; background: rgba(124,136,150,.12); border-color: rgba(124,136,150,.3); }

/* CONTACT */
.contact {
  position: relative; z-index: 2;
  padding: 130px 48px;
}
.contact-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 76px; align-items: start;
}
.contact-h2 {
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.036em; font-weight: 700; margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 55%, #bed2e2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-sub { font-size: 17px; line-height: 1.75; color: var(--dim); max-width: 46ch; margin-bottom: 40px; }
.focus-item { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--border); }
.focus-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; position: relative;
  border: 1px solid var(--ice); box-shadow: 0 0 12px rgba(159,214,245,.35);
}
.focus-dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--ice); }
.focus-text { font-size: 16px; color: var(--text); }
.contact-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--border); border-radius: 20px; padding: 12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.6);
}
.contact-card::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211,236,255,.35), transparent);
}
.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 21px 22px; border-radius: 13px; text-decoration: none;
  transition: background .3s;
}
.contact-link + .contact-link { border-top: 1px solid var(--border); border-radius: 0 0 13px 13px; }
.contact-link:hover { background: var(--ice-soft); }
.contact-link-left { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--border2);
  background: linear-gradient(160deg, rgba(159,214,245,.12), rgba(159,214,245,.03));
  display: flex; align-items: center; justify-content: center;
  color: var(--ice); font-family: var(--mono); font-size: 13px; font-weight: 600;
  transition: box-shadow .3s;
}
.contact-link:hover .contact-icon { box-shadow: 0 6px 20px -8px rgba(159,214,245,.4); }
.contact-lbl { font-size: 10.5px; font-family: var(--mono); letter-spacing: .14em; color: var(--faint); margin-bottom: 4px; }
.contact-val { font-size: 15px; color: var(--text); font-weight: 500; }
.contact-arr { color: var(--dim); font-size: 18px; transition: transform .3s var(--ease), color .3s; }
.contact-link:hover .contact-arr { transform: translate(3px,-3px); color: var(--ice); }

/* FOOTER */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 26px 48px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(560px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159,214,245,.35), transparent);
}
.footer img { height: 19px; width: auto; display: block; opacity: .9; }
.footer-copy { font-family: var(--mono); font-size: 13.5px; letter-spacing: .04em; color: var(--dim); }

/* ===== HAMBURGER NAV ===== */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 59;
  background: rgba(6,6,13,0.96); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  flex-direction: column; padding: 96px 28px 40px;
  gap: 4px; overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--mono); font-size: 18px; letter-spacing: .02em;
  color: var(--dim); text-decoration: none;
  padding: 18px 4px; border-bottom: 1px solid var(--border);
  transition: color .2s, padding-left .25s var(--ease);
}
.nav-mobile a:hover { color: var(--text); padding-left: 10px; }
.nav-mobile .nav-mobile-cta {
  margin-top: 24px; text-align: center;
  background: linear-gradient(135deg, var(--ice-hi), var(--ice) 55%, var(--ice-deep));
  color: var(--ink);
  border-radius: 12px; padding: 17px; border: none;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 38px -14px rgba(159,214,245,.4);
}
.nav-mobile .nav-mobile-cta:hover { padding-left: 17px; color: var(--ink); }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .scroll-line { animation: none; }
}

/* ===== RESPONSIVE ===== */

/* — Mobile narrow (≤ 640px) — */
@media (max-width: 640px) {
  .nav { padding: 12px 20px; }
  .nav.scrolled { padding: 9px 20px; }
  .nav-logo img { height: 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 104px 20px 64px; }
  .hero-eyebrow { font-size: 10.5px; margin-bottom: 24px; padding: 8px 14px 8px 11px; }
  .hero-h1 { font-size: clamp(37px, 10vw, 52px); margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-ctas { flex-direction: column; gap: 10px; margin-bottom: 40px; }
  .cta-primary, .cta-secondary { justify-content: center; width: 100%; }
  .scroll-ind { display: none; }

  .about { grid-template-columns: 1fr; padding: 68px 20px; gap: 40px; }
  .about::before, .projects::before, .contact::before { width: calc(100% - 40px); }
  .phil-card { padding: 28px 24px; }
  .skills { padding: 0 20px 76px; }
  .skills-head { margin-bottom: 36px; }
  .skills-grid { grid-template-columns: 1fr; gap: 14px; }
  .stack-row { margin-top: 28px; }

  .projects { padding: 68px 20px 80px; }
  .proj-header-row { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .proj-grid { grid-template-columns: 1fr; gap: 14px; }
  .filter-row { gap: 7px; margin-bottom: 26px; }
  .filter-btn { font-size: 11px; padding: 8px 13px; }

  .contact { padding: 68px 20px; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .contact-h2 { font-size: clamp(28px, 8vw, 40px); }
  .contact-link { padding: 18px 16px; }

  .footer { padding: 22px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer img { height: 15px; }
}

/* — Z Fold unfolded / large tablet (641px – 1023px) — */
@media (min-width: 641px) and (max-width: 1023px) {
  .nav { padding: 13px 28px; }
  .nav.scrolled { padding: 9px 28px; }
  .nav-logo img { height: 18px; }
  .nav-links { gap: 22px; }
  .nav-link { font-size: 12px; }
  .nav-cta { padding: 9px 15px; font-size: 12px; }

  .hero { padding: 120px 36px 80px; }
  .hero-h1 { font-size: clamp(40px, 6.4vw, 68px); }

  .about { grid-template-columns: 1fr; padding: 92px 36px; gap: 52px; max-width: 100%; }
  .skills { padding: 0 36px 100px; max-width: 100%; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .projects { padding: 88px 36px 100px; max-width: 100%; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .contact { padding: 92px 36px; }
  .contact-inner { grid-template-columns: 1fr; gap: 52px; }

  .footer { padding: 24px 36px; }
}

/* — Laptop (1024px – 1439px) — */
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero { padding: 124px 48px 88px; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .proj-grid { grid-template-columns: repeat(3, 1fr); }
}

/* — Large desktop / TV ≥ 1440px — */
@media (min-width: 1440px) {
  .nav { padding: 16px 72px; }
  .nav.scrolled { padding: 11px 72px; }
  .nav-logo img { height: 23px; }
  .nav-link { font-size: 14px; }
  .nav-cta { font-size: 14px; padding: 11px 24px; }

  .hero { padding: 150px 72px 110px; }

  .about { max-width: 1400px; padding: 150px 72px 140px; }
  .about::before, .projects::before, .contact::before { width: min(1340px, calc(100% - 144px)); }
  .skills { max-width: 1400px; padding: 100px 72px 150px; }
  .skills-grid { gap: 24px; }

  .projects { max-width: 1600px; padding: 130px 72px 150px; }
  .proj-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .contact { padding: 150px 72px; }
  .contact-inner { max-width: 1400px; }

  .footer { padding: 30px 72px; }
  .footer img { height: 21px; }
}

/* — 4K / TV ≥ 1920px — */
@media (min-width: 1920px) {
  .nav { padding: 18px 120px; }
  .nav.scrolled { padding: 12px 120px; }
  .nav-logo img { height: 26px; }
  .nav-link { font-size: 16px; }

  .hero { padding: 180px 120px 130px; }
  .hero-h1 { font-size: clamp(88px, 5.4vw, 122px); }
  .hero-sub { font-size: 22px; }

  .about { max-width: 1800px; padding: 180px 120px 160px; }
  .about-bio h2, .about .sec-h2 { font-size: clamp(48px, 3.2vw, 66px); }

  .skills { max-width: 1800px; padding: 120px 120px 180px; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .skill-title { font-size: 22px; }
  .skill-body { font-size: 16px; }

  .projects { max-width: 2000px; padding: 160px 120px 180px; }
  .proj-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }

  .contact { padding: 180px 120px; }
  .contact-inner { max-width: 1800px; }
  .contact-h2 { font-size: clamp(56px, 3.8vw, 78px); }

  .footer { padding: 34px 120px; }
  .footer img { height: 23px; }
  .footer-copy { font-size: 14px; }
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #eef1f7; --panel: #ffffff; --panel2: #f3f6fb;
  --text: #0f1622; --dim: #4b5670; --faint: #8792a8;
  --ice: #2e7fbf; --ice-hi: #57a6de; --ice-deep: #1f5f96;
  --ice-soft: rgba(46,127,191,0.09);
  --border: rgba(20,32,56,0.10); --border2: rgba(46,127,191,0.24);
  --glass: rgba(255,255,255,0.60); --glass-hi: rgba(255,255,255,0.85);
  --ink: #ffffff;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(44% 52% at 12% 6%,  rgba(46,127,191,.06), transparent 66%),
    radial-gradient(36% 44% at 88% 10%, rgba(255,122,47,.05),  transparent 64%),
    radial-gradient(52% 60% at 50% 110%, rgba(46,127,191,.05), transparent 62%);
}
[data-theme="light"] body::after { opacity: .035; }
[data-theme="light"] .nav { background: var(--nav-bg, rgba(244,246,251,0.72)); }
[data-theme="light"] .nav.scrolled { background: var(--nav-bg-scrolled, rgba(244,246,251,0.9)); }
[data-theme="light"] .nav-mobile { background: rgba(240,243,249,0.98); }
[data-theme="light"] .hero-h1 { background: linear-gradient(180deg,#0f1622,#33465e); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .sec-h2,
[data-theme="light"] .proj-h2,
[data-theme="light"] .contact-h2 { background: linear-gradient(180deg,#0f1622,#39506e); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c4ccdb; border-color: var(--bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #aab4c8; }

/* THEME TOGGLE */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer; flex: none;
  background: var(--glass); border: 1px solid var(--border2); color: var(--ice);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .25s, border-color .25s, background .25s, transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--ice); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }

/* ===== LAVA-GLASS ACCENTS (match the molten background) ===== */
:root { --lava:#ff8436; --lava2:#ff4a2b; --lava-soft:rgba(255,132,54,0.14); --lava-line:rgba(255,132,54,0.34); }
[data-theme="light"] { --lava:#e2661c; --lava2:#d63c22; --lava-soft:rgba(226,102,28,0.12); --lava-line:rgba(226,102,28,0.32); }
.nav { box-shadow: 0 1px 0 var(--lava-soft); }
.nav.scrolled { box-shadow: 0 1px 0 var(--lava-line), 0 16px 48px -20px rgba(0,0,0,.6); }
.footer::before { background: linear-gradient(90deg, transparent, var(--lava-line), var(--ice), transparent); }
.hero-dot { background: var(--lava); box-shadow: 0 0 12px var(--lava); }
.proj-arrow { color: var(--lava); }
.proj-card:hover, .skill-card:hover, .phil-card:hover, .contact-card:hover {
  border-color: var(--lava-line);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px var(--lava-soft), 0 0 44px -10px rgba(255,90,40,.24);
}
.proj-card:hover .proj-thumb { box-shadow: 0 10px 26px -8px rgba(255,90,40,.4); }
.cta-primary:hover, .nav-cta:hover { box-shadow: inset 0 0 0 1px rgba(211,236,255,.45), 0 18px 44px -14px rgba(255,90,40,.5); }
.filter-btn.active { box-shadow: 0 8px 24px -10px rgba(255,90,40,.5); }
.filter-btn:hover:not(.active) { border-color: var(--lava-line); color: var(--lava); }
.tech-tag:hover, .stack-chip:hover { border-color: var(--lava-line); color: var(--lava); }
.skill-card:hover .skill-icon { border-color: var(--lava-line); box-shadow: inset 0 1px 0 rgba(211,236,255,.2), 0 8px 24px -8px rgba(255,90,40,.35); }
.contact-link:hover { background: var(--lava-soft); }
.contact-link:hover .contact-arr { color: var(--lava); }
.theme-toggle:hover { color: var(--lava); border-color: var(--lava-line); }

/* ===== v3 tuning: transparent lava-through cards · speed · logo ===== */
:root { --glass: rgba(14,16,26,0.16); --glass-hi: rgba(20,22,36,0.26); }
[data-theme="light"] { --glass: rgba(255,255,255,0.40); --glass-hi: rgba(255,255,255,0.58); }
/* drop the costly backdrop-blur behind the animating canvas (speed) and let the
   molten background read through the cards; keep a light blur only on the nav */
.proj-card, .skill-card, .phil-card, .contact-card, .tech-tag, .stack-chip,
.filter-btn, .theme-toggle, .cta-secondary { backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav { backdrop-filter: blur(10px) saturate(1.25); -webkit-backdrop-filter: blur(10px) saturate(1.25); }

/* ===== v4: monogram fallback + lava frame + in-card icon scale ===== */
.proj-thumb.mono {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; color: var(--ice); font-size: 17px; letter-spacing: .02em;
  background: linear-gradient(155deg, rgba(159,214,245,.16), rgba(255,122,47,.12));
}
.proj-thumb { border-color: var(--lava-line); box-shadow: 0 6px 18px -8px rgba(0,0,0,.6), 0 0 18px -6px rgba(255,90,40,.28); }
.skill-card:hover .skill-icon { transform: scale(1.12); box-shadow: inset 0 1px 0 rgba(211,236,255,.2), 0 8px 24px -8px rgba(255,90,40,.4); }
.contact-link:hover .contact-icon { transform: scale(1.1); }

/* ===== v5 fixes: nav distribution + logo size ===== */
.nav { justify-content: flex-start; gap: 22px; }
.nav-logo { margin-inline-end: auto; }
.nav-logo img { height: 40px; }
.footer img { height: 26px; }
/* logo B sits close to the screen edge — nav + footer (overrides all breakpoints) */
.nav, .nav.scrolled { padding-left: 26px; }
.footer { padding-left: 28px; }
@media (max-width: 640px) { .nav, .nav.scrolled { padding-left: 15px; } .footer { padding-left: 18px; } }

/* ===== language switcher ===== */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 40px; padding: 0 12px; border-radius: 11px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border2); color: var(--ice);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 600; font-size: 12.5px; letter-spacing: .04em;
  transition: color .25s, border-color .25s, background .25s, transform .2s var(--ease);
}
.lang-toggle:hover { color: var(--text); border-color: var(--ice); transform: translateY(-1px); }
.lang-toggle svg { width: 17px; height: 17px; }
.lang-code { min-width: 1.4em; text-align: center; }
[data-theme="light"] .lang-toggle:hover { color: var(--lava); border-color: var(--lava-line); }

/* ===== RTL (Arabic) ===== */
[dir="rtl"] .nav, [dir="rtl"] .nav.scrolled { padding-left: 48px; padding-right: 26px; }
[dir="rtl"] .footer { padding-left: 48px; padding-right: 28px; }
[dir="rtl"] .hero-eyebrow, [dir="rtl"] .sec-label, [dir="rtl"] .stack-lbl,
[dir="rtl"] .scroll-ind { letter-spacing: 0; }
[dir="rtl"] .proj-num, [dir="rtl"] .proj-arrow { direction: ltr; }
@media (max-width: 640px) {
  [dir="rtl"] .nav, [dir="rtl"] .nav.scrolled { padding-left: 20px; padding-right: 15px; }
  [dir="rtl"] .footer { padding-left: 20px; padding-right: 18px; }
}

/* ===== readability: less transparent cards + clearer text ===== */
:root { --glass: rgba(14,16,26,0.62); --glass-hi: rgba(20,22,36,0.74); --dim: #cbd4e2; }
[data-theme="light"] { --glass: rgba(255,255,255,0.82); --glass-hi: rgba(255,255,255,0.92); --dim: #333d52; }

/* ---- language dropdown menu (ported from the old site's ui.css) ---- */
.lang-menu {
  position: fixed; z-index: 4300; min-width: 156px; display: none; flex-direction: column;
  padding: 6px; border-radius: 13px; gap: 2px;
  background: rgba(12,14,22,0.97); border: 1px solid rgba(159,214,245,.2);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lang-menu.open { display: flex; animation: langpop .16s ease; }
@keyframes langpop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-opt {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 9px;
  background: transparent; color: #dbe7f1; cursor: pointer; text-align: start; width: 100%;
  font: 500 14.5px/1 "Space Grotesk", system-ui, sans-serif;
}
.lang-opt:hover { background: rgba(159,214,245,.12); }
.lang-opt.cur { color: var(--ice, #9fd6f5); background: rgba(159,214,245,.08); }
.lang-opt-code { font: 700 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; opacity: .65; min-width: 2.1em; }
.lang-opt-name { flex: 1; }
[data-theme="light"] .lang-menu { background: rgba(255,255,255,.98); border-color: rgba(20,30,50,.12); box-shadow: 0 24px 60px -20px rgba(20,30,60,.28); }
[data-theme="light"] .lang-opt { color: #1a2233; }
[data-theme="light"] .lang-opt:hover { background: rgba(226,102,28,.1); }
.lang-toggle::after { content: "▾"; font-size: 10px; opacity: .6; margin-inline-start: 1px; }

/* skill cards are links now (clickable like project cards) */
a.skill-card { text-decoration: none; color: inherit; display: block; }
