/* ============ VARIABLES & RESET ============ */
:root {
  --primary: #0D5978;
  --primary-dark: #073447;
  --green: #19C39A;
  --green-dark: #12a17e;
  --green-deep: #0D5978;
  --green-light: rgba(25, 195, 154, 0.1);
  --cream: #f0f6f8;
  --ink: #073447;
  --muted: #4f7080;
  --radius: 18px;
  --shadow: 0 24px 50px -22px rgba(7, 52, 71, 0.28);
  --font: 'Tajawal', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; width: 100%; max-width: 100vw; overflow-x: hidden; }
body { font-family: var(--font); color: var(--ink); background: #fff; width: 100%; max-width: 100vw; overflow-x: hidden; position: relative; line-height: 1.7; }
#landing-view, #privacy-view { width: 100%; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.block { display: block; }
.green { color: var(--green); }
::selection { background: var(--green); color: #fff; }

/* ============ ANIMATIONS & REVEAL FALLBACK ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes wheelMove { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(6px); opacity: 0; } 100% { transform: translateY(6px); opacity: 0; } }

.hero-anim { animation: fadeUp .9s cubic-bezier(.22, .61, .36, 1) both; animation-delay: var(--d, 0s); }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0s);
}
body.js-loaded .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(36px);
}
/* Prevent horizontal overflow on mobile screens */
body.js-loaded .reveal.slide-left:not(.in-view) {
  transform: translateY(36px);
}
@media (min-width: 992px) {
  body.js-loaded .reveal.slide-left:not(.in-view) {
    transform: translateX(-40px);
  }
}

.reveal.in-view {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; }
  .reveal, .slide-left { opacity: 1!important; transform: none!important; }
}

/* ============ HEADER ============ */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); transition: box-shadow .3s; width: 100%; }
.header.scrolled { box-shadow: 0 6px 24px -12px rgba(7, 52, 71, 0.25); }
.nav-inner { height: 76px; display: flex; align-items: center; gap: 36px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 24px; color: var(--primary); }
.logo-img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(13, 89, 120, 0.25); transition: transform .25s ease; }
.logo:hover .logo-img { transform: scale(1.05); }
.logo-light .logo-text { color: #fff; }

.nav-links { display: flex; gap: 24px; margin: 0 auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: #3d5a68; position: relative; padding: 6px 2px; transition: color .25s; }
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 700; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -3px; right: 0; left: 0; height: 2.5px; border-radius: 3px; background: var(--green); }

.btn-primary { background: var(--green); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 26px; border-radius: 11px; transition: .3s; box-shadow: 0 10px 20px -8px rgba(25, 195, 154, 0.5); cursor: pointer; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--primary); border-radius: 3px; margin: 5.5px 0; transition: .3s; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ============ HERO ============ */
.hero { position: relative; min-height: calc(100vh - 76px); display: flex; align-items: center; overflow: hidden; width: 100%; }
.hero-bg { position: absolute; inset: 0; background: #e4edf1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to left, rgba(255,255,255,0.7), rgba(255,255,255,0.2) 45%, rgba(255,255,255,0) 65%); }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; line-height: 1.25; color: var(--primary-dark); }
.hero-sub { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); margin: 18px 0 34px; }

/* Store Buttons */
.store-row { display: flex; gap: 16px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 12px; transition: transform .3s, box-shadow .3s; min-width: 150px; }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -10px rgba(7, 52, 71, 0.35); }
.store-btn.dark { background: var(--primary-dark); color: #fff; }
.store-btn.light { background: #fff; color: var(--primary-dark); }
.store-btn.light small { color: #5a7582; }
.store-ic { width: 26px; height: 26px; flex-shrink: 0; }
.store-txt { display: flex; flex-direction: column; line-height: 1.25; }
.store-txt small { font-size: 11px; opacity: .75; }
.store-txt strong { font-size: 17px; font-weight: 700; }

/* Scroll Hint */
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.scroll-hint svg { width: 28px; height: 28px; }
.scroll-hint .wheel { animation: wheelMove 1.8s ease-in-out infinite; }

/* ============ JOURNEY (desert bus) ============ */
.journey { position: relative; height: 50vh; min-height: 350px; overflow: hidden; background: var(--primary-dark); width: 100%; }
.journey img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; will-change: transform; }

/* ============ COMPANIES BUS SLIDER ============ */
.companies-section {
  background: var(--cream);
  padding: 80px 0;
  overflow-x: hidden;
  width: 100%;
}
.buses-scroll-wrapper {
  position: relative;
  margin-top: 20px;
  width: 100%;
}
.buses-scroll-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px 25px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
  width: 100%;
}
.buses-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.buses-scroll-container::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 10px;
}
.buses-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}
.bus-card {
  flex: 0 0 140px;
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 10px 22px -10px rgba(7, 52, 71, 0.15);
  border: 1px solid #dbe8ed;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bus-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -10px rgba(7, 52, 71, 0.22);
  border-color: var(--green);
}
.bus-img-box {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafb;
}
.bus-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bus-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

