/* =========================================
   VARIABLES & RESET
========================================= */

:root {
  /* Softer, more pleasing colors */
  --primary: #1F2937;          /* Soft Dark Blue/Gray */
  --primary-light: #374151;
  --secondary: #FFFFFF;
  --accent-gold: #D4AF37;      /* Classic Gold */
  --accent-gold-hover: #b5952f;
  --bg-light: #F9FAFB;         /* Ultra Soft Gray for backgrounds */
  --bg-dark: #111827;          /* Deep gray, easier on eyes than pure black */
  --text-dark: #4B5563;        /* Soft gray text */
  --text-primary: #111827;     /* Darker for titles */
  --text-muted: #6B7280;
  
  --whatsapp: #25D366;
  --whatsapp-hover: #128C7E;
  
  /* Layout & Design */
  --container-padding: 1.5rem;
  --border-radius: 20px;       /* Softer, rounder corners */
  --border-radius-btn: 30px;   /* Pill buttons for a modern feel */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08); /* Very soft shadow */
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* Better text rendering */
}

/* =========================================
   TYPOGRAPHY
========================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.text-gold {
  color: var(--accent-gold);
}

.text-white {
  color: var(--secondary);
}

.text-large {
  font-size: 1.15rem;
  font-weight: 600;
}

/* =========================================
   UTILITIES
========================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 6rem 0; /* More breathing room */
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-white {
  background-color: var(--secondary);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: #F9FAFB;
}

.bg-dark .section-title,
.bg-dark h4 {
  color: #F9FAFB;
}

.bg-gold {
  background-color: var(--accent-gold);
  color: var(--secondary) !important;
}

.bg-whatsapp {
  background-color: var(--whatsapp);
  color: var(--secondary) !important;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 50px;
  height: 4px;
  background-color: var(--accent-gold);
  margin: 1rem auto;
  border-radius: 4px;
}

.title-underline.left {
  margin-left: 0;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-btn);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--secondary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--secondary);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--secondary);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 2000;
  transition: var(--transition);
}

.top-bar {
  background-color: var(--accent-gold);
  color: var(--secondary);
  padding: 0.5rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.top-bar p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
}

.top-bar i {
  font-size: 0.9rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-name {
  color: var(--text-primary);
  margin-right: 0.3rem;
}

.logo-accent {
  color: var(--accent-gold);
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: 2.5rem;
}

.desktop-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
  border-radius: 2px;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text-primary);
}

.nav-btn {
  display: none;
  border-radius: var(--border-radius-btn);
}

.mobile-menu-btn {
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--bg-light);
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-menu-btn:active {
  background: #e5e7eb;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--secondary);
  padding: 2.5rem var(--container-padding);
  transition: var(--transition);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
}

