@font-face {
  font-family: "darklinos";
  src: url(assets/fonts/DARKLINOS.ttf);
}
@font-face {
  font-family: "vogue";
  src: url(assets/fonts/CreatoDisplay-Medium.otf);
}
@font-face {
  font-family: "linux";
  src: url(assets/fonts/LinLibertine_aS.ttf);
}
@font-face {
  font-family: "robotoo";
  src: url(assets/fonts/Roboto-Bold.ttf);
}
:root {
  /* Primary Brand Color */
  --primary-red: #e63946;
  --primary-red-dark: #b71c1c;

  /* backround colors */
  --background-color: #ffecec;

  /* Neutrals */
  --black: #212121;
  --dark-grey: #1c1c1c;
  --light-grey: #6d6d6d;
  --white: #ffffff;

  /* Accent Colors */
  --accent-yellow: #ffcc00;
  --accent-blue: #007bff;

  /* Utility Colors */
  --success-green: #28a745;
  --warning-orange: #fd7e14;

  /* Fonts */
  --font-heading: "darklinos";
  --font-display: "robotoo", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-alt: "Roboto Mono", monospace;

  /* Font Sizes */
  --fs-hero: 4rem;
  --fs-h1: 2.5rem;
  --fs-h2: 2rem;
  --fs-h3: 1.5rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Line Heights */
  --lh-tight: 1.1;
  --lh-normal: 1.5;
  --lh-loose: 1.8;

  /* Global Text */
  --text-color: #212121;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}



body {
  font-family: var(--font-body);
  /* background: var(--light-grey); */
  background: linear-gradient(135deg, #fd1d1d, #ff2f2f, #e80c0c);

  color: var(--text-color);
  margin: 0;

  padding-top: 80px; /*same as navbar height */
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: var(--lh-tight);
}

p {
  line-height: var(--lh-loose);
}

a {
  text-decoration: none;
}

header ul {
  margin: 0;
  padding: 0;
}

header ul li {
  list-style-type: none;
}
li {
  list-style: none;
}

/* animation */
/* Initial state */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-section {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.fade-in-section.active {
  opacity: 1;
}
/* Navbar styles */

.navbar {
  position: fixed;
  top: 0;
  left: 50%; /* move it to middle */
  transform: translateX(-50%); /* pull it back by half */
  max-width: 1100px;
  width: 100%; /* make it responsive */
  background-color: white;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark-grey);
  padding: 10px 50px;
  /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
  border-radius: 12px;
}

/* Logo */
.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-red);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 30px; /* spacing between links */
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: 0.3s;
  line-height: var(--lh-loose);
}

.nav-links li a:hover {
  color: #e63946; /* hover red */
}
.btn-login {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  background: var(--primary-red-dark);
}

.hero-section {
  width: 100%;
  min-height: 80vh;
  background: linear-gradient(180deg, #fd1d1d, #c90d0d, #8b0101);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
}

/* Hero Content (text + image side by side) */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
}

/* Text */
.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #222;
  font-family: var(--font-heading);
}

.hero-text .highlight {
  color: #ffffff;
}

/* Image */
.hero-img {
  display: flex;
  justify-content: flex-end; /* push car to the right */
}

.hero-img img {
  width: 180%; /* make the car bigger */
  height: auto;
  max-width: none; /* remove the restriction */
  transform: translateX(150px); /* adjust how much it goes right */
}

/* Search Box */
.search-box {
  margin-top: 50px;
  background: rgb(240, 210, 210);
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
}

.search-box form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.btn-search {
  padding: 20px;
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.btn-search:hover {
  background: var(--primary-red-dark);
}

.steps-section {
  width: 100%;
  min-height: 95vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  gap: 20px;
}
.btn-howitwork {
  padding: 10px 50px;
  background: var(--background-color);
  color: var(--primary-red);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  font-weight: bold;
}
.step-heading p {
  color: var(--black);
  font-size: var(--fs-h1);
  font-weight: lighter;
  font-family: var(--font-display);
}
.step-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-heading button {
  font-size: var(--fs-body);
}

.step-icons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
}

