/* ===== Team Animations ===== */

/* ===== Keyframes ===== */
@keyframes team-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes team-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes team-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes team-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes team-slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes team-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes team-slide-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes team-slide-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes team-scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes team-scale-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes team-bounce {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -10px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -5px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes team-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 30px rgba(168, 85, 247, 0.4);
  }
}

@keyframes team-neon-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4);
  }
}

/* ===== Animation Classes ===== */
.team-animate-spin {
  animation: team-spin 1s linear infinite;
}

.team-animate-pulse {
  animation: team-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.team-animate-bounce {
  animation: team-bounce 1s infinite;
}

.team-animate-fade-in {
  animation: team-fade-in 0.3s ease-out;
}

.team-animate-fade-out {
  animation: team-fade-out 0.3s ease-out;
}

.team-animate-slide-down {
  animation: team-slide-down 0.3s ease-out;
}

.team-animate-slide-up {
  animation: team-slide-up 0.3s ease-out;
}

.team-animate-slide-left {
  animation: team-slide-left 0.3s ease-out;
}

.team-animate-slide-right {
  animation: team-slide-right 0.3s ease-out;
}

.team-animate-scale-in {
  animation: team-scale-in 0.2s ease-out;
}

.team-animate-scale-out {
  animation: team-scale-out 0.2s ease-out;
}

.team-animate-glow {
  animation: team-glow 2s ease-in-out infinite alternate;
}

.team-animate-neon-glow {
  animation: team-neon-glow 2s ease-in-out infinite alternate;
}

.team-animate-number-count {
  animation: team-number-count 0.8s ease-out;
}

.team-animate-gradient-shift {
  background-size: 400% 400%;
  animation: team-gradient-shift 8s ease infinite;
}

.team-animate-float {
  animation: team-float 3s ease-in-out infinite;
}

.team-animate-wiggle {
  animation: team-wiggle 1s ease-in-out;
}

/* ===== Transition Classes ===== */
.team-transition-all {
  transition: all var(--team-transition);
}

.team-transition-colors {
  transition: color var(--team-transition), background-color var(--team-transition), border-color var(--team-transition);
}

.team-transition-opacity {
  transition: opacity var(--team-transition);
}

.team-transition-transform {
  transition: transform var(--team-transition);
}

.team-transition-fast {
  transition: all var(--team-transition-fast);
}

.team-transition-slow {
  transition: all var(--team-transition-slow);
}

/* ===== Hover Effects ===== */
.team-hover-glow:hover {
  box-shadow: var(--team-shadow-glow);
}

.team-hover-neon:hover {
  box-shadow: var(--team-shadow-neon);
}

.team-hover-scale:hover {
  transform: scale(1.05);
}

.team-hover-lift:hover {
  transform: translateY(-2px);
}

.team-hover-rotate:hover {
  transform: rotate(5deg);
}

/* ===== Loading States ===== */
.team-loading {
  position: relative;
  overflow: hidden;
}

.team-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.2),
    transparent
  );
  animation: team-shimmer 2s infinite;
}

@keyframes team-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes team-number-count {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes team-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes team-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes team-wiggle {
  0%, 7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%, 100% {
    transform: rotateZ(0);
  }
}

/* ===== Focus States ===== */
.team-focus-ring:focus {
  outline: 2px solid var(--team-primary);
  outline-offset: 2px;
}

.team-focus-within:focus-within {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* ===== Reduce Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
