/* ============ Base ============ */
:root {
  --navy: #0e2238;
  --navy-2: #14304d;
  --navy-3: #1b3f63;
  --gold: #c9a227;
  --gold-light: #e3c563;
  --ink: #22303e;
  --muted: #5d6b79;
  --paper: #f7f8fa;
  --white: #ffffff;
  --line: #e3e8ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 34, 56, .10);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .6em; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-kicker {
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
  font-weight: 700; color: var(--gold); margin-bottom: 10px;
}
.section-lead { max-width: 760px; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.2em; }

.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .section-lead, .section-dark p { color: #b9c6d4; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(14, 34, 56, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: .02em; }
.brand span { color: var(--gold-light); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: #d4dde6; font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important; padding: 8px 18px;
  border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 26, 44, .95) 30%, rgba(10, 26, 44, .72) 60%, rgba(10, 26, 44, .55) 100%),
    url("../assets/img/hero.jpg") center / cover no-repeat;
}
.hero-inner { position: relative; padding: 140px 0 80px; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .25em; font-size: .8rem;
  color: var(--gold-light); font-weight: 600; margin-bottom: 18px;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; }
.hero h1 .accent { color: var(--gold-light); }
.hero-sub { max-width: 620px; margin: 22px 0 32px; color: #c9d5e0; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 20px rgba(201,162,39,.35); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.hero-profiles { margin-top: 22px; display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.hero-profiles a { color: #c9d5e0; border-bottom: 1px solid rgba(201,162,39,.5); padding-bottom: 1px; transition: color .2s; }
.hero-profiles a:hover { color: var(--gold-light); }
.hero-profiles span { color: rgba(201,162,39,.7); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 64px; max-width: 760px;
}
.stat {
  border-left: 2px solid rgba(201,162,39,.55); padding-left: 16px;
}
.stat-num, .stat-plus {
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--gold-light);
}
.stat p { font-size: .82rem; color: #aebccb; margin-top: 2px; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.about-photo { position: relative; }
.about-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
}
.photo-card {
  position: absolute; left: 18px; right: 18px; bottom: -26px;
  background: var(--navy); color: #d9e2ec; border-radius: 12px;
  padding: 14px 18px; font-size: .85rem; line-height: 1.45;
  box-shadow: var(--shadow); border-left: 3px solid var(--gold);
}
.photo-card strong { color: var(--gold-light); }
.about-text p { margin-bottom: 1em; color: var(--muted); font-size: 1.02rem; }
.about-text p strong { color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chips li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: .83rem; font-weight: 500; color: var(--navy-3);
}

.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 80px; }
.edu-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s, box-shadow .25s;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.edu-years {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  color: var(--gold); margin-bottom: 10px;
}
.edu-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.edu-school { font-weight: 600; color: var(--navy-3); font-size: .9rem; margin-bottom: 10px; }
.edu-card p:last-child { color: var(--muted); font-size: .9rem; }

/* ============ Experience ============ */
.exp-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 14px; }
.exp-col-title {
  font-size: 1.2rem; color: var(--gold-light); margin-bottom: 26px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: rgba(201,162,39,.35);
}
.t-item { position: relative; padding-bottom: 34px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.22);
}
.t-years { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-light); }
.t-item h4 { font-family: var(--font-head); font-size: 1.08rem; margin: 5px 0 2px; }
.t-org { font-weight: 600; font-size: .88rem; color: #8fa6bc !important; margin-bottom: 7px; }
.t-item p:last-child { font-size: .9rem; }

/* ============ Projects ============ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.proj-card img { height: 210px; width: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover img { transform: scale(1.08); }
.proj-wide { grid-column: span 2; }
.proj-wide img { height: 260px; }
.proj-body { padding: 22px 24px 26px; }
.proj-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.proj-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.proj-body p { color: var(--muted); font-size: .9rem; }
.proj-text { background: var(--navy); border: 0; justify-content: center; }
.proj-text h3 { color: var(--white); }
.proj-text p { color: #b9c6d4; }
.proj-text .proj-tag { color: var(--gold-light); }

/* ============ Publications ============ */
.pub-list { list-style: none; counter-reset: pub; max-width: 880px; }
.pub-list li {
  counter-increment: pub; position: relative; padding: 18px 0 18px 64px;
  border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem;
  color: #eef2f6;
  display: flex; align-items: center; gap: 18px;
}
.pub-cite { flex: 1; }
.pub-dl {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-light); font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap; transition: background .2s, color .2s, transform .2s;
}
.pub-dl svg { display: block; }
.pub-dl:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.pub-list li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute; left: 0; top: 16px;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--gold);
}
.pub-list strong { color: var(--gold-light); }
.pub-list em { color: #d6dfe8; }

/* ============ El-Watany ============ */
.ew-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 28px; }
.ew-logo { width: 460px; max-width: 48vw; margin-top: 4px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover img { transform: scale(1.08); }
.svc-body { padding: 22px 24px 26px; }
.svc-ico { font-size: 1.7rem; margin-bottom: 12px; }
.svc-card h3 { font-size: 1.08rem; margin-bottom: 7px; }
.svc-card p { color: var(--muted); font-size: .88rem; }

/* ============ Achievements ============ */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.ach-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 24px; display: flex; gap: 14px; align-items: flex-start;
}
.ach-card span { font-size: 1.5rem; line-height: 1; }
.ach-card p { font-size: .92rem; }
.ach-card strong { color: var(--gold-light); }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s, box-shadow .25s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.cc-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.cc-value { font-weight: 600; color: var(--navy); font-size: .95rem; word-break: break-all; }
.refs h3 { font-size: 1.2rem; margin-bottom: 18px; }
.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 18px; font-size: .9rem; color: var(--muted);
}
.ref strong { color: var(--navy); }
.refs-note { margin-top: 14px; font-size: .82rem; color: var(--muted); font-style: italic; }

/* ============ Footer ============ */
.footer { background: var(--navy); color: #9fb1c2; padding: 26px 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--gold-light); }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-photo { max-width: 340px; }
  .edu-grid, .svc-grid, .ach-grid, .refs-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-wide { grid-column: span 2; }
  .exp-columns { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ew-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 64px; right: 0; left: 0;
    background: var(--navy); flex-direction: column; padding: 22px; gap: 18px;
    display: none; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .edu-grid, .svc-grid, .ach-grid, .refs-grid, .proj-grid, .contact-grid { grid-template-columns: 1fr; }
  .proj-wide { grid-column: span 1; }
  .pub-list li { padding-left: 48px; flex-direction: column; align-items: flex-start; gap: 12px; }
}
