/* ========== القواعد العامة ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #FFF7EE, #E9F9F1);
  color: #222;
  overflow-x: hidden;
}

/* ========== فيديو البداية ========== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 1s ease, visibility 1s ease;
}
.intro-overlay.hide {
  opacity: 0;
  visibility: hidden;
}
.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== الهيدر ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #28B06E 0%, #FFB300 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header_inner {
  width: min(1100px, 92%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 60px;
  object-fit: contain;
}

/* القوائم */
.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== أزرار الهيدر بتأثيرات حركية احترافية ===== */
.btn {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* وميض ناعم عند مرور الماوس */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
}

.btn:hover::before {
  left: 0;
}

/* زر تسجيل الدخول */
.btn.login {
  background: #111;
  color: #fff;
}
.btn.login:hover {
  background: #000;
  transform: translateY(-3px) scale(1.05);
}

/* زر انضم كشريك - لون ذهبي مع تأثير نبض */
.btn.join {
  background: #FFB300;
  color: #000;
  padding: 5px 12px;   /* ← ده بيقلل عرض وارتفاع الزر */
  font-size: 14px;     /* ← بيصغر النص داخل الزر */
  border-radius: 6px;  /* ← يخلي الحواف ناعمة أكتر */
}
.btn.join:hover {
  background: linear-gradient(135deg, #FFC933, #FFB300);
  transform: translateY(-3px) scale(1.05);
}

/* زر انضم كسائق - لون أخضر مع تأثير نبض */
.btn.driver {
  background: linear-gradient(135deg, #1E8E5B, #28B06E);
  color: #fff;
  animation: pulseGreen 2.5s infinite ease-in-out;
}
.btn.driver:hover {
  background: linear-gradient(135deg, #28B06E, #3EDC8C);
  transform: translateY(-3px) scale(1.05);
}

/* ظل عام ناعم عند التمرير */
.btn:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===== تأثير النبض الذهبي ===== */
@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 179, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 179, 0, 0);
  }
}

