:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #dbeafe;
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.5rem 0 0.5rem;
  transition: transform 0.3s ease;
}

.site-header.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(248, 250, 252, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, rgba(255, 255, 255, 0.7)); /* خلفية بيضاء ناعمة */
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15); /* ظل خفيف بنفس لون البراند */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid rgba(14, 165, 233, 0.15); /* لمسة حدود خفيفة باللون الأساسي */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-title { font-weight: 800; font-size: 1.1rem; }
.brand-subtitle { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

.desktop-nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
  padding: 0.55rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  color: var(--foreground); text-decoration: none; transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.nav-link:hover, .nav-link:focus-visible { background: rgba(14, 165, 233, 0.12); color: var(--primary); outline: none; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.primary-button {
  background: linear-gradient(135deg, var(--primary), #38bdf8); color: #fff; border-radius: 999px; padding: 0.65rem 1.8rem;
  font-weight: 700; font-size: 1rem; border: none; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: 0 15px 30px rgba(14, 165, 233, 0.25);
}
.primary-button:hover, .primary-button:focus-visible { transform: translateY(-2px) scale(1.01); box-shadow: 0 20px 35px rgba(14, 165, 233, 0.3); outline: none; }
.primary-button:active { transform: translateY(0); }

.hide-mobile { display: inline-flex; }

.menu-toggle {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(14, 165, 233, 0.12);
  display: none; align-items: center; justify-content: center; gap: 0.35rem; flex-direction: column; transition: background 0.3s ease, transform 0.3s ease;
}
.menu-toggle:hover, .menu-toggle:focus-visible { background: var(--primary); transform: rotate(2deg); }
.menu-toggle:hover .menu-icon, .menu-toggle:focus-visible .menu-icon { background: #fff; }

.lang-toggle {
  width: 3rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(14,165,233,0.08);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  letter-spacing: 0.04em;
}
.lang-toggle:hover, .lang-toggle:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}
@media (max-width: 1024px) {
  .lang-toggle { display: inline-flex; }
}

.menu-icon { width: 1.35rem; height: 0.14rem; background: var(--primary); border-radius: 999px; transition: background 0.3s ease; }

.mobile-menu {
  position: absolute; top: 6.5rem; right: 1.5rem; left: 1.5rem; background: rgba(255, 255, 255, 0.97);
  border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12); display: none; flex-direction: column; gap: 0.75rem; border: 1px solid rgba(15, 23, 42, 0.08);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  border-radius: 999px; padding: 0.75rem 1.2rem; font-weight: 600; text-decoration: none; color: var(--foreground);
  transition: background 0.3s ease, color 0.3s ease;
}
.mobile-link:hover, .mobile-link:focus-visible { background: rgba(14, 165, 233, 0.12); color: var(--primary); outline: none; }

main { padding-top: 9rem; }

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 0 6rem;
  background: linear-gradient(140deg, rgba(219, 234, 254, 0.65), rgba(14, 165, 233, 0.15), var(--background));
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.35; animation: pulse 6s ease-in-out infinite;
}

/* ===== الأمواج تغطي كامل الـ hero، بدون خطوط مستقيمة ===== */
.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-waves svg {
  position: absolute;
  left: 0;
  width: 200%;
  height: 150%; /* يغطي الارتفاع بالكامل براحة */
  animation: waveMove 18s linear infinite;
}

/* توزيع الطبقات عموديًا لمنع تراكب حاد */
.hero-waves svg:nth-child(1) { top: -20%; }
.hero-waves svg:nth-child(2) { top:  15%; }
.hero-waves svg:nth-child(3) { top:  50%; }

/* ألوان وشفافية */
.hero-waves svg path {
  fill: var(--primary);
  opacity: 0.08;
}
.hero-waves svg:nth-child(2) path { opacity: 0.12; }
.hero-waves svg:nth-child(3) path { opacity: 0.16; }

/* حركة أفقية ناعمة ومتكررة */
@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.hero-logo {
  width: clamp(8rem, 18vw, 12rem);
  height: clamp(8rem, 18vw, 12rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  box-shadow: 0 35px 60px rgba(14, 165, 233, 0.28);
  animation: float 5s ease-in-out infinite;
}

.hero-title { font-size: clamp(2.75rem, 7vw, 4.5rem); margin: 0; font-weight: 800; letter-spacing: 0.03em; }
.hero-subtitle { margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; color: var(--primary); }
.hero-description { margin: 0; font-size: clamp(1rem, 2.8vw, 1.35rem); max-width: 38ch; color: var(--muted); }
.hero-button span { font-size: 1.35rem; }

.section { padding: 6rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(219, 234, 254, 0.45), rgba(248, 250, 252, 0.9)); }

.section-header { text-align: center; margin-bottom: 3.5rem; display: grid; gap: 1rem; }
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section-description { margin: 0 auto; max-width: 68ch; color: var(--muted); font-size: 1.1rem; }

.cards-grid { display: grid; gap: 1.5rem; }
.cards-grid--three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards-grid--four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  opacity: 0; transform: translateY(20px); animation: slideUp 0.8s forwards ease;
}
.card:hover, .card:focus-within { transform: translateY(-8px) scale(1.01); border-color: rgba(14, 165, 233, 0.45); box-shadow: 0 28px 55px rgba(14, 165, 233, 0.18); }

