/* ===================================
   CREATIFY — Animations CSS
   =================================== */

/* Fade Up Animation */
.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Draw animations for chitas artboard shapes */
.animate-draw {
  animation: drawIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Cursor floating animation */
.animate-cursor {
  animation: cursorFloat 6s ease-in-out infinite;
}

@keyframes cursorFloat {
  0%   { top: 30%; left: 15%; }
  15%  { top: 18%; left: 40%; }
  30%  { top: 50%; left: 60%; }
  45%  { top: 72%; left: 30%; }
  60%  { top: 55%; left: 75%; }
  75%  { top: 25%; left: 65%; }
  100% { top: 30%; left: 15%; }
}

/* Scroll-triggered reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* Pulse glow for CTAs */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(255,79,0,0.3); }
  50% { box-shadow: 0 0 50px rgba(255,79,0,0.55); }
}
.btn-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Floating blob in background */
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}

/* Horizontal scroll marquee for tags (optional use) */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Tab content fade */
.level-content, .advice-content {
  animation: none;
}
.level-content.active, .advice-content.active {
  animation: contentFadeIn 0.35s ease both;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Rotating border for circular photo */
.circular-center::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%; 
  transform: translateX(-50%);
  width: calc(100% + 16px);
  max-width: 356px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255,79,0,0.3);
  animation: rotateDash 20s linear infinite;
}
@keyframes rotateDash {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* Number counter animation placeholder */
.stat-num {
  display: inline-block;
  animation: countUp 0.8s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes countUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Slide-in left for about section info-cards */
.info-card-1 { transition-delay: 0s; }
.info-card-2 { transition-delay: 0.1s; }
.info-card-3 { transition-delay: 0.2s; }
.info-card-4 { transition-delay: 0.1s; }
.info-card-5 { transition-delay: 0.2s; }
.info-card-6 { transition-delay: 0.3s; }

/* Header nav underline hover */
.main-nav a {
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.main-nav a:hover::after { width: 100%; }

/* Image lazy load fade */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}

/* Pricing card entrance */
.pricing-card {
  animation: none;
}
.pricing-card.visible {
  animation: cardEntrance 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll progress indicator */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--highlight));
  z-index: 2000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}
