/* Omirana - Animation Styles */

/* ===== KEYFRAME ANIMATIONS ===== */

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

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

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

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

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

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

@keyframes om-slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes om-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

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

@keyframes om-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

.om-animate-fade-in {
  animation: om-fadeIn 1s ease-in-out;
}

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

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

.om-animate-fade-in-left {
  animation: om-fadeInLeft 0.8s ease-out;
}

.om-animate-fade-in-right {
  animation: om-fadeInRight 0.8s ease-out;
}

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

.om-animate-bounce {
  animation: om-bounce 2s infinite;
}

.om-animate-pulse {
  animation: om-pulse 2s infinite;
}

/* ===== ANIMATION DELAYS ===== */

.om-delay-1 { animation-delay: 0.1s; }
.om-delay-2 { animation-delay: 0.2s; }
.om-delay-3 { animation-delay: 0.3s; }
.om-delay-4 { animation-delay: 0.4s; }
.om-delay-5 { animation-delay: 0.5s; }
.om-delay-6 { animation-delay: 0.6s; }

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

.om-scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.om-scroll-reveal.om-revealed {
  opacity: 1;
  transform: translateY(0);
}

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

.om-scroll-reveal-left.om-revealed {
  opacity: 1;
  transform: translateX(0);
}

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

.om-scroll-reveal-right.om-revealed {
  opacity: 1;
  transform: translateX(0);
}

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

.om-scroll-reveal-scale.om-revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===== HOVER ANIMATIONS ===== */

.om-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.om-hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.om-hover-grow {
  transition: transform 0.3s ease;
}

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

.om-hover-shrink {
  transition: transform 0.3s ease;
}

.om-hover-shrink:hover {
  transform: scale(0.95);
}

/* ===== LOADING ANIMATIONS ===== */

.om-loading-spinner {
  border: 3px solid rgba(47, 93, 255, 0.1);
  border-top-color: #2F5DFF;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: om-rotate 0.8s linear infinite;
}

.om-loading-dots::after {
  content: '';
  animation: om-dots 1.5s infinite;
}

@keyframes om-dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ===== PARALLAX EFFECT ===== */

.om-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ===== GRADIENT ANIMATION ===== */

.om-gradient-animate {
  background: linear-gradient(45deg, #2F5DFF, #1F1F1F, #2F5DFF);
  background-size: 200% 200%;
  animation: om-gradient-shift 3s ease infinite;
}

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

/* ===== TEXT ANIMATIONS ===== */

.om-text-focus-in {
  animation: om-text-focus 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

@keyframes om-text-focus {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}

.om-typing-effect {
  overflow: hidden;
  border-right: 2px solid #2F5DFF;
  white-space: nowrap;
  animation: om-typing 3.5s steps(40, end), om-blink-caret 0.75s step-end infinite;
}

@keyframes om-typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes om-blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #2F5DFF; }
}

/* ===== RIPPLE EFFECT ===== */

.om-ripple {
  position: relative;
  overflow: hidden;
}

.om-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.om-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ===== COUNTER ANIMATION ===== */

.om-counter {
  display: inline-block;
}

/* ===== WAVE DIVIDER ANIMATION ===== */

.om-wave-divider {
  position: relative;
  overflow: hidden;
}

.om-wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.om-wave-animate {
  animation: om-wave 10s linear infinite;
}

@keyframes om-wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== IMAGE REVEAL ANIMATION ===== */

.om-image-reveal {
  position: relative;
  overflow: hidden;
}

.om-image-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: om-shimmer 2s infinite;
}

/* ===== STAGGER ANIMATIONS ===== */

.om-stagger-item {
  opacity: 0;
  animation: om-fadeInUp 0.6s ease forwards;
}

.om-stagger-item:nth-child(1) { animation-delay: 0.1s; }
.om-stagger-item:nth-child(2) { animation-delay: 0.2s; }
.om-stagger-item:nth-child(3) { animation-delay: 0.3s; }
.om-stagger-item:nth-child(4) { animation-delay: 0.4s; }
.om-stagger-item:nth-child(5) { animation-delay: 0.5s; }
.om-stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ===== FLOATING ANIMATION ===== */

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

@keyframes om-floating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== SLIDE IN ANIMATIONS ===== */

.om-slide-in-bottom {
  animation: om-slideInBottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes om-slideInBottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.om-slide-in-top {
  animation: om-slideInTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes om-slideInTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== ICON SPIN ===== */

.om-icon-spin {
  animation: om-rotate 2s linear infinite;
}

.om-icon-spin-hover:hover {
  animation: om-rotate 0.6s linear;
}
