/* ==========================================
   The Second Wife BBQ - Animation System
   60fps GPU-Accelerated Micro-Interactions & Scroll FX
   ========================================== */

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatHero {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 179, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 179, 0, 0.45);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes shinySweep {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* --- Scroll Reveal Base Classes --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.reveal-fade-in {
    transform: translateY(0) scale(0.95);
}

.reveal-on-scroll.reveal-slide-left {
    transform: translateX(-40px);
}

.reveal-on-scroll.reveal-slide-right {
    transform: translateX(40px);
}

.reveal-on-scroll.reveal-active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger delays for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- 3D Card Tilt Effects --- */
.tilt-card-wrapper {
    perspective: 1000px;
}

.tilt-card {
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 179, 0, 0.15);
}

.tilt-card-content {
    transform: translateZ(20px);
}

/* --- Floating & Glowing Badges --- */
.float-animation {
    animation: floatHero 5s ease-in-out infinite;
}

.glow-animation {
    animation: subtleGlow 3s infinite alternate;
}

.pulse-badge {
    animation: badgePulse 2.5s infinite ease-in-out;
}

/* --- Interactive Button Shine Effect --- */
.btn-yellow, .btn-primary, .category-pill {
    position: relative;
    overflow: hidden;
}

.btn-yellow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
}

.btn-yellow:hover::after {
    animation: shinySweep 0.85s ease-in-out;
}

/* --- Counter Stat Highlights --- */
.stat-number {
    display: inline-block;
    transition: color 0.3s ease;
}

.stat-number.counting {
    color: var(--primary-yellow);
    text-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
}
