/* ═══════════════════════════════════════════════════════════════
   JOBSPHERE ANIMATIONS CSS - Mosey-inspired smooth interactions
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. SCROLL-TRIGGERED ANIMATIONS ── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

.animate-ready {
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered animation variants */
[data-animate="fade"] {
  opacity: 0;
  transform: none;
}

[data-animate="fade"].animate-in {
  opacity: 1;
}

[data-animate="slide-left"] {
  opacity: 0;
  transform: translateX(-30px);
}

[data-animate="slide-right"] {
  opacity: 0;
  transform: translateX(30px);
}

[data-animate="scale"] {
  opacity: 0;
  transform: scale(0.9);
}

/* ── 2. SPRING PHYSICS TRANSITIONS ── */
.spring-transition {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spring-slow {
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spring-fast {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 3. HOVER EFFECTS ── */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

/* ── 4. FLOATING ANIMATION ── */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.float-slow {
  animation: float 4s ease-in-out infinite;
}

/* ── 5. PULSE ANIMATION ── */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ── 6. SHIMMER EFFECT (Loading) ── */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ── 7. GRADIENT ANIMATION ── */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* ── 8. SLIDE IN ANIMATIONS ── */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-down {
  animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-left {
  animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-right {
  animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 9. SCALE ANIMATIONS ── */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 10. ROTATE ANIMATIONS ── */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 2s linear infinite;
}

/* ── 11. BOUNCE ANIMATION ── */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* ── 12. FADE ANIMATIONS ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.fade-out {
  animation: fadeOut 0.5s ease-out;
}

/* ── 13. PARALLAX CONTAINER ── */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-layer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ── 14. MAGNETIC EFFECT ── */
.magnetic {
  transition: transform 0.2s ease-out;
  cursor: pointer;
}

/* ── 15. SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}

/* ── 16. PERFORMANCE OPTIMIZATIONS ── */
.will-animate {
  will-change: transform, opacity;
}

.gpu-accelerate {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ── 17. STAGGER DELAYS (for multiple elements) ── */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ── 18. LOADING STATES ── */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ── 19. BUTTON PRESS EFFECT ── */
.btn-press {
  transition: all 0.1s ease;
}

.btn-press:active {
  transform: scale(0.95);
}

/* ── 20. GLOW EFFECT ── */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
  }
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

/* ── 21. RESPONSIVE ANIMATIONS ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 22. CUSTOM EASING FUNCTIONS ── */
.ease-spring {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ease-smooth {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-bounce {
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
