/* ============================================
   FEATURES SECTION - Premium Design
   ============================================ */

.features-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.features-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Feature Card */
.feature-card {
    padding: 40px 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F5 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 53, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(249, 115, 22, 0.05));
    transition: left 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15);
}

/* Icon Wrapper */
.feature-icon-wrapper {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DC2626, #F97316);
    border-radius: 20px;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FBBF24, #FCD34D);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.4);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
    animation: ping 1s ease infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Content */
.feature-content {
    position: relative;
    z-index: 1;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #DC2626;
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199px) {
    .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }
    
    .features-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 17px;
    }
}
