/* ============================================ */
/* DINAMYS 2.0 — Animation Keyframes & Utils    */
/* ============================================ */

/* ---------- Splash Animations ---------- */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes scroll-down {
    0% { top: -100%; }
    100% { top: 100%; }
}

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

/* ---------- Reveal Animations ---------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible,
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

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

/* ---------- Gradient Mesh Animation ---------- */
@keyframes mesh-shift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-bg-mesh {
    animation: mesh-shift 15s ease-in-out infinite;
}

/* ---------- Counter Flash ---------- */
@keyframes counter-flash {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ---------- Card Hover Glow ---------- */
@keyframes card-glow {
    0% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0); }
    100% { box-shadow: 0 0 30px 0 rgba(184, 134, 11, 0.08); }
}

/* ---------- Text Shimmer ---------- */
@keyframes text-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.headline-accent {
    background-size: 200% auto;
    animation: text-shimmer 4s ease-in-out infinite;
}

/* ---------- Float Animation ---------- */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tech-panel-visual .tech-visual-element {
    animation: float-gentle 6s ease-in-out infinite;
}

/* ---------- Neural Pulse ---------- */
@keyframes neural-pulse {
    0%, 100% { opacity: 0.7; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.3); }
}

/* ---------- Code Blink Cursor ---------- */
.code-block .code-line:last-child::after {
    content: '▋';
    animation: blink 1s step-end infinite;
    color: var(--blue-400);
    margin-left: 2px;
}

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

/* ---------- Button Ripple ---------- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* ---------- Skeleton Loading ---------- */
@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ---------- Testimonial Fade ---------- */
@keyframes testimonial-fade {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

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

    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
