*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: #0a0a0a; color: #e8e0d0; direction: rtl; line-height: 1.7; }

:root {
  --black:       #0a0a0a;
  --black-soft:  #111111;
  --black-card:  #161616;
  --border:      rgba(201,160,40,0.15);
  --border-soft: rgba(255,255,255,0.06);
  --gold:        #c9a028;
  --gold-light:  #e8b83a;
  --gold-dim:    rgba(201,160,40,0.10);
  --text:        #e8e0d0;
  --text-muted:  #7a7060;
  --text-sub:    #4a4540;
  --white:       #ffffff;
  --radius:      10px;
  --radius-lg:   16px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 200;
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.7); }
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: 'Amiri', serif; font-size: 20px; font-weight: 700;
  overflow: hidden;
}
.nav-logo-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; }
.nav-brand-text { line-height: 1.25; }
.nav-brand-text .name { font-size: 14px; font-weight: 700; color: var(--white); }
.nav-brand-text .title { font-size: 10.5px; color: var(--text-muted); }
.nav-links { display: flex; list-style: none; }
.nav-links a {
  display: flex; align-items: center; height: 70px; padding: 0 15px;
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 13px; font-weight: 500;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-socials { display: flex; align-items: center; gap: 4px; }
.nav-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border-soft); color: var(--text-muted);
  transition: all 0.2s; text-decoration: none;
}
.nav-social-link svg { width: 16px; height: 16px; }
.nav-social-link:hover { color: var(--gold); border-color: var(--border); background: var(--gold-dim); }
.nav-divider { width: 1px; height: 22px; background: var(--border-soft); margin: 0 4px; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--gold); color: #000;
  border-radius: 7px; height: 36px; padding: 0 18px; border: none;
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--gold); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  background: var(--black);
  position: relative; overflow: hidden;
  padding: 5rem 2.5rem 4rem;
  min-height: 600px;
  display: flex; align-items: center;
}
.hero-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 50%, rgba(201,160,40,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(201,160,40,0.04) 0%, transparent 60%);
}
.hero-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,160,40,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,160,40,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-geo {
  position: absolute; left: -80px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; opacity: 0.035; pointer-events: none;
}
.hero-inner {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 260px;
  gap: 3rem; align-items: center;
  position: relative; z-index: 1; width: 100%;
}
.hero-content { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold-dim); border: 1px solid var(--border);
  color: var(--gold); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.8); }
}
.hero h1 {
  font-family: 'Amiri', serif; font-size: 44px; font-weight: 700;
  color: var(--white); line-height: 1.25; margin-bottom: 0.5rem;
  word-break: break-word;
}
.hero h1 .gold { color: var(--gold); }
.hero-subtitle {
  font-size: 13px; color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-subtitle::before, .hero-subtitle::after {
  content: ''; flex: 1; height: 1px; background: var(--border); max-width: 60px;
}
.hero-desc {
  font-size: 15px; color: rgba(232,224,208,0.65);
  line-height: 1.9; margin-bottom: 2.5rem; max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ===== BUTTONS ===== */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #000;
  font-family: 'Cairo', sans-serif; font-size: 13.5px; font-weight: 700;
  padding: 13px 28px; border-radius: var(--radius); border: none;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,160,40,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: 'Cairo', sans-serif; font-size: 13.5px; font-weight: 500;
  padding: 12px 28px; border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ===== HERO CARD ===== */
.hero-card {
  background: var(--black-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: var(--gold-dim);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif; font-size: 36px; color: var(--gold);
  overflow: hidden;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; }
.hero-card-name { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.hero-card-role { color: var(--text-muted); font-size: 10.5px; margin-bottom: 1.25rem; letter-spacing: 0.03em; }
.hero-stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.stat-mini { background: var(--black-soft); border: 1px solid var(--border-soft); border-radius: 8px; padding: 12px 6px; }
.stat-mini .n { font-size: 20px; font-weight: 700; color: var(--gold); }
.stat-mini .l { font-size: 10px; color: var(--text-sub); margin-top: 2px; }
.hero-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 1rem 0; }
.hero-available {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; font-size: 11px; color: #5a9a6a; letter-spacing: 0.03em;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #5a9a6a; animation: dot-pulse 2s infinite; }

/* ===== GOLD LINE ===== */
.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.3; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 2.5rem; max-width: 980px; margin: 0 auto; }
.section-header { margin-bottom: 2.5rem; }
.section-eyebrow { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: 'Amiri', serif; font-size: 32px; font-weight: 700; color: var(--white); line-height: 1.3; }
.section-sep { width: 40px; height: 2px; background: var(--gold); border-radius: 2px; margin-top: 12px; opacity: 0.7; }

/* ===== SERVICES ===== */
.services-wrap { background: var(--black-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-wrap .section { padding: 3rem 2.5rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.service-card {
  background: var(--black-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 1.5rem; cursor: pointer;
  transition: all 0.25s; text-decoration: none; display: block;
  position: relative; overflow: hidden;
}
.service-card::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.35s; }
.service-card:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.service-card:hover::after { width: 100%; }
.service-icon {
  width: 44px; height: 44px; background: var(--gold-dim);
  border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.service-card p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.service-arrow { margin-top: 14px; font-size: 12px; color: var(--gold); font-weight: 600; }

/* ===== ABOUT ===== */
.about-wrap { background: var(--black); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-quote { font-family: 'Amiri', serif; font-size: 21px; color: var(--gold); line-height: 1.65; margin-bottom: 1.5rem; padding-right: 1.25rem; border-right: 2px solid var(--gold); }
.about-text { font-size: 14px; color: rgba(232,224,208,0.6); line-height: 2; margin-bottom: 1.75rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tag { background: var(--gold-dim); border: 1px solid var(--border); color: var(--gold); font-size: 11px; padding: 4px 13px; border-radius: 20px; }
.about-credentials { display: flex; flex-direction: column; gap: 10px; }
.credential-item { background: var(--black-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; transition: border-color 0.2s; }
.credential-item:hover { border-color: var(--border); }
.cred-year { background: var(--gold-dim); border: 1px solid var(--border); color: var(--gold); font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
.cred-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.cred-sub { font-size: 11px; color: var(--text-sub); margin-top: 3px; }

/* ===== REACH ===== */
.reach-wrap { background: var(--black-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reach-wrap .section { padding: 3rem 2.5rem; }
.reach-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.reach-item { text-align: center; padding: 1.5rem 1rem; border-left: 1px solid var(--border-soft); }
.reach-item:last-child { border-left: none; }
.reach-num { font-family: 'Amiri', serif; font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.reach-label { font-size: 12px; color: var(--text-muted); }

/* ===== NEWS ===== */
.news-wrap { background: var(--black-soft); }
.news-wrap .section { padding-bottom: 4rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.news-card { background: var(--black-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); border-color: var(--border); }
.news-card-top { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); }
.news-cat { background: var(--gold-dim); border: 1px solid var(--border); color: var(--gold); font-size: 10px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
.news-date { font-size: 11px; color: var(--text-sub); }
.news-card-body { padding: 1.25rem; }
.news-card h4 { font-size: 14.5px; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.55; }
.news-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.75; }
.news-read-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 12px; color: var(--gold); font-weight: 600; cursor: pointer; opacity: 0.8; }
.news-read-more:hover { opacity: 1; }

/* ===== CTA ===== */
.cta-wrap { background: var(--black); padding: 5rem 2.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-wrap::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,160,40,0.05) 0%, transparent 70%); }
.cta-wrap h2 { font-family: 'Amiri', serif; font-size: 34px; color: var(--white); margin-bottom: 0.75rem; position: relative; }
.cta-wrap p { color: var(--text-muted); font-size: 14px; margin-bottom: 2rem; position: relative; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.footer { background: #050505; border-top: 1px solid var(--border); padding: 3rem 2.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; max-width: 980px; margin: 0 auto 2.5rem; }
.footer-brand .name { font-family: 'Amiri', serif; font-size: 20px; color: var(--white); margin-bottom: 4px; }
.footer-brand .tagline { font-size: 11px; color: var(--text-sub); margin-bottom: 1rem; }
.footer-brand p { font-size: 12px; color: var(--text-muted); line-height: 1.85; }
.footer-socials { display: flex; gap: 8px; margin-top: 1.25rem; }
.footer-social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border-soft); color: var(--text-muted);
  text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social:hover { color: var(--gold); border-color: var(--border); background: var(--gold-dim); }
.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 980px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 11px; color: var(--text-sub);
}
.footer-dev-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer-dev-name { font-size: 11px; color: var(--text-sub); white-space: nowrap; }
.footer-dev-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(201,160,40,0.2);
  border-radius: 100px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.03);
}
.footer-dev-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.footer-dev-label { color: var(--gold); font-size: 13px; font-weight: 600; }
.footer-dev-name { color: var(--white); font-size: 13px; font-weight: 500; }
.footer-dev-fb {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--black-card); border: 1px solid var(--border-soft);
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-dev-fb svg { width: 18px; height: 18px; }
.footer-dev-fb:hover { color: var(--gold); border-color: var(--border); background: var(--gold-dim); }

/* ===== SCROLL TO TOP (في الفوتر) ===== */
.footer-scroll-top {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold);
  color: #000;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(201,160,40,0.3);
  animation: bounce-up 2s ease-in-out infinite;
  transition: background 0.2s;
}
.footer-scroll-top svg { width: 22px; height: 22px; }
.footer-scroll-top:hover { background: var(--gold-light); animation: none; transform: translateY(-3px); }
@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero h1 { font-size: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .reach-grid { grid-template-columns: 1fr 1fr; }
  .reach-item { border-left: none; border-bottom: 1px solid var(--border-soft); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; right: 0; left: 0;
    background: var(--black-soft); border-bottom: 1px solid var(--border);
    padding: 0.75rem 0; z-index: 199;
  }
  .nav-links.open a { height: auto; padding: 12px 2rem; border-bottom: none; border-right: 2px solid transparent; }
  .nav-links.open a.active, .nav-links.open a:hover { border-right-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
  .nav-toggle { display: flex; }
  .nav-end { display: none; }
}