/* ============================================
   Artharogyam - Animations
   ============================================ */

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes leaf-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  25% { transform: translateY(-20px) rotate(10deg); opacity: 0.35; }
  50% { transform: translateY(-35px) rotate(-5deg); opacity: 0.25; }
  75% { transform: translateY(-15px) rotate(8deg); opacity: 0.3; }
}

@keyframes mandala-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.08; }
  50% { transform: translateY(-50%) scale(1.05); opacity: 0.12; }
}

@keyframes hero-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(184, 115, 51, 0.2); }
  50% { box-shadow: 0 0 80px rgba(184, 115, 51, 0.4); }
}

/* Utility animation classes */
.animate-float { animation: float 3s ease-in-out infinite; }

.animate-pulse { animation: pulse-logo 2s ease-in-out infinite; }

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Hover animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(38, 93, 102, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover { transform: scale(1.05); }

/* Decorative mandala pattern */
.mandala-bg {
  position: relative;
}

.mandala-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(38, 93, 102, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Counter animation */
.stat-number.counting {
  transition: color 0.3s ease;
}

/* Scroll reveal fallback */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Icon spin on hover */
.icon-spin-hover:hover i {
  animation: rotate-slow 0.6s ease;
}

/* Button ripple effect */
.btn-brand,
.btn-outline-brand {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

/* Section divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* Parallax subtle */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 767.98px) {
  .parallax-bg { background-attachment: scroll; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

.hero-mandala-ring { animation: none; }
.floating-leaf { animation: none; opacity: 0.15; }
.cursor-glow { display: none; }
