/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap");

body {
  margin: 0;
  font-family: "Roboto";
  background-color: #f4f4f4;
  /* text-align: center; */
}

/* Title Section */
.title-section {
  background: none;
  color: white;
  padding: 10px 20px 30px 20px;
}

.title-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.quote {
  font-size: 1.4rem;
  font-family: "Dancing Script", cursive;
}

/* Product Section */
/* .product-section {
  background: url("spices_background.jpg") no-repeat center center fixed;
  background-size: cover;
  padding: 50px 10px;
} */

/* Product Groups */
.product-group {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

/* Product Card */
.product-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 30%;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out forwards;
  animation-delay: calc(0.2s * var(--i));
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Product Name */
.product-name {
  position: absolute;
  bottom: 0;
  left: 0; /* Ensures it starts from the left edge */
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease;
}

.product-name:hover {
  background: #ff2c2c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .title-section h1 {
    font-size: 2rem;
  }

  .quote {
    font-size: 1.2rem;
  }

  .product-group {
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 80%;
  }

  .product-card img {
    height: 250px;
  }

  .product-name {
    font-size: 1rem;
  }
}
