/* ============================================
   FEATURES SECTION STYLES - WEBCAREX
   ============================================ */

.features-section {
    padding: 6rem 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gradient-x-1-start) 20%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 80%,
        transparent
    );
    opacity: 0.5;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gradient-x-2-start) 20%,
        var(--gradient-x-2-mid) 50%,
        var(--gradient-x-1-start) 80%,
        transparent
    );
    opacity: 0.5;
}

.features-wrapper {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-white);
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 1.5rem;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--gradient-x-1-start),
        var(--gradient-x-1-mid),
        var(--gradient-x-2-start)
    );
    border-radius: 2px;
}

.features-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 8px;
}

.feature-item {
    background: transparent;
    padding: 0;
    border: none;
    transition: none;
    position: relative;
    overflow: visible;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.feature-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #22c55e;
    position: relative;
    margin-top: 2px;
}

.feature-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 5px;
    height: 10px;
    border-right: 2px solid var(--text-white);
    border-bottom: 2px solid var(--text-white);
}

.feature-item p {
    margin: 0;
    color: var(--text-white);
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

.features-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-cta p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    background: linear-gradient(
        135deg,
        var(--gradient-x-1-start) 0%,
        var(--gradient-x-1-mid) 50%,
        var(--gradient-x-2-start) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(123, 44, 191, 0.3));
}

/* Staggered animation delays for feature items */
.features-column:nth-child(1) .feature-item:nth-child(1) { animation-delay: 0.1s; }
.features-column:nth-child(1) .feature-item:nth-child(2) { animation-delay: 0.15s; }
.features-column:nth-child(1) .feature-item:nth-child(3) { animation-delay: 0.2s; }
.features-column:nth-child(1) .feature-item:nth-child(4) { animation-delay: 0.25s; }
.features-column:nth-child(1) .feature-item:nth-child(5) { animation-delay: 0.3s; }
.features-column:nth-child(1) .feature-item:nth-child(6) { animation-delay: 0.35s; }
.features-column:nth-child(1) .feature-item:nth-child(7) { animation-delay: 0.4s; }

.features-column:nth-child(2) .feature-item:nth-child(1) { animation-delay: 0.15s; }
.features-column:nth-child(2) .feature-item:nth-child(2) { animation-delay: 0.2s; }
.features-column:nth-child(2) .feature-item:nth-child(3) { animation-delay: 0.25s; }
.features-column:nth-child(2) .feature-item:nth-child(4) { animation-delay: 0.3s; }
.features-column:nth-child(2) .feature-item:nth-child(5) { animation-delay: 0.35s; }
.features-column:nth-child(2) .feature-item:nth-child(6) { animation-delay: 0.4s; }
.features-column:nth-child(2) .feature-item:nth-child(7) { animation-delay: 0.45s; }

.features-column:nth-child(3) .feature-item:nth-child(1) { animation-delay: 0.2s; }
.features-column:nth-child(3) .feature-item:nth-child(2) { animation-delay: 0.25s; }
.features-column:nth-child(3) .feature-item:nth-child(3) { animation-delay: 0.3s; }
.features-column:nth-child(3) .feature-item:nth-child(4) { animation-delay: 0.35s; }
.features-column:nth-child(3) .feature-item:nth-child(5) { animation-delay: 0.4s; }
.features-column:nth-child(3) .feature-item:nth-child(6) { animation-delay: 0.45s; }

/* Background decorative elements */
.features-section {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(123, 44, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .features-section {
        padding: 4rem 0;
    }
    
    .features-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .features-columns {
        gap: 1.5rem;
    }
    
    .features-column {
        gap: 0.625rem;
        padding: 1.25rem;
    }
    
    .features-cta p {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 768px) {
    .features-section {
        padding: 3rem 0;
    }
    
    .features-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .features-title::after {
        width: 80px;
        height: 2px;
    }
    
    .features-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-column {
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .feature-item p {
        font-size: 0.95rem;
    }
    
    .features-cta {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .features-cta p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .features-title {
        font-size: 1.5rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
}
