/* Base Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --text-color: #333;
  --light-gray: #f5f6fa;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/cars/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

/* Filter Section */
.filter-section {
  background: var(--white);
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-container {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 500;
}

.filter-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
}

.filter-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.filter-btn:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

/* Rental Info Section - Modern Design */
.rental-info-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 100px 0;
  margin: 60px 0;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.rental-info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e67e22' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E")
    repeat;
  opacity: 0.7;
}

.rental-info-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 30px;
}

.rental-info-text h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  animation: fadeInDown 0.8s ease;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  transition: all 0.5s ease;
}

.rental-info-text h2:hover {
  transform: scale(1.01);
  letter-spacing: -0.3px;
  text-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.rental-info-text h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
}

.rental-info-text h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 30px 0 15px;
  font-weight: 600;
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.8s ease;
}

.rental-info-text p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s;
  animation-fill-mode: both;
}

.rental-info-text ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 20px;
}

.rental-info-text ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.05rem;
  color: #444;
  padding: 25px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.8s ease;
  animation-fill-mode: both;
  border-top: 3px solid var(--secondary-color);
  text-align: center;
}

.rental-info-text ul li:nth-child(1) {
  animation-delay: 0.2s;
}
.rental-info-text ul li:nth-child(2) {
  animation-delay: 0.3s;
}
.rental-info-text ul li:nth-child(3) {
  animation-delay: 0.4s;
}
.rental-info-text ul li:nth-child(4) {
  animation-delay: 0.5s;
}
.rental-info-text ul li:nth-child(5) {
  animation-delay: 0.6s;
}

.rental-info-text ul li:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.rental-info-text ul li i {
  color: var(--secondary-color);
  font-size: 1.6rem;
  background: rgba(230, 126, 34, 0.1);
  padding: 15px;
  border-radius: 50%;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(230, 126, 34, 0.12);
  margin-bottom: 15px;
}

.rental-info-text ul li strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.rental-info-text ul li:hover i {
  transform: scale(1.08) rotate(3deg);
  background: var(--secondary-color);
  color: white;
}

/* Modern Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 992px) {
  .rental-info-section {
    padding: 50px 25px;
    margin: 40px 0;
  }

  .rental-info-text h2 {
    font-size: 1.9rem;
  }

  .rental-info-text h3 {
    font-size: 1.4rem;
  }

  .rental-info-text p {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .rental-info-text ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .rental-info-section {
    padding: 40px 15px;
    margin: 30px 0;
    border-radius: 25px;
  }

  .rental-info-text h2 {
    font-size: 1.8rem;
  }

  .rental-info-text h3 {
    font-size: 1.3rem;
    margin: 25px 0 12px;
  }

  .rental-info-text p {
    font-size: 0.9rem;
    padding: 0 10px;
    margin-bottom: 25px;
  }

  .rental-info-text ul {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px;
  }

  .rental-info-text ul li {
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }
  
  .rental-info-text ul li i {
    margin-bottom: 8px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .rental-info-section {
    padding: 30px 12px;
    margin: 20px 0;
    border-radius: 15px;
  }

  .rental-info-text h2 {
    font-size: 1.6rem;
  }

  .rental-info-text h3 {
    font-size: 1.2rem;
  }

  .rental-info-text p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .rental-info-text ul li {
    font-size: 0.9rem;
    padding: 10px;
    gap: 10px;
    margin-bottom: 10px;
  }

  .rental-info-text ul li i {
    font-size: 1.1rem;
    padding: 8px;
    min-width: 35px;
    height: 35px;
  }
  
  .rental-info-text ul li strong {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
}

/* Cars Grid Section */
.cars-section {
  padding: 60px 0;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Car Card */
.car-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.car-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.car-card:hover .car-image img {
  transform: scale(1.1);
}

.car-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.car-details {
  padding: 20px;
}

.car-details h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.car-specs {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.car-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 0.9rem;
}

.car-features {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.car-features span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 0.9rem;
}

.car-price {
  margin-bottom: 20px;
}

.car-price .price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.car-price .period {
  color: #666;
  font-size: 0.9rem;
}

.book-btn {
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.book-btn:hover {
  background-color: #d35400;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
}

.submit-btn {
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: #d35400;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .filter-container {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .cars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .car-specs,
  .car-features {
    justify-content: center;
  }

  .modal-content {
    padding: 20px;
  }
}
