/* ============================================================
   ANIMATIONS — scroll reveal, orbs, counters
   ============================================================ */

.ambient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(225, 45, 55, 0.4), transparent 70%);
    top: -10%;
    left: -6%;
    animation-duration: 22s;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(200, 90, 50, 0.22), transparent 70%);
    bottom: 8%;
    right: -7%;
    animation-duration: 26s;
    animation-delay: -6s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 184, 109, 0.12), transparent 70%);
    top: 42%;
    left: 52%;
    animation-duration: 20s;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -24px) scale(1.06); }
    66% { transform: translate(-20px, 18px) scale(0.94); }
}

/* Scroll reveal — visible by default if JS never marks .visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal:not(.visible) {
    opacity: 0;
    pointer-events: none;
}

/* Phones: never trap content/buttons behind invisible reveal state */
@media (max-width: 768px) {
    html.js .reveal:not(.visible) {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero entrance */
.hero-animate {
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-animate-d1 { animation-delay: 0.12s; }
.hero-animate-d2 { animation-delay: 0.24s; }
.hero-animate-d3 { animation-delay: 0.36s; }

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

/* Shimmer line */
.shimmer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmerMove 4s linear infinite;
    margin: 0 auto;
    max-width: 200px;
}

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

/* Pulse badge */
.pulse-badge {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-animate,
    .orb,
    .shimmer-line,
    .pulse-badge {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