.icon-1 {
  display: flex;
  flex-direction: column;
  /* border: 1px solid black; */
  align-items: center;
  gap: 20px;
}
.icon-1 button {
  padding: 30px;
  border: none;
  background-color: var(--background-color);
  color: var(--primary-red);
  max-width: fit-content;
  border-radius: 15px;
}
.icon-1 h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
}
.icon-1 p {
  font-size: var(--fs-small);
  color: var(--light-grey);
  text-align: center;
}

.step-carLogo {
  display: flex;
  flex-direction: row;
  width: 110%;
  margin-top: 20px;
}
.step-carLogo div {
  width: 100%;
  height: 140px;
}
.step-carLogo div img {
  height: 100%;
  width: 100%;
}

.choose-us {
  width: 100%;
  min-height: 95vh;
  background: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  gap: 20px;
}
.left-img {
  width: auto;
  height: auto;
  overflow: hidden;
  /* border: 1px solid red; */
  margin-top: 15px;

}
.left-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transform-origin: center;
}
.right-details {
  width: 60%;
}
.chooseus-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.btn-chooseus {
  padding: 10px 50px;
  background: var(--background-color);
  color: var(--primary-red);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  font-weight: bold;
}
.chooseus-heading {
  padding: 50px 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chooseus-heading div {
  text-align: left;
  padding: 10px;
}

.chooseus-heading h1 {
  color: var(--black);
  font-size: var(--fs-h2);
  font-weight: lighter;
  font-family: var(--font-display);
}

.feature-item {
  display: flex;
  flex-direction: row;
  /* border: 1px solid green; */
  gap: 20px;
  line-height: var(--lh-loose);
}

.iconchoose {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: none;
  background-color: var(--background-color);
  color: var(--primary-red);
  border-radius: 15px;
}

.feature-item h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: 7px;
}

.feature-item p {
  font-size: var(--fs-small);
  color: var(--light-grey);
  text-align: center;
  line-height: var(--lh-loose);
}

.deal-card {
  width: 100%;
  min-height: 95vh;
  background: white;
  display: flex;
  flex-direction: column; /* stack heading + cards */
  align-items: center;
  justify-content: flex-start;
  padding: 80px 10%;
  gap: 40px; /* space between heading and cards */
  
}

.heading {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;
}
.heading h2 {
  font-family: vogue;
}

.car-cards {
  display: flex;
  flex-wrap: wrap; /* allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  width: 280px; /* fixed width */
  min-height: 450px; /* fixed height */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

.card:hover {
  transform: scale(1.05); /* smooth zoom on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  /* height: 180px;  */
  height: 100%;
  object-fit: contain; 
  border-radius: 10px;
}

.title {
  font-weight: bold;
  font-size: var(--fs-h3);
  margin: 12px 0 6px 0;
}

.rating {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--dark-grey);
  margin-bottom: 10px;
}

.rating svg {
  color: var(--accent-yellow);
  margin-right: 5px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.features div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.price-box span {
  color: var(--dark-grey);
}

.price {
  font-size: var(--fs-h3);
  font-weight: bold;
}

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--primary-red);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold; /* fixed this */
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--primary-red-dark);
}

.testimonials {
  width: 100%;
  min-height: 95vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  gap: 20px;
}
.testimonialCard {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.testimonialHeading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonialHeading h2{
  font-size: var(--fs-h2);
  font-family: vogue;
}
.card-1 {
  display: flex;
  /* flex-direction: column; */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  width: 650px; /* fixed width */
  height: 300px; /* fixed height */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 20px;
  margin-top: 20px;
}
.card-1 img {
  /* border: 1px solid black; */
  height: 100%;
  width: 100%;
}
.card-1:hover {
  transform: scale(1.05); /* smooth zoom on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.card-1 h2 {
  font-size: var(--fs-h2);
}
.card-1 p {
  color: var(--light-grey);
}
.card-1 i {
  color: var(--accent-yellow);
}
.img {
  width: 50%;
  /* height: 100%; */
}
.ratingReview {
  width: 50%;
  line-height: var(--lh-loose);
}

.footer {
  width: 100%;
  height: 70vh;
  /* background: #340505;   */
  background-color: #1c1c1c;
  color: #D6D6D6;
  display: flex;
  flex-direction: column;
  align-items: stretch; 
  justify-content: center;
  padding: 80px 10%;
  gap: 20px;
}

.section1 {
  display: flex;
  justify-content: space-around;
  /* border: 1px solid white; */
  width: 100%;
}

.info {
  text-align: left;   /* ensures text goes left */
  /* border: 1px solid black; */
}

.info ul {
  padding-left: 0;
  line-height: 2;
  /* word-spacing: 10px; */
  font-family: vogue ;
}
.info h3{
  padding-bottom: 50px;
  font-family: vogue ;
}

.section2 {
  border-top: 1px solid white;
  width: 100%;
}
.section2 p {
  margin-top: 10px;
}

.overlay{
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 0%;
  z-index: -1;
  opacity: 0;
  transition: 0s;
}
.login-form{
  width: 400px;
  padding: 40px;
  height: 300px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  position: fixed;
  left: 50%;
  top: -50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 10px 3px #ccc;
  transition: 0.5s;
  z-index: 9;
  border-radius: 12px;
  display: flex;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.2);
    
}
.login-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.login-form input {
  width: 100%;
  height: 45px;
  padding: 10px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}
