/* 
   Why Choose Section Styling System (moved here)
   Version: 1.0.0
*/

/* =================================== */
/*        WHY CHOOSE SECTION          */
/* =================================== */

.why-choose-section {
    margin: 0;
    padding: 80px 0;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    min-height: auto; /* reverted from 100vh to avoid forcing full viewport */
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-choose-section .why-choose-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.why-choose-section .why-choose-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.why-choose-section .why-choose-title {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: none;
    display: inline-block;
}

.why-choose-section .why-choose-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: none;
    font-weight: 400;
}

/* Features Grid - 3x2 Layout (scoped to avoid conflicts with modal.css) */
.why-choose-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Make selector more specific so modal .feature-card rules won't override these */
.why-choose-section .features-grid .feature-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Local reset: prevent animations/transforms from other styles (modal) leaking in */
.why-choose-section .features-grid .feature-card,
.why-choose-section .features-grid .feature-card * {
    animation: none !important;
    will-change: auto !important;
    -webkit-animation: none !important;
}

/* Scoped hover/visual rules */
.why-choose-section .features-grid .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.why-choose-section .features-grid .feature-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-choose-section .features-grid .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.3));
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.why-choose-section .features-grid .icon-wrapper i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-choose-section .features-grid .feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.why-choose-section .features-grid .feature-description {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Add highlight text at bottom of cards (scoped) */
.why-choose-section .features-grid .feature-card::after {
    content: attr(data-highlight);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.2));
    color: #a855f7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.3);
    white-space: nowrap;
}

/* Responsive Design (scoped) */
@media (max-width: 1024px) {
    .why-choose-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .why-choose-section .features-grid .feature-card {
        padding: 35px 25px;
        min-height: 260px;
    }
    
    .why-choose-section .features-grid .icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .why-choose-section .features-grid .icon-wrapper i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-section .why-choose-container {
        padding: 0 30px;
    }
    
    .why-choose-section .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-section .features-grid .feature-card {
        padding: 30px 20px;
        min-height: 240px;
    }
    
    .why-choose-section .why-choose-title {
        font-size: 2.5rem;
    }
    
    .why-choose-section .features-grid .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .why-choose-section .features-grid .icon-wrapper i {
        font-size: 1.8rem;
    }
    
    .why-choose-section .features-grid .feature-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .why-choose-section .features-grid .feature-card {
        padding: 25px 15px;
        min-height: 220px;
    }
    
    .why-choose-section .features-grid .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .why-choose-section .features-grid .icon-wrapper i {
        font-size: 1.6rem;
    }
    
    .why-choose-section .features-grid .feature-title {
        font-size: 1.2rem;
    }
    
    .why-choose-section .features-grid .feature-description {
        font-size: 0.9rem;
    }
}

/* Print Styles (scoped) */
@media print {
    .why-choose-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .why-choose-section .why-choose-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
