/* ==========================================================================
   TINYA PYIPI ENGINEERING P/L - HYDRAULICS
   Animations Stylesheet - Keyframes, Scroll Reveals & Interactive Visual Effects
   ========================================================================== */

/* SCROLL REVEALS */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* GLOW & INDUSTRIAL HOVER EFFECTS */
.industrial-glow {
    position: relative;
}

.industrial-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary-green-light), var(--accent-red));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.industrial-glow:hover::after {
    opacity: 0.6;
}

/* ROTATING GEAR BACKGROUND DECORATION */
.gear-bg-decor {
    position: absolute;
    opacity: 0.03;
    pointer-events: none;
    animation: rotateGear 60s linear infinite;
}

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

/* SHIMMER EFFECT */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-badge {
    background: linear-gradient(90deg, rgba(220,38,38,0.2) 0%, rgba(220,38,38,0.5) 50%, rgba(220,38,38,0.2) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* FLOATING ACTION BUTTONS */
.floating-actions {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.floating-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 15px rgba(0,0,0,0.3);
    transition: all var(--transition-bounce);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-btn svg {
    width: 22px; height: 22px;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-whatsapp {
    background-color: #25d366;
    color: #0b1710;
}

.floating-call {
    background-color: var(--accent-red);
}

.floating-tooltip {
    position: absolute;
    right: 58px;
    background: var(--charcoal-card);
    border: 1px solid var(--charcoal-border);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
        gap: 0.6rem;
    }
    .floating-btn {
        width: 42px;
        height: 42px;
    }
    .floating-btn svg {
        width: 18px;
        height: 18px;
    }
    .floating-tooltip {
        display: none;
    }
}
