:root {
  --navy: #1a2535;
  --navy-light: #2c3e50;
  --gold: #b2976c;
  --gold-light: #cdb48e;
  --cream: #f8f6f1;
  --white: #ffffff;
  --text: #2a2a2a;
  --muted: #666;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--cream); color: var(--text); line-height: 1.7; }
a { color: inherit; text-decoration: none; }

/* ── LANGUAGE NAV ─────────────────────────────── */
.lang-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  padding: 10px 48px;
  display: flex; justify-content: flex-end; gap: 8px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lang-nav a img {
  width: 26px; height: 19px;
  object-fit: cover; border-radius: 2px;
  opacity: .55; border: 1px solid rgba(255,255,255,.12);
  transition: opacity .2s, transform .2s;
  display: block;
}
.lang-nav a:hover img,
.lang-nav a.active img { opacity: 1; transform: scale(1.12); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white; text-align: center;
  padding: 140px 48px 96px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
}
.hero-label {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  opacity: 0; animation: fadeUp .8s ease forwards; animation-delay: .1s;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; letter-spacing: .02em; color: white;
  margin-bottom: 18px;
  opacity: 0; animation: fadeUp .8s ease forwards; animation-delay: .25s;
}
.hero h2 {
  font-size: clamp(.8rem, 1.6vw, 1rem); font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55); max-width: 640px; margin: 0 auto 56px;
  opacity: 0; animation: fadeUp .8s ease forwards; animation-delay: .4s;
}
.hero-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s ease forwards; animation-delay: .55s;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-top: 8px;
}
.hero-divider {
  width: 56px; height: 1px; background: var(--gold);
  margin: 52px auto 0;
  opacity: 0; animation: fadeUp .8s ease forwards; animation-delay: .7s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ─────────────────────────────────── */
section { padding: 80px 48px; }
.section-inner { max-width: 860px; margin: 0 auto; }
.section-tag {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy-light); margin-bottom: 12px;
}
.section-divider { width: 40px; height: 2px; background: var(--gold); margin-bottom: 36px; }

/* ── ABOUT ────────────────────────────────────── */
.about { background: var(--white); }
.about p { font-size: 1rem; color: #444; margin-bottom: 18px; max-width: 720px; }
.about-highlights { list-style: none; margin: 20px 0 0; display: grid; gap: 10px; }
.about-highlights li {
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  font-size: .9rem; color: var(--text);
}

/* ── EXPERTISE ────────────────────────────────── */
.expertise { background: var(--cream); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag {
  padding: 10px 20px;
  border: 1px solid rgba(44,62,80,.18); border-radius: 2px;
  font-size: .82rem; color: var(--navy-light); background: var(--white);
  transition: border-color .22s, color .22s, transform .22s;
}
.tag:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── EXPERIENCE ───────────────────────────────── */
.experience { background: var(--white); }
.timeline { margin-top: 8px; }
.timeline-item {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  align-items: flex-start;
  transition: padding-left .2s;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { padding-left: 6px; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 6px;
}
.tl-text { flex: 1; }
.tl-company { font-weight: 600; font-size: .95rem; color: var(--navy-light); }
.tl-role { font-size: .83rem; color: var(--muted); margin-top: 2px; }

/* ── EDUCATION ────────────────────────────────── */
.education { background: var(--navy); }
.education .section-tag { color: var(--gold-light); }
.education .section-title { color: white; font-family: 'Playfair Display', serif; }
.education .section-divider { background: var(--gold); }
.edu-list { list-style: none; display: grid; gap: 12px; }
.edu-list li {
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 2px;
  font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.55;
  transition: border-color .22s, color .22s;
}
.edu-list li:hover { border-color: var(--gold); color: white; }
.edu-list li strong { color: var(--gold); display: block; margin-bottom: 2px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* ── CONTACT ──────────────────────────────────── */
.contact { background: var(--cream); }
.contact .section-inner { text-align: center; }
.contact .section-tag,
.contact .section-title,
.contact .section-divider { text-align: left; }
.contact-cards {
  display: flex; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-top: 40px;
}
.contact-card {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  background: var(--white); border: 1px solid rgba(0,0,0,.1); border-radius: 2px;
  font-size: .88rem; color: var(--navy-light);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.contact-card:hover {
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
}
.contact-card svg { color: var(--gold); flex-shrink: 0; }

/* ── REVEAL ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,.3);
  text-align: center; padding: 28px 48px;
  font-size: .78rem; border-top: 1px solid rgba(255,255,255,.06);
}
footer span { color: var(--gold-light); }

/* ── ARABIC RTL ───────────────────────────────── */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .lang-nav { justify-content: flex-start; }
[dir="rtl"] .section-divider { margin-left: auto; margin-right: 0; }
[dir="rtl"] .about-highlights li { border-left: none; border-right: 3px solid var(--gold); }
[dir="rtl"] .timeline-item { flex-direction: row-reverse; }
[dir="rtl"] .timeline-item:hover { padding-left: 0; padding-right: 6px; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .lang-nav { padding: 10px 20px; gap: 6px; }
  .hero { padding: 100px 24px 72px; }
  .hero-stats { gap: 28px; }
  section { padding: 56px 24px; }
  .contact-cards { flex-direction: column; align-items: stretch; }
  .contact-card { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 2.2rem; }
}
