/* ========================================
   Premium "Why Choose Us" Section
   ======================================== */

/* Section Base with Pattern Background */
.why-choose-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

/* Grid Pattern Overlay - Same style as services */
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(14, 146, 210, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 146, 210, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Decorative radial gradient */
.why-choose-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(54, 179, 126, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Section Header */
.why-choose-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.why-choose-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(54, 179, 126, 0.15);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #4FC13C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.why-choose-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #122A54;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.why-choose-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
}

/* Features Grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Feature Card - Premium Style */
.why-choose-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Soft gradient overlay on hover */
.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(54, 179, 126, 0.05) 0%, rgba(14, 146, 210, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 20px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(54, 179, 126, 0.1);
}

.why-choose-card:hover::before {
    opacity: 1;
}

/* Icon Styling - Circular Gradient */
.why-choose-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 20px; */
    background: linear-gradient(135deg, #1762BE 0%, #4FC13C 100%);
    box-shadow: 0 8px 24px -6px rgba(14, 146, 210, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#why-choose .why-choose-icon{
    margin: 0 auto 20px; 
}

.why-choose-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1762BE 0%, #4FC13C 100%);
    opacity: 0.2;
    filter: blur(8px);
    z-index: -1;
    transition: all 0.3s ease;
}

.why-choose-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.why-choose-card:hover .why-choose-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px -8px rgba(14, 146, 210, 0.5);
}

.why-choose-card:hover .why-choose-icon::after {
    opacity: 0.4;
    filter: blur(12px);
}

/* Typography */
.why-choose-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #122A54;
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.why-choose-card:hover .why-choose-card-title {
    color: #1762BE;
}

.why-choose-card-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* Scroll Animation */
.why-choose-card {
    opacity: 0;
    transform: translateY(30px);
    animation: whyChooseFadeIn 0.6s ease forwards;
}

.why-choose-card:nth-child(1) { animation-delay: 0.05s; }
.why-choose-card:nth-child(2) { animation-delay: 0.1s; }
.why-choose-card:nth-child(3) { animation-delay: 0.15s; }
.why-choose-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes whyChooseFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .why-choose-section {
        padding: 80px 0;
    }
    
    .why-choose-header {
        margin-bottom: 48px;
        padding: 0 20px;
    }
    
    .why-choose-grid {
        padding: 0 20px;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-header {
        padding: 0 16px;
    }
    
    .why-choose-grid {
        padding: 0 16px;
    }
    
    .why-choose-card {
        padding: 28px 20px;
    }
    
    .why-choose-icon {
        width: 64px;
        height: 64px;
    }
    
    .why-choose-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .why-choose-section {
        padding: 48px 0;
    }
    
    .why-choose-label {
        font-size: 0.75rem;
    }
    
    .why-choose-title {
        font-size: 1.75rem;
    }
    
    .why-choose-subtitle {
        font-size: 1rem;
    }
    
    .why-choose-card {
        padding: 24px 16px;
    }
    
    .why-choose-icon {
        width: 56px;
        height: 56px;
    }
    
    .why-choose-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .why-choose-card-title {
        font-size: 1.125rem;
    }
    
    .why-choose-card-text {
        font-size: 0.9375rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .why-choose-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .why-choose-card:hover {
        transform: translateY(-4px);
    }
}
