/* Fresivo - Animations & Interactive Effects Stylesheet */

/* ===== FADE IN ANIMATIONS ===== */
@keyframes fr-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fr-fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fr-fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fr-fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fr-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== SCALE ANIMATIONS ===== */
@keyframes fr-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fr-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== ROTATION ANIMATIONS ===== */
@keyframes fr-rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== GLOW ANIMATIONS ===== */
@keyframes fr-glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.6);
  }
}

@keyframes fr-neonGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.8), 0 0 30px rgba(34, 211, 238, 0.6);
  }
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes fr-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fr-floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== SLIDE ANIMATIONS ===== */
@keyframes fr-slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fr-slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== SHIMMER EFFECT ===== */
@keyframes fr-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.fr-shimmer-effect {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: fr-shimmer 3s infinite;
}

/* ===== GRADIENT ANIMATION ===== */
@keyframes fr-gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.fr-animated-gradient {
  background: linear-gradient(
    270deg,
    #6366f1,
    #8b5cf6,
    #22d3ee,
    #6366f1
  );
  background-size: 300% 300%;
  animation: fr-gradientShift 8s ease infinite;
}

/* ===== PARTICLE EFFECTS ===== */
@keyframes fr-particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-200px) translateX(-30px);
    opacity: 1;
  }
  75% {
    transform: translateY(-300px) translateX(70px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-400px) translateX(0);
    opacity: 0;
  }
}

.fr-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--fr-accent-neon);
  border-radius: 50%;
  animation: fr-particleFloat 10s infinite;
  pointer-events: none;
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.fr-scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fr-scroll-animate.fr-in-view {
  opacity: 1;
  transform: translateY(0);
}

.fr-scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fr-scroll-animate-left.fr-in-view {
  opacity: 1;
  transform: translateX(0);
}

.fr-scroll-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fr-scroll-animate-right.fr-in-view {
  opacity: 1;
  transform: translateX(0);
}

.fr-scroll-animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fr-scroll-animate-scale.fr-in-view {
  opacity: 1;
  transform: scale(1);
}

/* ===== STAGGER ANIMATIONS ===== */
.fr-stagger-animation > *:nth-child(1) {
  animation-delay: 0.1s;
}

.fr-stagger-animation > *:nth-child(2) {
  animation-delay: 0.2s;
}

.fr-stagger-animation > *:nth-child(3) {
  animation-delay: 0.3s;
}

.fr-stagger-animation > *:nth-child(4) {
  animation-delay: 0.4s;
}

.fr-stagger-animation > *:nth-child(5) {
  animation-delay: 0.5s;
}

.fr-stagger-animation > *:nth-child(6) {
  animation-delay: 0.6s;
}

/* ===== HOVER EFFECTS ===== */
.fr-hover-lift {
  transition: transform var(--fr-transition-medium);
}

.fr-hover-lift:hover {
  transform: translateY(-10px);
}

.fr-hover-grow {
  transition: transform var(--fr-transition-medium);
}

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

.fr-hover-glow {
  transition: box-shadow var(--fr-transition-medium);
}

.fr-hover-glow:hover {
  box-shadow: 0 0 30px var(--fr-accent-neon-glow);
}

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

.fr-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--fr-accent-neon);
  border-radius: 50%;
  animation: fr-spin 1s linear infinite;
}

@keyframes fr-pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.fr-pulse-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--fr-accent-neon);
  animation: fr-pulse-ring 2s infinite;
}

/* ===== TEXT ANIMATIONS ===== */
@keyframes fr-typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.fr-typewriter-effect {
  overflow: hidden;
  white-space: nowrap;
  animation: fr-typewriter 3s steps(40) infinite;
}

@keyframes fr-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.fr-blinking-cursor {
  animation: fr-blink 1s infinite;
}

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

.fr-flip-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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

.fr-flip-card-front,
.fr-flip-card-back {
  backface-visibility: hidden;
}

.fr-flip-card-back {
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ===== PROGRESS BAR ANIMATIONS ===== */
@keyframes fr-progressFill {
  from {
    width: 0;
  }
}

.fr-progress-animated {
  animation: fr-progressFill 1.5s ease-out;
}

/* ===== BOUNCE ANIMATIONS ===== */
@keyframes fr-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.fr-bounce-effect {
  animation: fr-bounce 2s infinite;
}

/* ===== SHAKE ANIMATION ===== */
@keyframes fr-shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.fr-shake-effect {
  animation: fr-shake 0.5s;
}

/* ===== WAVE ANIMATION ===== */
@keyframes fr-wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.fr-wave-animation {
  animation: fr-wave 2s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

/* ===== UTILITY ANIMATION CLASSES ===== */
.fr-animate-fadeIn {
  animation: fr-fadeIn 0.8s ease;
}

.fr-animate-fadeInUp {
  animation: fr-fadeInUp 0.8s ease;
}

.fr-animate-fadeInDown {
  animation: fr-fadeInDown 0.8s ease;
}

.fr-animate-fadeInLeft {
  animation: fr-fadeInLeft 0.8s ease;
}

.fr-animate-fadeInRight {
  animation: fr-fadeInRight 0.8s ease;
}

.fr-animate-scaleIn {
  animation: fr-scaleIn 0.8s ease;
}

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

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

.fr-animate-glow {
  animation: fr-glowPulse 2s ease-in-out infinite;
}

/* ===== DELAY UTILITIES ===== */
.fr-delay-100 {
  animation-delay: 0.1s;
}

.fr-delay-200 {
  animation-delay: 0.2s;
}

.fr-delay-300 {
  animation-delay: 0.3s;
}

.fr-delay-400 {
  animation-delay: 0.4s;
}

.fr-delay-500 {
  animation-delay: 0.5s;
}

/* ===== SMOOTH TRANSITIONS ===== */
.fr-transition-all {
  transition: all var(--fr-transition-medium);
}

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

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

/* ===== PARALLAX EFFECT ===== */
.fr-parallax-layer {
  transition: transform 0.1s ease-out;
}

/* ===== REVEAL ANIMATIONS ===== */
@keyframes fr-revealLeft {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes fr-revealRight {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.fr-reveal-left {
  animation: fr-revealLeft 1s ease;
}

.fr-reveal-right {
  animation: fr-revealRight 1s ease;
}
