@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: #86083d;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-title {
  color: white;
  text-align: center;
  margin: 20px 0 10px 0;
  font-size: 2rem;
  font-weight: 700;
}

/* ===== HERO CARDS SECTION ===== */
.hero-cards {
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin-bottom: 30px;
}

.hero-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-card {
  background-color: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  overflow: hidden;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(134, 8, 61, 0.15);
  border-color: #86083d;
}

.hero-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card h3 {
  color: #86083d;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-card p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== SERVICES CARDS SECTION ===== */
.services-cards {
  padding: 60px 20px;
  background-color: white;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #f8f9fa;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(134, 8, 61, 0.2);
  border-color: #86083d;
  background-color: white;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h3 {
  color: #86083d;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== MAIN CONTENT SECTIONS ===== */
main {
  min-height: 60vh;
}

.section-title {
  text-align: center;
  padding: 40px 20px;
  background-color: #f5f5f5;
}

.section-title h1 {
  color: #86083d;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-section {
  background-color: white;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.about-section img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-section h1 {
  color: #86083d;
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.about-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* ===== SERVICES SECTION ===== */
.services-page {
  padding: 40px 20px;
  background-color: white;
}

.services-section {
  max-width: 1000px;
  margin: auto;
}

.services-section h1 {
  color: #86083d;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 700;
}

.service-box {
  background-color: #f8f9fa;
  border-right: 5px solid #86083d;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-box:hover {
  background-color: #fff5f8;
  transform: translateX(-5px);
  box-shadow: 0 8px 25px rgba(134, 8, 61, 0.15);
}

.service-box h3 {
  color: #86083d;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* ===== CAR GALLERY ===== */
.car-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.car-card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.car-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.car-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.car-card:hover img {
  transform: scale(1.05);
}

.car-card h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
}

.price {
  font-size: 1.5rem;
  color: #86083d;
  margin: 15px 0;
  font-weight: 700;
}

.details-btn {
  background: linear-gradient(135deg, #86083d, #a50f4a);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(134, 8, 61, 0.3);
}

.details-btn:hover {
  background: linear-gradient(135deg, #a50f4a, #86083d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(134, 8, 61, 0.4);
}

.car-details {
  margin-top: 20px;
  display: none;
  text-align: right;
  font-size: 1rem;
  line-height: 1.8;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border-right: 3px solid #86083d;
}

.car-details.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PORTFOLIO/GALLERY ===== */
.work-gallery {
  padding: 40px 20px;
  background-color: #f7f7f7;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background-color: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.gallery-item p {
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 40px;
  max-width: 1000px;
  margin: auto;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-section h2 {
  color: #86083d;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-weight: 700;
}

.blog-post {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.blog-post p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

.post-img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== CONTACT SECTION ===== */
.contact-main {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.contact-section h1 {
  font-size: 2.5rem;
  color: #86083d;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-section p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
}

/* ===== COMMENTS SECTION ===== */
.comments {
  margin-top: 30px;
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-right: 4px solid #86083d;
}

.comments h4 {
  margin-bottom: 20px;
  color: #86083d;
  font-size: 1.3rem;
}

.comments ul {
  padding-right: 25px;
  list-style-type: disc;
  margin-bottom: 20px;
}

.comments input,
.comments textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s ease;
}

.comments input:focus,
.comments textarea:focus {
  outline: none;
  border-color: #86083d;
}

.comments button {
  background: linear-gradient(135deg, #86083d, #a50f4a);
  color: white;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.comments button:hover {
  background: linear-gradient(135deg, #a50f4a, #86083d);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  background-color: #86083d;
  color: white;
  text-align: center;
  padding: 40px 20px 0;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.footer-content section {
  padding: 20px;
}

.footer-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-content p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.social-links .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-links .icon:hover {
  transform: scale(1.2) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer-image {
  margin-top: 30px;
}

.footer-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-cards {
    padding: 30px 15px;
  }
  
  .hero-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-card {
    padding: 20px;
  }
  
  .hero-card img {
    height: 200px;
  }
  
  nav ul {
    gap: 10px;
  }
  
  nav ul li a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .section-title h1 {
    font-size: 2rem;
  }
  
  .about-section,
  .services-section,
  .blog-section {
    padding: 25px;
    margin: 20px;
  }
  
  .about-section h1,
  .services-section h1,
  .blog-section h2 {
    font-size: 1.8rem;
  }
  
  .car-container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .service-card {
    padding: 25px;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .social-links .icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-cards {
    padding: 20px 10px;
  }
  
  .hero-card {
    padding: 15px;
  }
  
  .hero-card img {
    height: 180px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 5px;
  }
  
  .about-section,
  .services-section,
  .blog-section {
    padding: 20px;
    margin: 10px;
  }
  
  .car-card {
    padding: 20px;
  }
  
  .car-card img {
    height: 180px;
  }
}

.car-card.single {
  width: 90%;
  margin: 30px auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 12px;
  text-align: center;
}

.car-card.single img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.details-button, .back-button {
  display: inline-block;
  margin-top: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

.car-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.car-gallery img {
  width: 300px;
  border-radius: 10px;
}

.car-full-details {
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
}

.car-full-details ul {
  list-style: none;
  padding: 0;
}

.car-full-details li {
  margin-bottom: 10px;
  font-size: 18px;
}
