:root {
  --navy: #0a1b33;
  --navy-2: #10294d;
  --sky: #3ea6ff;
  --sky-2: #8fd0ff;
  --sand: #e9c98a;
  --ink: #10203a;
  --muted: #5b6b85;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.6;
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
  background: rgba(10, 27, 51, .92);
  backdrop-filter: blur(10px);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--sky); }
.nav nav { display: flex; gap: 18px; margin-inline-start: auto; }
.nav nav a { text-decoration: none; font-size: .95rem; opacity: .85; }
.nav nav a:hover { opacity: 1; }
.lang {
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer;
}
.lang:hover { background: rgba(255,255,255,.12); }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, #2a6fc0 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-sky { position: absolute; inset: auto 0 0 0; height: 60%; }
.hero-sky svg { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; padding: 96px 20px 120px; max-width: 860px; }
.eyebrow { margin: 0 0 14px; color: var(--sky-2); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.08; font-weight: 800; }
.lede { margin: 0 0 30px; font-size: 1.15rem; color: #d5e2f5; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--sky); color: #04162c; }
.btn.primary:hover { background: var(--sky-2); }
.btn.ghost { border: 1px solid rgba(255,255,255,.4); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }

.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); }
h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
.sub { margin: 0 0 28px; color: var(--muted); max-width: 640px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .92rem; cursor: pointer;
}
.filters button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  padding: 0; text-align: start; font: inherit; color: inherit; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 32, 58, .14); outline: none; }
.art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255,255,255,.92); }
.art svg { width: 38%; height: auto; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soon {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: rgba(4, 22, 44, .55); color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 999px;
}
.card-text { padding: 14px 16px 16px; }
.card-text h3 { margin: 4px 0 0; font-size: 1.02rem; font-weight: 600; }
.tag { display: inline-block; font-size: .76rem; font-weight: 600; color: #1c6fc4; letter-spacing: .04em; }

.c-airports { background: linear-gradient(135deg, #17457e, #3ea6ff); }
.c-airspace { background: linear-gradient(135deg, #2a2f7a, #6f8bff); }
.c-c172 { background: linear-gradient(135deg, #0f5c63, #37c6b4); }
.c-flightbag { background: linear-gradient(135deg, #6b4a1c, #e0a94e); }
.c-handbook { background: linear-gradient(135deg, #6a2740, #e0718f); }
.c-atlas { background: linear-gradient(135deg, #245a2c, #7fc66a); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.project {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 32, 58, .12); }
.project h3 { margin: 0; font-size: 1.35rem; }
.project p { margin: 0 0 10px; color: var(--muted); flex: 1; }
.go { font-weight: 600; color: #1c6fc4; direction: ltr; unicode-bidi: isolate; }

.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.about p { color: #33435e; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; border-radius: var(--radius); background: var(--bg-alt); }
.facts strong { font-size: 2rem; color: var(--navy); }
.facts span { color: var(--muted); }

.footer { background: var(--navy); color: #c7d5ea; padding: 36px 0; }
.disclaimer { margin: 0 0 14px; font-size: .88rem; max-width: 820px; }
.copy { margin: 0; font-size: .85rem; opacity: .7; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(4, 14, 30, .78); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lb-card { position: relative; width: min(760px, 100%); background: #fff; border-radius: 20px; overflow: hidden; }
.lb-art { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255,255,255,.92); }
.lb-art svg { width: 24%; height: auto; }
.lb-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-text { padding: 20px 24px 26px; }
.lb-text h3 { margin: 4px 0 6px; font-size: 1.35rem; }
.lb-text p { margin: 0; color: var(--muted); }
.lb-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(4, 22, 44, .6); color: #fff; font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 720px) {
  .nav { gap: 12px; padding: 10px 16px; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: .85rem; }
  .hero-inner { padding: 64px 16px 88px; }
  .about { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .project { transition: none; }
}
