@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #007bff #0c0c0d;
}
body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background: #0c0c0d;
  overflow-x: hidden;
}
/* تخصيص الاسكرول في المتصفحات المبنية على WebKit */
::-webkit-scrollbar {
  width: 10px; /* عرض الاسكرول */
}
::-webkit-scrollbar-track {
  background: #0c0c0d; /* خلفية سوداء */
}
::-webkit-scrollbar-thumb {
  background-color: #007bff; /* لون أزرق */
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #0056b3; /* أزرق أغمق عند المرور عليه */
}
/* *********************************************************** */
#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  transform: translateX(100%); /* البداية خارج الشاشة */

  /* خلفية مدرجة بحواف ناعمة */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    /* الحافة اليسرى شفافة */ rgba(0, 0, 0, 0.6) 20%,
    /* بداية اللون الأسود */ rgba(0, 0, 0, 0.6) 80%,
    /* منتصف الطبقة مشبع */ rgba(0, 0, 0, 0) 100% /* الحافة اليمنى شفافة */
  );
}

.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.section.active {
  display: block;
  opacity: 1;
}

/* ********************************************************* */
.header {
  position: absolute; /* أو fixed لو عايزه يثبت مع التمرير */
  top: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 35px;
  padding: 20px 20px;
  background: transparent; /* شفافية 100% */
  z-index: 999;
  color: white;
}
.header img {
  height: 30px;
}
.desktop-nav {
  display: flex;
  gap: 20px;
}
.desktop-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;

  font-weight: bold;
  transition: color 0.3s ease;
}
.desktop-nav a:hover {
  color: #007bff;
}
/* ====== HAMBURGER MENU ====== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 30px;
  height: 20px;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* حالة التحويل لعلامة X */
