
:root {
  --navy: #1a2a5e;
  --navy-dark: #0f1a3d;
  --navy-mid: #243580;
  --gold: #e8a020;
  --gold-light: #f5b942;
  --gold-pale: #fdf3e0;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-bg: #eef1f8;
  --text-dark: #1a2a5e;
  --text-mid: #3a4a7a;
  --text-light: #6b7bb5;
  --shadow: 0 8px 40px rgba(26,42,94,0.10);
  --shadow-gold: 0 4px 24px rgba(232,160,32,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  direction: rtl;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(26,42,94,0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(26,42,94,0.12); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--gold); font-size: 18px;
  letter-spacing: -1px;
  box-shadow: 0 2px 12px rgba(26,42,94,0.2);
}
.nav-logo-text { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.nav-logo-sub  { font-size: 10px; font-weight: 400; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 15px; font-weight: 600;
  position: relative; padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,160,32,0.35) !important; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #f8f9fc 0%, #eef1f8 40%, #e6eaf5 100%);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}

/* geometric blobs */
#hero::before {
  content: '';
  position: absolute; top: -120px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,160,32,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; bottom: -80px; right: 10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(26,42,94,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--gold-pale), #fff);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--gold);
  font-size: 13px; font-weight: 700;
  padding: 7px 18px; border-radius: 50px;
  margin-bottom: 22px;
  animation: fadeDown 0.6s ease both;
}
.hero-badge span { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 1.5s infinite; }

.hero-title {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy-dark);
  margin-bottom: 20px;
  animation: fadeDown 0.7s ease 0.1s both;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px; font-weight: 400; color: var(--text-mid);
  line-height: 1.8; margin-bottom: 36px;
  animation: fadeDown 0.7s ease 0.2s both;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeDown 0.7s ease 0.3s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; padding: 14px 32px;
  border-radius: 50px; font-size: 15px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(26,42,94,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(26,42,94,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--navy); padding: 14px 32px;
  border-radius: 50px; font-size: 15px; font-weight: 700;
  text-decoration: none; border: 2px solid var(--navy);
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* floating card */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 0.8s ease 0.2s both;
}

.stat-card-main {
  background: var(--white);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 20px 60px rgba(26,42,94,0.14);
  width: 100%; max-width: 380px;
  position: relative;
}
.stat-card-main::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0; height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 24px 24px 0 0;
}

.stats-row { display: flex; gap: 20px; margin-top: 20px; }
.stat-item { flex: 1; text-align: center; }
.stat-num {
  font-size: 32px; font-weight: 900; color: var(--navy);
  line-height: 1;
}
.stat-num span { color: var(--gold); }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; font-weight: 500; }

.stat-divider { width: 1px; background: rgba(26,42,94,0.1); }

.card-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.card-sub { font-size: 13px; color: var(--text-light); }

.floating-badge {
  position: absolute; top: -18px; left: -24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark); font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 50px;
  box-shadow: var(--shadow-gold);
  animation: float 3s ease-in-out infinite;
}
.floating-badge2 {
  position: absolute; bottom: -18px; right: -20px;
  background: var(--white);
  color: var(--navy); font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 50px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  animation: float 3.5s ease-in-out 0.5s infinite;
}
.floating-badge2 i { color: var(--gold); }

/* ── ABOUT ── */
#about {
  background: var(--white);
  padding: 100px 5%;
}
.section-center { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: ''; width: 28px; height: 2px; background: var(--gold);
}

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900; color: var(--navy-dark);
  line-height: 1.3; margin-bottom: 20px;
}
.section-title em {
  font-style: normal; color: var(--gold);
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; margin-top: 50px;
}

.about-text p {
  font-size: 16px; color: var(--text-mid); line-height: 1.9;
  margin-bottom: 16px;
}

.about-features { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.about-feat {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--off-white);
  padding: 16px 20px; border-radius: 14px;
  border-right: 3px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-feat:hover { transform: translateX(-4px); box-shadow: var(--shadow); }
.about-feat-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 16px;
}
.about-feat-text strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.about-feat-text span { font-size: 13px; color: var(--text-light); }

.about-visual {
  position: relative;
}
.about-card-bg {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 28px;
  padding: 50px 40px;
  color: #fff;
  position: relative; overflow: hidden;
}
.about-card-bg::before {
  content: '';
  position: absolute; top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(232,160,32,0.15);
  border-radius: 50%;
}
.about-card-bg::after {
  content: '';
  position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.about-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; z-index: 1; }
.about-num-item { text-align: center; }
.about-num-item .big-num {
  font-size: 42px; font-weight: 900;
  color: var(--gold-light); line-height: 1;
}
.about-num-item p { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ── SERVICES ── */
#services {
  background: var(--light-bg);
  padding: 100px 5%;
}

