/* ============================================
   SOROJ EVENTS — DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --teal:        #007A7A;
  --teal-light:  #009999;
  --teal-dark:   #005F5F;
  --navy:        #0A1628;
  --navy-mid:    #0F2040;
  --navy-light:  #162844;
  --white:       #FFFFFF;
  --off-white:   #F4F7F7;
  --gray-light:  #E8EEEE;
  --gray-mid:    #9BB0B0;
  --gray-dark:   #4A6060;
  --text-dark:   #0A1628;
  --text-body:   #2C4444;
  --text-muted:  #6B8888;

  --gradient-main:   linear-gradient(135deg, #007A7A 0%, #0A1628 100%);
  --gradient-card:   linear-gradient(145deg, #0F2040 0%, #0A1628 100%);
  --gradient-accent: linear-gradient(135deg, #009999 0%, #007A7A 60%, #005F5F 100%);
  --gradient-hero:   linear-gradient(135deg, #0A1628 0%, #0F2040 40%, #007A7A 100%);

  --shadow-sm:  0 2px 12px rgba(0,122,122,0.12);
  --shadow-md:  0 8px 32px rgba(0,122,122,0.18);
  --shadow-lg:  0 16px 56px rgba(0,122,122,0.22);
  --shadow-dark: 0 8px 40px rgba(10,22,40,0.45);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'DM Sans', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  background: var(--white);
  color: var(--text-body);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

body.en {
  font-family: var(--font-en);
  direction: ltr;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--teal); color: white; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.display-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

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

.section-header .section-subtitle {
  margin: 16px auto 0;
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(0,122,122,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,122,122,0.45);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding: 12px 24px;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(0,122,122,0.08); border-radius: 50px; }

.btn-dark {
  background: var(--navy);
  color: white;
}
.btn-dark:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}
.badge-teal {
  background: rgba(0,122,122,0.12);
  color: var(--teal);
  border: 1px solid rgba(0,122,122,0.2);
}
.badge-white {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

/* ── Cards ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-dark {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  color: white;
}

/* ── Icon Box ── */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0,122,122,0.1);
  color: var(--teal);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
  border-radius: 20px;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 16px auto;
}
.divider-right { margin-right: 0; }

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--off-white);
  color: var(--teal-dark);
  border: 1px solid var(--gray-light);
}

/* ── Stats ── */
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Highlight ── */
.highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Pill Tabs ── */
.pill-tabs {
  display: flex;
  gap: 8px;
  background: var(--off-white);
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto 40px;
}
.pill-tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ar);
}
.pill-tab.active {
  background: white;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,122,122,0.4); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 20px rgba(0,122,122,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0  rgba(0,122,122,0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp 0.7s ease both; }
.animate-float { animation: float 4s ease-in-out infinite; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Noise texture overlay ── */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-ring 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 32px;
  max-width: 1300px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.nav-logo-text {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.08);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--teal-light);
  border-radius: 1px;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 10px;
  min-width: 220px;
  box-shadow: var(--shadow-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-dropdown a:hover {
  background: rgba(0,122,122,0.15);
  color: white;
}
.nav-dropdown a .dd-icon {
  font-size: 1rem;
  width: 28px;
  text-align: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-ar);
}
.lang-toggle:hover { background: rgba(255,255,255,0.15); color: white; }

.nav-demo-btn {
  background: var(--gradient-accent);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-ar);
}
.nav-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,122,122,0.4);
  filter: brightness(1.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: fadeIn 0.3s ease; }
.mobile-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--teal-light); padding-right: 8px; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { width: 48px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-heading {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.55);
}
.footer-links a:hover { color: var(--teal-light); padding-right: 6px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item .icon {
  width: 34px;
  height: 34px;
  background: rgba(0,122,122,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--teal-light);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}
.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--teal-light); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── English (LTR) overrides ── */
body.en {
  font-family: var(--font-en);
  direction: ltr;
}
body.en .footer-links a:hover { padding-right: 0; padding-left: 6px; }
body.en .mobile-menu a:hover  { padding-right: 0; padding-left: 8px; }
body.en .nav-dropdown          { right: auto; left: 0; }
body.en .channel-card:hover   { transform: translateX(6px); }
body.en .why-card:hover       { transform: translateX(6px); }
body.en .divider-right         { margin-right: auto; margin-left: 0; }
body.en .whatsapp-float        { left: auto; right: 28px; }

/* ── Phone numbers always LTR ── */
a[href^="tel:"],
[dir="ltr"],
.phone-ltr {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block !important;
}
