/* Category Filter Styles */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.category-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #012b1c 0%, #00d664 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.category-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Project card filtering */
.project-card.hidden {
  opacity: 0;
  display: none !important;
  transform: scale(0.8);
  pointer-events: none;
  transition: all 0.3s ease;
}

.project-card.visible {
  opacity: 1;
  display: block !important;
  transform: scale(1);
  pointer-events: auto;
  transition: all 0.3s ease;
}

/* Filter animation for grid */
.projects-grid {
  transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 1024px) {
  .category-filter {
    gap: 0.8rem;
    padding: 0 1.5rem;
  }
  
  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .category-filter {
    gap: 0.6rem;
    padding: 0 1rem;
    margin-bottom: 3rem;
  }
  
  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .category-filter {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  
  .category-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* Project card filtering - CRITICAL STYLES */
.project-card {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition: all 0.3s ease;
  display: block; /* Make sure cards are displayed */
}

.project-card.hidden {
  opacity: 0 !important;
  transform: scale(0.8) !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.project-card.visible {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
  height: auto !important;
  margin: initial !important;
  padding: initial !important;
  transition: all 0.3s ease !important;
}