/* ============================================
   SMAN 5 Bulungan - Library Management System
   Animations & Transitions (Extended)
   ============================================ */

/* ============================================
   1. Keyframe Definitions - Core
   ============================================ */

/* Fade In Up */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Down */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In (simple) */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Float (looping) */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Pulse (looping) */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Shimmer - loading placeholder */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Count Up */
@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient Shift (looping) */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Spin */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Scale In */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce subtle */
@keyframes bounceSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-6px);
  }
  75% {
    transform: translateY(3px);
  }
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   2. Keyframe Definitions - NEW
   ============================================ */

/* Typewriter text effect */
@keyframes typewriter {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes typewriterCursor {
  0%, 100% {
    border-right-color: transparent;
  }
  50% {
    border-right-color: currentColor;
  }
}

/* Glowing border pulse */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(26, 115, 232, 0.3), 0 0 10px rgba(26, 115, 232, 0.1);
  }
  50% {
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.5), 0 0 30px rgba(26, 115, 232, 0.2);
  }
  100% {
    box-shadow: 0 0 5px rgba(26, 115, 232, 0.3), 0 0 10px rgba(26, 115, 232, 0.1);
  }
}

/* Organic blob shape morphing */
@keyframes morphBlob {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 50% 70% 60%;
  }
  75% {
    border-radius: 60% 30% 60% 40% / 70% 40% 50% 30%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Slide in with blur-to-sharp */
@keyframes slideInBlur {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 3D flip entrance X */
@keyframes flipInX {
  0% {
    opacity: 0;
    transform: perspective(600px) rotateX(90deg);
  }
  40% {
    transform: perspective(600px) rotateX(-15deg);
  }
  70% {
    transform: perspective(600px) rotateX(10deg);
  }
  100% {
    opacity: 1;
    transform: perspective(600px) rotateX(0deg);
  }
}

/* 3D flip entrance Y */
@keyframes flipInY {
  0% {
    opacity: 0;
    transform: perspective(600px) rotateY(90deg);
  }
  40% {
    transform: perspective(600px) rotateY(-15deg);
  }
  70% {
    transform: perspective(600px) rotateY(10deg);
  }
  100% {
    opacity: 1;
    transform: perspective(600px) rotateY(0deg);
  }
}

/* Elastic bounce scale */
@keyframes elasticScale {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  55% {
    opacity: 1;
    transform: scale(1.08);
  }
  70% {
    transform: scale(0.96);
  }
  85% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animated gradient text color */
@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated dashed border rotation */
@keyframes borderDance {
  0% {
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  }
  100% {
    background-position: 100% 0, 100% 100%, 0 100%, 0 0;
  }
}

/* Random floating particle movement */
@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translate(15px, -20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translate(-10px, -35px) rotate(180deg);
    opacity: 0.7;
  }
  75% {
    transform: translate(20px, -15px) rotate(270deg);
    opacity: 0.9;
  }
}

@keyframes particleFloat2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translate(-20px, -25px) scale(1.2);
    opacity: 0.8;
  }
  66% {
    transform: translate(10px, -40px) scale(0.8);
    opacity: 1;
  }
}

@keyframes particleFloat3 {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  20% {
    transform: translate(25px, -10px);
    opacity: 0.9;
  }
  40% {
    transform: translate(-5px, -30px);
    opacity: 0.6;
  }
  60% {
    transform: translate(-20px, -20px);
    opacity: 1;
  }
  80% {
    transform: translate(10px, -5px);
    opacity: 0.5;
  }
}

/* 3D tilt/perspective animation */
@keyframes tilt3D {
  0% {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: perspective(800px) rotateY(3deg) rotateX(-2deg);
  }
  50% {
    transform: perspective(800px) rotateY(-2deg) rotateX(3deg);
  }
  75% {
    transform: perspective(800px) rotateY(2deg) rotateX(-1deg);
  }
  100% {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
  }
}

/* Confetti falling animation */
@keyframes confetti {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg) scale(0.3);
  }
}

