html {
  scroll-behavior: smooth;
}

:root {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: #f9f9fa;
  color: #333;
  overflow: hidden scroll;
}

h2 {
  font-size: 2rem;
  color: #6c63ff;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

a {
  font-weight: 700;
  text-decoration: none;
}

.scroll-arrow {
  display: inline-block;
  font-size: 2rem;
  color: #fdffdc;
  cursor: pointer;
  text-decoration: none;
  animation: bounce 1.5s infinite;
  margin-top: 1rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}


.diagonal-warning {
  width: 20rem;
  position: fixed;
  top: 2rem;
  left: -5rem;
  transform: rotate(-25deg);
  background: repeating-linear-gradient(
    45deg,
    #ffc107,
    #ffc107 10px,
    #000 10px,
    #000 20px
  );
  color: white;
  font-weight: bold;
  padding: 0.6rem 2rem;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  animation: pulseWarning 2.5s infinite;
  /* align-items: center; */
}
.warning-text {
  display: inline-block;
  text-align: center;
  /* align-self: center; */
  background: #000;
  padding: 0.2rem 2rem;
  /* width: 10rem; */
}

@keyframes pulseWarning {
  0% { filter:saturate(0); }
  50% { filter:saturate(1); }
  100% { filter:saturate(0); }
}


nav {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 2rem;
  background: #fff;
  /* box-shadow: 0 2px 4px rgba(255,255,255,0.05); */
}

.nav-links {
  /* padding: 1rem 2rem; */
  padding: 1rem;
  list-style: none;
  display: flex;
  gap: 1.5rem;
  /* flex-direction: row-reverse; */
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.logo img {
    width: 5rem;
}






.globe-section {
  background: linear-gradient(#060c1f, #1e2a4c);
  color: white;
  text-align: center;
  /* padding: 5rem 2rem; */
  position: relative;
  overflow: hidden;
}

.globe-container {
  position: relative;
  width: 100%;
  height: 100%;
  /* margin: 0 auto 2rem; */
}
.globe-container h2{
  position: absolute;
  color: #eee;
  z-index: 3;
  text-align: center;
  /* margin: 0 auto; */
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 3px 1px  #000;
  /* right: 50%; */
}
.globe {
  width: 70%;
  /* height: 100%; */
  /* opacity: 0.8; */
  z-index: 1;
  /* box-shadow: 0 3px 1px 0 #fff; */
  /* filter: drop-shadow(0 0 20px #ffd700); */
   mix-blend-mode: color-dodge;
  opacity: 0.8;
}

#starCanvas {
  position: absolute;
  /* bottom: 300px; */
  top: 70%;
  left: 56%;
  transform: translate(-50%, -50%);
/* 
  left: 500px; */
  width: 700px;
  height: 300px;
  z-index: 2;
  pointer-events: none;
}



.video-divider {
  position: relative;
  margin-top: -80px; /* يجعل الفيديو يدخل قليلاً داخل القسم الأول */
  margin-bottom: -80px; /* ويدخل قليلاً داخل القسم الثاني */
  z-index: 10;
  display: flex;
  justify-content: center;
}

.video-divider video {
  width: 360px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}



.about-container {
  background-color: rgb(27, 56, 85);
  text-align: center;
  padding: 0 2%;
  /* color: #fff; */
  color: #fdffdc;
}
.about-container h2, .about-container p{
  color: #fdffdc;
}
.about-image img {
  max-width: 80%;
}
/* 
.activelearn-program {
  background-color: rgb(27, 56, 85);
} */

.system-demo {
  background: #eef1f7;
  padding: 4rem 2rem;
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.demo-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.demo-text {
  text-align: center;
  line-height: 1.8;
  flex: 1;
}

.demo-text h2 {
  font-size: 1.2rem;
  color: #6c63ff;
  margin-bottom: 1rem;
}

.demo-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.demo-button {
  background: #6c63ff;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.demo-button:hover {
  background: #584de0;
}

.demo-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}







.vision-mission {
  background: #f4f6fb;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  font-family: 'Cairo', sans-serif;
}

.block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
}

.block .text {
  flex: 1;
  text-align: right;
  color: #333;
}

.block h2 {
  font-size: 1.8rem;
  color: #6c63ff;
  margin-bottom: 1rem;
}

.block p {
  font-size: 1.1rem;
  line-height: 2;
}

.block .image img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.block-mission {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .block {
    flex-direction: column;
    text-align: center;
  }
  .block-mission {
    flex-direction: column;
  }
  .block .text {
    text-align: center;
  }
  h2 {
    font-size: 1rem;
  }

  .globe-section {
    height: 40vh;
  }
  
}

.vision-mission h2 {
  font-size: 1.8rem;
  color: #6c63ff;
  margin-bottom: 1rem;
}

.vision-mission p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}















.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: #eef;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  background: #fff;
  color: #6c63ff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.cta-button-dark {
  display: inline-block;
  margin-top: 1rem;
  background: #6c63ff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  height: 24px;
}


.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
  gap: 2rem;
}

.feature {
  flex: 1 1 250px;
  max-width: 300px;
}

.feature img {
  width: 60px;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.95rem;
  color: #555;
}


.final-cta {
  background: #6c63ff;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.final-cta h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.final-cta p {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}




.community {
  background: #f1f1f3;
  padding: 4rem 2rem;
  text-align: center;
}

.community h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.community-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}




