* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url("images/AA.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;  
  display: flex;
  flex-direction: column;
}

/* ✅ خلفية خاصة للهاتف فقط */
@media (max-width: 768px) {
  body {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url("images/doud.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }
}



header {
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-direction: row-reverse;
}

.logo {
  font-size: 1.6em;
  font-weight: bold;
  color: gold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1em;
}

nav ul li a:hover {
  color: gold;
}

.menu-toggle {
  display: none;
}

.hero-content {
  flex-grow: 1;
  padding: 130px; /* ⬅️ تنزل المحتوى للأسفل */
  display: flex;
  flex-direction: column;
  align-items: flex-end;     /* ⬅️ يمين */
  text-align: right;         /* ⬅️ نص يمين */
}

.hero-logo {
  width: 150px;
  max-width: 35%;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 4.2em;
  color: gold;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 2.em;
  margin-bottom: 20px;
}

.btn {
  background: gold;
  color: black;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1em;
}


.car-logos-marquee {
  width: 100%;
  overflow: hidden;
  padding: 1px ;
  background: transparent;
  position: relative;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 50px;
  width: fit-content;
  animation: scroll-logos 30s linear infinite;
}

.car-logos-marquee img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  
}

.car-logos-marquee img:hover {
  transform: scale(1.1);
}

@keyframes scroll-logos {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

footer {
  background: transparent;
  text-align: center;
  padding: 1px;
  font-size: 1em;
  color: white;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 60px;
    right: -100%;
    width: 200px;
    transition: right 0.3s;
    z-index: 999;
    padding: 10px;
  }

  nav ul.active {
    right: 10px;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
  }

  .hero-content {
    align-items: center;         /* وسط */
    text-align: center;          /* وسط */
    padding: 220px 15px 30px;     /* أقل */
  }

  .hero-logo {
    width: 100px;
    max-width: 40%;
  }

  .hero-content h1 {
    font-size: 2.5em;
  }

  .hero-content p {
    font-size: 1.5em;
  }

  .btn {
    font-size: 2em;
    padding: 10px 20px;
  }
}

 @media (max-width: 768px) {
  .car-logos-marquee {
    padding: 10px 0;
    background-color: transparent;
  }

  .logos-track {
    gap: 30px;
    animation-duration: 40s; /* أبطأ ليتناسب مع صغر الشاشة */
  }

  .car-logos-marquee img {
    height: 45px;
  }
}

  footer {
    font-size: 0.85em;
    padding: 60px;
    color: #ffffff;
  }



.services-section h1 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: gold;
  direction: ltr;
  text-align: center;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-box {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
}

.service-image {
  height: 300px;
  background-size: cover;         /* ✅ تجعل الصورة تملأ المساحة تمامًا */
  background-position: center;    /* ✅ تبقي مركز الصورة ظاهر */
  background-repeat: no-repeat;   /* تمنع التكرار */
  position: relative;
}


.service-title {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 215, 0, 0.9);
  color: black;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.service-description {
  display: none;
  padding: 15px;
  font-size: 0.95em;
}

.service-box:hover .service-description {
  display: block;
}

/* ✅ Responsive للهاتف */
@media (max-width: 768px) {
 
  .services-container {
    grid-template-columns: 1fr;
  }

  .service-title {
    font-size: 1.5em;
  }

  .service-description {
    font-size: 1em;
  }
}
.booking-section {
  padding: 60px 30px;
  text-align: center;
}

.booking-section h1 {
  font-size: 1.5em;
  color: gold;
  margin-bottom: 30px;
}

form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input,
form select,
form textarea {
  padding: 12px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  direction: rtl;
}

form button {
  padding: 12px;
  background-color: gold;
  color: black;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background-color: #e6b800;
}

/* ✅ هاتف */
@media (max-width: 768px) {
  .booking-section {
    padding: 40px 20px;
  }

  form {
    width: 100%;
  }

  form input, form select, form textarea {
    font-size: 0.95em;
  }
}


/* ======= صفحة من نحن ======= */

/* من نحن - تصميم جديد */
.about-section {
  font-size: 1.5em;
  text-align: center;
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

.about-content {
  display: flex;
  flex-direction: row-reverse; /* ✅ النص يمين والصورة يسار */
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  text-align: right;
  font-size: 1.em;
  line-height: 1.8;
  color: white;
}

.about-image {
  flex: 1;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.about-section video {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* الهاتف */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    font-size: 1em;
    text-align: center;
  }

  .about-image {
    max-width: 90%;
  }

  .about-section {
    padding: 30px 15px;
  }
}
/* 🌟 خلفية خاصة بصفحة الاتصال */


/* قسم الاتصال */
.contact-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  font-size: 1.1em;
  line-height: 1.8;
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 1em;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.9);
  color: black;
}

.contact-form button {
  background-color: gold;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

/* روابط التواصل */
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0;
}

.social-links img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* نسبة العرض إلى الارتفاع 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 90%; /* عرض نسبي أو يمكنك وضع 600px مثلاً */
  margin: 40px auto; /* يحاذيها في الوسط */
  border-radius: 12px; /* (اختياري) زوايا مستديرة */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* (اختياري) ظل ناعم */
}


/* ⚙️ الهاتف */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    text-align: center;
  }

  .social-links {
    flex-wrap: wrap;
  }
}
/* ✅ صفحة قطع السيارات - قطع الغيار */
.hero-content.centered {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px;
}

.hero-content.centered h1 {
  font-size: 4em;
  color: gold;
  margin-bottom: 20px;
}

.hero-content.centered p {
  font-size: 1.5em;
  color: white;
}

/* ✅ نسخة الهاتف */
@media (max-width: 768px) {
  .hero-content.centered h1 {
    font-size: 2.5em;
  }

  .hero-content.centered p {
    font-size: 1.2em;
  }
}
