/* 
   Premium Animations & Ecosystem Color Systems
   Tailored for BigG's Laundromat Professional Branding
*/

/* 1. Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconEntrance {
    0% {
        transform: scale(0.5) rotate(-15deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 2. Base Classes for Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

.animate-on-scroll.is-visible,
.animate-on-scroll.animate-active {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 3. Feature Card Ecosystem Styles */
.feature-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--eco-color-light) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--eco-color);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    background: var(--eco-color-light) !important;
    color: var(--eco-color) !important;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--eco-color) !important;
    color: var(--white) !important;
    transform: scale(1.1) rotate(10deg);
}

/* Ecosystem Colors */
.eco-blue {
    --eco-color: #1e3a8a;
    --eco-color-light: rgba(30, 58, 138, 0.08);
}

.eco-orange {
    --eco-color: #f97316;
    --eco-color-light: rgba(249, 115, 22, 0.08);
}

.eco-green {
    --eco-color: #16a34a;
    --eco-color-light: rgba(22, 163, 74, 0.08);
}

.eco-purple {
    --eco-color: #7c3aed;
    --eco-color-light: rgba(124, 58, 237, 0.08);
}

.eco-teal {
    --eco-color: #0d9488;
    --eco-color-light: rgba(13, 148, 136, 0.08);
}

.eco-red {
    --eco-color: #dc2626;
    --eco-color-light: rgba(220, 38, 38, 0.08);
}

/* 4. Flow Step ecosystem Styles */
.flow-step {
    transition: all 0.4s ease;
}

.flow-step .step-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--eco-color-light) !important;
    color: var(--eco-color) !important;
}

.flow-step:hover .step-icon {
    transform: scale(1.2) translateY(-5px);
    background: var(--eco-color) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 20px var(--eco-color-light);
}

.flow-step .step-number {
    background: var(--eco-color) !important;
    color: var(--white) !important;
    transition: transform 0.3s ease;
}

.flow-step:hover .step-number {
    transform: translateX(-50%) scale(1.2);
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-delay-6 {
    animation-delay: 0.6s;
}