/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
:root {
  --main-color: red;
  --main-color-alt: #1787e0;
  --main-transition: 0.3s;
  --main-padding-top: 100px;
  --main-padding-bottom: 100px;
  --section-background: #ececec;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Cairo", sans-serif;
}
a {
  text-decoration: none;
  color: red;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
.main-title {
  text-transform: uppercase;
  margin: 0 auto 80px;
  border: 2px solid black;
  padding: 10px 20px;
  font-size: 30px;
  width: fit-content;
  position: relative;
  z-index: 1;
  transition: var(--main-transition);
}
.main-title::before,
.main-title::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--main-color);
  position: absolute;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.main-title::before {
  left: -30px;
}
.main-title::after {
  right: -30px;
}
.main-title:hover::before {
  z-index: -1;
  animation: left-move 0.5s linear forwards;
}
.main-title:hover::after {
  z-index: -1;
  animation: right-move 0.5s linear forwards;
}
.main-title:hover {
  color: white;
  border: 2px solid white;
  transition-delay: 0.5s;
}
.spikes {
  position: relative;
}
.spikes::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  background-image: linear-gradient(135deg, white 25%, transparent 25%),
    linear-gradient(225deg, white 25%, transparent 25%);
  background-size: 30px 30px;
}
.dots {
  background-image: url("../imgs/dots.png");
  height: 186px;
  width: 204px;
  background-repeat: no-repeat;
  position: absolute;
}
.dots-up {
  top: 200px;
  right: 0;
}
.dots-down {
  bottom: 200px;
  left: 0;
}
/* End Global Rules */



/* Start Header */
.header {
  background-color: white;
  position: relative;
  -webkit-box-shadow: 0 0 10px #ddd;
  -moz-box-shadow: 0 0 10px #ddd;
  box-shadow: 0 0 10px #ddd;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.header .logo {
  color: var(--main-color);
  font-size: 26px;
  font-weight: bold;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 767px) {
  .header .logo {
    width: 100%;
    height: 50px;
  }
}
.header .main-nav {
  display: flex;
}
@media (max-width: 767px) {
  .header .main-nav {
    margin: auto;
  }
}
.header .main-nav > li:hover .mega-menu {
  opacity: 1;
  z-index: 100;
  top: calc(100% + 1px);
}
.header .main-nav > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  position: relative;
  color: black;
  padding: 0 30px;
  overflow: hidden;
  font-size: 18px;
  transition: var(--main-transition);
}
@media (max-width: 767px) {
  .header .main-nav > li > a {
    padding: 10px;
    font-size: 14px;
    height: 40px;
  }
}
.header .main-nav > li > a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: var(--main-color);
  top: 0;
  left: -100%;
  transition: var(--main-transition);
}
.header .main-nav > li > a:hover {
  color: var(--main-color);
  background-color: #fafafa;
}
.header .main-nav > li > a:hover::before {
  left: 0;
}
.header .mega-menu {
  position: absolute;
  width: 100%;
  left: 0;
  padding: 30px;
  background-color: white;
  border-bottom: 3px solid var(--main-color);
  z-index: -1;
  display: flex;
  gap: 40px;
  top: calc(100% + 50px);
  opacity: 0;
  transition: top var(--main-transition), opacity var(--main-transition);
}
@media (max-width: 767px) {
  .header .mega-menu {
    flex-direction: column;
    gap: 0;
    padding: 5px;
  }
}
.header .mega-menu .image img {
  max-width: 100%;
}
@media (max-width: 991px) {
  .header .mega-menu .image {
    display: none;
  }
}
.header .mega-menu .links {
  min-width: 250px;
  flex: 1;
}
.header .mega-menu .links li {
  position: relative;
}
.header .mega-menu .links li:not(:last-child) {
  border-bottom: 1px solid #e9e6e6;
}
@media (max-width: 767px) {
  .header .mega-menu .links:first-of-type li:last-child {
    border-bottom: 1px solid #e9e6e6;
  }
}
.header .mega-menu .links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #fafafa;
  z-index: -1;
  transition: var(--main-transition);
}
.header .mega-menu .links li:hover::before {
  width: 100%;
}
.header .mega-menu .links li a {
  color: var(--main-color);
  padding: 15px;
  display: block;
  font-size: 18px;
  font-weight: bold;
}
.header .mega-menu .links li a i {
  margin-right: 10px;
}