.card-icon {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(14, 165, 233, 0.12);
  margin: 0 auto 1.5rem; display: grid; place-items: center; font-size: 1.75rem;
}
.card-icon i { font-size: 1.75rem; color: var(--primary); }

.card-title { margin: 0 0 1rem; font-size: 1.4rem; font-weight: 700; }
.card-text { margin: 0; color: var(--muted); font-size: 1.05rem; }

.card-link { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.card-link:hover, .card-link:focus-visible { text-decoration: underline; outline: none; }

.values-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.value-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; transition: transform 0.3s ease, border-color 0.3s ease;
  opacity: 0; transform: translateY(20px); animation: slideUp 0.9s forwards ease;
}
.value-item:hover, .value-item:focus-within { transform: translateY(-6px); border-color: rgba(14, 165, 233, 0.4); }
.value-icon { font-size: 1.5rem; color: var(--primary); }
.value-text { margin: 0; font-weight: 600; }

.site-footer { background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; padding: 4rem 0; }
.footer-logo {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #fff;                 /* أبيض صافي لتوحيد الخلفية */
  display: grid;
  place-items: center;
  padding: 1.25rem;                 /* تقليل بسيط لتبعد الشعار عن الحواف */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;                 /* قص أي حواف للصورة */
  isolation: isolate;               /* علشان المزج يكون داخل الدائرة فقط */
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
  mix-blend-mode: multiply;         /* يخفّي الخلفية البيضاء للصورة */
  filter: none;                     /* شيل الـ drop-shadow لأنه بيبرز المربع */
}

.footer-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}


.footer-title { margin: 0 0 0.75rem; font-size: 1.8rem; font-weight: 800; }
.footer-text { margin: 0 auto 1.5rem; max-width: 40ch; color: rgba(255, 255, 255, 0.8); }
.footer-copy { margin: 0; color: rgba(255, 255, 255, 0.7); font-weight: 500; }

.fade-in { animation-delay: 0.05s; }

@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.5; } }

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .hide-mobile { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: none; }
}

@media (max-width: 768px) {
  .nav-container { padding-inline: 1.2rem; }
  main { padding-top: 7.5rem; }
  .hero { padding: 7rem 0 5rem; }
  .cards-grid--four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .card, .value-item { text-align: center; }
  .value-item { flex-direction: column; align-items: center; }
}

@media (max-width: 540px) {
  .brand-text { display: none; }
  .nav-container { padding-inline: 1rem; }
  .hero-description { font-size: 1rem; }
  .primary-button { width: 100%; justify-content: center; }
  .mobile-menu { right: 1rem; left: 1rem; }
}
