/* =====================================================
   CONNECTIFY CARDS - ANIMATIONS SYSTEM
   Fase 1: Fundamentos (Scroll reveals, hovers, transitions)
   ===================================================== */

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@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;
  }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */

/* Base reveal - Fade in from bottom */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal with scale */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 500ms; }

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

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

/* Card lift effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(51, 79, 180, 0.15);
}

/* Subtle hover lift */
.hover-lift-sm {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(51, 79, 180, 0.1);
}

/* Scale on hover */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Glow effect on hover */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(51, 79, 180, 0.4);
}

/* ===== BUTTON ANIMATIONS ===== */

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-shine:hover::before {
  left: 100%;
}

/* Button press effect */
.btn-press {
  transition: transform 0.1s ease;
}

.btn-press:active {
  transform: scale(0.95);
}

/* ===== ICON ANIMATIONS ===== */

/* Icon bounce on hover */
.icon-bounce:hover {
  animation: iconBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(-4px); }
  75% { transform: translateY(-6px); }
}

/* Icon rotate on hover */
.icon-rotate:hover {
  animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Icon pulse */
.icon-pulse {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ===== BADGE ANIMATIONS ===== */

/* Badge pulse for urgency */
.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(51, 79, 180, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(51, 79, 180, 0);
  }
}

/* Badge wiggle for attention */
.badge-wiggle {
  animation: badgeWiggle 3s ease-in-out infinite;
}

@keyframes badgeWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* ===== KEYFRAME UTILITIES ===== */

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide in left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Pulse */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Float effect */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== UTILITY CLASSES ===== */

/* Direct animation utilities */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

/* Delay utilities */
.delay-100 { transition-delay: 100ms !important; animation-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; animation-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; animation-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; animation-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; animation-delay: 500ms !important; }

/* Duration utilities */
.duration-fast { transition-duration: 0.3s !important; animation-duration: 0.3s !important; }
.duration-normal { transition-duration: 0.6s !important; animation-duration: 0.6s !important; }
.duration-slow { transition-duration: 1s !important; animation-duration: 1s !important; }

/* ===== LOADING STATE ===== */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(51, 79, 180, 0.3);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =====================================================
   FASE 2: SCROLL ANIMATIONS AVANZADAS
   ===================================================== */

/* ===== PARALLAX EFFECTS ===== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 0.05s linear;
}

.hero-fullscreen {
  position: relative;
  overflow: hidden;
}

.hero-fullscreen-image {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ===== PROGRESS INDICATORS ===== */
.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(51, 79, 180, 0.2);
  border: 2px solid rgba(51, 79, 180, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-dot.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(51, 79, 180, 0.2);
  transform: scale(1.2);
}

.progress-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--brand-500);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.progress-dot.active::after {
  width: 6px;
  height: 6px;
}

/* Progress bar connecting dots */
.progress-connector {
  position: absolute;
  height: 2px;
  background: rgba(51, 79, 180, 0.2);
  top: 50%;
  transform: translateY(-50%);
}

.progress-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--brand-500);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-connector.active::after {
  width: 100%;
}

/* ===== LINE DRAWING ANIMATIONS ===== */
.step-connector-line {
  position: absolute;
  stroke: rgba(51, 79, 180, 0.3);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-connector-line.active {
  stroke-dashoffset: 0;
  stroke: var(--brand-500);
}

/* Animated dots traveling along lines */
@keyframes travelLine {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

.line-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  position: absolute;
  animation: travelLine 3s ease-in-out infinite;
}

/* ===== VALUE PROPS ENHANCEMENTS ===== */
.value-card-enhanced {
  position: relative;
  overflow: hidden;
}

.value-card-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(51, 79, 180, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.value-card-enhanced:hover::before {
  opacity: 1;
  transform: translate(25%, 25%);
}

/* Animated border gradient */
.border-gradient-animated {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.border-gradient-animated::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    var(--brand-500),
    #6366f1,
    var(--brand-500)
  );
  background-size: 200% 200%;
  animation: gradientRotate 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-gradient-animated:hover::before {
  opacity: 1;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== SCROLL-TRIGGERED PROGRESS ===== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), #6366f1);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.1s linear;
}

/* Section progress indicator */
.section-progress {
  position: relative;
  padding-left: 40px;
}

.section-progress::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(51, 79, 180, 0.2);
}

.section-progress::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--brand-500);
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-progress.active::after {
  height: 100%;
}

