/* =============== HEADER / TOPBAR =============== */
/* =============== HEADER / TOPBAR =============== */
/* =============== HEADER / TOPBAR =============== */

.topbar {
  position: relative; /* خليه فوق العناصر الثانية */
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.18);
}

.topbar-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 0.75rem;

  display: flex;
  align-items: center;
  justify-content: space-between; /* logo يسار, nav يمين */
  gap: 1rem;
}

/* الشعار */
.brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(15, 23, 42, 0.25));
}

/* الناف – ديسكتوب */
.nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav a {
  position: relative;
  color: #0f3c96;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* underline في الديسكتوب فقط */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transition: width 0.22s ease;
}

.nav a:hover {
  color: #0956b4;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: rgb(32, 142, 238);
}

.nav a.active::after {
  width: 100%;
}

/* عناصر الموبايل افتراضياً مخفية */
.nav-toggle {
  display: none; /* بنخفيه تماماً */
}

.hamburger {
  display: none; /* يظهر فقط في الموبايل */
}

/* =============== RESPONSIVE (موبايل / تابلت) =============== */
@media (max-width: 960px) {
  .topbar-row {
    max-width: 100%;
    padding: 0.6rem 1rem;
    position: relative;
  }

  /* تصغير اللوقو */
  .logo {
    width: 130px;
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.22));
  }

  /* نخفي الناف الافتراضية */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 0.4rem;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;

    background: rgba(248, 250, 252, 0.98);
    border-radius: 18px;
    padding: 0.7rem 1rem 0.9rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);

    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
  }

  .nav a {
    width: 100%;
    font-size: 0.98rem;
    padding: 0.4rem 0.2rem;
    text-align: right;
    border-radius: 10px;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover {
    color: #0f3c96;
    background: rgba(37, 99, 235, 0.08);
  }

  .nav a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
  }

  /* زر الهامبرقر */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    font-size: 1.1rem;
    color: #0f3c96;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
    transition: all 0.2s ease;
  }

  .hamburger:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.25);
  }

  /* نرجّع الـ checkbox بس عشان CSS، بدون overlay ولا positions */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}


  /* فتح وإغلاق القائمة لما يتشيّك الـ checkbox */
  .nav-toggle:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-toggle:checked + .hamburger {
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  }
}

/* =========================
        FOOTER – BASE
========================= */

.footer {
  background: #f8fafc;
  padding: 50px 20px 35px;
  border-top: 1px solid #e2e8f0;
  direction: rtl;
  font-family: inherit;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* =========================
        TITLES
========================= */

.footer-title {
  font-size: 1.15rem;
  color: #0f3c96;
  margin-bottom: 14px;
  font-weight: 700;
}

/* =========================
     ABOUT BEYOND AI
========================= */

.footer-about-desc {
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* =========================
        QUICK LINKS
========================= */

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.95rem;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #2563eb;
  transform: translateX(-3px);
}

/* =========================
       CONTACT SECTION
========================= */

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-icon {
  width: 38px;
  height: 38px;
  background: #e3edff;
  border-radius: 50%;
  color: #0f3c96;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

.footer-contact span {
  font-size: 0.95rem;
  color: #1f2933;
  line-height: 1.5;
}

.nowrap {
  white-space: nowrap;
}

/* =========================
        SOCIAL MEDIA
========================= */

.footer-bottom {
  margin-top: 30px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-social a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: white;
  border: 1px solid #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0f172a;
  transition: 0.25s ease;
}

.footer-social a:hover {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* =========================
        COPYRIGHT TEXT
========================= */

.footer-bottom-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}

.footer-bottom-text span {
  color: #2563eb;
  font-weight: 700;
}

/* =========================
     RESPONSIVE – TABLET
========================= */

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
      RESPONSIVE – MOBILE
========================= */

@media (max-width: 780px) {

  /* 1 column layout */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding: 40px 16px 30px;
  }

  /* إخفاء الروابط السريعة بالكامل */
  .footer-links-col {
    display: none !important;
  }

  .footer-title {
    font-size: 1.05rem;
  }

  .footer-about-desc,
  .footer-contact span {
    font-size: 0.92rem;
  }

  .footer-social {
    margin-top: 20px;
  }
}
/* ==== نسخة الجوال لسكشن الأمير محمد بن سلمان - نفس الديسكتوب ولكن أصغر ==== */
@media (max-width: 768px) {

  .vision-quote {
    flex-direction: row !important;         /* نفس الديسكتوب */
    justify-content: space-between !important;
    align-items: center !important;
    padding: 40px 3vw !important;           /* يقلل ارتفاع السكشن كثير */
    gap: 10px !important;
    min-height: unset !important;
  }
.vision-text {
    max-width: 100% !important;
    
  }

  .vision-text h3 {
    font-size: 0.9rem !important;    /* 🔥 كان كبير جداً */
    line-height: 1.7 !important;
  }

 

  .vision-author .sidi {
    font-size: 8px !important;
  }

  .vision-author {
    font-size: 8px !important;
    line-height: 1.7 !important;
    margin-top: 10px !important;
  }

  .vision-photo img {
    height: 200px !important;               /* 🔥 أهم شيء: تصغير الصورة جدًا */
    object-fit: contain !important;
    margin: 0 !important;
        
    padding: 0 !important;
  }

  /* نخفف ذوبان الصورة عشان ما يكبر السكشن */
  .vision-photo::after {
    height: 30% !important;
  }
}
@supports (-webkit-touch-callout: none) {
  * {
    -webkit-text-size-adjust: 100%;
  }
}
.scroll-hint {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .scroll-hint {
    display: block;
  }
}

@media (min-width: 769px) {
  .scroll-hint {
    display: none;  /* نخفيها في الديسكتوب */
  }
}
