/* إعادة تعيين بعض الأنماط الافتراضية */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden; /* منع التمرير الأفقي */
}

/* الروابط */
a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------ */
/*      تنسيق الـ Navbar    */
/* ------------------------ */
.navbar {
  background-color: #0d47a1; /* أزرق غامق */
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar .nav-link {
  color: #fff;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffcc00; /* لون مميز */
}

.navbar-brand img {
  height: 40px;
}

/* ------------------------ */
/*      قسم الـ Hero        */
/* ------------------------ */
.hero {
  position: relative;
  background-color: #0d47a1; /* لون خلفية بديل (أزرق غامق) */
  min-height: 90vh; /* ارتفاع يتناسب مع الشاشة */
  color: #fff;
  display: flex;
  align-items: center;
  padding: 80px 0 50px; /* إضافة padding للأعلى بسبب الـ fixed navbar */
  overflow: hidden; /* منع أي عناصر من تجاوز الحدود */
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 71, 161, 0.6); /* طبقة تظليل أزرق */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-content {
  text-align: center;
  margin-bottom: 30px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-bottom: 30px;
}

.hero-buttons .btn {
  margin: 0 8px 10px;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-buttons .btn-primary {
  background-color: #ff5722; /* برتقالي مشرق */
  border: none;
  color: #fff;
}

.hero-buttons .btn-primary:hover {
  background-color: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-outline {
  background-color: transparent;
  border: 2px solid #ff5722;
  color: #ff5722;
}

.hero-buttons .btn-outline:hover {
  background-color: #ff5722;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* تحسين حجم وشكل صورة قسم الـ Hero */
.hero-image {
  max-width: 600px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ------------------------ */
/* Media Query لتعديل قسم الـ Hero على الشاشات الصغيرة */
/* ------------------------ */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh; /* تقليل الارتفاع على الجوال */
    padding: 40px 0 30px; /* تقليل الـ padding */
  }
  
  /* إعادة ترتيب المحتوى ليصبح عموديًا */
  .hero .container .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 25px;
    margin: 0 5px 8px;
  }
  
  /* تعديل صورة الـ Hero لتكون ملائمة للشاشات الصغيرة */
  .hero-image {
    max-width: 100%;
    margin-top: 20px;
  }
  
  .hero-image img {
    width: 100%;
    max-width: none;
    height: auto;
  }
}


/* ------------------------ */
/*      قسم المزايا        */
/* ------------------------ */
.features {
  padding: 60px 0;
  background-color: #f5f5f5;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #0d47a1;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: #ff5722;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.feature-box {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: #ff5722;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0d47a1;
}

.feature-box p {
  font-size: 1rem;
  color: #666;
  flex-grow: 1;
}

/* ------------------------ */
/*   قسم كيف يعمل التطبيق  */
/* ------------------------ */
.how-it-works {
  padding: 60px 0;
  background-color: #fff;
}

.step-box {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.05) 0%, rgba(255, 87, 34, 0.05) 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-box:hover:before {
  opacity: 1;
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: #ff5722;
  margin-bottom: 10px;
}

.step-icon {
  font-size: 3rem;
  color: #0d47a1;
  margin-bottom: 20px;
}

.step-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0d47a1;
}

.step-box p {
  font-size: 1rem;
  color: #666;
  flex-grow: 1;
}

/* ------------------------ */
/*    قسم آراء العملاء     */
/* ------------------------ */
.testimonials {
  padding: 60px 0;
  background-color: #e3f2fd;
  position: relative;
}

.testimonial-box {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin: 15px 0;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  margin-bottom: 15px;
}

.testimonial-rating i {
  color: #ffb300;
  margin: 0 2px;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1rem;
  color: #666;
  margin: 15px 0;
  flex-grow: 1;
  font-style: italic;
  position: relative;
  padding: 0 15px;
}

.testimonial-text:before,
.testimonial-text:after {
  content: '"';
  font-size: 1.5rem;
  color: #0d47a1;
  position: absolute;
}

.testimonial-text:before {
  top: -5px;
  left: 0;
}

.testimonial-text:after {
  bottom: -15px;
  right: 0;
}

.testimonial-user {
  margin-top: 15px;
}

.testimonial-user h4 {
  font-size: 1.2rem;
  color: #0d47a1;
  margin-bottom: 5px;
}

.testimonial-user p {
  font-size: 0.9rem;
  color: #999;
}

/* ------------------------ */
/*     قسم تحميل التطبيق    */
/* ------------------------ */
.download-section {
  position: relative;
  background-color: #0d47a1; /* للحالات التي لا تعمل فيها الصورة */
  color: #fff;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
}

.download-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 71, 161, 0.8);
  z-index: 1;
}