/* Metallic shine sweep effect */
@keyframes medalShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Circular progress animation (back-to-top ring) */
@keyframes progressRing {
  0% {
    stroke-dashoffset: 283;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Organic wave movement for SVG */
@keyframes waveMotion {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Text clip reveal animation */
@keyframes textReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Card appear with bounce */
@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.01);
  }
  80% {
    transform: translateY(3px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Number rolling/spinning (odometer) */
@keyframes odometer {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Smooth lift with shadow */
@keyframes hoverLift {
  0% {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }
  100% {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
}

/* Expanding ripple from click point */
@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 0.4;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Enhanced skeleton loading shimmer */
@keyframes skeletonShimmer {
  0% {
    background-position: -300% 0;
  }
  100% {
    background-position: 300% 0;
  }
}

/* ============================================
   3. Animation Utility Classes - Core
   ============================================ */

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.5s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   4. Animation Utility Classes - NEW
   ============================================ */

/* Typewriter effect */
.animate-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid currentColor;
  width: 0;
  animation:
    typewriter 2.5s steps(40, end) forwards,
    typewriterCursor 0.75s step-end infinite;
}

/* Glowing pulse border */
.animate-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Morphing blob */
.animate-blob {
  animation: morphBlob 8s ease-in-out infinite;
  will-change: border-radius;
}

/* Elastic scale entrance */
.animate-elastic {
  animation: elasticScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Animated gradient text */
.animate-text-gradient {
  background: linear-gradient(90deg, #1a73e8, #ea4335, #fbbc04, #34a853, #1a73e8);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 4s ease infinite;
}

/* 3D tilt on hover (perspective) */
.animate-tilt-3d {
  perspective: 800px;
  transform-style: preserve-3d;
  animation: tilt3D 6s ease-in-out infinite;
}

/* Confetti burst */
.animate-confetti {
  position: relative;
  overflow: hidden;
}

.animate-confetti::before,
.animate-confetti::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  top: 0;
  left: 50%;
  animation: confetti 2s ease-in forwards;
  pointer-events: none;
}

.animate-confetti::before {
  background: #ea4335;
  animation-delay: 0s;
}

.animate-confetti::after {
  background: #fbbc04;
  animation-delay: 0.15s;
  left: 40%;
}

/* Metallic shine sweep */
.animate-medal-shine {
  position: relative;
  overflow: hidden;
}

.animate-medal-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    transparent 60%
  );
  background-size: 300% 100%;
  animation: medalShine 3s ease-in-out infinite;
  pointer-events: none;
}

/* Text clip reveal */
.animate-reveal {
  animation: textReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Card entrance with bounce */
.card-entrance {
  animation: cardEntrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   5. Animation Delays
   ============================================ */

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }
.delay-900 { animation-delay: 900ms; }
.delay-1000 { animation-delay: 1000ms; }

/* ============================================
   6. Scroll-triggered Animations
   ============================================ */

/* Initial hidden state for JS-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   7. AOS (Animate On Scroll) Custom Overrides
   ============================================ */

/* Smoother default timing */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* Custom AOS durations */
[data-aos][data-aos-duration="400"] {
  transition-duration: 400ms;
}

[data-aos][data-aos-duration="600"] {
  transition-duration: 600ms;
}

[data-aos][data-aos-duration="800"] {
  transition-duration: 800ms;
}

[data-aos][data-aos-duration="1000"] {
  transition-duration: 1000ms;
}

/* Custom AOS animations */
[data-aos="fade-up-sm"] {
  transform: translateY(15px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="fade-up-sm"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

[data-aos="zoom-in-sm"] {
  transform: scale(0.95);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="zoom-in-sm"].aos-animate {
  transform: scale(1);
  opacity: 1;
}

[data-aos="slide-up"] {
  transform: translateY(40px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="slide-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

/* NEW: Tilt-in AOS animation */
[data-aos="tilt-in"] {
  opacity: 0;
  transform: perspective(800px) rotateY(15deg) translateX(-30px);
  transition-property: transform, opacity;
}

[data-aos="tilt-in"].aos-animate {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) translateX(0);
}

/* NEW: Blur-in AOS animation */
[data-aos="blur-in"] {
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.95);
  transition-property: transform, opacity, filter;
}

[data-aos="blur-in"].aos-animate {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* NEW: Flip-in AOS animation */
[data-aos="flip-in"] {
  opacity: 0;
  transform: perspective(600px) rotateX(60deg);
  transition-property: transform, opacity;
}

[data-aos="flip-in"].aos-animate {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg);
}

/* NEW: Elastic-in AOS animation */
[data-aos="elastic-in"] {
  opacity: 0;
  transform: scale(0.5);
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[data-aos="elastic-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   8. Hover Utility Classes - Core
   ============================================ */

/* Card Hover - lift with shadow */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* Button Animated - scale effect */
.btn-animated {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.btn-animated:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-animated:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Link Underline - animated underline effect */
.link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Image Zoom on hover */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* Icon rotate on hover */
.icon-rotate {
  transition: transform 0.3s ease;
  display: inline-block;
}

.icon-rotate:hover {
  transform: rotate(15deg);
}

/* Glow effect on hover */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(26, 115, 232, 0.3);
}

/* ============================================
   9. Hover Utility Classes - NEW
   ============================================ */

/* Hover lift - more subtle than card-hover */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Hover shine - metallic sweep on hover */
.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 55%,
    transparent 60%
  );
  background-size: 300% 100%;
  background-position: -200% center;
  transition: none;
  pointer-events: none;
}

.hover-shine:hover::after {
  animation: medalShine 0.8s ease forwards;
}

/* Hover border gradient */
.hover-border-gradient {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: border-color 0.3s ease;
}

.hover-border-gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #1a73e8, #ea4335, #fbbc04, #34a853);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-border-gradient:hover::before {
  opacity: 1;
  animation: gradientShift 3s ease infinite;
}

/* Hover scale subtle */
.hover-scale-subtle {
  transition: transform 0.2s ease;
}

.hover-scale-subtle:hover {
  transform: scale(1.02);
}

/* ============================================
   10. Click Ripple Effect (CSS only)
   ============================================ */

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple-effect:active::after {
  animation: rippleExpand 0.6s ease-out;
}

/* ============================================
   11. Skeleton Loading Placeholders
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    #e8eaed 25%,
    #f1f3f4 37%,
    #e8eaed 63%
  );
  background-size: 600% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-text {
  background: linear-gradient(
    90deg,
    #e8eaed 25%,
    #f1f3f4 37%,
    #e8eaed 63%
  );
  background-size: 600% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-circle {
  background: linear-gradient(
    90deg,
    #e8eaed 25%,
    #f1f3f4 37%,
    #e8eaed 63%
  );
  background-size: 600% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.skeleton-rect {
  background: linear-gradient(
    90deg,
    #e8eaed 25%,
    #f1f3f4 37%,
    #e8eaed 63%
  );
  background-size: 600% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  border-radius: 8px;
  width: 100%;
  height: 120px;
}

/* ============================================
   12. Page Transitions
   ============================================ */

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader .loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8eaed;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Content fade in on page load */
.page-content {
  animation: fadeIn 0.5s ease;
}

/* ============================================
   13. Staggered Animations (extended to 20)
   ============================================ */

.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1)  { animation-delay: 0ms; }
.stagger-children > *:nth-child(2)  { animation-delay: 80ms; }
.stagger-children > *:nth-child(3)  { animation-delay: 160ms; }
.stagger-children > *:nth-child(4)  { animation-delay: 240ms; }
.stagger-children > *:nth-child(5)  { animation-delay: 320ms; }
.stagger-children > *:nth-child(6)  { animation-delay: 400ms; }
.stagger-children > *:nth-child(7)  { animation-delay: 480ms; }
.stagger-children > *:nth-child(8)  { animation-delay: 560ms; }
.stagger-children > *:nth-child(9)  { animation-delay: 640ms; }
.stagger-children > *:nth-child(10) { animation-delay: 720ms; }
.stagger-children > *:nth-child(11) { animation-delay: 800ms; }
.stagger-children > *:nth-child(12) { animation-delay: 880ms; }
.stagger-children > *:nth-child(13) { animation-delay: 960ms; }
.stagger-children > *:nth-child(14) { animation-delay: 1040ms; }
.stagger-children > *:nth-child(15) { animation-delay: 1120ms; }
.stagger-children > *:nth-child(16) { animation-delay: 1200ms; }
.stagger-children > *:nth-child(17) { animation-delay: 1280ms; }
.stagger-children > *:nth-child(18) { animation-delay: 1360ms; }
.stagger-children > *:nth-child(19) { animation-delay: 1440ms; }
.stagger-children > *:nth-child(20) { animation-delay: 1520ms; }

/* ============================================
   14. Reduced Motion (Accessibility)
   ============================================ */

@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;
  }

  .animate-float,
  .animate-pulse,
  .animate-gradient,
  .animate-spin,
  .animate-blob,
  .animate-glow,
  .animate-tilt-3d,
  .animate-medal-shine,
  .animate-confetti,
  .animate-text-gradient {
    animation: none !important;
  }

  .animate-typewriter {
    width: 100% !important;
    border-right: none !important;
    animation: none !important;
  }

  .card-hover:hover {
    transform: none;
  }

  .btn-animated:hover,
  .btn-animated:active {
    transform: none;
  }

  .hover-lift:hover {
    transform: none;
  }

  .hover-scale-subtle:hover {
    transform: none;
  }

  .hover-shine:hover::after {
    animation: none;
  }

  .link-underline::after {
    width: 100%;
    transition: none;
  }

  .img-zoom:hover img {
    transform: none;
  }

  .ripple-effect:active::after {
    animation: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stagger-children > * {
    opacity: 1;
    animation: none;
  }

  .page-loader .loader-spinner {
    animation: none;
    border-top-color: #1a73e8;
  }

  .skeleton,
  .skeleton-text,
  .skeleton-circle,
  .skeleton-rect {
    animation: none;
    background: #e8eaed;
  }

  .card-entrance {
    animation: none;
    opacity: 1;
  }

  .animate-elastic {
    animation: none;
    opacity: 1;
  }

  .animate-reveal {
    animation: none;
    opacity: 1;
    clip-path: none;
  }
}