.services-header { text-align: center; margin-bottom: 60px; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 22px;
  padding: 36px 30px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,42,94,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(26,42,94,0.14); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--gold-pale), #fff);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--gold);
  margin-bottom: 22px;
  border: 1px solid rgba(232,160,32,0.2);
  transition: background 0.3s;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
}

.service-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p  { font-size: 14px; color: var(--text-mid); line-height: 1.8; }

/* ── METHODOLOGY ── */
#methodology {
  background: var(--white);
  padding: 100px 5%;
}
.method-header { text-align: center; margin-bottom: 70px; }

.steps-container {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.steps-container::before {
  content: '';
  position: absolute; top: 40px; bottom: 40px; right: 39px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--navy));
  z-index: 0;
}

.step {
  display: flex; gap: 36px; align-items: flex-start;
  padding: 36px 0; position: relative; z-index: 1;
}

.step-num {
  width: 80px; height: 80px; min-width: 80px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 26px; font-weight: 900;
  box-shadow: 0 8px 30px rgba(26,42,94,0.25);
  border: 4px solid var(--white);
}

.step-content {
  background: var(--off-white);
  border-radius: 20px;
  padding: 28px 30px;
  flex: 1;
  border-right: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(26,42,94,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-content:hover { transform: translateX(-6px); box-shadow: var(--shadow); }

.step-content h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.step-content p  { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }

.step-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.step-tag {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--navy);
  background: rgba(26,42,94,0.07);
  padding: 5px 12px; border-radius: 50px;
}
.step-tag i { color: var(--gold); font-size: 11px; }

/* ── CTA ── */
#cta {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  padding: 100px 5%;
  position: relative; overflow: hidden; text-align: center;
}
#cta::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(232,160,32,0.08); border-radius: 50%;
}
#cta::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04); border-radius: 50%;
}

.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(26px, 3.5vw, 44px); font-weight: 900; color: #fff; margin-bottom: 18px; line-height: 1.3; }
.cta-inner h2 em { font-style: normal; color: var(--gold-light); }
.cta-inner p  { font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.8; margin-bottom: 36px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark); padding: 16px 40px;
  border-radius: 50px; font-size: 16px; font-weight: 800;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 8px 30px rgba(232,160,32,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-gold:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(232,160,32,0.55); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 5% 30px;
}

.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 50px; margin-bottom: 50px;
}

.footer-brand .brand-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.footer-brand .brand-mark {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--navy-dark); font-size: 18px;
}
.footer-brand .brand-name { font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand .brand-tagline { font-size: 11px; color: var(--gold); letter-spacing: 2px; }

.footer-brand p { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.6); margin-bottom: 24px; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.social-link:hover { transform: translateY(-4px); color: var(--navy-dark); }
.social-link.fb:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-link.ig:hover  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; color: #fff; }
.social-link.tw:hover  { background: #000; border-color: #000; color: #fff; }
.social-link.li:hover  { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.social-link.yt:hover  { background: #ff0000; border-color: #ff0000; color: #fff; }
.social-link.tk:hover  { background: #010101; border-color: #010101; color: #fff; }
.social-link.wa:hover  { background: #128C7E ; border-color: #128C7E; color: #fff; }

.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s, padding 0.2s; display: block; }
.footer-col ul a:hover { color: var(--gold-light); padding-right: 6px; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

.footer-bottom span em { color: var(--gold); font-style: normal; }

/* ── CLIENTS ── */
#clients {
  background: var(--off-white);
  padding: 100px 0 80px;
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 5%;
}

.clients-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* fade edges */
.clients-fade-right {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 140px; z-index: 2;
  background: linear-gradient(to left, var(--off-white) 0%, transparent 100%);
  pointer-events: none;
}
.clients-fade-left {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 140px; z-index: 2;
  background: linear-gradient(to right, var(--off-white) 0%, transparent 100%);
  pointer-events: none;
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 32s linear infinite;
}

.clients-track:hover { animation-play-state: paused; }

@keyframes clients-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients-slide {
  display: flex;
  gap: 24px;
  padding: 20px 12px;
  flex-shrink: 0;
}

.client-logo-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 0 4px 20px rgba(26,42,94,0.07);
  border: 1px solid rgba(26,42,94,0.07);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
  flex-shrink: 0;
  min-width: 180px;
}

.client-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,42,94,0.14);
  border-color: rgba(232,160,32,0.3);
}

.client-logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.client-logo-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.client-logo-card:hover .client-logo-icon {
  transform: scale(1.08);
}

.client-logo-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── ANIMATIONS ── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(30px);  } to { opacity: 1; transform: none; } }
@keyframes float    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse    { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps-container::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-links { display: none; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}