/* End Header */


/* Start videos */
/* Video Section Styles */
.video-section {
  margin: 30px 0 40px 0;
  max-width: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: #000;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.hero-video:hover {
  transform: scale(1.01);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(52, 152, 219, 0.1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.video-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
  background: linear-gradient(135deg, #c0392b, #a93226);
}

.play-button:active {
  transform: scale(0.95);
}

.video-overlay p {
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.video-caption {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-style: italic;
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Controls Customization */
.hero-video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.hero-video::-webkit-media-controls-play-button {
  background-color: #e74c3c;
  border-radius: 50%;
}

.hero-video::-webkit-media-controls-current-time-display,
.hero-video::-webkit-media-controls-time-remaining-display {
  color: white;
  font-weight: bold;
}

/* Loading State */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.1rem;
}

/* Responsive Video */
@media (max-width: 768px) {
  .video-section {
    margin: 20px 0 30px 0;
  }

  .video-container {
    border-radius: 8px;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .video-overlay p {
    font-size: 1rem;
  }

  .video-caption {
    font-size: 0.9rem;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .video-section {
    margin: 15px 0 25px 0;
  }

  .play-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .video-overlay p {
    font-size: 0.9rem;
  }
}

/* Video Autoplay Considerations */
.hero-video[autoplay] {
  border: 3px solid #e74c3c;
}

/* Keyboard Navigation */
.hero-video:focus {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

/* End videos */


/* Cars page specific styles */

}

.special-note br {
  display: block;
  content: "";
  margin: 5px 0;
}

/* Better feature list organization */
.features-list ul {
  columns: 2;
  column-gap: 20px;
}

@media (max-width: 768px) {
  .features-list ul {
    columns: 1;
  }
}

/* Highlight low mileage */
.car-detail .low-mileage {
  color: #2ecc71;
  font-weight: bold;
}




.cars-landing {
  padding-top: 120px;
  padding-bottom: 50px;
  background-color: #f9f9f9;
  text-align: center;
}

.cars-landing h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.cars-landing p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #666;
  line-height: 1.6;
}

.cars-filter {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto 40px;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  text-align: left;
}

.filter-group select,
.filter-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}

.filter-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
  align-self: end;
}

.filter-button:hover {
  background-color: #c0392b;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 50px;
}

.car-card {
  padding-top: 25px;

  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.car-image {
  height: 220px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.car-card:hover .car-image img {
  transform: scale(1.05);
}

.car-info {
  padding: 20px;
}

.car-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.car-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 15px;
}

.car-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.car-detail {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.car-detail i {
  margin-right: 8px;
  color: #e74c3c;
  width: 16px;
  text-align: center;
}

.car-button {
  display: block;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}

.car-button:hover {
  background-color: #e74c3c;
}
/* cars page */

/* Car Modal Styles */
.car-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  border-radius: 8px;
  position: relative;
  animation: modalFadeIn 0.3s;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Changed from auto to hidden for mobile sync */
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 35px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.close-modal:hover {
  background-color: #f0f0f0;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
  overflow: hidden; /* Prevent individual scrolling */
}

.modal-images {
  background: #f8f8f8;
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto; /* Enable scrolling only if needed */
}

.main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.main-image img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.image-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.image-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.image-thumbnails img:hover,
.image-thumbnails img.active {
  border-color: #e74c3c;
}

.modal-info {
  padding: 40px;
  overflow-y: auto; /* Enable scrolling only if needed */
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-info h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

/* Special Info Styles */
.special-info {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.special-note {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.trade-in {
  font-size: 1rem;
  margin-bottom: 15px;
  font-style: italic;
}

.location-info {
  font-size: 0.9rem;
  line-height: 1.5;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 8px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.spec-item i {
  color: #e74c3c;
  width: 20px;
  text-align: center;
}

.car-description,
.features-list {
  margin: 25px 0;
}

.car-description h3,
.features-list h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.3rem;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 5px;
}

.car-description p {
  line-height: 1.6;
  color: #666;
}

.features-list ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}

.features-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #555;
  break-inside: avoid;
}

.features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: bold;
}

/* Price Highlight */
.car-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e74c3c;
  margin: 15px 0;
  text-align: center;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #e74c3c;
}

/* Active Thumbnail */
.image-thumbnails img.active {
  border: 3px solid #e74c3c;
  transform: scale(1.05);
}

/* Modal Actions - Improved Styles */
.modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.contact-button,
.whatsapp-button,
.email-button {
  padding: 20px 15px;
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  width: 100%;
}

.button-content i {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.button-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.button-label {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.phone-number,
.email-address {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.5px;
}

/* Contact Button */
.contact-button {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: 2px solid #27ae60;
}

.contact-button:hover {
  background: linear-gradient(135deg, #27ae60, #219653);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

/* WhatsApp Button */
.whatsapp-button {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: 2px solid #128C7E;
}

.whatsapp-button:hover {
  background: linear-gradient(135deg, #128C7E, #0C6B5E);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.3);
}

/* Email Button */
.email-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: 2px solid #2980b9;
}

.email-button:hover {
  background: linear-gradient(135deg, #2980b9, #1f6396);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 128, 185, 0.3);
}

/* Add ripple effect */
.contact-button::before,
.whatsapp-button::before,
.email-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-button:hover::before,
.whatsapp-button:hover::before,
.email-button:hover::before {
  width: 300px;
  height: 300px;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet and smaller desktop */
/* Mobile: Single scroll for entire modal */
@media (max-width: 992px) {
  .modal-content {
    max-height: 95vh;
    overflow-y: auto; /* Only main container scrolls */
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: visible; /* Remove overflow from body */
    display: contents; /* Use natural flow instead of grid */
  }

  .modal-images {
    overflow: visible; /* Remove individual scrolling */
    height: auto;
    min-height: 300px;
    order: 1;
    flex: 0 0 auto; /* Don't grow or shrink */
  }

  .modal-info {
    overflow: visible; /* Remove individual scrolling */
    height: auto;
    order: 2;
    flex: 1; /* Take remaining space */
    max-height: none;
  }

  /* Ensure all content is visible and scrolls together */
  .modal-images,
  .modal-info {
    max-height: none;
    overflow: visible;
  }

  .main-image img {
    max-height: 300px;
  }
}

  .features-list ul {
    columns: 1; /* Single column on tablet */
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 98vh;
  }

  .modal-body {
    display: flex;
    flex-direction: column;
  }

  .modal-images {
    flex: 0 0 auto; /* Don't grow, don't shrink */
    order: 1;
    padding: 20px;
  }

  .modal-info {
    flex: 1; /* Take remaining space */
    order: 2;
    padding: 25px;
  }

  /* Ensure proper spacing */
  .main-image img {
    max-height: 250px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-button,
  .whatsapp-button,
  .email-button {
    padding: 18px 12px;
    min-height: 70px;
  }

  .button-content i {
    font-size: 1.3rem;
  }

  .button-label {
    font-size: 0.95rem;
  }

  .phone-number,
  .email-address {
    font-size: 0.85rem;
  }

  .modal-info h2 {
    font-size: 1.5rem;
  }

  .special-info {
    padding: 15px;
    margin: 15px 0;
  }

  .special-note {
    font-size: 1rem;
  }

  .car-price {
    font-size: 1.5rem;
    padding: 12px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .modal-images {
    padding: 15px;
  }

  .modal-info {
    padding: 20px;
  }

  .image-thumbnails img {
    width: 60px;
    height: 45px;
  }

  .contact-button,
  .whatsapp-button,
  .email-button {
    padding: 16px 10px;
    min-height: 65px;
  }

  .button-content {
    gap: 6px;
  }

  .button-content i {
    font-size: 1.2rem;
  }

  .button-label {
    font-size: 0.9rem;
  }

  .phone-number,
  .email-address {
    font-size: 0.8rem;
  }
}

/* Cars page responsive styles */
@media (max-width: 768px) {
  .cars-landing {
    padding-top: 100px;
  }

  .cars-landing h1 {
    font-size: 2rem;
  }

  .cars-landing p {
    font-size: 1rem;
    padding: 0 15px;
  }

  .cars-filter {
    padding: 20px;
    margin: 0 15px 40px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .cars-grid {
    grid-template-columns: 1fr;
    padding: 0 15px 30px;
  }

  .car-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .car-details {
    grid-template-columns: 1fr;
  }
}

/* Active state for better UX */
.contact-button:active,
.whatsapp-button:active,
.email-button:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

/* Focus states for accessibility */
.contact-button:focus,
.whatsapp-button:focus,
.email-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Smooth scrolling for the entire modal */
.modal-content {
  scroll-behavior: smooth;
}

/* Ensure images don't cause horizontal overflow */
.modal-images img {
  max-width: 100%;
  height: auto;
}

/* Better thumbnail layout for mobile */
@media (max-width: 768px) {
  .image-thumbnails {
    justify-content: center;
    flex-wrap: wrap;
  }

  .image-thumbnails img {
    width: 60px;
    height: 45px;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}


/* Force modal to always start from top */
.modal-content {
  scroll-behavior: auto !important; /* Disable smooth scrolling for modal */
}

/* Reset scroll position when modal is shown */
.car-modal[style*="display: block"] .modal-content,
.car-modal[style*="display: block"] .modal-info,
.car-modal[style*="display: block"] .modal-images {
  scroll-behavior: auto;
  scroll-top: 0 !important;
}
/* end biler */

/* Start Landing */
.landing {
  position: relative;
}
.landing .image {
  align-self: center; /* Center the image vertically */
  margin-top: 20px; /* Add some margin to push the image down */
}
/* Adjust the top property in the .landing::before pseudo-element */
.highlight-price {
  color: #ff0000;  /* Bright red */
  font-weight: bold;
  font-size: 1.6em;  /* 30% larger than surrounding text */
  display: inline-block; /* Ensures consistent spacing */
}

.landing::before {
  content: "";
  position: absolute;
  left: 0;
  top: -20px; /* Reduced from -40px to -20px */
  width: 100%;
  height: 100%;
  background-color: #ececec;
  z-index: -1;
  transform: skewY(-6deg);
  transform-origin: top left;
}

.landing .container {
  flex-direction: row;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 0 20px;
  padding-bottom: 120px;
  gap: 40px; /* Adds spacing between text and image */
  flex-wrap: wrap; /* Ensures content wraps for smaller screens */
}
.landing .text {
  flex: 1;
  text-align: center; /* Centers text on all screen sizes */
}
.landing .text h1 {
  font-size: 2.5em;
  font-family: 'Poppins', sans-serif; /* Clean and modern font for headings */
  color: #2C3E50;
  margin-bottom: 20px;
}
.landing .text h3 {
  font-size: 1.2em;
  font-family: 'Roboto', sans-serif; /* A more readable font for paragraphs */
  color: #34495E;
  line-height: 1.8;
  text-align: justify; /* Ensures text is cleanly aligned for better readability */
  margin: 0 auto;
  max-width: 800px; /* Restricts width for optimal reading */
}



/* Responsive Adjustments */
@media (max-width: 991px) {
  .landing .container {
    flex-direction: column; /* Stack elements vertically */
    gap: 20px; /* Reduce gap between elements */
    padding: 20px; /* Add padding for better spacing */
  }

  .landing .image {
    order: -1; /* Move the image above the text */
    margin-bottom: 20px; /* Add space below the image */
  }

  .landing .image img {
    width: 100%; /* Make the image responsive */
    max-width: 300px; /* Limit maximum width */
    height: auto; /* Maintain aspect ratio */
  }

  .landing .text h1 {
    font-size: 1.8em; /* Adjust heading size for mobile */
  }

  .landing .text h3 {
    font-size: 1em; /* Adjust paragraph size for mobile */
    text-align: center; /* Center-align text for mobile */
    max-width: 90%; /* Reduce max width for better readability */
  }
}

@media (max-width: 767px) {
  .landing .container {
    flex-direction: column; /* Stack elements vertically */
    gap: 20px; /* Reduce gap between elements */
    padding: 20px; /* Add padding for better spacing */
  }

  .landing .image {
    order: -1; /* Move the image above the text */
    margin-bottom: 20px; /* Add space below the image */
  }

  .landing .image img {
    width: 100%; /* Make the image responsive */
    max-width: 300px; /* Limit maximum width */
    height: auto; /* Maintain aspect ratio */
  }

  .landing .text h1 {
    font-size: 1.8em; /* Adjust heading size for mobile */
  }

  .landing .text h3 {
    font-size: 1em; /* Adjust paragraph size for mobile */
    text-align: center; /* Center-align text for mobile */
    max-width: 90%; /* Reduce max width for better readability */
}
}

.landing .image img {
  width: 500px;
  animation: up-and-down 3s linear infinite;
}
.landing .go-down {
  color: var(--main-color);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--main-transition);
}
.landing .go-down:hover {
  color: var(--main-color-alt);
}
.landing .go-down i {
  animation: bouncing 1.5s infinite;
}
/* End Landing */


/* Start Features */
.features {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: white;
}
.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}
.features .box {
  text-align: center;
  border: 1px solid #ccc;
}
.features .box .img-holder {
  position: relative;
  overflow: hidden;
}
.features .box .img-holder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 100%;
}
.features .box .img-holder::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0px 0px 170px 500px;
  border-color: transparent transparent white transparent;
  transition: var(--main-transition);
}
.features .box .img-holder img {
  max-width: 100%;
}
.features .box:hover .img-holder::after {
  border-width: 170px 500px 170px 0;
}
.features .box h2 {
  position: relative;
  font-size: 40px;
  margin: auto;
  width: fit-content;
}
.features .box h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 15px;
  height: 5px;
  width: calc(100% - 30px);
}
.features .box p {
  line-height: 2;
  font-size: 20px;
  margin: 30px 0;
  padding: 25px;
  color: #777;
}
.features .box a {
  display: block;
  border: 3px solid transparent;
  width: fit-content;
  margin: 0 auto 30px;
  font-weight: bold;
  font-size: 22px;
  padding: 10px 30px;
  border-radius: 6px;
  transition: var(--main-transition);
}
.features .quality .img-holder::before {
  background-color: rgb(88 2 244 / 60%);
}
.features .quality h2::after {
  background-color: #03a9f4;
}
.features .quality a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  display: inline-block;
  margin-top: auto; /* Align the button at the bottom */
  text-align: center;
  padding: 10px 20px;
  transition: all 0.4s ease;
}
.features .quality a:hover {
  background-position: left bottom;
  color: white;
}

.features .time .img-holder::before {
  background-color: rgb(244 67 54 / 60%);
}
.features .time h2::after {
  background-color: #03a9f4;
}
.features .time a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  display: inline-block;
  margin-top: auto; /* Align the button at the bottom */
  text-align: center;
  padding: 10px 20px;
  transition: all 0.4s ease;
}
.features .time a:hover {
  background-position: left bottom;
  color: white;
}

.features .passion .img-holder::before {
  background-color: rgb(33 150 243 / 60%);
}
.features .passion h2::after {
  background-color: #03a9f4;
}
.features .passion a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  display: inline-block;
  margin-top: auto; /* Align the button at the bottom */
  text-align: center;
  padding: 10px 20px;
  transition: all 0.4s ease;
}
.features .passion a:hover {
  background-position: left bottom;
  color: white;
}

/* Ensuring consistent box height and alignment */
.features .box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}
.features .passion1 .img-holder::before {
  background-color: rgb(76 175 80 / 60%);
}
.features .passion1 h2::after {
  background-color: #03a9f4;
}
.features .passion1 a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  display: inline-block;
  margin-top: auto; /* Align the button at the bottom */
  text-align: center;
  padding: 10px 20px;
  transition: all 0.4s ease;
}

.features .passion2 .img-holder::before {
  background-color: rgb(255 193 7 / 60%);
}
.features .passion2 h2::after {
  background-color: #03a9f4;
}
.features .passion2 a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  display: inline-block;
  margin-top: auto; /* Align the button at the bottom */
  text-align: center;
  padding: 10px 20px;
  transition: all 0.4s ease;
}

.features .passion3 .img-holder::before {
  background-color: rgb(156 39 176 / 60%);
}
.features .passion3 h2::after {
  background-color: #03a9f4;
}
.features .passion3 a {
  color: #03a9f4;
  border-color: #03a9f4;
  background: linear-gradient(to right, #f44036 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  display: inline-block;
  margin-top: auto; /* Align the button at the bottom */
  text-align: center;
  padding: 10px 20px;
  transition: all 0.4s ease;
}

/* Consistent box height and hover effects */
.features .box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Ensure consistent height for all boxes */
  padding: 20px;
  box-sizing: border-box;
}

.features .box:hover a {
  background-position: left bottom;
  color: white;
}

.price-new {
            color: red;
            font-size: 2em; /* Adjust size as needed */
            font-weight: bold;
        }
        .price-old {
            color: gray;
            font-size: 1em; /* Adjust size as needed */
                }
/* End Features */
/* Start Footer */
.footer {
  background-color: #191919;
  padding: 70px 0 0;
}

@media (max-width: 767px) {
  .footer {
    text-align: center;
  }
}
.img123 img {
           height: 190px;
           margin-left: -20px; /* Default margin for larger screens */
       }

       /* Media query for smaller screens (e.g., phones) */
       @media (max-width: 768px) {
           .img123 img {
               margin-left: 0; /* Reset margin to 0 for phones */
           }
       }

.responsive-map {
  width: 100%; /* Full width of column */
  height: 200px;
  max-width: 400px; /* Limit width for large screens */
  margin-left: auto;
  margin-right: auto;
}

       /* Media query for small screens (e.g., iPhones) */
       @media (max-width: 768px) {
           .responsive-map {
               width: 100%; /* Make the map take full width */
               height: auto; /* Adjust height proportionally */
           }
       }
.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}
.footer .box h3 {
  color: white;
  font-size: 50px;
  margin: 0 0 20px;
}
.footer .box h4 {
  color: white;
  font-size: 35px;
  margin: 0 0 20px;
}
.footer .box .social {
  display: flex;
}

