/* ═══ DOSTARA — Animation Keyframes ═══ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes clipReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes borderTrace {
  0% { background-size: 0% 2px, 2px 0%, 0% 2px, 2px 0%; }
  25% { background-size: 100% 2px, 2px 0%, 0% 2px, 2px 0%; }
  50% { background-size: 100% 2px, 2px 100%, 0% 2px, 2px 0%; }
  75% { background-size: 100% 2px, 2px 100%, 100% 2px, 2px 0%; }
  100% { background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%; }
}
@keyframes letterReveal {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dashDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes auraPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -2%); }
  30% { transform: translate(1%, -1%); }
  50% { transform: translate(-1%, 2%); }
  70% { transform: translate(2%, 1%); }
  90% { transform: translate(-1%, -1%); }
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(212,168,67,0)); }
  50% { filter: drop-shadow(0 0 8px rgba(212,168,67,0.35)); }
}

/* ═══ Animation utility classes ═══ */
.anim-fade-up, .anim-fade-left, .anim-fade-right,
.anim-scale-in, .anim-clip-reveal {
  opacity: 0;
  will-change: transform, opacity;
}
.anim-fade-up { transform: translateY(50px); }
.anim-fade-left { transform: translateX(-60px); }
.anim-fade-right { transform: translateX(60px); }
.anim-scale-in { transform: scale(0.85); }
.anim-clip-reveal { clip-path: inset(0 100% 0 0); }

.anim-fade-up.is-visible { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-fade-left.is-visible { animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-fade-right.is-visible { animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-scale-in.is-visible { animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-clip-reveal.is-visible { animation: clipReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Stagger children */
.stagger-children.is-visible > *:nth-child(1) { animation-delay: 0s; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(6) { animation-delay: 0.5s; }
.stagger-children.is-visible > *:nth-child(7) { animation-delay: 0.6s; }
.stagger-children.is-visible > *:nth-child(8) { animation-delay: 0.7s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
