* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #070B14;
  --surface: #0F172A;
  --surface-card: #111827;
  --gold: #D4AF37;
  --gold-light: #FDE047;
  --sky: #38BDF8;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
}

.glow-gold {
  width: 420px;
  height: 420px;
  background: rgba(212, 175, 55, 0.14);
  top: -100px;
  right: -80px;
}

.glow-sky {
  width: 450px;
  height: 450px;
  background: rgba(56, 189, 248, 0.12);
  bottom: 5%;
  left: -120px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-monogram {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #D4AF37, #B45309);
  color: #070B14;
  font-size: 1.35rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-titles strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-titles span {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links .nav-cta {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: 999px;
}

.nav-links .nav-cta:hover {
  background: var(--gold);
  color: #070B14;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-inner {
  max-width: 860px;
}

.hero-pills {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.pill-en {
  color: var(--sky);
  font-weight: 800;
  font-size: 0.85rem;
}

.pill-ar {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.88rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 10px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.32;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #FFFFFF 30%, #FDE047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 14px;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37, #F59E0B);
  color: #070B14;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.stat-num {
  font-size: 2.15rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

/* Projects Section */
.projects-section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.02rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--surface-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-num {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 11, 20, 0.85);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.92rem;
}

.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-en {
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: right;
  margin-bottom: 4px;
}

.card-body h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex-grow: 1;
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.metric-box {
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.metric-box strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 900;
}

.metric-box span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Contact Section */
.contact-section {
  padding: 36px 0 80px;
}

.contact-box {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid var(--border-gold);
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.contact-box h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.contact-box p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.02rem;
}

.btn-mail {
  font-size: 1.08rem;
  padding: 14px 34px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #050810;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}