/* ===== STAGGER ANIMATIONS ADVANCED ===== */
.stagger-fast > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-fast.active > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-fast.active > *:nth-child(2) { transition-delay: 50ms; opacity: 1; transform: translateY(0); }
.stagger-fast.active > *:nth-child(3) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-fast.active > *:nth-child(4) { transition-delay: 150ms; opacity: 1; transform: translateY(0); }
.stagger-fast.active > *:nth-child(5) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }

/* ===== NUMBER TICKER EFFECT ===== */
.ticker-number {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
}

.ticker-number span {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MORPHING SHAPES ===== */
@keyframes morphBlob {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

.blob-morph {
  animation: morphBlob 8s ease-in-out infinite;
}

/* ===== TYPEWRITER EFFECT ===== */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

.typewriter-text {
  overflow: hidden;
  border-right: 2px solid var(--brand-500);
  white-space: nowrap;
  animation: typewriter 3s steps(40) 1s forwards,
             blinkCursor 0.75s step-end infinite;
}

/* ===== IMAGE REVEAL EFFECTS ===== */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal img {
  transform: scale(1.2);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-reveal.active img {
  transform: scale(1);
}

.image-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neutral-900);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-reveal.active::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* ===== SCROLL SNAP SECTIONS ===== */
.scroll-snap-container {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

.scroll-snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* ===== 3D TILT EFFECTS ===== */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-3d:hover {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

/* ===== GLASSMORPHISM ENHANCED ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   FASE 3: MICRO-INTERACTIONS & ADVANCED EFFECTS
   ===================================================== */

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(51, 79, 180, 0.4);
  border-radius: 50%;
  animation: floatParticle var(--duration, 20s) linear infinite;
  opacity: 0;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(var(--drift, 50px)) scale(1);
    opacity: 0;
  }
}

.particle.glow {
  box-shadow: 0 0 10px rgba(51, 79, 180, 0.8);
  background: rgba(51, 79, 180, 0.8);
}

/* ===== ANIMATED GRADIENT BACKGROUNDS ===== */
.gradient-animated {
  background: linear-gradient(
    -45deg,
    rgba(51, 79, 180, 0.3),
    rgba(99, 102, 241, 0.3),
    rgba(51, 79, 180, 0.2),
    rgba(99, 102, 241, 0.2)
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Gradient mesh effect */
.gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 30%, rgba(51, 79, 180, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(51, 79, 180, 0.1) 0px, transparent 50%);
  animation: meshMove 20s ease infinite;
  pointer-events: none;
}

@keyframes meshMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-500);
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-block:hover .countdown-number {
  transform: scale(1.1);
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* Flip animation for countdown */
@keyframes flipNumber {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.countdown-number.flip {
  animation: flipNumber 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MAGNETIC BUTTONS ===== */
.btn-magnetic {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-magnetic:hover::before {
  opacity: 0.1;
  background: radial-gradient(circle at center, var(--brand-500), transparent);
}

/* Ripple effect on click */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== SVG PATH ANIMATIONS ===== */
.svg-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 2s ease-in-out forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

.svg-draw-delayed {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 2s ease-in-out 0.5s forwards;
}

/* Icon morphing */
.icon-morph {
  transition: d 0.3s ease;
}

/* ===== CURSOR TRAIL EFFECT ===== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-500);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot.active {
  opacity: 0.6;
}

.cursor-trail {
  width: 30px;
  height: 30px;
  border: 2px solid var(--brand-500);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.15s ease;
}

.cursor-trail.active {
  opacity: 0.3;
}

/* ===== CARD FLIP EFFECT ===== */
.flip-card {
  perspective: 1000px;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: inherit;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(51, 79, 180, 0.1) 0%,
    rgba(51, 79, 180, 0.2) 50%,
    rgba(51, 79, 180, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: 1em;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  min-width: 300px;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid var(--brand-500);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast.removing {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Progress bar in toast */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--brand-500);
  animation: toastProgress 5s linear;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* ===== CONFETTI EFFECT ===== */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--brand-500);
  position: absolute;
  animation: confettiFall 3s linear forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotateZ(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotateZ(720deg);
    opacity: 0;
  }
}

/* ===== NUMBER ROLLER ===== */
.number-roller {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
  vertical-align: bottom;
}

.number-roller-inner {
  display: inline-block;
  animation: rollNumber 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rollNumber {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== SPOTLIGHT EFFECT ===== */
.spotlight-container {
  position: relative;
  overflow: hidden;
}

.spotlight {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(51, 79, 180, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  z-index: 1;
}

.spotlight-container:hover .spotlight {
  opacity: 1;
}

/* ===== GLOW PULSE ===== */
.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(51, 79, 180, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(51, 79, 180, 0.8),
                0 0 30px rgba(51, 79, 180, 0.6);
  }
}
