/* Add these new animation styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flipInX {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
  }

  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
}

/* Animation classes */
.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.8s ease-out forwards;
}

.animate-flip-in {
  animation: flipInX 0.8s ease-out forwards;
}

/* Initial state for animated elements */
[data-animate] {
  opacity: 0;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  overflow-x: auto;

  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  /* scrollbar-width: none; */
}

.tab-navigation::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background-color: var(--muted);
  color: var(--foreground);
  border: none;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: rgba(250, 204, 21, 0.1);
  color: var(--primary);
}

.tab-button.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Responsive tabs */
@media (max-width: 768px) {
  .tab-navigation {
    gap: 8px;
  }

  .tab-button {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* Projects Grid */
.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .projects-grid {
    display: grid !important;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    display: grid !important;
  }
}

.project-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(250, 204, 21, 0.1);
}

.project-image-container {
  position: relative;
}

.project-category-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--primary);
  /* fallback color */
  color: var(--primary-foreground);
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.project-description {
  color: #a1a1aa;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

}

.technology-tag {
  background-color: #2E2E2E;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.view-project-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 300;
  color: #facc15;
  /* yellow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.view-project-link:hover {
  color: #eab308;
  /* slightly darker yellow */
  text-decoration: underline;
}

/* Responsive Grid */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateX(-50px);
}

[data-animate].animate {
  opacity: 1;
  transform: translateX(0);
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

[data-animate="slide-right"].animate {
  animation-name: slideRight;
}

[data-animate="zoom-in"].animate {
  animation-name: zoomIn;
}

@keyframes slideRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}