/* 
* Shikshan - Features Section Stylesheet
* Author: Cascade
* Date: 2025-06-18
*/

/* ========== Features Section Styles ========== */
.features-section {
    padding: 100px 0;
    background-color: #fcfbff;
    background-image: radial-gradient(#9E7FD4 0.5px, #fcfbff 0.5px);
    background-size: 20px 20px;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(158, 127, 212, 0.1);
    z-index: 1;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-color: rgba(242, 181, 192, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.features-section .section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-section .section-subtitle {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.features-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 20px;
}

.features-section .section-description {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    backface-visibility: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(158, 127, 212, 0.2);
    border-color: rgba(158, 127, 212, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-color: #f8f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    transform: rotate(5deg);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(158, 127, 212, 0.2));
}

.feature-card:hover .feature-icon {
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.3));
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1.1) rotate(5deg);
    }
}



.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d3557;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-title {
    color: var(--primary-color);
}

.feature-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .feature-card {
        margin-bottom: 30px;
    }
    
    .features-section {
        padding: 80px 0;
        background-size: 15px 15px;
    }
    
    .features-section .section-title {
        font-size: 2.2rem;
    }
    
    .feature-icon-wrapper {
        margin: 0 auto 20px;
    }
    
    .feature-title {
        text-align: center;
    }
    
    .feature-description {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .features-section {
        padding: 60px 0;
        background-size: 10px 10px;
    }
    
    .features-section .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .features-section .section-description {
        font-size: 1rem;
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .features-section {
        padding: 50px 0;
    }
    
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        font-size: 1.8rem;
    }
}
