/* ================================================================
   ARTEMIS GALLERY — Animations & Keyframes
   ================================================================ */

/* ---- Scroll Line (Hero) ---- */
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---- Map Pulse ---- */
@keyframes mapPulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50%       { transform: scale(1.3); opacity: 0.05; }
}
.map-pulse { animation: mapPulse 2.4s ease-in-out infinite; }

/* ---- Preloader logo shimmer ---- */
@keyframes logoShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.preloader__logo {
  background: linear-gradient(90deg, var(--accent-dim) 20%, #fff8dc 50%, var(--accent-dim) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShimmer 2s linear infinite;
}

/* ---- Glow Pulse (card border) ---- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(212,175,55,0.2); }
  50%       { box-shadow: 0 0 35px rgba(212,175,55,0.5); }
}
.gallery-card:hover { animation: glowPulse 2s ease-in-out infinite; }

/* ---- Timeline dot ping ---- */
@keyframes dotPing {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}
.timeline__item.visible .timeline__dot { animation: dotPing 1.6s ease-out 0.5s; }

/* ---- Nav link hover shimmer ---- */
@keyframes navShimmer {
  from { background-position: -100% 0; }
  to   { background-position:  100% 0; }
}

/* ---- Floating (hero subtitle subtle bob) ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---- Spin (share icon) ---- */
@keyframes spinIn {
  from { transform: rotate(-180deg) scale(0); opacity: 0; }
  to   { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* ---- Wave clip-path morph (section dividers) ---- */
@keyframes waveTop {
  0%, 100% { clip-path: polygon(0 0, 100% 0, 100% 85%, 60% 100%, 30% 90%, 0 100%); }
  50%       { clip-path: polygon(0 0, 100% 0, 100% 90%, 70% 82%, 40% 100%, 0 88%); }
}

/* ---- Section wave dividers ---- */
.gallery-section::after,
.timeline-section::after,
.tour-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 60%, 15% 40%, 30% 60%, 50% 30%, 65% 55%, 80% 35%, 100% 55%, 100% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

.gallery-section::after  { background: var(--bg); }
.timeline-section::after { background: var(--bg-3); }
.tour-section::after     { background: var(--bg-2); }

/* ---- Stagger helper classes ---- */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.10s !important; }
.stagger-3 { transition-delay: 0.15s !important; }
.stagger-4 { transition-delay: 0.20s !important; }
.stagger-5 { transition-delay: 0.25s !important; }
.stagger-6 { transition-delay: 0.30s !important; }

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__scroll-line { animation: none; }
  .map-pulse         { animation: none; }
  .preloader__logo   { animation: none; -webkit-text-fill-color: var(--accent); }
}
