/* ═══════════════════════════════════════════════
   infonomic.id — animations.css
   Scroll-triggered reveal & extra motion effects
   ═══════════════════════════════════════════════ */

/* ── Scroll Reveal ── */
.contact-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Link item stagger on load ── */
.link-item {
  opacity: 0;
  transform: translateX(-12px);
  animation: slideInLeft 0.4s ease both;
}

.link-item:nth-child(1) { animation-delay: 0.6s; }
.link-item:nth-child(2) { animation-delay: 0.68s; }
.link-item:nth-child(4) { animation-delay: 0.76s; }
.link-item:nth-child(5) { animation-delay: 0.84s; }
.link-item:nth-child(6) { animation-delay: 0.92s; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Subtle shimmer on gold elements ── */
.ornament-diamond {
  position: relative;
  overflow: hidden;
}

.ornament-diamond::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%) rotate(45deg); }
  60%, 100% { transform: translateX(200%) rotate(45deg); }
}

/* ── Ticker hover underline on values ── */
.ticker span strong {
  position: relative;
}

/* ── Contact card cp-link ripple ── */
.cp-link {
  position: relative;
  overflow: hidden;
}

.cp-link::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.cp-link:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}