.community-chooser {
  padding: 4rem 2rem;
  text-align: center;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  background: #eee;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
}

.tab.active {
  background: #6c63ff;
  color: white;
}

.cards {
  position: relative;
  height: 350px;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}
.card {
	position: relative;
	top: 0;
	left: 0;
	width: 90%;
	/* max-width: 700px; */
	margin: 0 auto;
	display: none;
	/* flex-direction: column; */
	align-items: center;
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.card img {
	width: 20rem;
	height: 300px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.card.active {
  display: flex;
  animation: fade 0.6s ease-in-out;
}

.card-overlay {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  margin: auto;
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}



.statistics {
  padding: 4rem 2rem;
  background-color: #f9f9fa;
  text-align: center;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  width: 180px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.count {
  font-size: 2.5rem;
  color: #6c63ff;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}




.faq-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  font-family: 'Cairo', sans-serif;
}

.faq-title {
  font-size: 2rem;
  color: #6c63ff;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-category .faq-content {
  /* max-height: 0; */
  overflow: hidden;
  /* opacity: 0; */
  transition: all 0.4s ease;
  padding: 0;
}

.faq-category.open .faq-content {
  max-height: 800px; /* or something larger */
  opacity: 1;
  padding: 1rem 0;
}
.faq-category {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem 0;
  color: #333;
}

.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  text-align: right;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.75rem 0;
  color: #444;
  border-top: 1px solid #eee;
  transition: color 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-right: 1rem;
  padding-left: 1rem;
  transition: all 0.4s ease;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  background: #fafafa;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}







footer {
  background: #f1f1f3;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: #333;
  text-decoration: none;
}

.contact-whats {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: rgb(18, 140, 126);
  color: #fff;
}

.contact-tele {
  background: rgb(36, 129, 204);
  color: #fff;
}



/* 1. جَميع الحاويات التي تستخدم flex-wrap */
/* (vision-mission, try-system, system-demo) */
.vision-mission .block,
.try-wrapper,
.demo-container {
  display: flex;
  flex-wrap: wrap;         /* يضمن أن العناصر تنزل صفًا جديدًا عند ضيق المساحة */
  gap: 1.5rem;             /* مسافات مرنة بدل هوامش ثابتة */
}

/* 2. ضبط نصوص وصور الأقسام لتأخذ 50% مساحة بشكل مثالي مع حد أدنى */
/* عند ضيق المساحة، تنزل للعناصر تمامًا عموديًا */
.vision-mission .text,
.vision-mission .image,
.try-text,
.try-preview,
.demo-text,
.demo-image {
  flex: 1 1 50%;           /* grow, shrink, basis */
  min-width: 280px;        /* لا تصغر أصغر من هذا */
}

/* 3. جعل الفيديو العائم يتناسب مع عرض الجوال */
.video-divider video {
  width: 90vw;             /* يأخذ 90% من عرض الشاشة */
  max-width: 360px;        /* لا يكبر عن حجم الجوال */
}

/* 4. تعديل أبعاد الـpopup لتناسب الشاشات الصغيرة */
.demo-popup {
  width: 90vw;             /* يستجيب لعرض الشاشة */
  max-width: 375px;        /* حدود تحاكي الهاتف */
  height: 80vh;            /* لا يملأ الشاشة بالكامل */
}

/* 5. ضمان تفاعل أسهل على أجهزة اللمس في FAQ */
.faq-toggle,
.faq-question {
  padding: 1rem 0;         /* مساحات أكبر للنقر باللمس */
  font-size: 1.1rem;       /* نص أوضح على الشاشات الصغيرة */
}

/* 6. شمولية: box-sizing لجميع العناصر */
*,
*::before,
*::after {
  box-sizing: border-box;
}




/* 1. Globe Section: flex layout and responsive items */
.globe-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.globe-section .globe-text,
.globe-section .globe-image {
  flex: 1 1 100%;    /* ينزلان عموديًا عند ضيق المساحة */
  min-width: 280px;  /* لا يصغران أكثر من هذا */
}

.globe-section .globe-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Video Divider: full-width wrapper and responsive video */
.video-divider {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -60px;
  margin-bottom: -60px;
  overflow: visible;
}

.video-divider video {
  width: 90vw;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* 3. System Demo: container flex wrap and fluid items */
.system-demo .demo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.system-demo .demo-text,
.system-demo .demo-image {
  flex: 1 1 100%;    /* ينزلان عموديًا على الشاشات الضيقة */
  min-width: 280px;
}

.system-demo .demo-image img {
  width: 100%;
  height: auto;
  display: block;
} 


/* 1. Globe Section: flex layout and responsive items */
.globe-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.globe-section .globe-text,
.globe-section .globe-image {
  flex: 1 1 100%;    /* ينزلان عموديًا عند ضيق المساحة */
  min-width: 280px;  /* لا يصغران أكثر من هذا */
}

.globe-section .globe-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Video Divider: full-width wrapper and responsive video */
.video-divider {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -60px;
  margin-bottom: -60px;
  overflow: visible;
}

.video-divider video {
  width: 90vw;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* 3. System Demo: container flex wrap and fluid items */
.system-demo .demo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.system-demo .demo-text,
.system-demo .demo-image {
  flex: 1 1 100%;    /* ينزلان عموديًا على الشاشات الضيقة */
  min-width: 280px;
}

.system-demo .demo-image img {
  width: 100%;
  height: auto;
  display: block;
}