/* =========================================================
   HEADER فوق الهيرو (Hero Header)
   ========================================================= */

.hero-nav {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: none !important;
    box-shadow: none !important;
    height: 175px;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.10) 60%,
        rgba(0, 0, 0, 0.00) 100%
    ) !important;

    transition: all 0.3s ease-in-out;
}

.hero-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.hero-nav .nav-link,
.hero-nav .lang-switch a,
.hero-nav .burger-icon span,
.hero-nav .text-600 {
    color: #fff !important;
    transition: all 0.2s ease-in-out;
}


.hero-nav:hover {
    border-bottom: 1px solid #e5e5e5 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hero-nav:hover .nav-link,
.hero-nav:hover .lang-switch a,
.hero-nav:hover .burger-icon span,
.hero-nav:hover .text-600 {
    color: #ffffff  !important;
}

.hero-nav .nav-link {
    border-radius: 999px;
    padding-inline: 14px;
    padding-block: 6px;
}

.hero-nav .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #48Bccc !important;
}

/* Language */
.lang-switch-btn {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease-in-out;
}

.lang-switch-btn .lang-icon {
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease-in-out;
    fill: #ffffff;
}

.hero-nav:hover .lang-switch-btn { color: #48Bccc !important; fill: #48Bccc !important; }
.lang-switch-btn .lang-icon:hover { fill: #48Bccc !important; }
.lang-switch-text:hover { color: #48Bccc !important; }

/* =========================================================
   HERO SECTION (NEW PREMIUM)
   ========================================================= */

:root{
  --brand-cyan: #48BCCC;
  --brand-purple: #4d2d79;
}

.hero-5 {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-video,
.hero-bg-image{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-bg-video{ object-fit: cover; }

.hero-overlay{
    position:absolute;
    inset:0;
    background: rgba(25, 6, 52, 0.62);
    z-index:1;
}

/* container layer */
.hero-container{
     z-index: 3; 
}
.hero-container.is-rtl{
  text-align: right;
  margin-right: 7%; 
  margin-top: 5%; 
  margin-left: auto;
}

/* LTR: قربه للشمال زيادة */
.hero-container.is-ltr{
  margin-top: 5%; 
  text-align: left;
  margin-left: 7%; 
  margin-right: auto;
}

/* يمين + فوق */
.hero-wrap{
  max-width: 760px;
  transform: translateY(-22px);
}

.hero-wrap.is-rtl{
  text-align:right;
  margin-right: 1%;
  margin-left: auto;
}
.hero-wrap.is-ltr{
  text-align:left;
  margin-left: 1%;
  margin-right: auto;
}

@media (max-width: 992px){
  .hero-wrap{
    transform: translateY(-8px);
    max-width: 92%;
    margin-inline: auto;
  }
}

/* BADGE */
.hero-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 12.5px;
}

.hero-pill-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 6px rgba(72,188,204,.14);
}

/* TITLE */
.hero-headline{
  margin-top: 16px;
  margin-bottom: 10px;
  font-weight: 900;
  color: #fff;
  font-size: clamp(20px, 6vw, 60px);
  line-height: 1.2;
  letter-spacing: .2px;
}
.hero-headline .highlight {
  color: #48BCCC;
}

/* SUBTITLE */
.hero-subtitle{
  color: rgba(255,255,255,.84);
  margin: 0;
  margin-top: 8px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  max-width: 660px;
}


/* ACTIONS */
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 18px;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.hero-btn:focus{
  outline: 2px solid rgba(72,188,204,.75);
  outline-offset: 3px;
}

.hero-btn--primary{
  background: var(--brand-cyan);
  color:#fff;
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}
.hero-btn--primary:hover{
  background: #2fb5c6;
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,.35), 0 0 0 7px rgba(72,188,204,.12);
}

.hero-btn--secondary{
  background: var(--brand-purple);
  color:#fff;
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}
.hero-btn--secondary:hover{
  background: #3f2565;
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,.35), 0 0 0 7px rgba(77,45,121,.18);
  color: var(--brand-cyan);
}

.hero-btn-arrow{
  display:inline-block;
  transition: transform .2s ease;
}
.hero-btn:hover .hero-btn-arrow{
  transform: translateX(3px);
}
[dir="rtl"] .hero-btn:hover .hero-btn-arrow{
  transform: translateX(-3px);
}

/* TRUST */
.hero-mini-trust{
  margin-top: 18px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:flex-start;
}

.hero-mini-trust__item{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 8px;

  min-width: 170px;
  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.hero-mini-trust__text{
  text-align:center;
  color: rgba(255,255,255,.88);
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1.35;
}

.hero-mini-trust__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.hero-mini-trust__icon svg{
  width: 20px;
  height: 20px;
  fill:none;
  stroke:#fff;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition: stroke .2s ease;
}

.hero-mini-trust__item:hover,
.hero-mini-trust__item:focus-visible{
  transform: translateY(-3px);
  border-color: rgba(72,188,204,.40);
  box-shadow: 0 18px 50px rgba(0,0,0,.30), 0 0 0 6px rgba(72,188,204,.10);
  background: rgba(255,255,255,.08);
  outline: none;
}

.hero-mini-trust__item:hover .hero-mini-trust__icon,
.hero-mini-trust__item:focus-visible .hero-mini-trust__icon{
  background: rgba(72,188,204,.18);
  border-color: rgba(72,188,204,.35);
  transform: translateY(-1px);
}

/* =========================
   HERO ENTER ANIMATIONS
   ========================= */
.hero-anim{
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition:
    opacity .65s ease,
    transform .65s ease,
    filter .65s ease;
  transition-delay: var(--d, 0ms);
}
.hero-anim.is-in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.hero-anim--up{ transform: translateY(18px); }

.hero-typing-cursor::after{
  content:"|";
  margin-inline-start: 6px;
  animation: heroBlink 1s infinite;
  opacity: 1;
}
@keyframes heroBlink{
  0%,50%,100%{ opacity: 1; }
  25%,75%{ opacity: 0; }
}

/* =========================================================
   HERO BOTTOM STRIP (as you had)
   ========================================================= */
.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: #32c7d8;
    z-index: 3;
}

.hero-discover-wrapper {
    position: absolute;
    top: -60px;
    width: 190px;
    height: 80px;
    background: #32c7d8;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
}

.hero-discover-ar { right: 8%; }
.hero-discover-en { left: 8%; }

.hero-discover {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.hero-discover span { font-weight: 500; }

.hero-discover-icon {
    width: 15px;
    height: auto;
    margin-top: 4px;
    filter: brightness(0) invert(1);
    animation: heroArrowBounce 1.6s infinite;
}

@keyframes heroArrowBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* Active link styles (unchanged) */
.nav-link.is-active{
    color:#48Bccc !important;
    position:relative;
}
.nav-link.is-active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-8px;
    height:2px;
    background:#48Bccc;
    border-radius:2px;
}
.is-active { color: #48Bccc !important; }
.is-active-parent > .nav-link{ color:#48Bccc !important; }
.nav-link{ transition:color .2s ease; }

/* =========================================================
   RESPONSIVE FIXES (Added بدون حذف أي شيء)
   الهدف: منع تضخم اللوجو + منع تداخل المساحات + ضبط الخطوط
   ========================================================= */

.hero-nav .main-logo img.desktop-logo{
  width: clamp(170px, 18vw, 330px);
  max-height: 100px;
  object-fit: contain;
}

.mobile-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
}


/* =============================
    Dropdown Container Modern
============================= */
.dropdown-menu-modern {
    min-width: 240px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 0.5rem 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border: none;
    transition: all 0.3s ease;
}

/* =============================
    Dropdown List
============================= */
.dropdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-list-item + .dropdown-list-item {
    border-top: 1px solid #eaeaea;
}

/* =============================
    Dropdown Links
============================= */
.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
}

/* Hover effect فقط على النص */
.dropdown-link span {
    transition: color 0.25s ease;
}

.dropdown-link:hover {
    color: #48Bccc ; /* تغيير النص فقط */
}

.dropdown-link:hover .dropdown-icon {
    color: #48Bccc ; /* أيقونة تتغير بلون النص عند hover */
    transform: translateX(3px); /* حركة خفيفة */
}

/* أيقونات صغيرة على اليمين */
.dropdown-icon {
    font-size: 14px;
    margin-left: 8px;
    color: #999;
    transition: all 0.25s ease;
}

/* العنصر النشط */
.dropdown-list-item.is-active .dropdown-link {
    color: #48Bccc ;
    font-weight: 600;
}

/* Parent Active Highlight */
.nav-item.dropdown .nav-link.dropdown-toggle {
    color: #48Bccc ;
    font-weight: 600;
}

/* =============================
    تحسين المسافات للعناصر الكبيرة
============================= */
.nav-item.dropdown .nav-link {
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.2s ease;
}


/* =============================
   Dropdown Modern – Dark Mode
============================= */
[data-bs-theme="dark"] .dropdown-menu-modern{
    background: rgb(41 53 79);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
[data-bs-theme="dark"] .dropdown-list-item.is-active .dropdown-link{
    color: #48Bccc !important;
}

/* الخط الفاصل */
[data-bs-theme="dark"] .dropdown-list-item + .dropdown-list-item{
    border-top: 1px solid rgba(255,255,255,.08);
}

/* النص */
[data-bs-theme="dark"] .dropdown-link{
    color: rgba(226,232,240,.9);
}

/* hover */
[data-bs-theme="dark"] .dropdown-link:hover{
    color: #48Bccc;
}

/* الأيقونة */
[data-bs-theme="dark"] .dropdown-icon{
    color: rgba(148,163,184,.7);
}

[data-bs-theme="dark"] .dropdown-link:hover .dropdown-icon{
    color: #48Bccc;
}

/* العنصر النشط */
[data-bs-theme="dark"] .dropdown-list-item.is-active .dropdown-link{
    color: #48Bccc;
    font-weight: 600;
}

/* على الشاشات الصغيرة فقط */
@media (max-width: 991.98px) { /* أو حسب breakpoint navbar */
    .dropdown-toggle::after {
        content: "" !important;  /* إزالة أي رمز قديم */
        display: inline-block;
        float: right;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        border-top: 0.3em solid;       /* السهم */
        border-right: 0.3em solid transparent;
        border-left: 0.3em solid transparent;
    }

    /* RTL */
    html[dir="rtl"] .dropdown-toggle::after {
        float: left;
        margin-left: 0;
        margin-right: 0.255em;
    }
}

/* على الشاشات الكبيرة، نترك Bootstrap يعرض السهم الافتراضي */
@media (min-width: 992px) {
    .dropdown-toggle::after {
        content: "" !important; /* نضمن عدم ظهور رمز مربع */
    }
}





/* Navbar height + spacing for different screens */
@media (min-width: 1400px){
  .hero-nav{
    height: 165px;
  }
  .hero-nav .container-fluid{
    padding-left: 3.2rem;
    padding-right: 3.2rem;
  }
  .hero-nav .nav-link{
    padding-inline: 16px;
    padding-block: 7px;
  }
}
/* =====================================
   NAVBAR COMPACT MODE (< 1400px)
   ===================================== */
@media (max-width: 1399.9px){

  /* المسافات بين العناصر */
  .navbar-nav{
    gap: 0.4rem !important;
  }

  /* كل li */
  .navbar-nav .nav-item{
    display: flex;
    align-items: center;
  }

  /* كل لينك عادي */
  .navbar-nav .nav-link{
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: 999px;
    white-space: nowrap;
  }

  /* dropdown trigger */
  .navbar-nav .dropdown > .nav-link{
    padding-inline: 0.6rem;
  }

  /* active underline */
  .nav-link.is-active::after{
    bottom: -6px;
    height: 1.5px;
  }
}


@media (max-width: 1199.98px){
  .hero-nav{
    height: 140px;
  }
  .desktop-logo{
    display: none !important;
  }
  .hero-container.is-rtl,
  .hero-container.is-ltr{
    margin-top: 6%;
  }
}

@media (max-width: 991.98px){
  .hero-nav{
    height: 110px;
  }
  .hero-nav .container-fluid{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hero-nav .main-logo img{
    width: clamp(150px, 40vw, 240px);
    max-height: 70px;
  }

  
  .hero-subtitle{
    font-size: clamp(13px, 2.2vw, 15px);
    line-height: 1.85;
    max-width: 92%;
  }

  /* Buttons */
  .hero-btn{
    padding: 11px 16px;
    font-size: 12.5px;
  }

  /* Trust cards */
  .hero-mini-trust__item{
    min-width: 160px;
  }

  /* Bring hero content away from edges */
  .hero-container.is-rtl{
    margin-right: 4%;
  }
  .hero-container.is-ltr{
    margin-left: 4%;
  }

  /* Bottom discover position */
  .hero-discover-ar { right: 5%; }
  .hero-discover-en { left: 5%; }
}

@media (max-width: 767.98px){
  .hero-nav{
    height: 92px;
  }

  .hero-nav .main-logo img{
    width: clamp(130px, 52vw, 210px);
    max-height: 62px;
  }

  .lang-switch-btn{
    font-size: 12.5px;
  }
  .lang-switch-btn .lang-icon{
    width: 18px;
    height: 18px;
  }

  .hero-wrap{
    transform: translateY(-4px);
    max-width: 94%;
  }

  .hero-pill{
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero-actions{
    gap: 10px;
  }
  .hero-btn{
    width: auto;
    padding: 10px 14px;
    font-size: 12.2px;
  }

  .hero-mini-trust{
    gap: 10px;
  }
  .hero-mini-trust__item{
    min-width: 150px;
    padding: 9px 10px;
    border-radius: 14px;
  }
  .hero-mini-trust__icon{
    width: 42px;
    height: 42px;
  }
  .hero-mini-trust__text{
    font-size: 12.2px;
  }

  .hero-discover-wrapper{
    width: 210px;
    height: 74px;
    top: -56px;
    padding-bottom: 14px;
  }
  .hero-bottom{
    height: 56px;
  }
}

@media (max-width: 575.98px){
  .hero-nav{
    height: 84px;
  }
  .hero-nav .main-logo img{
    width: clamp(120px, 56vw, 190px);
    max-height: 56px;
  }

  .hero-container.is-rtl,
  .hero-container.is-ltr{
    margin-top: 20%;
  }

 
  .hero-subtitle{
    font-size: 13.2px;
    line-height: 1.8;
  }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-btn{
    width: 100%;
    justify-content: center;
  }

  .hero-mini-trust{
    flex-direction: column;
    align-items: stretch;
  }
  .hero-mini-trust__item{
    width: 100%;
    min-width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
  }
  .hero-mini-trust__text{
    text-align: start;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .hero-discover-wrapper{
    width: 190px;
    height: 70px;
    top: -52px;
    padding-bottom: 12px;
  }
  .hero-bottom{
    height: 52px;
  }
}

/* Small height screens (laptops short) */
@media (max-height: 700px) and (min-width: 992px){
  .hero-container.is-rtl,
  .hero-container.is-ltr{
    margin-top: 3%;
  }
  .hero-wrap{
    transform: translateY(-10px);
  }
  .hero-mini-trust{
    margin-top: 14px;
  }
}



/* =========================
   HERO H1 – Mobile Fix
   ========================= */

@media (max-width: 767.98px){
  .hero-headline{
    font-size: 22px !important;
    line-height: 1.25;
    letter-spacing: 0;
  }
}

@media (max-width: 575.98px){
  .hero-headline{
    font-size: 20px !important;
    line-height: 1.3;
  }
}

@media (max-width: 360px){
  .hero-headline{
    font-size: 18px !important;
    line-height: 1.35;
  }
}




