/* =============================================
   ANIMATIONS — via the BigSchool
============================================= */

/* ===== AOS-style scroll reveals ===== */
[data-aos] { opacity: 0; transition-property: opacity, transform; transition-duration: 0.7s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
[data-aos].aos-animate { opacity: 1; transform: none !important; }
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-out"] { transform: scale(1.1); }

/* ===== SHIMMER SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== GLOW PULSE ===== */
.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,184,0,0.2); }
  50% { box-shadow: 0 0 40px rgba(255,184,0,0.5), 0 0 80px rgba(255,184,0,0.2); }
}

/* ===== GRADIENT TEXT ANIMATION ===== */
.text-gradient-animated {
  background: linear-gradient(135deg, #FFB800, #FF6B35, #8B5CF6, #FFB800);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ===== COUNTER ANIMATION ===== */
.counter-animated { transition: all 0.1s ease; }

/* ===== HOVER LIFT ===== */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* ===== PAGE TRANSITION ===== */
.page-transition-enter { opacity: 0; transform: translateY(20px); }
.page-transition-enter-active { opacity: 1; transform: translateY(0); transition: opacity 0.5s, transform 0.5s; }

/* ===== BUTTON RIPPLE ===== */
.btn { overflow: hidden; }
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-effect { to { transform: scale(4); opacity: 0; } }

/* ===== TYPED TEXT CURSOR ===== */
.typed-cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--gold); margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999; transition: width 0.1s linear;
}

/* ===== TOAST NOTIFICATIONS ===== */
.vbs-toast-container { position: fixed; bottom: 80px; right: 24px; z-index: 9998; display: flex; flex-direction: column; gap: 8px; }
.vbs-toast {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 360px;
  animation: toast-in 0.3s ease;
  box-shadow: var(--shadow-card);
}
.vbs-toast.success { border-color: rgba(34,197,94,0.4); }
.vbs-toast.error { border-color: rgba(239,68,68,0.4); }
.vbs-toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.vbs-toast-msg { font-size: 0.875rem; color: var(--text-primary); flex: 1; }
.vbs-toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 2px; }
.vbs-toast.removing { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ===== PARTICLES ===== */
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute; width: 3px; height: 3px;
  background: var(--gold); border-radius: 50%; opacity: 0;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}
