/* Search Bar Styles */
.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 25px rgba(0, 247, 255, 0.3);
}

#search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

#search-input::placeholder {
  color: var(--text-secondary);
}

#search-btn {
  background: var(--primary);
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Featured Section */
.featured-section {
  margin-bottom: 4rem;
}

.featured-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.8rem;
}

/* Carousel Styles */
.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 247, 255, 0.2);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent);
  color: white;
}

.carousel-caption h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.carousel-caption p {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 247, 255, 0.3);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-control:hover {
  background: var(--primary);
  color: var(--background);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Categories Section */
.categories {
  margin-top: 4rem;
}

.categories h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 247, 255, 0.2);
}

.category-card:hover img {
  transform: scale(1.1);
}

/* Animation for search bar */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 247, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
  }
}

.search-container.pulse {
  animation: pulse 2s infinite;
}