@font-face {
  font-family: "ReadexPro";
  src: url("../font/ReadexPro-Medium.ttf") format("truetype"); /* تم تصحيح المسار ليعمل من index.html */
  font-weight: 500;
  font-display: swap;
}

body {
  background-color: #020005;
  color: #f8fafc;
  font-family: "ReadexPro", sans-serif !important;
  overflow-x: hidden;
}

/* شريط التمرير */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #020005;
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6be561;
}

.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
  background: #020005;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  animation: orbFloat 20s infinite alternate ease-in-out;
  pointer-events: none;
}
.orb-green {
  background: #166534;
  width: 70vw;
  height: 70vw;
  top: -30%;
  right: -20%;
}
.orb-purple {
  background: #581c87;
  width: 60vw;
  height: 60vw;
  bottom: -20%;
  left: -20%;
  animation-delay: -5s;
}
.orb-blue {
  background: #1e3a8a;
  width: 65vw;
  height: 65vw;
  top: 20%;
  left: 30%;
  animation-delay: -10s;
  opacity: 0.25;
}

/* على الشاشات الصغيرة: إظهار التدرّج اللوني في الخلفية بدل الأسود فقط.
   الهالات (orbs) مقاسة بوحدة vw فتصبح صغيرة وخارج الشاشة على الجوال،
   لذا نكبّرها ونضيف تدرّجاً أساسياً مضموناً. */
@media (max-width: 640px) {
  .ambient-bg {
    background:
      radial-gradient(60% 40% at 85% 6%, rgba(22, 101, 52, 0.5), transparent 70%),
      radial-gradient(60% 45% at 12% 42%, rgba(88, 28, 135, 0.4), transparent 70%),
      radial-gradient(70% 45% at 50% 102%, rgba(30, 58, 138, 0.45), transparent 70%),
      #020005;
  }

  .orb-green {
    width: 130vw;
    height: 130vw;
    top: -12%;
    right: -35%;
    opacity: 0.5;
  }

  .orb-purple {
    width: 130vw;
    height: 130vw;
    bottom: -12%;
    left: -40%;
    opacity: 0.5;
  }

  .orb-blue {
    width: 130vw;
    height: 130vw;
    top: 28%;
    left: -30%;
    opacity: 0.4;
  }
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5%, 8%) scale(1.1);
  }
  100% {
    transform: translate(10%, -5%) scale(0.95);
  }
}

/* الكانفاس للأمواج الانسيابية - محصور في الهيرو */
#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

#top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, #020005 95%);
  z-index: 1;
  pointer-events: none;
}

.globe-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: min(100vw, 850px);
  aspect-ratio: 1/1;
  z-index: 2;
  pointer-events: auto;
}
#globe {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.4s ease,
    transform 0.4s ease,
    background 0.4s ease;
}
.glass-panel:hover {
  border-color: rgba(107, 229, 97, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
  background: #6be561c2;
  color: #020005;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(107, 229, 97, 0.3);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(107, 229, 97, 0.5);
  transform: translateY(-2px);
  background: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.speaker-item {
  transition: all 0.5s ease;
}
.speaker-hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}
.speaker-visible {
  display: block;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-overlay {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.session-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 0, 5, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.session-accordion-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: background-color 0.3s ease;
}
.session-accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
.session-accordion-item.active {
  border-color: rgba(107, 229, 97, 0.5);
  box-shadow: 0 10px 40px rgba(107, 229, 97, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.session-accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.session-accordion-item.active .session-accordion-content {
  max-height: 2000px;
  opacity: 1;
  padding-bottom: 2rem;
}
.session-icon {
  transition: transform 0.4s ease;
}
.session-accordion-item.active .session-icon {
  transform: rotate(180deg);
  color: #6be561;
}
.speaker-list-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
}
.speaker-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 229, 97, 0.3);
  transform: translateX(-5px);
}
.btn-secondary { 
    background: #9333ea4d; 
    color: #ffffff; 
    font-weight: 700; 
    transition: all 0.3s ease; 
}
.btn-secondary:hover {
    box-shadow: 0 0 35px rgba(147, 51, 234, 0.5); /* توهج بنفسجي */
    transform: translateY(-2px);
    background: #ffffff;
    color: #020005; /* يتحول النص للون الداكن عند مرور الماوس */
}

/* ============================================================
   قائمة الجوال (Mobile navigation) — خلفية زجاجية + حركة فتح/إغلاق
   ============================================================ */

/* أيقونة الهامبرغر التي تتحول إلى X */
#mobile-menu-btn .menu-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}
#mobile-menu-btn .menu-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}
#mobile-menu-btn.is-open .menu-icon-bars {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}
#mobile-menu-btn.is-open .menu-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
}

/* لوحة القائمة نفسها */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1.25rem;
    /* الخلفية الزجاجية الداكنة — واضحة فوق الفيديو وعند التمرير */
    background: rgba(4, 2, 10, 0.94);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 45px -12px rgba(0, 0, 0, 0.55);
    /* الحالة المغلقة */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.45s;
}
#mobile-menu.is-open {
    max-height: 26rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s;
}

/* روابط القائمة */
#mobile-menu a {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    color: #d1d5db;
    font-weight: 500;
    opacity: 0;
    transform: translateX(10px);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu a:hover {
    background: rgba(107, 229, 97, 0.1);
    color: #6be561;
}
/* ظهور الروابط بشكل متتابع عند الفتح */
#mobile-menu.is-open a {
    opacity: 1;
    transform: translateX(0);
}
#mobile-menu.is-open a:nth-child(1) { transition-delay: 0.06s; }
#mobile-menu.is-open a:nth-child(2) { transition-delay: 0.11s; }
#mobile-menu.is-open a:nth-child(3) { transition-delay: 0.16s; }
#mobile-menu.is-open a:nth-child(4) { transition-delay: 0.21s; }
#mobile-menu.is-open a:nth-child(5) { transition-delay: 0.26s; }
#mobile-menu.is-open a:nth-child(6) { transition-delay: 0.31s; }

/* دائماً مخفية على الشاشات الكبيرة */
@media (min-width: 1024px) {
    #mobile-menu { display: none !important; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    #mobile-menu,
    #mobile-menu a,
    #mobile-menu-btn .menu-icon {
        transition-duration: 0.01ms !important;
    }
}