/* ============ المتغيرات — عدّل الألوان من هنا ============ */
:root {
  --background: hsl(20, 15%, 5%);
  --foreground: hsl(36, 30%, 93%);
  --card: hsl(30, 7%, 12%);
  --primary: hsl(30, 42%, 39%);
  --primary-foreground: hsl(36, 30%, 96%);
  --secondary: hsl(30, 7%, 15%);
  --muted-foreground: hsl(30, 8%, 62%);
  --accent-gold: hsl(30, 45%, 80%);
  --border: hsl(30, 12%, 20%);
  --radius: 0.5rem;
  --font-display: 'Playfair Display', 'Noto Naskh Arabic', serif;
  --font-sans: 'DM Sans', 'Cairo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { font-family: 'Cairo', 'DM Sans', sans-serif; }
html[dir="rtl"] .logo-text,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-title,
html[dir="rtl"] .stat-value,
html[dir="rtl"] .sector-card h3,
html[dir="rtl"] .alliance h2,
html[dir="rtl"] .footer-brand h3,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .team-role h3 {
  font-family: 'Noto Naskh Arabic', 'Playfair Display', serif;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

.text-gradient-gold {
  background: linear-gradient(135deg, hsl(30, 45%, 80%), hsl(30, 42%, 45%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ الهيدر ============ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid hsla(30, 12%, 20%, 0.5);
  background: hsla(20, 15%, 5%, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo-text span { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

nav.desktop-nav { display: none; align-items: center; gap: 1.75rem; }
nav.desktop-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--muted-foreground);
  transition: color 0.2s;
  white-space: nowrap;
}
nav.desktop-nav a:hover { color: var(--foreground); }
nav.desktop-nav a.active {
  color: var(--foreground);
  border-bottom: 1px solid hsla(30, 42%, 39%, 0.6);
  padding-bottom: 0.25rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsla(30, 12%, 20%, 0.8);
  border-radius: var(--radius);
  overflow: hidden;
  background: hsla(30, 7%, 12%, 0.6);
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
  transition: color 0.2s, background 0.2s;
}
.lang-toggle button:hover { color: var(--foreground); }
.lang-toggle button.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.menu-btn { background: none; border: none; color: var(--foreground); cursor: pointer; display: block; }
.mobile-nav {
  display: none;
  border-top: 1px solid hsla(30, 12%, 20%, 0.5);
  background: var(--background);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1rem; color: var(--muted-foreground); }
.mobile-nav a:hover { color: var(--foreground); }

@media (min-width: 1024px) {
  .header-inner { padding: 1.25rem 3rem; }
  nav.desktop-nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ============ قسم البداية (Hero) ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 6rem;
}
.hero-grid {
  max-width: 90rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3.5rem;
  padding: 0 1.5rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0.1em; }
.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero p {
  margin-top: 1.75rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.btn-primary {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  transition: transform 0.15s, filter 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.98); }
html[dir="rtl"] .btn-primary svg { transform: scaleX(-1); }

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-image img { height: 100%; width: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .hero { padding-top: 11rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; padding: 0 3rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero-image { aspect-ratio: 3 / 4; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero h1 { font-size: 3.5rem; }
}

/* ============ قسم الأرقام (Stats) ============ */
.stats {
  border-top: 1px solid hsla(30, 12%, 20%, 0.5);
  border-bottom: 1px solid hsla(30, 12%, 20%, 0.5);
  background: hsla(30, 7%, 12%, 0.6);
  padding: 6rem 0;
}
.stats-inner { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.stats .eyebrow { color: var(--muted-foreground); }
.section-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .section-title { font-size: 3rem; } }

.stats-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .stat-value { font-size: 3rem; } }
.stat-label { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ============ قسم القطاعات (Sectors) ============ */
.sectors { max-width: 76rem; margin: 0 auto; padding: 7rem 1.5rem; }
@media (min-width: 1024px) { .sectors { padding-left: 3rem; padding-right: 3rem; } }
.sectors-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.dot-eyebrow { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.dot { height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--primary); }
.sectors-head .eyebrow { color: var(--muted-foreground); }
.sectors-head p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.sectors-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }

.sector-card {
  border-radius: var(--radius);
  border: 1px solid hsla(30, 42%, 39%, 0.4);
  background: var(--card);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.sector-card:hover { border-color: hsla(30, 42%, 39%, 0.7); }
.sector-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: hsla(30, 7%, 15%, 0.8);
}
.sector-icon svg { height: 1.25rem; width: 1.25rem; color: var(--accent-gold); }
.sector-card h3 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}
.sector-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ============ قسم الشركاء (Partners) ============ */
.partners {
  border-top: 1px solid hsla(30, 12%, 20%, 0.5);
  background: hsla(30, 7%, 8%, 0.85);
  padding: 7rem 0;
}
.partners-inner { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .partners-inner { padding: 0 3rem; } }
.partners-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.partners-head .eyebrow { color: var(--muted-foreground); }
.partners-head p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
/* سلايدر الشعارات — يتحرك تلقائياً ويتوقف عند مرور الماوس */
.partners-marquee {
  margin-top: 3.5rem;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 32s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-group {
  display: flex;
  gap: 1.5rem;
  padding-inline-end: 1.5rem;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; width: auto; }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20rem;
  height: 12rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid hsla(30, 12%, 20%, 0.55);
  border-radius: var(--radius);
  background: #000;
  transition: border-color 0.25s;
}
.partner-logo:hover { border-color: hsla(30, 42%, 39%, 0.65); }
/* الصور الأصلية فيها فراغ أسود كبير حول الشعار — التكبير هنا يقصّه ويُظهر الشعار أوضح */
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.7);
}

@media (max-width: 639px) {
  .partner-logo { width: 15rem; height: 9rem; }
}

/* ============ قسم التحالف (Alliance) ============ */
.alliance { position: relative; background: var(--primary); padding: 7rem 0; }
.alliance-inner { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.alliance h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--primary-foreground);
}
@media (min-width: 640px) { .alliance h2 { font-size: 3rem; } }
.alliance p {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: hsla(36, 30%, 96%, 0.8);
}
.btn-light {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  background: var(--foreground);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--background);
  transition: transform 0.15s, filter 0.2s;
}
.btn-light:hover { filter: brightness(0.95); }
.btn-light:active { transform: scale(0.98); }

/* ============ صفحة الفريق ============ */
.page-hero {
  padding: 10rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, hsla(30, 42%, 39%, 0.18), transparent 70%),
    var(--background);
}
@media (min-width: 1024px) { .page-hero { padding: 11rem 3rem 5rem; } }
.page-hero h1 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .page-hero h1 { font-size: 3.5rem; } }
.page-hero p {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.team { max-width: 76rem; margin: 0 auto; padding: 2rem 1.5rem 7rem; }
@media (min-width: 1024px) { .team { padding-left: 3rem; padding-right: 3rem; } }
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-role {
  border-top: 1px solid hsla(30, 42%, 39%, 0.45);
  padding: 2rem 0 1rem;
}
.team-role .role-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.team-role h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.team-role p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.team-cta {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px solid hsla(30, 12%, 20%, 0.6);
  border-radius: var(--radius);
  background: hsla(30, 7%, 12%, 0.5);
}
.team-cta h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}
.team-cta p {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.team-cta .btn-primary { margin-top: 1.75rem; }

/* ============ الفوتر ============ */
footer { border-top: 1px solid hsla(30, 12%, 20%, 0.5); }
.footer-inner { max-width: 90rem; margin: 0 auto; padding: 4rem 1.5rem; }
@media (min-width: 1024px) { .footer-inner { padding-left: 3rem; padding-right: 3rem; } }
.footer-top { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
@media (min-width: 1024px) { .footer-top { flex-direction: row; } }
.footer-line { height: 1px; width: 3rem; background: var(--primary); }
.footer-brand h3 { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.footer-brand p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.footer-right { display: flex; flex-direction: column; gap: 1.5rem; text-align: right; }
html[dir="rtl"] .footer-right { text-align: left; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
html[dir="rtl"] .footer-links {
  justify-content: flex-start;
  letter-spacing: 0.08em;
}
.footer-links a:hover { color: var(--foreground); }
.footer-inquiries-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}
html[dir="rtl"] .footer-inquiries-label { letter-spacing: 0.08em; }
.footer-inquiries {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid hsla(30, 12%, 20%, 0.5);
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-umbrella { text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); }
html[dir="rtl"] .footer-umbrella { letter-spacing: 0.08em; }

/* ============ حركات الظهور عند التمرير ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