.mobile-menu.active {
  left: 0;
  visibility: visible;
  opacity: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a.mobile-link {
  font-size: 1.35rem;
  font-weight: 600;
  display: block;
  color: var(--text-primary);
  padding: 0.5rem 0;
  transition: var(--transition);
}

.mobile-menu a.mobile-link:active {
  color: var(--accent-gold);
  padding-left: 10px;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1542362567-b07e54358753?q=80&w=2070&auto=format&fit=crop'); /* Swapped car for more modern premium look */
  background-size: cover;
  background-position: center;
  color: var(--secondary);
  margin-top: 80px; 
  height: calc(100vh - 80px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Softer, more elegant gradient */
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.6) 50%, rgba(17, 24, 39, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 750px;
  padding: 2rem 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   CARS SECTION
========================================= */

.cars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.car-card {
  background-color: var(--secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.car-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.car-card:hover .car-img {
  transform: scale(1.08); /* Smoother zoom */
}

.car-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: var(--accent-gold);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.car-details {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.car-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.car-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.car-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
}

.car-features i {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* =========================================
   WHY CHOOSE US SECTION
========================================= */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background-color: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background-color: var(--accent-gold);
  color: var(--secondary);
  transform: rotate(5deg) scale(1.1);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-desc {
  color: #D1D5DB; /* Lighter soft gray for dark bg */
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-text h4 {
  color: #9CA3AF;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-text a {
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-text a:hover {
  color: var(--accent-gold);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.map-placeholder i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background-color: #030712; /* Extremely dark blue-gray */
  color: #9CA3AF;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  align-items: center;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  justify-content: center;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-contact p {
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

/* =========================================
   MOBILE BOTTOM ACTION BAR
========================================= */

.mobile-actions-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem var(--container-padding);
  display: flex;
  gap: 1rem;
  z-index: 998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-actions-bar .btn {
  flex: 1;
  padding: 0.9rem 0;
  border-radius: 12px;
  font-size: 0.9rem;
  margin: 0;
}

/* Add padding to body for the sticky bar on mobile */
body {
  padding-bottom: 80px; 
}


/* =========================================
   MEDIA QUERIES
========================================= */

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  /* Remove mobile body padding & bottom bar on tablet/desktop */
  body {
    padding-bottom: 0;
  }
  .mobile-actions-bar {
    display: none;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-actions {
    flex-direction: row;
  }
  
  .cars-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-actions {
    flex-direction: row;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }
  
  .footer-brand .logo {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .desktop-nav {
    display: block;
  }
  
  .nav-btn {
    display: inline-flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .contact-actions {
    flex-direction: column;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .contact-actions {
    flex-direction: row;
  }
}

/* =========================================
   LANGUAGE SWITCHER & RTL SUPPORT
========================================= */

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.4rem 2rem 0.4rem 0.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-switcher select:hover {
  background: rgba(0,0,0,0.06);
}

.lang-icon {
  position: absolute;
  right: 10px;
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* RTL Support (Arabic) */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .logo-name {
  margin-right: 0;
  margin-left: 0.3rem;
}

[dir="rtl"] .desktop-nav ul {
  flex-direction: row-reverse;
}

[dir="rtl"] .title-underline.left {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .btn i,
[dir="rtl"] .car-features i,
[dir="rtl"] .footer-contact i {
  margin-right: 0;
  margin-left: 0.6rem;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .lang-switcher select {
  padding: 0.4rem 0.8rem 0.4rem 2rem;
}

[dir="rtl"] .lang-icon {
  right: auto;
  left: 10px;
}

[dir="rtl"] .footer-content {
  text-align: right;
}

[dir="rtl"] .mobile-menu a.mobile-link:active {
  padding-left: 0;
  padding-right: 10px;
}

/* Reviews / Testimonials Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.review-stars {
    color: #ffc107;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.review-content {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1.05rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-status {
    font-size: 0.8rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

/* RTL Adjustments for Arabic */
[dir="rtl"] .reviews-grid {
    direction: rtl;
}

[dir="rtl"] .review-author {
    flex-direction: row;
}

[dir="rtl"] .author-status i {
    margin-left: 0.4rem;
    margin-right: 0;
}

/* Card Actions Adjustment */
.card-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.card-actions .btn {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

/* Modal Styling - Premium Redesign */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    max-width: 950px;
    width: 100%;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-height: 90vh;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 24px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.close-modal:hover {
    background: var(--accent-gold);
    color: var(--secondary);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.modal-img-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.modal-img-container img {
    max-width: 110%; /* Slight overflow for impact */
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: transform 0.8s ease;
}

.modal-img-container:hover img {
    transform: scale(1.05) translateX(10px);
}

.modal-info {
    padding: 3.5rem 3rem;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-weight: 800;
}

.modal-badge-container {
    margin-bottom: 1.5rem;
}

.modal-badge-container .car-badge {
    position: static;
    display: inline-block;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.spec-item:hover {
    background: var(--white);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.spec-item i {
    color: var(--accent-gold);
    font-size: 1.25rem;
    width: 25px;
    text-align: center;
}

.spec-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-features-list h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-features-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.modal-features-list li {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-features-list li i {
    color: #28a745;
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
}

.modal-footer .btn {
    border-radius: 12px;
}

/* Modal Mobile Responsive */
@media (max-width: 991px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-img-container {
        padding: 2.5rem 2rem;
    }
    
    .modal-info {
        padding: 2rem 1.5rem;
        max-height: none;
    }
    
    .modal-title {
        font-size: 2rem;
    }

    .modal-specs {
        gap: 0.8rem;
    }

    .spec-item {
        padding: 0.8rem;
    }
    
    .modal-features-list ul {
        grid-template-columns: 1fr;
    }
}

/* RTL Adjustments for Modal */
[dir="rtl"] .close-modal {
    right: auto;
    left: 24px;
}

[dir="rtl"] .spec-item {
    flex-direction: row;
}

[dir="rtl"] .modal-features-list li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .modal-img-container:hover img {
    transform: scale(1.05) translateX(-10px);
}


/* =========================================
   CAR DETAIL PAGES (SEO PAGES)
========================================= */

.car-page {
    background-color: var(--bg-light);
}

.car-page main {
    padding-top: 140px;
    padding-bottom: 80px;
}

.car-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.car-detail-img-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-detail-img-wrapper img {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    transition: var(--transition);
}

.car-detail-img-wrapper:hover img {
    transform: scale(1.05);
}

.car-detail-info {
    padding: 1rem;
}

.car-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.car-detail-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.car-detail-specs {
    margin-bottom: 3rem;
}

/* Reusing spec-item from modal */

@media (min-width: 992px) {
    .car-detail-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .car-page main {
        padding-top: 180px;
    }
}

/* =========================================
   END OF FILE
========================================= */