@media (max-width: 767px) {
  .footer .box .social {
    justify-content: center;
  }
}
.footer .box .social li {
  margin-right: 10px;
}
.footer .box .social li a {
  background-color: #313131;
  color: #b9b9b9;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 20px;
  transition: var(--main-transition);
}
.footer .box .social .facebook:hover {
  background-color: #1877f2;
}
.footer .box .social .instagram:hover {
  background-color: #FFA500;
}
.footer .box .social .whatsapp:hover {
  background-color: #00ff00;
}
.footer .box .social .tiktok:hover {
  background-color: #ff0050;
}
.footer .box .text {
  line-height: 2;
  color: #b9b9b9;
}
.footer .box .links li {
  padding: 15px 0;
  transition: var(--main-transition);
}
.footer .box .links li:not(:last-child) {
  border-bottom: 1px solid #444;
}
.footer .box .links li:hover {
  padding-left: 10px;
}
.footer .box .links li:hover a {
  color: white;
}
.footer .box .links li a {
  color: #b9b9b9;
  transition: var(--main-transition);
}
.footer .box .links li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\F101";
  font-weight: 900;
  margin-right: 10px;
  color: var(--main-color);
}
.footer .box .line {
  display: flex;
  align-items: center;
  color: #b9b9b9;
  margin-bottom: 30px;
}
@media (max-width: 767px) {
  .footer .box .line {
    flex-direction: column;
  }
}
.footer .box .line i {
  font-size: 25px;
  color: var(--main-color);
  margin-right: 10px;
}
@media (max-width: 767px) {
  .footer .box .line i {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
.footer .box .line .info {
  line-height: 1.7;
  flex: 1;
}
.footer .box .line .info span {
  display: block;
}
.footer .footer-gallery img {
  width: 78px;
  border: 3px solid white;
  margin: 2px;
}
.footer .copyright {
  padding: 25px 0;
  text-align: center;
  color: white;
  margin: 50px 0 0;
  border-top: 1px solid #444;
}
/* End Footer */
/* Start Animation */
@keyframes up-and-down {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px); /* Reduced from -40px to -20px */
  }
}
@keyframes bouncing {
  0%,
  10%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  60% {
    transform: translateY(-15px);
  }
}
@keyframes left-move {
  50% {
    left: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    left: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}
@keyframes right-move {
  50% {
    right: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    right: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}
@keyframes moving-arrow {
  100% {
    transform: translateX(10px);
  }
}
@keyframes flashing {
  0%,
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    width: 200%;
    height: 200%;
  }
}
@keyframes change-background {
  0%,
  100% {
    background-image: url("../imgs/discount-background1.jpg");
  }
  50% {
    background-image: url("../imgs/discount-background2.jpg");
  }
}
/* End Animation */
