/* Kalishan Capital — Animations CSS (Rules 5, 25, 28, 195) */

/* Scroll Reveal Classes (Init State) */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-in {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Reveal States (Triggered via GSAP or Scroll class fallback) */
.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger reveals */
.reveal-stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger-item.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Signature SVG Logo Path Flow Animation (Rule 32) */
@keyframes flow-path {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.signature-svg-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: flow-path 4s linear infinite;
}

/* Apple-style play button pulse hover */
.play-btn-pulse {
  position: relative;
  transition: transform var(--transition-fast);
}

.play-btn-pulse::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.play-btn-pulse:hover::before {
  opacity: 0.3;
  transform: scale(1.1);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Respect user's motion preference (Rule 5, 28, 89, 195) */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .reveal-fade-up, .reveal-fade-in, .reveal-stagger-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .signature-svg-path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}
