/* ==============================
   Products Section
============================== */
.products-section {
  position: relative;
  padding: 4rem 1.5rem;
  background: var(--background-light);
  overflow: hidden;
}

/* ==============================
   Section Title
============================== */
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  /* font-family: 'Poppins', sans-serif; */
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s ease;
  letter-spacing: 1.5px;
}
.section-title span {
  color: var(--primary-accent);
  font-family: 'IBM Plex Sans', sans-serif;
}
.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   Products Grid
============================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ==============================
   Product Card
============================== */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  cursor: pointer;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--background-white);
}
.product-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Product Image */
.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.5s ease;
  display: block;
}
.product-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* ==============================
   Overlay with Title
============================== */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(0,0,0,0); */
  transition: background 0.4s ease, opacity 0.4s ease;
}
.overlay h3 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover Effect */
.product-card:hover .overlay {
  background: rgba(0,0,0,0.55);
}
.product-card:hover .overlay h3 {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   Wave / Ripple Effect
============================== */
.product-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.4);
  top: 50%;
  left: 50%;
  transform: scale(0) translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.product-card:hover::after {
  animation: ripple 0.8s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0) translate(-50%, -50%);
    opacity: 0.6;
  }
  100% {
    transform: scale(10) translate(-50%, -50%);
    opacity: 0;
  }
}

/* ==============================
   Watermark
============================== */
.watermark {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(44,44,44,0.03);
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==============================
   Desktop / Large Screens
============================== */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .product-card img {
    height: 300px;
  }
  .watermark {
    font-size: 10rem;
  }
}

/* ==============================
   Extra Modern Touch (Animation)
============================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card.animate {
  animation: fadeInUp 0.9s ease forwards;
}
.section-title.animate {
  animation: fadeInUp 1s ease forwards;
}
