/* ============================================
   MODERN FEATURES SECTION - WHY CHOOSE US
   ============================================ */

.features-section {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, 
        rgba(248, 249, 250, 0) 0%, 
        rgba(248, 249, 250, 0.4) 50%, 
        rgba(248, 249, 250, 0) 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.features-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.features-section .section-title {
    font-family: var(--font-english-display);
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B0000 0%, #D4AF37 50%, #8B0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.features-section .title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.3), 
        #D4AF37, 
        rgba(212, 175, 55, 0.3), 
        transparent);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.features-section .section-subtitle {
    font-family: var(--font-bengali-body);
    font-size: 1.05rem;
    color: #5a0000;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem 1rem;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.08) 0%, 
        transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.5), 
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
    top: -25%;
    left: -25%;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 35px rgba(139, 0, 0, 0.12),
        0 6px 15px rgba(212, 175, 55, 0.08),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #8B0000;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 12px rgba(139, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #FFD700, #D4AF37);
    z-index: -1;
    opacity: 0.8;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.8), 
        transparent 60%);
    opacity: 0.5;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotateY(360deg);
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.35),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-title {
    font-family: var(--font-english-display);
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.feature-description {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 2.5rem 0 2rem;
    }

    .features-section .section-title {
        font-size: 1.9rem;
    }

    .features-section .section-subtitle {
        font-size: 0.95rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.825rem;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 2rem 0 1.5rem;
    }

    .features-section .section-title {
        font-size: 1.65rem;
    }

    .features-section .section-header {
        margin-bottom: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.875rem;
    }

    .feature-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        margin-bottom: 0.875rem;
    }

    .feature-title {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }

    .feature-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 380px) {
    .features-grid {
        gap: 0.625rem;
    }

    .feature-card {
        padding: 1rem 0.875rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
