/**
 * Features Cards CSS
 * Modern feature cards for homepage
 */

.features-cards-section {
    margin: 2.5rem 0 2.5rem;
    position: relative;
    z-index: 3;
}

.features-header {
    text-align: center;
    margin-bottom: 2rem;
}

.features-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.features-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    aspect-ratio: 1;
    width: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.3;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon-container {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-card-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    min-height: 2.5rem;
}

.feature-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: white;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.feature-btn:hover::before {
    width: 300px;
    height: 300px;
}

.feature-btn span {
    position: relative;
    z-index: 1;
}

.feature-btn:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .features-grid {
        gap: 1.25rem;
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }
    
    .feature-card {
        padding: 1.5rem;
        aspect-ratio: 1;
        min-height: 300px;
    }
    
    .features-cards-section {
        margin: 2rem 0 2rem;
    }
}

@media (max-width: 768px) {
    .features-title {
        font-size: 1.75rem;
    }
    
    .features-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 1.75rem;
    }
    
    .feature-card-title {
        font-size: 1.2rem;
    }
    
    .feature-card-description {
        font-size: 0.9rem;
    }
    
    .features-cards-section {
        margin: 2rem 0 1.5rem;
    }
    
    .features-header {
        margin-bottom: 2rem;
    }
}

