.features-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.features-title {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #000000;
    border-radius: 2px;
}

.features-subtitle {
    font-size: 1.8rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;

    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-card-inner {
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, black, #6366f1);
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-bg {
    opacity: 0.2;
    transform: scale(1.1);
}

.feature-icon {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: black;
}

.feature-description {
    font-size: 1.6rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
    color: #475569;
}

.feature-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.feature-card:hover .feature-hover-effect {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }

    .features-container {
        padding: 0 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card-inner {
        padding: 30px 20px;
    }

    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
    }
}


@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .feature-card-inner {
        padding: 25px 15px;
    }

    .features-header {
        margin-bottom: 40px;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(7) {
    animation-delay: 0.7s;
}

.feature-card:nth-child(8) {
    animation-delay: 0.8s;
}

.feature-card:nth-child(9) {
    animation-delay: 0.9s;
}

.feature-card:nth-child(10) {
    animation-delay: 1.0s;
}

.feature-card:nth-child(11) {
    animation-delay: 1.1s;
}

.feature-card:nth-child(12) {
    animation-delay: 1.2s;
}