/* ============================================
   ANIMATIONS — Keyframes & Transitions
   ============================================ */

/* ── Avatar Glow Pulse ── */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 18px var(--avatar-glow),
            inset 0 0 18px var(--avatar-glow);
        opacity: 1;
    }

    50% {
        box-shadow:
            0 0 28px var(--avatar-glow),
            inset 0 0 28px var(--avatar-glow);
        opacity: 0.85;
    }
}

/* ── Fade In Up (stagger children) ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Stagger delays for card children */
.card__avatar-section {
    animation-delay: 0s;
}

.card__identity {
    animation-delay: 0.1s;
}

.card__bio {
    animation-delay: 0.2s;
}

.card__actions .btn:nth-child(1) {
    animation-delay: 0.25s;
}

.card__actions .btn:nth-child(2) {
    animation-delay: 0.30s;
}

.card__actions .btn:nth-child(3) {
    animation-delay: 0.35s;
}

.card__actions .btn:nth-child(4) {
    animation-delay: 0.40s;
}

.card__actions .btn:nth-child(5) {
    animation-delay: 0.45s;
}

.card__actions .btn:nth-child(6) {
    animation-delay: 0.50s;
}

.card__actions .btn:nth-child(7) {
    animation-delay: 0.55s;
}

.card__qr-section {
    animation-delay: 0.65s;
}

.card__footer {
    animation-delay: 0.75s;
}

/* ── Scale In ── */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.5s var(--transition-spring) forwards;
    opacity: 0;
}

/* ── Shimmer Effect ── */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ── Loading State ── */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-glass) 25%,
            var(--bg-glass-hover) 50%,
            var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

/* ── Button Ripple Effect ── */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.15);
    animation: ripple 0.6s linear;
    pointer-events: none;
}