@import url('https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Poppins:wght@400;500&display=swap');

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Poppins', sans-serif;
   background: #f8f9fb;
   color: #0a192f;
}

/* === Header === */
header {
   background: #fff;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px 50px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   position: relative;
}

.logo {
   display: flex;
   align-items: center;
   gap: 10px;
}

.logo img {
   width: 130px;
   height: 110px;
   border-radius: 15px;
   object-fit: cover;
}

nav {
   display: flex;
}

nav a {
   margin: 0 15px;
   text-decoration: none;
   color: #0a192f;
   font-weight: 500;
}

nav a:hover {
   color: #ffb800;
}

.hamburger {
   display: none;
   flex-direction: column;
   cursor: pointer;
   gap: 4px;
}

.hamburger span {
   width: 25px;
   height: 3px;
   background: #0a192f;
   transition: 0.3s;
}

/* === Hero === */
.hero {
   background: url(images/temp.jpeg) center/cover no-repeat;
   height: 90vh;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: white;
   position: relative;
}

.hero::before {
   content: "";
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, 0.5);
}

.hero-content {
   position: relative;
   z-index: 1;
}

.hero-content h2 {
   font-size: 2.5rem;
   margin-bottom: 10px;
}

.search-bar {
   margin-top: 20px;
   display: flex;
   gap: 10px;
   justify-content: center;
   flex-wrap: wrap;
}

.search-bar input,
.search-bar button {
   padding: 10px;
   border: none;
   border-radius: 5px;
}

.search-bar input {
   width: 150px;
   flex: 1;
   min-width: 120px;
}

.search-bar button {
   background: #ffb800;
   color: #fff;
   cursor: pointer;
   transition: 0.3s;
   white-space: nowrap;
}

.search-bar button:hover {
   background: #e6a700;
}

/*=== Why Choose Us ===*/
.why-us {
   padding: 60px 10%;
   text-align: center;
}

.why-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 20px;
   margin-top: 30px;
}

.why-card {
   background: #fff;
   border-radius: 13px;
   padding: 20px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   transition: 0.3s;
}

.why-card:hover {
   transform: translateY(-5px);
}

.why-card i {
   font-size: 30px;
   color: #ffb800;
   margin-bottom: 10px;
}

/*=== About Section ===*/
.about {
   background: #fff;
   padding: 60px 10%;
   text-align: center;
}

.about-cards {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 25px;
   margin-top: 30px;
}

.about-card {
   background: #f8f9fb;
   padding: 25px;
   width: 300px;
   max-width: 100%;
   border-radius: 12px;
   box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
   text-align: left;
   transition: 0.3s;
}

.about-card:hover {
   transform: translateY(-5px);
}

/*=== Cars Section ===*/
.cars {
   padding: 60px 10%;
   background: #f8f9fb;
   text-align: center;
}

.car-categories {
   margin: 20px 0;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 10px;
}

.car-categories button {
   padding: 10px 20px;
   border: none;
   border-radius: 5px;
   background: #0a192f;
   color: #fff;
   cursor: pointer;
   flex: 1;
   min-width: 100px;
   max-width: 200px;
}

.car-categories button.active,
.car-categories button:hover {
   background: #ffb800;
   color: #000;
}

.car-list {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
   gap: 20px;
   margin-top: 30px;
}

.car-card {
   background: #fff;
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   padding: 15px;
}

.car-card img {
   width: 100%;
   height: 150px;
   border-radius: 10px;
   object-fit: cover;
   transition: 0.3s;
}

.car-card img:hover {
   transform: translateY(5px);
}

.book-btn {
   background: #ffb800;
   border: none;
   padding: 10px;
   width: 100%;
   cursor: pointer;
   margin-top: 10px;
   transition: 0.3s;
}

.book-btn:hover {
   transform: translateY(3px);
}

/* === Booking Modal ===*/
.modal {
   display: none;
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.6);
   justify-content: center;
   align-items: center;
   padding: 20px;
}

.modal-content {
   background: #fff;
   padding: 30px;
   border-radius: 10px;
   width: 300px;
   max-width: 90%;
   text-align: center;
}

.modal-content input {
   display: block;
   margin: 10px auto;
   width: 100%;
   padding: 10px;
}

.close-btn {
   background: #ccc;
   margin-top: 10px;
}

/*=== Footer ===*/
footer {
   background: #0a192f;
   color: #fff;
   text-align: center;
   padding: 30px;
}

.socials {
   display: flex;
   justify-content: center;
   gap: 10px;
   margin-top: 10px;
}

.socials i {
   font-size: 20px;
   cursor: pointer;
   transition: 0.3s;
}

.socials i:hover {
   color: #ffb800;
}

/* === Media Queries for Responsiveness === */
@media (max-width: 768px) {
   header {
      padding: 15px 20px;
      flex-direction: row;
      align-items: center;
   }

   .logo h1 {
      font-size: 1.2rem;
   }

   .logo img {
      width: 80px;
      height: 70px;
   }

   nav {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: #fff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      padding: 10px 0;
   }

   nav.active {
      display: flex;
   }

   nav a {
      margin: 10px 0;
      text-align: center;
      padding: 10px;
   }

   .hamburger {
      display: flex;
   }

   .hero {
      height: 70vh;
   }

   .hero-content h2 {
      font-size: 2rem;
   }

   .search-bar {
      flex-direction: column;
      align-items: center;
   }

   .search-bar input {
      width: 100%;
      max-width: 300px;
   }

   .search-bar button {
      width: 100%;
      max-width: 300px;
   }

   .why-us,
   .about,
   .cars {
      padding: 40px 5%;
   }

   .why-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
   }

   .about-cards {
      flex-direction: column;
      align-items: center;
      gap: 20px;
   }

   .about-card {
      width: 100%;
      max-width: 300px;
   }

   .car-categories {
      flex-direction: column;
      align-items: center;
   }

   .car-categories button {
      width: 100%;
      max-width: 250px;
   }

   .car-list {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
   }

   .car-card img {
      height: 120px;
   }

   footer {
      padding: 20px;
   }

   .socials {
      flex-wrap: wrap;
   }
}

@media (max-width: 480px) {
   .hero-content h2 {
      font-size: 1.5rem;
   }

   .hero-content p {
      font-size: 1rem;
   }

   .car-list {
      grid-template-columns: 1fr;
   }

   .why-grid {
      grid-template-columns: 1fr;
   }

   .modal-content {
      padding: 20px;
      margin: 10px;
   }
}