/* ===== تأثير النبض الأخضر ===== */
@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 176, 110, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(40, 176, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 176, 110, 0);
  }
}
/* ========== قسم الهيرو ========== */
.hero {
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  background: linear-gradient(135deg, #28B06E 0%, #FFB300 100%);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn.android {
  background: #28B06E;
  color: #fff;
}

.btn.ios {
  background: #FFB300;
  color: #000;
}

/* ========== المميزات ========== */
.features {
  text-align: center;
  padding: 80px 5%;
}

.features h2 {
  font-size: 2rem;
  color: #28B06E;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 15px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-card h3 {
  color: #28B06E;
  margin: 15px 0 5px;
}

.feature-card p {
  color: #555;
  font-size: 15px;
}

/* ========== قسم الفيديو ========== */
.video-section {
  text-align: center;
  padding: 80px 5%;
}

.video-section h2 {
  color: #FFB300;
  font-size: 2rem;
  margin-bottom: 20px;
}

.video-container {
  display: flex;
  justify-content: center;
}

.video-container iframe {
  width: 80%;
  max-width: 800px;
  height: 450px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ========== قسم الانضمام ========== */
.join {
  text-align: center;
  padding: 80px 5%;
}

.join h2 {
  color: #28B06E;
  font-size: 2rem;
  margin-bottom: 40px;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.join-card {
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s ease;
}

.join-card:hover {
  transform: translateY(-5px);
}

.join-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.join-card h3 {
  margin-bottom: 10px;
}

.join-card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}

.join-card.gold {
  background: #FFF7EE;
}

.join-card.green {
  background: #E9F9F1;
}

.btn.start {
  background: #28B06E;
  color: #fff;
}

/* ========== الفوتر ========== */
.footer {
  background: #111;
  color: #fff;
  padding: 60px 5% 20px;
  text-align: right;
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-content h3 {
  color: #FFB300;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-content p {
  color: #ccc;
  font-size: 15px;
  line-height: 1.7;
}

.footer-content ul {
  list-style: none;
  padding: 0;
}

.footer-content li {
  margin-bottom: 8px;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #FFB300;
}

.footer .socials {
  display: flex;
  gap: 12px;
}

.footer .socials a {
  color: #FFB300;
  font-weight: 600;
  text-decoration: none;
}

.copyright {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin-top: 40px;
}

/* ========== حركات (أنيميشن) ========== */
.fade-up,
.fade-down {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-down {
  transform: translateY(-30px);
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== توافق الشاشات ========== */
@media (max-width: 768px) {
  .header_inner {
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .video-container iframe {
    width: 100%;
    height: 250px;
  }

  .features-grid,
  .join-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== تأثير ظهور الأزرار عند تحميل الصفحة ===== */
@keyframes fadeInButtons {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تطبيق الانيميشن عند تحميل الصفحة */
.btn {
  animation: fadeInButtons 0.8s ease-in-out;
}

/* تأخير بسيط لكل زر لتسلسل لطيف */
.btn.login {
  animation-delay: 0.2s;
}

.btn.driver {
  animation-delay: 0.4s;
}

.btn.join {
  animation-delay: 0.6s;
}

.btn {
  animation-fill-mode: both;
}

/* ============================= */
/* ⚙️ تحسين عرض الصفحة على الموبايل */
/* ============================= */

/* الشاشات الصغيرة - الموبايل */
@media (max-width: 768px) {

  /* الهيدر */
  .header_inner {
    flex-direction: column;
    gap: 10px;
 W }

  .logo img {
    height: 55px;
  }

  nav.nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .header_actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* بطل الصفحة - hero section */
  .hero {
    padding: 60px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero img {
    width: 90%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .store-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .store-buttons a {
    width: 80%;
    margin: 0 auto;
  }

  /* كروت المميزات */
  .features-grid, .how-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-inline: 16px;
  }

  .feature-card img, .how-grid img {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  /* الفيديو */
  iframe, video {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  /* الفوتر */
  footer {
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
}

/* الشاشات المتوسطة - التابلت */
@media (min-width: 769px) and (max-width: 1024px) {

  .hero {
    flex-direction: column;
    padding: 80px 40px;
  }

  .hero img {
    width: 70%;
    max-width: 500px;
    margin-bottom: 25px;
  }

  .features-grid, .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .store-buttons a {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
}

/* ===== Buttons in Header ===== */
.header_actions a.btn {
  display: inline-block;
  text-decoration: none; /* يمنع الخط السفلي */
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.btn.join {
  background: #FFB300; /* اللون الذهبي */
  color: #000;
}

.btn.driver {
  background: #1F8A55; /* أخضر أغمق وأكثر وضوح */
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* تأثير عند المرور بالماوس */
.btn.driver:hover {
  background: #22A05E; /* درجة أنعم من الأخضر */
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.btn.login {
  background: #111; /* الأسود */
  color: #fff;
}

/* تأثير الهوفر */
.header_actions a.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none; /* تأكيد عدم وجود خط */
}

/* ===== Buttons in Cards (ابدأ الآن) ===== */
.card a.btn, 
section a.btn {
  display: inline-block;
  text-decoration: none; /* يشيل الخط السفلي */
  background: #28B06E; /* نفس لون أزرار الانضمام */
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* تأثير عند المرور */
.card a.btn:hover,
section a.btn:hover {
  background: #22A05E; /* لون أغمق بسيط */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
/* ===== Footer Styling ===== */
.main-footer {
  background: #111;
  color: #fff;
  padding: 50px 0;
  text-align: right;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-links h3,
.footer-social h3 {
  color: #FFB300; /* اللون الذهبي */
  font-weight: 700;
  margin-bottom: 15px;
}

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

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

.footer-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFB300; /* تأثير عند المرور */
}

/* ===== Social Icons with Brand Colors (Updated) ===== */
.social-icons a {
  font-size: 30px; /* ← تم التكبير */
  margin-left: 20px;
  transition: all 0.3s ease;
}

/* Facebook */
.social-icons a[aria-label="Facebook"] {
  color: #1877F2;
}

.social-icons a[aria-label="Facebook"]:hover {
  color: #0d5ecd;
  transform: translateY(-4px);
}

/* TikTok - لون فاتح مناسب للخلفية */
.social-icons a[aria-label="TikTok"] {
  color: #ff0050; /* لون فوشيا مميز وواضح على الخلفية */
  position: relative;
  text-shadow: 0 0 6px rgba(255, 0, 80, 0.4);
}

.social-icons a[aria-label="TikTok"]:hover {
  color: #00f2ea; /* لون سماوي عند المرور */
  transform: scale(1.2);
}

/* WhatsApp */
.social-icons a[aria-label="WhatsApp"] {
  color: #25D366;
}

.social-icons a[aria-label="WhatsApp"]:hover {
  color: #1DA851;
  transform: translateY(-4px);
}

/* ===== Footer Bottom ===== */
.footer-bottom {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  font-size: 14px;
  color: #ccc;
}
/* Responsive buttons on mobile */
@media (max-width: 768px) {
  .header_actions .btn {
    padding: 4px 10px;   /* تقليل الحجم الداخلي */
    font-size: 13px;     /* تصغير النص داخل الزر */
    border-radius: 6px;  /* تخفيف الحواف */
  }

  .header_actions {
    gap: 6px;            /* تقليل المسافة بين الأزرار */
  }
}

/* ===== إعدادات الهيدر العامة ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #28B06E 0%, #FFB300 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo img {
  height: 55px;
  transition: all 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

/* الروابط */
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #000;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.6);
}

/* الأزرار */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn.join {
  background: #FFB300;
  color: #000;
}
.btn.driver {
  background: #28B06E;
  color: #fff;
}
.btn.login {
  background: #111;
  color: #fff;
}
.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ===== زر القائمة للموبايل ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== القائمة في الموبايل ===== */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    background: rgba(0, 0, 0, 0.10);
    width: 100%;
    height: 100vh;
    padding: 30px 20px;
    transition: all 0.4s ease;
    z-index: 1000;
    opacity: 0;
  }

  .nav.show {
    right: 0;
    opacity: 1;
    animation: fadeSlideIn 0.45s ease forwards;
  }

  /* تأثير دخول القائمة */
  @keyframes fadeSlideIn {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* خلفية Blur جميلة */
  .nav.show::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav a {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.2s ease;
  }

  .nav a:hover {
    color: #FFB300;
    transform: scale(1.05);
  }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
  }

  .btn {
    min-width: 180px;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  }

  .desktop-only {
    display: none;
  }
}

/* منع تغطية المحتوى */
.page-content {
  margin-top: 90px;
}

/* إخفاء الأزرار في الموبايل والديسكتوب حسب العرض */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

/* في الموبايل */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
}

/* ============================
   🔵 User Menu (Header)
   ============================ */

.user-menu {
    position: relative;
    margin-right: 20px;
    cursor: pointer;
}

/* ===== أيقونة المستخدم ===== */
.user-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon img {
    width: 48px;   /* الحجم الجديد */
    height: 48px;  /* الحجم الجديد */
    object-fit: contain;
    transition: 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
    animation: userIdle 3s infinite ease-in-out;
    cursor: pointer;
}

/* Hover Glow */
.user-icon img:hover {
    transform: scale(1.18) translateY(-2px);
    filter:
        drop-shadow(0 10px 16px rgba(40,176,110,0.8))
        drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

/* Idle breathing animation */
@keyframes userIdle {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================
   🔵 Dropdown Menu
   ============================ */

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    width: 220px;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: 0.3s ease;
    z-index: 1000;
}

/* 🔹 إظهار القائمة */
.user-dropdown.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* 🔹 روابط القائمة */
.user-dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 17px;          /* ✅ تصغير الخط */
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

/* 🔹 تأثير مرور الماوس */
.user-dropdown a:hover {
    background: #f4f4f9;
}

/* ✨ Animation when hovering menu items */
.user-dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 17px;
    color: #333;
    text-decoration: none;
    transition: 0.25s ease; 
    opacity: 0.85;
    transform: translateX(0);
}

/* ✨ Hover animation (Slide + Glow + Scale) */
.user-dropdown a:hover {
    background: #f4f4f9;
    padding-right: 25px;              
    opacity: 1;
    transform: translateX(6px) scale(1.03);
    box-shadow: 0 4px 12px rgba(40,176,110,0.15);
    border-radius: 8px;
}

/* ✨ Animation for icons inside the dropdown */
.user-dropdown a i {
    font-size: 20px;
    color: #28B06E;
    transition: 0.3s ease;
}

/* تكبير واهتزاز بسيط للأيقونة */
.user-dropdown a:hover i {
    transform: scale(1.25) rotate(-5deg);
}
