/* Features Section Enhancements */

.features-section {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
}

/* Icon Animations */
.feature-item i {
    font-size: 50px;
    color: #4a90e2;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.4s ease;
}

.feature-item:hover i {
    transform: rotateY(360deg) scale(1.2);
    color: #357abd;
}

.feature-item:nth-child(1):hover i { color: #667eea; }
.feature-item:nth-child(2):hover i { color: #f093fb; }
.feature-item:nth-child(3):hover i { color: #4facfe; }
.feature-item:nth-child(4):hover i { color: #43e97b; }

.feature-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: color 0.3s;
}

.feature-item:hover h4 {
    color: #4a90e2;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Progress Bar */
.feature-progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-item:hover .feature-progress {
    opacity: 1;
}

.feature-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #667eea);
    border-radius: 10px;
    width: 0;
    transition: width 1s ease-out;
}

.feature-item:hover .feature-progress-bar {
    width: var(--progress, 85%);
}

/* Stats Counter Animation */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-item i {
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotateY(180deg);
    color: #667eea;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feature-item i {
    animation: pulse 2s ease-in-out infinite;
}

.feature-item:hover i {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
}
