/* الأساسيات */
body {
  font-family: "Tajawal", sans-serif;
  margin: 0;
  background: #f4f4f4;
}

/* شكل الصفحة */
.car-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  padding: 40px;
  max-width: 1300px;
  margin: auto;
  animation: fadeIn 1s ease;
}

/* تأثير دخول عام */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* معرض الصور */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  height: 350px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  cursor: pointer;

  opacity: 0;
  animation: fadeInImage 0.9s ease forwards;
}

/* صور تدخل واحدة تلو الأخرى */
@keyframes fadeInImage {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* تأثير عند المرور */
.gallery img:hover {
  transform: scale(1.03);
  transition: 0.3s;
}

/* أقسام المعلومات */
.info {
  background: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  animation: slideIn 0.8s ease;
}

/* حركة دخول للـ info */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.info h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.info p {
  color: #444;
  line-height: 1.8;
  font-size: 18px;
}

.info ul {
  padding: 0;
  list-style: none;
  margin: 15px 0 20px;
}

.info ul li {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f8f8f8;
  border-radius: 10px;
  font-size: 17px;
  color: #333;
}

/* زر تجربة القيادة */
.btn {
  display: inline-block;
  background: #1c71d8;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
  animation: fadeIn 1.4s ease;
}

.btn:hover {
  background: #1558a6;
  transform: translateY(-3px);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 850px) {
  .car-detail {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .gallery img {
    height: 280px;
  }
}