/* More Card (+90) */
.bus-card.more-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: none;
}
.more-circle {
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(25, 195, 154, 0.3);
}
.more-card .bus-name {
  color: #ffffff;
  font-size: 13px;
}

/* Scroll Arrows */
.scroll-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dbe8ed;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
.scroll-arrow:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}
.scroll-right { right: -15px; }
.scroll-left { left: -15px; }

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

/* ============ STATS ============ */
.stats-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 52px 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; width: 100%; }
.stat { text-align: center; opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); display: flex; flex-direction: column; align-items: center; }
.stat-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: var(--green-light); color: var(--green); display: grid; place-items: center; transition: .35s; }
.stat-icon svg { width: 30px; height: 30px; }
.stat:hover .stat-icon { background: var(--green); color: #fff; transform: translateY(-4px); }
.stat-num { font-size: clamp(32px, 3.4vw, 44px); font-weight: 900; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* Small Exact Count Sub-text (Hidden while loading) */
.stat-exact {
  display: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 6px;
  background: var(--green-light);
  padding: 3px 12px;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat-exact.visible {
  display: inline-block !important;
  opacity: 1;
}

/* ============ SECTION TITLES ============ */
.section-title { text-align: center; font-size: clamp(26px, 3vw, 34px); font-weight: 900; margin-bottom: 48px; color: var(--primary); }

/* ============ WHY ============ */
.why { padding: 90px 0 70px; width: 100%; overflow-x: hidden; }
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid #dbe8ed; border-radius: var(--radius); padding: 30px 18px; text-align: center; transition: transform .35s, box-shadow .35s; }
.feature-card:hover { transform: translateY(-7px); box-shadow: 0 22px 40px -18px rgba(7, 52, 71, 0.22); }
.f-icon { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px; background: var(--green-light); color: var(--green); display: grid; place-items: center; transition: .35s; }
.f-icon svg { width: 29px; height: 29px; }
.feature-card:hover .f-icon { background: var(--green); color: #fff; }
.feature-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; color: var(--primary); }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ============ APP PREVIEW ============ */
.app-preview { padding: 80px 0 100px; width: 100%; overflow-x: hidden; }
.preview-inner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 50px; }
.preview-text h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; line-height: 1.35; color: var(--primary-dark); }
.preview-sub { color: var(--green); font-size: 21px; font-weight: 800; margin: 16px 0 10px; }
.preview-text p { color: var(--muted); font-size: 16px; max-width: 420px; }
.phones { position: relative; }
.phones img { width: 100%; max-width: 640px; margin-inline: auto; animation: floatY 6s ease-in-out infinite; }
.dots { position: absolute; bottom: -26px; left: 0; width: 120px; height: 110px; background-image: radial-gradient(var(--green) 2px, transparent 2.6px); background-size: 18px 18px; opacity: .28; z-index: -1; }

/* ============ HOW IT WORKS ============ */
.how { padding: 20px 0 100px; width: 100%; overflow-x: hidden; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before { content: ''; position: absolute; top: 37px; right: 12%; left: 12%; border-top: 2px dashed #b8d4e0; }
.step { text-align: center; position: relative; }
.step-circle { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid #d4e5ed; color: var(--green); display: grid; place-items: center; position: relative; transition: .35s; box-shadow: 0 10px 22px -12px rgba(7, 52, 71, 0.25); }
.step-circle svg { width: 32px; height: 32px; }
.step:hover .step-circle { border-color: var(--green); transform: translateY(-5px); }
.step-badge { position: absolute; left: -8px; bottom: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; border: 2.5px solid #fff; }
.step h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 6px; color: var(--primary); }
.step p { font-size: 14px; color: var(--muted); max-width: 210px; margin: 0 auto; }

/* ============ CTA ============ */
.cta { padding: 20px 0 100px; width: 100%; overflow-x: hidden; }
.cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 28px; padding: 60px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; position: relative; box-shadow: 0 20px 40px rgba(7, 52, 71, 0.25); }
.cta-text { padding-bottom: 0; width: 100%; max-width: 650px; }
.cta-text h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin-bottom: 12px; }
.cta-text p { color: rgba(255, 255, 255, 0.88); font-size: 17px; margin-bottom: 30px; }
.cta-text .store-row { justify-content: center; }

/* ============ SEPARATED PRIVACY PAGE ============ */
.privacy-page {
  padding: 60px 0 100px;
  background: var(--cream);
  min-height: calc(100vh - 76px - 300px);
  width: 100%;
}
.privacy-card-page {
  background: #ffffff;
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
  border: 1px solid #dbe8ed;
  max-width: 850px;
  margin: 0 auto;
}
.privacy-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #eaf2f5;
  padding-bottom: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}
.privacy-page-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.privacy-page-header h1 {
  font-size: 26px;
  color: var(--primary);
  margin: 0;
  font-weight: 900;
}
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-home:hover {
  background: var(--green);
  color: #ffffff;
  transform: translateY(-2px);
}
.privacy-body-page h2 {
  font-size: 19px;
  color: var(--green-dark);
  margin: 28px 0 12px;
  font-weight: 800;
}
.privacy-body-page p {
  font-size: 16px;
  color: #3b5663;
  line-height: 1.8;
  margin-bottom: 14px;
}
.privacy-body-page ul {
  margin-right: 24px;
  margin-left: 0;
  margin-bottom: 20px;
  color: #3b5663;
}
.privacy-body-page li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 15.5px;
}
.privacy-body-page a {
  color: var(--green-dark);
  text-decoration: underline;
  font-weight: 700;
}
.privacy-body-page hr {
  margin: 40px 0;
  border: none;
  height: 1.5px;
  background: #e2ece9;
}
.privacy-body-page .en {
  direction: ltr;
  text-align: left;
}
.privacy-body-page .en ul {
  margin-left: 24px;
  margin-right: 0;
}

