/**
 * Ox-Ram Tacho - Global Animation Styles
 */

/* ========================================
   1. FADE-IN ANIMATIONS
   ======================================== */
.oxram-card,
.fcard,
.category-section,
.stats-section,
.features-count,
.oxram-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.oxram-card.visible,
.fcard.visible,
.category-section.visible,
.stats-section.visible,
.features-count.visible,
.oxram-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.oxram-card:nth-child(1) { transition-delay: 0.1s; }
.oxram-card:nth-child(2) { transition-delay: 0.2s; }
.oxram-card:nth-child(3) { transition-delay: 0.3s; }
.oxram-card:nth-child(4) { transition-delay: 0.4s; }

.fcard:nth-child(1) { transition-delay: 0.1s; }
.fcard:nth-child(2) { transition-delay: 0.2s; }
.fcard:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   2. COUNTER ANIMATIONS
   ======================================== */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.stat-number.counter {
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* ========================================
   3. BUTTON RIPPLE EFFECT
   ======================================== */
.oxram-btn,
.oxram-button,
.cta-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   4. CARD HOVER EFFECTS
   ======================================== */
.oxram-card,
.fcard,
.oxram-price {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.oxram-card:hover,
.fcard:hover,
.oxram-price:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.3);
}

/* ========================================
   5. SMOOTH TRANSITIONS
   ======================================== */
* {
    scroll-behavior: smooth;
}

/* ========================================
   6. GLOW ANIMATIONS
   ======================================== */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    }
}

.neon-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ========================================
   7. FLOATING ANIMATION
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   8. LOADING SPINNER (for future use)
   ======================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 255, 0, 0.1);
    border-top-color: #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   9. REDUCE MOTION (accessibility)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .oxram-card,
    .fcard,
    .category-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   10. SCROLL TO TOP BUTTON HOVER
   ======================================== */
.scroll-to-top:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5) !important;
}

.scroll-to-top:active {
    transform: scale(0.95) !important;
}