.login-form input:focus {
  box-shadow: 0 0 8px var(--primary-red);
}
.login-form button {
  background-color: var(--primary-red);
  color: white;
  /* padding: 20px; */
  border: none;
  border-radius: 12px;
  height: 50px;
  font-size: var(--fs-body);
  font-family: var(--font-display);
  margin-top: 10px;
  width: 150px;
}
.login-form span {
  position: absolute;
  right: 0px;
  width: 30px;
  color: white;
  line-height: 30px;
  background-color: var(--primary-red);
  text-align: center;
  top: 0px;
  cursor: pointer;
  border-radius: 5px;
}
.showoverlay {
  opacity: 1;
  z-index: 1;
}
.showlogin-form {
  top: 50%;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .navbar {
    padding: 10px 20px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-img img {
    width: 100%;
    transform: translateX(0);
  }
  .choose-us {
    flex-direction: column;
    text-align: center;
  }
  .right-details {
    width: 100%;
  }
  .testimonialCard {
    flex-direction: column;
    align-items: center;
  }
  .card-1 {
    width: 100%;
    height: auto;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --fs-hero: 2.2rem;
    --fs-h1: 1.8rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.2rem;
    --fs-body: 0.95rem;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }
  .nav-links {
    flex-direction: column;
    gap: 15px;
  }
  .hero-section {
    padding: 40px 5%;
  }
  .search-box {
    padding: 15px;
  }
  .search-box form {
    flex-direction: column;
    gap: 15px;
  }
  .steps-section .step-icons {
    flex-direction: column;
    gap: 30px;
  }
  .step-carLogo {
    flex-direction: column;
    gap: 10px;
  }
  .choose-us {
    padding: 40px 5%;
  }
  .car-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
    max-width: 350px;
    height: auto;
  }
  .testimonialCard {
    flex-direction: column;
    align-items: center;
  }
  .footer {
    padding: 40px 5%;
    height: auto;
  }
  .section1 {
    flex-direction: column;
    gap: 30px;
  }
  .login-form {
    width: 90%;
    height: auto;
    padding: 20px;
  }
}

/* Very Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .btn-search,
  .btn-login,
  .btn,
  .btn-chooseus,
  .btn-howitwork {
    width: 100%;
  }
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  .iconchoose {
    margin: 0 auto;
  }
}
/* Default hide hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* show hamburger only on mobile */
  }

  .nav-links {
    display: none; /* hide links by default */
    flex-direction: column;
    background: var(--dark-grey);
    position: absolute;
    top: 70px; /* just below navbar */
    right: 0;
    width: 100%;
    padding: 20px 0;
    gap: 20px;
    text-align: center;
  }

  .nav-links.active {
    display: flex; /* show dropdown when active */
  }

  .nav-links li a {
    font-size: 1.2rem;
  }
}

.renter-form {
  background: #f9f9f9;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: auto;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: var(--fs-h3);
  /* color: #340505;  */
  font-family: var(--font-display);
}

.renter-form {
  display: flex;
  flex-direction: column; 
  /* align-items: center;  */
}

label {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border 0.3s;
}

input:focus {
  border: 1px solid #340505;
}

.checkbox {
  display: flex;
  align-items: center;
  margin-top: 15px;
  font-size: 14px;
}

.renter-button {
  margin-top: 20px;
  padding: 12px;
  border: none;
  background: var(--primary-red);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

button:hover {
  background: var(--primary-red-dark);
}
