body {
  font-family: "Raleway", sans-serif;
  background: linear-gradient(-45deg, #000, #5a0000, #000, #7a0000);
  background-size: 400% 400%;
  animation: bgFade 10s ease infinite;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

@keyframes bgFade {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ✅ Category Section */
.categorical-section {
  background: transparent;
  padding: 40px 0;
  margin: 0;
}

/* ✅ EXACTLY 3 cards per row */
.categorical-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Only 3 cards */
  gap: 1.5rem;
  padding: 2rem 3rem;
  justify-items: center;
}

/* ✅ Card Effects */
.categorical-card-wrap {
  transform: perspective(800px);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.categorical-card {
  position: relative;
  width: 350px;
  height: 350px;
  background-color: #1a1a1a;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    rgba(0, 0, 0, 0.66) 0 30px 60px 0,
    inset #333 0 0 0 5px,
    inset rgba(255, 255, 255, 0.5) 0 0 0 6px;
  transition: box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.categorical-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.7;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}


.categorical-card-info {
  position: absolute;
  bottom: 0;
  color: #fff;
  padding: 20px;
  transform: translateY(40%);
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.categorical-card-info h1 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin: 0;
}

.categorical-card-info p {
  opacity: 0;
  font-size: 14px;
  transition: opacity 0.6s;
}

/* ✅ Hover Effects */
.categorical-card-wrap:hover .categorical-card {
  box-shadow:
    rgba(255, 255, 255, 0.2) 0 0 40px 5px,
    rgba(255, 255, 255, 1) 0 0 0 1px,
    rgba(0, 0, 0, 0.66) 0 30px 60px 0,
    inset #333 0 0 0 5px,
    inset white 0 0 0 6px;
}

.categorical-card-wrap:hover .categorical-card-bg {
  opacity: 1;
}

.categorical-card-wrap:hover .categorical-card-info {
  transform: translateY(0);
}

.categorical-card-wrap:hover .categorical-card-info p {
  opacity: 1;
}

/* ✅ Responsive */
@media (max-width: 1024px) {
  .categorical-grid-container {
    grid-template-columns: repeat(3, 1fr);
    /* still 3 */
    padding: 1.5rem;
  }

  .categorical-card {
    width: 260px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .categorical-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    margin-left: -6px;
  }

  .categorical-card {
    width: 185px;
    height: 185px;
  }
}

@media (max-width: 600px) {
  .categorical-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    margin-left: -6px;
  }

  .categorical-card {
    width: 185px;
    height: 185px;
  }
}
@media (max-width: 350px){
    .categorical-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    margin-left: -6px;
  }

  .categorical-card {
    width: 150px;
    height: 150px;
  }
}