/* Animation styles */

/* Fade in animation */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

/* Header scroll effect */
.header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(13, 15, 24, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hover effects for cards */
.work-card,
.skill-category,
.testimonial-card,
.philosophy-item,
.collaboration-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover,
.skill-category:hover,
.testimonial-card:hover,
.philosophy-item:hover,
.collaboration-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced work card animations */
.work-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

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

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

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

/* Card entrance animation */
.work-card.animate-in {
  animation: cardSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulsing effect for dot indicators */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.dot.active {
  animation: pulse 2s infinite;
}

/* Button hover animation */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.btn:hover:after {
  width: 200px;
  height: 200px;
  opacity: 1;
}

/* Skill tag hover effect */
.skill-tag {
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background-color: rgba(116, 208, 198, 0.3);
  transform: scale(1.05);
}

/* Testimonial carousel transition */
.testimonial {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Support for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .btn,
  .work-card,
  .skill-category,
  .testimonial-card,
  .philosophy-item,
  .collaboration-item,
  .dot.active,
  .skill-tag,
  .testimonial {
    animation: none;
    transition: none;
  }
  
  .btn:after {
    display: none;
  }
}