.download-section .container {
  position: relative;
  z-index: 2;
}

.download-section .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.download-section .section-header h2:after {
  background-color: #fff;
}

.download-section .section-header p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.download-app-mockup {
  margin-bottom: 30px;
}

.download-app-mockup img {
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.store-buttons {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.store-button {
  display: flex;
  align-items: center;
  background: #fff;
  color: #0d47a1;
  padding: 12px 25px;
  border-radius: 30px;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.store-button img {
  height: 30px;
  margin-right: 10px;
}

.store-button:hover {
  background: #ffcc00;
  color: #0d47a1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.become-driver {
  margin-top: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.become-driver h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.become-driver p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.become-driver .btn-driver {
  background-color: #ff5722;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  color: #fff;
}

.become-driver .btn-driver:hover {
  background-color: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ------------------------ */
/*      قسم التواصل        */
/* ------------------------ */
.contact {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  height: 100%;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #0d47a1;
  display: block;
}

.contact-form .form-control {
  border-radius: 5px;
  padding: 12px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  width: 100%;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
  outline: none;
}

.contact-form button {
  border-radius: 30px;
  padding: 12px 30px;
  background-color: #0d47a1;
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

.contact-form button:hover {
  background-color: #1565c0;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #0d47a1;
  position: relative;
  padding-bottom: 10px;
}

.contact-info h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #ff5722;
}

.contact-info .info-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: #666;
}

.contact-info .info-item i {
  font-size: 1.2rem;
  color: #ff5722;
  margin-left: 15px;
  margin-top: 3px;
}

.social-media h4 {
  font-size: 1.2rem;
  margin: 25px 0 15px;
  color: #0d47a1;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
}

.social-links a {
  color: #0d47a1;
  margin: 0 10px 10px 0;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
}

.social-links a:hover {
  color: #fff;
  background-color: #ff5722;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* ------------------------ */
/*         الفوتر          */
/* ------------------------ */
.footer {
  background-color: #0d47a1;
  color: #fff;
  padding: 60px 0 30px;
}

.footer .footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ffcc00;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4:after,
.footer-newsletter h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #ff5722;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: block;
  padding: 2px 0;
}

.footer-links ul li a:hover {
  color: #ffcc00;
  padding-right: 5px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-newsletter form .input-group {
  display: flex;
  margin-bottom: 15px;
}

.footer-newsletter form .input-group input {
  border-radius: 30px 0 0 30px;
  padding: 12px 20px;
  border: none;
  flex-grow: 1;
}

.footer-newsletter form .input-group input:focus {
  outline: none;
}

.footer-newsletter form .input-group button {
  border-radius: 0 30px 30px 0;
  background-color: #ff5722;
  border: none;
  color: #fff;
  padding: 0 20px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.footer-newsletter form .input-group button:hover {
  background-color: #e64a19;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom .copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
  margin-left: 15px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffcc00;
}

/* ------------------------ */
/*   زر الرجوع للأعلى       */
/* ------------------------ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ff5722;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #e64a19;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ------------------------ */
/*    الأنماط المتجاوبة    */
/* ------------------------ */
@media (max-width: 1199px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 991px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content h2 {
    font-size: 1.6rem;
  }
  
  .feature-box,
  .step-box,
  .testimonial-box,
  .contact-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 8px 0;
  }
  
  .navbar-brand img {
    height: 35px;
  }
  
  .hero {
    min-height: auto;
    padding: 80px 0 30px;
  }
  
  .hero-content {
    margin-bottom: 20px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
  
  .hero-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0 5px 10px;
    display: inline-block;
  }
  
  .hero-image {
    margin-top: 20px;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .features,
  .how-it-works,
  .testimonials,
  .download-section,
  .contact {
    padding: 40px 0;
  }
  
  .feature-box,
  .step-box,
  .testimonial-box {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .feature-icon,
  .step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .feature-box h3,
  .step-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .store-button {
    width: 100%;
    max-width: 250px;
    justify-content: center;
    margin: 5px 0;
  }
  
  .become-driver h3 {
    font-size: 1.6rem;
  }
  
  .become-driver p {
    font-size: 1rem;
  }
  
  .contact-info {
    margin-top: 30px;
  }
  
  .contact-info h3 {
    font-size: 1.6rem;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-links,
  .footer-newsletter {
    margin-top: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom .copyright {
    margin-bottom: 15px;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .footer-bottom-links a {
    margin: 0 8px;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-buttons .btn {
    display: block;
    margin: 0 auto 10px;
    max-width: 200px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}