@import url(https://fonts.googleapis.com/css?family=Open+Sans);

body {
  background: #f2f2f2;
  font-family: 'Open Sans', sans-serif;
}

/************************** Nav Bar CSS **************************************************/
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 10;
}

.logo a {
  display: inline-block;
}

.logo img {
  height: 100px;
  cursor: pointer;
  /* 👈 this makes the hand cursor appear */
}

.logo {
  perspective: 1000px;
  /* enable 3D space */
}

.flip-container {
  width: 100px;
  height: 80px;
  position: relative;
}

.flipper {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: relative;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
}

/* Normal front side */
.front {
  z-index: 2;
}

/* Flipped back side - mirrored */
.back {
  transform: rotateY(180deg) scaleX(-1);
  /* flip + mirror */
  z-index: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: red;
}

.hamburger {
  display: none;
}


/******************* Hero section ***************************/
/* ============================= */
/* Hero Section Layout & Style   */
/* ============================= */

.hero {
  position: relative;
  background: url('../Images/vehicle-move.jpg') no-repeat center center;
  background-size: cover;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  /* dark overlay with 40% opacity */
  backdrop-filter: blur(8px);
  /* apply blur to background */
  z-index: 1;
}


/* Wrapper centers content vertically, aligns it left */
.wrap {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  z-index: 2;
}

/* Heading */
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* Paragraph */
.hero p {
  font-size: 18px;
  color: #ddd;
  margin-bottom: 30px;
}

/* ============================= */
/* Search Bar Styling            */
/* ============================= */

.search-wrapper {
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Optional: Center vertically */
  width: 100%;
  z-index: -1;
}

.search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  position: relative;
}

/* Input field */
.searchTerm {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #b8b5b5;
  border-right: none;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 16px;
  color: #333;
  background-color: #fff;
}

/* Submit button */
.searchButton {
  width: 48px;
  height: 48px;
  border: 2px solid #b8b5b5;
  background-color: #b8b5b5;
  color: white;
  border-radius: 0 30px 30px 0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: none;
}

/* ============================= */
/* Suggestion Box Styling        */
/* ============================= */

.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  list-style: none;
  padding: 0;
  margin-top: 4px;
  z-index: -3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
}


.suggestions-box li {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  cursor: pointer;
  color: #222;
}

.suggestions-box li:last-child {
  border-bottom: none;
}

.suggestions-box li:hover {
  background-color: #f9f9f9;
}

.suggestions-box::-webkit-scrollbar {
  width: 8px;
  border-radius: 20px;
}

.suggestions-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 20px;
}

.suggestions-box::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 20px;
}

.suggestions-box::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ============================= */
/* Responsive                    */
/* ============================= */

@media (max-width: 1024px) {
  .hero {
    padding: 60px 20px;
    justify-content: center;
    text-align: center;
  }

  .wrap {
    margin-left: 0;
    align-items: center;
  }

  .search {
    flex-direction: row;
  }

  .searchTerm {
    border-radius: 30px 0 0 30px;
    width: 100%;
    margin: 5px 0;
  }

  .searchButton {
    border-radius: 0 30px 30px 0;
    margin: 5px 0;
  }
  .wrap {
    padding: 0 20px;
    box-sizing: border-box;
  }
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: center;
  }

  .filter-bar select,
  .filter-bar button {
    width: 90%;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 20px 0;
    overflow-y: hidden;
  }

  nav.show-nav {
    display: flex;
    overflow-y: hidden;
  }

  .hamburger {
    display: block;
  }

  .main-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {

  nav {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 20px 0;
    overflow-y: hidden;
  }

  nav.show-nav {
    display: flex;
    overflow-y: hidden;
  }

  .hamburger {
    display: block;
  }

  .main-header {
    flex-wrap: wrap;
  }

  .wrap {
    padding: 0 20px;
    box-sizing: border-box;
  }
}