/* ============ FOOTER ============ */
.footer { background: var(--primary-dark); color: #a4c4d3; padding: 70px 0 0; width: 100%; overflow-x: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.f-brand p { margin-top: 18px; font-size: 15px; line-height: 1.9; }
.f-col h4 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 20px; }
.f-col a { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 13px; color: #a4c4d3; transition: color .25s, transform .25s; }
.f-col a:hover { color: #fff; transform: translateX(-4px); }
.f-col a svg { width: 17px; height: 17px; flex-shrink: 0; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); display: grid; place-items: center; color: #d0e4ee; margin: 0; transition: .3s; }
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); }
.socials a svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; text-align: center; font-size: 13.5px; color: #789baa; }

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; margin-right: auto; }
  .mobile-nav { display: block; position: absolute; top: 100%; right: 0; left: 0; background: #fff; max-height: 0; overflow: hidden; transition: max-height .45s ease; box-shadow: 0 20px 30px -18px rgba(0,0,0,.2); }
  body.nav-open .mobile-nav { max-height: 480px; border-top: 1px solid #f0f0ea; }
  .mobile-nav a { display: block; padding: 14px 30px; font-weight: 500; color: var(--primary); border-bottom: 1px solid #f4f4ee; }
  .mobile-nav .mobile-cta { color: var(--green); font-weight: 800; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:900px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; padding: 44px 26px; }
  .preview-inner { grid-template-columns: 1fr; text-align: center; }
  .preview-text p { margin: 0 auto; }
  .preview-text h2 { margin-top: 8px; }
  .phones { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 50px 30px; }
}
@media(max-width:600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero-overlay { background: linear-gradient(to left, rgba(255,255,255,0.85), rgba(255,255,255,0.4)); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .f-col a { justify-content: center; }
  .socials { justify-content: center; }
}
@media(max-width:420px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: 1fr; }
}