.hamburger.active span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ====== MOBILE MENU ====== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: rgba(12, 12, 13, 0.95);
  padding: 60px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  transition: left 0.3s ease;
  z-index: 998;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.mobile-nav a:hover {
  color: #007bff;
}
/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .header {
    position: relative;
    justify-content: space-between;
  }
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .header img {
    height: 20px;
  }
}
/* ********************************************************* */
section.hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 145px;
  text-align: center;
  min-height: 100vh;
  --overlayOpacity: 0;
}
section.hero .grid {
  position: absolute;
  inset: 0;
  z-index: 0; /* الشبكة في الخلفية */
}
section.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    rgba(0, 123, 255, 0.18) 0%,
    rgba(12, 12, 13, 0.159) 35%,
    rgba(12, 12, 13, 0.699) 70%,
    rgb(12, 12, 13) 100%
  );
  opacity: var(--overlayOpacity); /* هنا السحر */
  z-index: 0; /* فوق الشبكة */
  pointer-events: none; /* ما تمنع التفاعل مع المحتوى */
}
/* خلفية الشبكة */
.grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}
/* خطوط لامعة تتحرك */
.line {
  position: absolute;
  background: linear-gradient(0deg, #007bff 0%, rgba(0, 219, 128, 0) 100%);
  width: 2px;
  height: 10%;
  opacity: 0.6;
}
.line.horizontal {
  width: 10%;
  height: 2px;
  background: linear-gradient(90deg, #007bff 0%, rgba(0, 219, 128, 0) 100%);
}
/* النصوص */
.badge {
  display: inline-block;
  padding: 5px 12px;
  background: #303036;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  color: white;
  overflow: hidden;
  margin-bottom: 25px;
}
.badge::after {
  content: "";
  position: absolute;
  top: 0%;
  left: -150%;
  width: 25%;
  height: 100%;
  z-index: 9;
  background: radial-gradient(
    rgba(255, 255, 255, 0.601) 0%,
    rgba(255, 255, 255, 0.122) 45%,
    rgba(255, 255, 255, 0.015) 70%,
    rgba(255, 255, 255, 0.008) 100%
  );
  animation: shine 7s infinite linear;
}
@keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 100%;
  }
}
.title1 {
  font-weight: 900; /* Bold */
  font-size: 75px;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fafafa; /* اللون الأساسي للنص */
  direction: rtl;
  background: radial-gradient(60% 100% at 28.7% 19%, #e8e7e8 0%, #98949a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0), 0 0 20px rgba(255, 0, 0, 0),
    0 0 30px rgba(255, 255, 255, 0.192);
}
.p1 {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.671);
  max-width: 600px;
  margin: 0 auto 10px;
  z-index: 2;
  line-height: 40px;
}
/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .title1 {
    font-size: 35px;
  }
  .p1 {
    font-size: 16px;
    line-height: 30px;
    padding: 0px 30px;
  }
  section.hero {
    min-height: 55vh;
    padding-top: 80px;
  }
  section.hero::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 123, 255, 0.164) 0%,
      rgba(12, 12, 13, 0.199) 45%,
      rgba(12, 12, 13, 0.479) 70%,
      rgb(12, 12, 13) 100%
    );
  }
}
/* ********************************************************* */
.articles {
  padding: 60px 0 30px 0;
  width: 100%;
  background: radial-gradient(
    circle at 50% 150%,
    rgba(0, 123, 255, 0.534) 0%,
    rgba(0, 123, 255, 0.192) 25%,
    rgb(12, 12, 13) 55%,
    rgb(12, 12, 13) 70%,
    rgb(12, 12, 13) 100%
  );
}
.articles h2 {
  color: white;
  font-size: 43px;
  margin-bottom: 30px;
  text-align: center;
}
.article-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 150px;
}
.article-card {
  width: 40%;
  height: 180px;
  background: linear-gradient(to top left, #007bff48, #007bff18);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.article-card img {
  width: 8%;
  border-radius: 5px;
  margin-bottom: 25px;
}
.article-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.article-content p {
  font-size: 16px;
  color: #ccc;
}
.footer {
  text-align: center;
}

.line-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  height: 4px; /* سماكة الخط */
}
.line-footer {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    #ffffff36,
    #ffffff00,
    #2ecc7000,
    #ffffff36
  );
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; /* حجم الشعار */
}
.copyright {
  font-size: 12px;
  color: #ffffff59;
}
@media (max-width: 768px) {
  .articles h2 {
    font-size: 25px;
  }
  .articles {
    padding: 30px 0 30px 0;
  }
  .article-card {
    width: 92%;
  }
  .article-card img {
    width: 13%;
  }
  .logo {
    width: 80px; /* حجم الشعار */
  }
}
/* ********************************************************* */
.header2 {
  position: fixed; /* أو fixed لو عايزه يثبت مع التمرير */
  top: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 20px 20px;
  z-index: 999;
  color: white;
  backdrop-filter: blur(10px); /* تأثير البلور */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: solid 1px rgba(255, 255, 255, 0.13);
}
.desktop-nav2 {
  display: flex;
  gap: 20px;
}
.desktop-nav2 a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;

  transition: color 0.3s ease;
}
.desktop-nav2 a:hover {
  color: #007bff;
}
/* ********************************************************* */
.subscription {
  padding: 180px 0 80px 0;
  width: 100%;
  background: radial-gradient(
    circle at 90% 0%,
    rgba(0, 123, 255, 0.397) 0%,
    rgba(0, 123, 255, 0.137) 15%,
    rgb(12, 12, 13) 35%,
    rgb(12, 12, 13) 70%,
    rgb(12, 12, 13) 100%
  );
}
.subscription h2 {
  color: white;
  font-size: 43px;
  margin-bottom: 80px;
  text-align: center;
}
.article-list2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.article-card2 {
  width: 40%;
  background: linear-gradient(to top left, #007bff48, #007bff18);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
}
.article-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.article-card2 img {
  width: 8%;
  border-radius: 5px;
  margin-bottom: 25px;
}
.article-content2 h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .subscription {
    padding: 150px 0 30px 0;
  }
  .subscription h2 {
    font-size: 25px;
  }
  .article-card2 {
    width: 90%;
  }
  .article-card2 img {
    width: 13%;
  }
}
/* ********************************************************* */
.contenar-A {
  width: 40%;
  margin: auto;
}
.subscription-A {
  padding: 180px 0 80px 0;
  width: 100%;
  background: radial-gradient(
    circle at 0% 100%,
    rgba(0, 123, 255, 0.397) 0%,
    rgba(0, 123, 255, 0.137) 15%,
    rgb(12, 12, 13) 35%,
    rgb(12, 12, 13) 70%,
    rgb(12, 12, 13) 100%
  );
}
.subscription-A h2 {
  color: white;
  font-size: 30px;
  margin-bottom: 80px;
  text-align: center;
}
.steps-list {
  list-style-type: disc;
  padding-left: 20px;
  text-align: right;
  margin: 20px 0;
}
.steps-list li {
  margin: 8px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: white;
}
.image-container {
  margin: 40px 0;
}
.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.image-container2 {
  margin: 40px 0;
  text-align: center;
}
.image-container2 img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .subscription-A {
    padding: 150px 0 30px 0;
  }
  .subscription-A h2 {
    font-size: 16px;
    font-weight: bold;
  }
  .contenar-A {
    width: 85%;
    margin: auto;
  }
}
/* ********************************************************* */
.video-container {
  margin: 30px 0;
  text-align: center;
}

.video-container video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  outline: none;
  display: block;
  margin: auto;
}
