/* ============================================
   PARICHAYA — ANIMATIONS
   animations.css
   ============================================ */

/* ── Splash Screen ── */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #0D1F3C 0%, #1B3A6B 55%, #C9913A 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#splash-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #FFFDF9;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.splash-tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  color: rgba(255,253,249,0.75);
  margin-top: 1rem;
  opacity: 0;
  letter-spacing: 0.04em;
  transition: opacity 1.0s ease;
}
.splash-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.5);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 20px rgba(232,184,125,0.5));
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.splash-line {
  width: 0;
  height: 2px;
  background: #C9913A;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  transition: width 1.0s ease;
}
.splash-line.active { width: 100px; }

.splash-icon {
  width: 70px; height: 70px;
  opacity: 0;
  margin-top: 2rem;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(0.6);
}

/* ── Floating Particles ── */
.splash-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(232,184,125,0.6);
  animation: floatUp 4s ease-in infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.fade-in-left  { transform: translateX(-40px); }
.animate-on-scroll.fade-in-right { transform: translateX(40px); }
.animate-on-scroll.visible { opacity: 1; transform: translate(0,0); }

/* ── Bounce Arrow ── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}
.scroll-indicator { animation: bounce 1.5s infinite; }

/* ── Card Hover ── */
.card-hover { transition: transform 0.3s, box-shadow 0.3s; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── Pulse ── */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
.pulse { animation: pulse 2.5s ease-in-out infinite; }

/* ── Fade In Up ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.7s ease forwards; }

/* ── Spin ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* ── Progress Bar Fill ── */
@keyframes fillBar {
  from { width: 0; }
}
.progress-bar-fill { animation: fillBar 1.5s ease forwards; }

/* ── Shimmer (placeholder) ── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, rgba(255,255,255,0.6) 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ── Stagger delays ── */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
