@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap");

/* Hero Section */
.hero-section {
  height: 40vh;
  background-color: #3b5d50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(
      rgba(59, 93, 80, 0.8),
      rgba(59, 93, 80, 0.8)
    ),
    url("https://images.unsplash.com/photo-1558981806-ec527fa84c39?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
}

.hero-title {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

/* Search Bar Section */
.search-section {
  background-color: #f1f3f5;
  padding: 30px 0;
  margin-top: -20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 15px 25px;
  padding-right: 60px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 5px 20px rgba(30, 60, 114, 0.2);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: linear-gradient(135deg, #172b4d 0%, #1e3c72 100%);
  transform: scale(1.05);
}

.filter-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-btn {
  padding: 8px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1e3c72;
  color: white;
  border-color: #1e3c72;
  align-items: center;
}

/* Motorcycle Grid */
.motorcycle-grid {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}

/* Motorcycle Card */
.motorcycle-card {
  position: relative;
  width: 85%;
  height: 450px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
    rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
    rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
  transition: all 0.4s ease;
  margin: 0 auto;
}

.motorcycle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.motorcycle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  background: linear-gradient(135deg, rgb(6, 156, 33) 0%, #2a5298 100%);
  clip-path: circle(120px at 85% 15%);
  transition: all 0.6s ease;
}

.motorcycle-card:hover::before {
  clip-path: circle(300px at 85% -10%);
}

.motorcycle-card::after {
  content: attr(brand);
  position: absolute;
  top: 28%;
  left: -10%;
  font-size: 8em;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-style: italic;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.motorcycle-card .img-container {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease;
  padding: 0 20px;
}

.motorcycle-card:hover .img-container {
  top: 10%;
  transform: translateY(0);
}

.motorcycle-card .img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(0.9);

  transition: all 0.5s ease;
}

.motorcycle-card:hover .img-container img {
  transform: scale(1);
}

.motorcycle-card .content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 140px;
  text-align: center;
  transition: all 0.6s ease;
  z-index: 3;
  padding: 0 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.motorcycle-card:hover .content {
  height: 240px;
  padding-bottom: 25px;
}

.motorcycle-card .content h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #2d3748;
  margin-bottom: 5px;
}

.motorcycle-card .content .model {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #1e3c72;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.motorcycle-card .content .transmition {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease 0.1s;
}

.motorcycle-card .content .transmition span {
  font-weight: 600;
  color: #2d3748;
}

.motorcycle-card .content .price {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #1e3c72;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease 0.2s;
}

.motorcycle-card:hover .content .model,
.motorcycle-card:hover .content .transmition,
.motorcycle-card:hover .content .price {
  opacity: 1;
  transform: translateY(0);
}

.motorcycle-card .content .btn {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 30px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.3s;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
  border: none;
  cursor: pointer;
  margin-top: 5px;
}

.motorcycle-card:hover .content .btn {
  opacity: 1;
  transform: translateY(0);
}

.motorcycle-card .content .btn:hover {
  background: linear-gradient(135deg, #172b4d 0%, #1e3c72 100%);
  box-shadow: 0 5px 20px rgba(30, 60, 114, 0.4);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    width: 95%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .search-input {
    padding: 12px 20px;
    padding-right: 50px;
  }

  .search-btn {
    width: 40px;
    height: 40px;
    top: 6px;
    right: 6px;
  }

  .filter-options {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .motorcycle-card {
    height: 480px;
  }

  .motorcycle-card .img-container {
    height: 180px;
  }
}
