/* ========================================
   JACKWEB ANIMATIONS - SIMPLIFIED
   Minimal, Professional Transitions
   ======================================== */

/* ========================================
   FADE ANIMATIONS
   ======================================== */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

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

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

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

.fade-in {
  animation: fade-in 0.4s ease-out;
}

.fade-out {
  animation: fade-out 0.4s ease-out;
}

.fade-in-down {
  animation: fade-in-down 0.4s ease-out;
}

.fade-in-up {
  animation: fade-in-up 0.4s ease-out;
}

.fade-in-left {
  animation: fade-in-left 0.4s ease-out;
}

.fade-in-right {
  animation: fade-in-right 0.4s ease-out;
}

/* ========================================
   SIMPLE HOVER EFFECTS
   ======================================== */

.hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hover-scale {
  transition: transform var(--transition-fast);
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* ========================================
   CHEVRON ROTATION
   ======================================== */

.chevron {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

details[open] .chevron {
  transform: rotate(180deg);
}

/* ========================================
   TRANSITION UTILITIES
   ======================================== */

.transition-all {
  transition: all var(--transition-base);
}

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

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

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

.transition-shadow {
  transition: box-shadow var(--transition-base);
}

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

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

/* ========================================
   PAGE TRANSITIONS
   ======================================== */

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.page-enter {
  animation: page-enter 0.3s ease-out;
}

.page-exit {
  animation: page-exit 0.3s ease-in;
}

/* ========================================
   STAGGER FADE IN
   ======================================== */

.stagger-fade-in > * {
  animation: fade-in 0.4s ease-out backwards;
}

.stagger-fade-in > *:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger-fade-in > *:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger-fade-in > *:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger-fade-in > *:nth-child(4) {
  animation-delay: 0.2s;
}

.stagger-fade-in > *:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger-fade-in > *:nth-child(n + 6) {
  animation-delay: 0.3s;
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
