* {
  box-sizing: border-box;
}
.categories-container {
  max-width: 1200px;
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card {
  margin-top: 20px;
  position: relative;
  height: 400px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  isolation: isolate;
}

.category-card:nth-child(1) {
  animation-delay: 0.1s;
}

.category-card:nth-child(2) {
  animation-delay: 0.2s;
}

.category-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.category-card:active {
  transform: scale(0.98);
}

.category-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

.category-content {
  width: 100%;
}

.category-title {
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.022em;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.setRight {
  text-align: right;
}

.category-description {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.022em;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.category-button {
  display: inline-block;
  padding: 14px 28px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.022em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.category-card:hover .category-button {
  background: #1d1d1f;
  color: #ffffff;
}

/* Placeholder images - replace with actual images */
.category-card:nth-child(1) .category-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card:nth-child(2) .category-image {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-card:nth-child(3) .category-image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@media (max-width: 768px) {
  .categories-container {
    margin: 40px auto;
    gap: 16px;
  }

  .category-card {
    height: 300px;
  }

  .category-overlay {
    padding: 32px 24px;
  }

  .category-title {
    font-size: 36px;
  }

  .category-description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .category-card {
    height: 250px;
  }

  .category-title {
    font-size: 28px;
  }
}