/**
 * Projects Grid Component Styles
 * Custom styles that extend Tailwind
 */

/* Filter Button Active State */
.filter-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: white;
  border-color: transparent;
}

/* Project Card Hover Animation */
.project-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px);
}

/* Filter Transitions */
.project-card.filtered-out {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease-out;
}

.project-card.filtered-in {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  transition: all 0.3s ease-out;
}

/* Modal Show State */
#projectModal.show {
  opacity: 1;
}

#projectModal.show .bg-white {
  transform: scale(1);
}

/* Hide Scrollbar */
.scrollbar-hide {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* View Project Button Backdrop Blur */
.view-project-btn {
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: countUp 0.6s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .stats-section {
    padding: 2rem 1rem;
  }

  .stat-item .text-4xl {
    font-size: 2rem;
  }
}

