* {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.drawer-overlay.active {
  display: block;
}

.drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 50;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.drawer-menu.active {
  right: 0;
}

.header-wrapper {
  /* background: linear-gradient(to right, #030303 0%, #1a1919 100%); */
  background: #030303;
  position: relative;
  padding-bottom: 80px;
  width: 100%;
  overflow: hidden;
  min-height: 600px;
}
.header-wrapper::before {
  content: "";
  position: absolute;
  width: 75%;
  top: -5%;
  right: 0%;
  height: 100%;
  background-image: url(assets/imgs/header/bg-elips.png);
  background-size: cover;
}

.header-wrapper::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 40px;
  background: #111827;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 2;
}

nav {
  position: relative;
  width: 100%;
  z-index: 25;
}
.section-curved-top {
  position: relative;
  padding-top: 50px;
  margin-top: -30px;
  z-index: 2;
}

.section-curved-top::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 62px;
  background: white;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

@media (max-width: 768px) {
  /* ===== HERO MOBILE FIX ===== */
  .header-wrapper {
    height: auto !important;
    min-height: unset !important;
    padding-bottom: 30px;
    overflow: visible;
  }

  .header-wrapper::after {
    bottom: -20px;
    height: 30px;
  }

  /* Hero grid: stack text first, image second */
  #home {
    padding-top: 16px !important;
    padding-bottom: 20px !important;
    min-height: unset !important;
  }

  #home .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: unset !important;
  }

  #home .grid > div.order-1 {
    order: 1 !important;
    width: 100% !important;
    z-index: 20 !important;
    position: relative !important;
    padding-bottom: 16px;
  }

  #home h1 {
    font-size: 22px !important;
    margin-bottom: 12px !important;
    line-height: 1.45 !important;
  }

  #home p {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  #home .grid > div.order-2 {
    order: 2 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
  }

  /* Hero text must never wrap under the phones or get clipped */
  #home h1,
  #home h2,
  #home p {
    white-space: normal !important;
  }

  /* Phone banner: sit below the text instead of floating over it */
  #home > div.absolute {
    position: relative !important;
    inset: auto !important;
    justify-content: center !important;
    margin-top: 24px;
    padding: 0 16px;
  }

  #home > div.absolute > div {
    width: 100%;
    max-width: 340px;
  }

  .section-curved-top {
    padding-top: 40px;
    margin-top: -20px;
  }

  .section-curved-top::before {
    top: -30px;
    height: 55px;
  }

  /* Footer logo smaller on mobile */
  footer .icon-logo {
    font-size: 42px !important;
  }
}

/* ===== Wasila Luxury Splash Screen ===== */
.wasila-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0f3322 0%, #081c13 60%, #040e09 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.wasila-splash.splash-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-glow-sphere {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.22) 0%, rgba(22, 163, 74, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: splashPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.splash-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(22, 163, 74, 0.15);
  animation: splashRipple 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.splash-circle.circle-1 { width: 320px; height: 320px; }
.splash-circle.circle-2 { width: 520px; height: 520px; animation-delay: 1.5s; border-color: rgba(22, 163, 74, 0.08); }

.splash-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  max-width: 90vw;
  width: 100%;
}

.splash-logo-wrap {
  position: relative;
  margin-bottom: 24px;
  animation: splashLogoEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo {
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(22, 163, 74, 0.45));
}

