/* =========================================
   PRIMEBRIDGE — Animations
   Load order: app.css → live.css → modal.css → animation.css
========================================= */

/* =========================================
   Scroll Reveal
========================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal][data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal][data-reveal-delay="500"] { transition-delay: 0.5s; }

[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-40px);
}

[data-reveal="left"].visible {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="right"] {
    opacity: 0;
    transform: translateX(40px);
}

[data-reveal="right"].visible {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-reveal="scale"].visible {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   Keyframe Animations
========================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes ticker-reverse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   Animation Utility Classes
========================================= */

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.animate-blink {
    animation: blink 1s step-end infinite;
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* =========================================
   Transition Utilities
========================================= */

.transition-all {
    transition: all var(--transition-normal);
}

.transition-transform {
    transition: transform var(--transition-normal);
}

.transition-opacity {
    transition: opacity var(--transition-normal);
}

.hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   Reduced Motion
========================================= */

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

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================
   Keyframe references for index.blade.php
========================================= */

/*
   The index.blade.php uses inline animation properties
   referencing these keyframe names. All defined above:
   - ticker (30s linear infinite)
   - ticker-reverse (30s linear infinite)
   - float (6s / 8s / 10s ease-in-out infinite)
   - pulse-glow (4s ease-in-out infinite)
   - blink (1s step-end infinite)
   - slideDown (0.4s ease forwards)
*/
