/* Ahmed Salah landing — LANDING-1. Dark + blue, no external assets. */
:root {
  --bg: #0a0f1c;
  --bg-alt: #0e1526;
  --surface: #121b30;
  --surface-2: #17223b;
  --border: #22304f;
  --text: #e6ecf7;
  --muted: #9aa8c3;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --cyan: #22d3ee;
  --radius: 14px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.eyebrow { color: var(--blue-2); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8em; }
.accent { background: linear-gradient(90deg, var(--blue-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 28, .8); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand__mark { width: 26px; height: 26px; fill: var(--blue); }
.brand__facets { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a { color: var(--muted); font-size: .95rem; }
.nav__menu a:hover { color: var(--text); }
.nav__menu .nav__cta { color: #fff; background: var(--blue); padding: 8px 16px; border-radius: 999px; }
.nav__menu .nav__cta:hover { background: var(--blue-2); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(59, 130, 246, .35); }
.btn--primary:hover { background: var(--blue-2); color: #fff; }
.btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--blue); color: #fff; }
.btn--ghost { color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--blue-2); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; border-bottom: 1px solid var(--border); }
.hero__glow { position: absolute; inset: -40% -10% auto; height: 700px; background:
  radial-gradient(closest-side at 30% 40%, rgba(59, 130, 246, .28), transparent),
  radial-gradient(closest-side at 75% 30%, rgba(34, 211, 238, .14), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 30%, transparent); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 14ch; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 48px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0; }
.hero__stats li { background: rgba(18, 27, 48, .7); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; min-width: 180px; }
.hero__stats strong { display: block; font-size: 1.3rem; color: #fff; }
.hero__stats span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { margin-bottom: 40px; }

/* About */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.about__card { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 20px; padding: 36px; text-align: center; box-shadow: var(--shadow); }
.avatar { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.about__name { font-size: 1.35rem; margin-bottom: .25em; }
.about__role { color: var(--blue-2); margin: 0; font-weight: 600; }
.about__org { color: var(--muted); margin: .3em 0 0; }
.about__body > p { color: var(--muted); }
.about__audience { font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .35); color: var(--blue-2); font-size: .9rem; font-weight: 500; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card, .project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s; }
.card:hover, .project:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, .6); }
.card p, .project p { color: var(--muted); margin: 0; }
.card__icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 18px; border-radius: 10px; background: rgba(59, 130, 246, .14); fill: none; stroke: var(--blue-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Technologies */
.tech { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.tech li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-align: center; transition: border-color .2s; }
.tech li:hover { border-color: var(--blue); }
.tech__mono { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(59, 130, 246, .25), rgba(34, 211, 238, .15)); border: 1px solid rgba(59, 130, 246, .4); color: #fff; font-size: .85rem; font-weight: 700; }

/* Projects */
.project { display: flex; flex-direction: column; gap: 10px; }
.project h3 { margin: 4px 0 0; }
.project__link { margin-top: auto; padding-top: 10px; font-weight: 600; }
.project--soon { border-style: dashed; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag--live { color: #4ade80; border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }

/* Contact */
.contact { text-align: center; max-width: 720px; }
.contact__who { color: var(--muted); font-size: 1.1rem; }
.contact__who strong { color: var(--text); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__card { max-width: 420px; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px 0; }
  .nav__menu .nav__cta { text-align: center; margin-top: 8px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__stats li { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