.splash-slogan {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  opacity: 0;
  animation: splashFadeUp 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.splash-loader-bar {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.splash-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #4ade80, #86efac);
  border-radius: 9999px;
  box-shadow: 0 0 12px #4ade80;
  animation: splashFill 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.splash-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 1px;
  animation: splashFadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes splashLogoEntrance {
  0%   { opacity: 0; transform: scale(0.85) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes splashFadeUp {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes splashPulse {
  0%   { transform: scale(0.9);  opacity: 0.18; }
  100% { transform: scale(1.15); opacity: 0.32; }
}

@keyframes splashRipple {
  0%   { transform: scale(0.85); opacity: 0.3; }
  50%  { opacity: 0.15; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes splashFill {
  0%   { width: 0%; }
  40%  { width: 55%; }
  80%  { width: 85%; }
  100% { width: 100%; }
}


.icon-star {
  vertical-align: middle;
  display: inline-block;
  width: 1em;
  height: 1em;
  mask: url("assets/imgs/icons/star.svg") no-repeat center / contain;
  background-color: currentColor;
  content: "";
}

.faq {
  position: relative;
}
.faq::before {
  position: absolute;
  content: "";
  bottom: -20px;
  right: 0;
  width: 65%;
  height: 90%;
  background-image: url("assets/imgs/circle.png");
  background-size: cover;
}
.active-faq {
  border: 2px solid #16a34a !important;
  box-shadow: 0px 4px 20px 0px rgba(102, 42, 178, 0.15);
}
.why-circle {
  @media (max-width: 768px) {
    width: 80px !important;
    height: 55px !important;
    padding: 10px !important;
    border-radius: 50%;
  }
}
#download {
  overflow: hidden;
}
.icon-logo {
  vertical-align: middle;
  display: inline-block;
  width: 3.8em;
  height: 1em;
  mask: url("assets/imgs/logo.svg") no-repeat center / contain;
  -webkit-mask: url("assets/imgs/logo.svg") no-repeat center / contain;
  background-color: currentColor;
  content: "";
}
.video-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  transition: opacity 0.5s ease, visibility 0.5s ease, max-height 0.5s ease,
    transform 0.3s ease, margin 0.5s ease, padding 0.5s ease;
  transform: translateY(20px);
}

.video-container.active {
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
  margin-top: 1rem;
  transform: translateY(0);
}

.video-container:hover {
  transform: translateY(-5px);
}

/* Mobile video specific animations */
@media (max-width: 767px) {
  .video-container:not(.desktop-video) {
    display: block !important; /* Override Tailwind's block class */
    transform: translateY(30px) scale(0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
  }
  
  .video-container:not(.desktop-video).active {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.2);
    animation: videoSlideIn 0.6s ease-out;
    background: #ffffff;
    border-color: rgba(22, 163, 74, 0.3);
  }
  
  .video-container:not(.desktop-video).exiting {
    animation: videoSlideOut 0.4s ease-in forwards;
    pointer-events: none; /* Prevent interaction during exit */
    filter: blur(1px);
  }
  
  .video-container:not(.desktop-video) video {
    transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
    border-radius: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  .video-container:not(.desktop-video):hover video {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.05);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.2);
  }
}

/* Desktop - Hide mobile videos */
@media (min-width: 768px) {
  .video-container:not(.desktop-video) {
    display: none !important; /* Hide mobile videos on desktop */
  }
}

@keyframes videoSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes videoSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-15px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

@keyframes desktopVideoSlideOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-25px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }
}

/* Video loading animation */
.video-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(22, 163, 74, 0.2);
  border-top: 3px solid #16a34a;
  border-radius: 50%;
  animation: videoSpin 1s linear infinite;
  opacity: 0;
  z-index: 10;
}

.video-container.loading::before {
  opacity: 1;
}

@keyframes videoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Video transition overlay */
.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(22, 163, 74, 0.1), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.video-container.exiting::after {
  opacity: 1;
}

.video-container .relative {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.video-container .relative > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
}

.video-control-btn {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 0.9375rem;
  backdrop-filter: blur(10px);
}

.video-control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.video-control-btn.play-btn {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.98);
  color: #000;
  border: none;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-control-btn.play-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.video-views {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 15;
}

.video-title {
  background: #1f2937;
  padding: 1.25rem;
  color: white;
}

.video-title p {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0;
}

/* Desktop video/mockup container */
@media (min-width: 768px) {
  .video-container.desktop-video {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .video-container.desktop-video.exiting {
    animation: desktopVideoSlideOut 0.5s ease-in forwards;
    pointer-events: none; /* Prevent interaction during exit */
    filter: blur(1px);
  }
  
  .video-container.desktop-video video {
    transition: transform 0.5s ease, filter 0.5s ease;
  }
  
  .video-container.desktop-video:hover video {
    transform: scale(1.03);
    filter: brightness(1.05);
  }
}

@keyframes desktopVideoSlideIn {
  0% {
    opacity: 0;
    transform: translateX(80px) scale(0.9);
  }
  60% {
    opacity: 0.9;
    transform: translateX(-10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Order Now Modal Styles */
.order-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.order-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.order-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 980px;
  height: 92vh;
  max-height: 860px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.order-modal-overlay.active .order-modal-container {
  transform: scale(1);
}

@media (max-width: 768px) {
  .order-modal-overlay {
    padding: 0;
  }
  .order-modal-container {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}


/* ===== Splash Screen Enhancements ===== */
.wasila-splash {
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(22, 163, 74, 0.28) 0%, rgba(22, 163, 74, 0) 70%),
    radial-gradient(circle at center, #0f3322 0%, #081c13 60%, #030a06 100%);
}

/* Faint "map" dot grid, fading out towards the edges */
.wasila-splash::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(rgba(134, 239, 172, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
  animation: splashGridDrift 6s linear infinite;
  pointer-events: none;
}

.splash-logo-wrap {
  display: inline-block;
  line-height: 0;
}

/* Light sweep that follows the logo shape */
.splash-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(74, 222, 128, 0.95) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-mask: url("assets/imgs/logo-wasila-white.png") no-repeat center / contain;
  mask: url("assets/imgs/logo-wasila-white.png") no-repeat center / contain;
  animation: splashShine 1.1s 0.55s ease-in-out forwards;
  pointer-events: none;
}

.splash-loader-bar {
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Glowing head on the progress bar */
.splash-loader-progress::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcfce7;
  box-shadow: 0 0 10px 3px rgba(74, 222, 128, 0.85);
  transform: translateY(-50%);
}

/* Exit: content zooms softly while the screen fades */
.splash-content {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, filter 0.5s ease;
}

.wasila-splash.splash-hidden .splash-content {
  transform: scale(1.12);
  opacity: 0;
  filter: blur(6px);
}

/* Already shown this visit: never paint it again */
html.splash-seen .wasila-splash {
  display: none !important;
}

@keyframes splashGridDrift {
  from { background-position: 0 0; }
  to { background-position: 26px 26px; }
}

@keyframes splashShine {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wasila-splash *,
  .wasila-splash::before,
  .wasila-splash *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .splash-loader-progress {
    width: 100%;
  }
}


/* ===== WhatsApp Green Accent ===== */
a[href*="wa.me"] .icon {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.3s ease !important;
}

a[href*="wa.me"]:hover .icon {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6) !important;
  background-color: #20ba59 !important;
}

a[href*="wa.me"] .icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

a[href*="wa.me"] #Phonelb,
a[href*="wa.me"] #phonelb {
  color: #25D366 !important;
}

/* Keep phone numbers on one line */
#Phonelb,
#phonelb,
#phonelb2 {
  white-space: nowrap;
}
