/* Additional animations and styles for Features and How It Works sections */

/* Feature card hover effects */
.feature-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backface-visibility: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-7px);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card .icon {
    position: relative;
    overflow: hidden;
}

.feature-card .icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-card:hover .icon::before {
    transform: translateX(100%);
}

/* Step card interactions */
.step-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step-card .step-number {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card:hover .step-number {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.step-card::before {
    transition: opacity 0.3s ease;
}

/* Shine effect */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.05) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.feature-card:hover .card-shine,
.step-card:hover .card-shine {
    opacity: 1;
}

/* Enhanced animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* Badge tag styling */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card,
    .step-card {
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    }
    
    .card-shine {
        display: none;
    }
}
