/* ==========================================================================
   TPR GROUP — ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Fade-in & Slide Up on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Pulse Animation for Status Badges */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Subtle Shimmer for Flagship Cards */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Float Animation for Floating Badges */
@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.flagship-badge-floating {
    animation: floatBadge 4s ease-in-out infinite;
}

/* Ambient Background Glow Movement */
@keyframes ambientDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 20px) scale(1.1);
    }
}

.hero-ambient-glow {
    animation: ambientDrift 12s ease-in-out infinite alternate;
}

/* Scroll Down Indicator Bounce */
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

.scroll-down-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-fast);
}

.scroll-down-indicator i {
    animation: bounceDown 2s infinite;
    color: var(--color-primary);
    font-size: 1rem;
}

.scroll-down-indicator:hover {
    color: var(--color-primary);
}

/* Glass Card Shimmer Light Effect on Hover */
@keyframes glassShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

.glass-panel::after, .sector-card::after, .presence-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 55%
    );
    transform: translateX(-100%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.8s ease;
}

.glass-panel:hover::after, .sector-card:hover::after, .presence-card:hover::after {
    transform: translateX(100%) rotate(45deg);
}

/* Corridor Map Node Ripple */
@keyframes nodePulseRipple {
    0% {
        r: 16px;
        opacity: 0.8;
    }
    100% {
        r: 40px;
        opacity: 0;
    }
}

.node-ripple {
    animation: nodePulseRipple 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Executive Leadership Photo Golden Shine Effect */
@keyframes leaderGoldShine {
    0% {
        box-shadow: 0 0 0 3px var(--color-primary-glow), 0 0 20px rgba(217, 119, 6, 0.25), 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.4), 0 0 35px rgba(217, 119, 6, 0.5), 0 15px 35px rgba(217, 119, 6, 0.2);
    }
    100% {
        box-shadow: 0 0 0 3px var(--color-primary-glow), 0 0 20px rgba(217, 119, 6, 0.25), 0 10px 25px rgba(0, 0, 0, 0.1);
    }
}

@keyframes goldSweep {
    0% {
        transform: translateX(-150%) rotate(30deg);
    }
    40%, 100% {
        transform: translateX(150%) rotate(30deg);
    }
}
