/* ================================
   Why Section Styling - Statistics Section
   ================================ */

.why-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #007BFF 0%, #7B2FFF 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    overflow: hidden;
}

/* Background Overlay với Grid và Waves */
.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 1;
}

.why-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse 200px 100px at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 150px 80px at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 120px 60px at 60% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.why-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Section Title Styling */
.why-section .section-title {
    margin-bottom: 80px;
    text-align: center;
}

.why-section .section-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.why-section .p-md {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Grid Layout */
.why-section .vc_row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: center;
}

.why-section .wpb_column {
    padding: 0 15px;
    flex: 1;
}

.why-section .vc_col-sm-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.why-section .vc_col-sm-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.why-section .vc_col-sm-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.why-section .vc_col-sm-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

/* Statistics Boxes */
.why-feature-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 50px 30px;
    margin-bottom: 30px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.why-feature-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hover Effect với Shine */
.why-feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.why-feature-box:hover::before {
    left: 100%;
}

/* Icon Styling */
.why-feature-icon {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.why-feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.why-feature-box:hover .why-feature-icon img {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
}

/* Statistics Number */
.why-feature-content .statistic-number {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.why-feature-content .statistic-number .count-element {
    display: inline-block;
    animation: countUp 1s ease-out;
}

/* Statistics Title */
.why-feature-box p.txt-500 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Animation Classes */
.scroll-anim-enabled .wow {
    opacity: 0;
}

.wow.fadeInUp {
    animation-fill-mode: both;
}

/* Kích hoạt khi vào viewport (JS thêm .in-view) */
.scroll-anim-enabled .wow.fadeInUp.in-view {
    animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.perch-fadeInUp {
    animation-name: fadeInUp;
}

/* Responsive Design */
@media (max-width: 991px) {
    .why-section {
        padding: 80px 0;
    }
    
    .why-section .section-main-title {
        font-size: 3rem;
    }
    
    .why-section .p-md {
        font-size: 1.1rem;
    }
    
    .why-feature-box {
        padding: 40px 25px;
    }
    
    .why-feature-content .statistic-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 767px) {
    .why-section {
        padding: 60px 0;
    }
    
    .why-section .section-main-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .why-section .p-md {
        font-size: 1rem;
    }
    
    .why-section .section-title {
        margin-bottom: 60px;
    }
    
    .why-feature-box {
        padding: 35px 20px;
        margin-bottom: 20px;
    }
    
    .why-feature-content .statistic-number {
        font-size: 3rem;
    }
    
    .why-feature-box p.txt-500 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .why-section {
        padding: 50px 0;
    }
    
    .why-section .section-main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .why-section .section-title {
        margin-bottom: 50px;
    }
    
    .why-feature-box {
        padding: 30px 15px;
        border-radius: 20px;
    }
    
    .why-feature-content .statistic-number {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .why-feature-box p.txt-500 {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .why-section {
        background: linear-gradient(135deg, #0056b3 0%, #5a1fcc 100%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .why-section {
        background: linear-gradient(135deg, #000080 0%, #800080 100%);
    }
    
    .why-feature-box {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border: 2px solid #fff;
    }
    
    .why-feature-content .statistic-number,
    .why-feature-box p.txt-500 {
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .why-feature-box::before {
        transition: none;
    }
    
    .why-feature-box:hover::before {
        left: -100%;
    }
    
    .why-feature-box:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .why-section {
        background: #007BFF !important;
        color: white !important;
        padding: 40px 0;
    }
    
    .why-section::before,
    .why-section::after {
        display: none;
    }
    
    .why-feature-box {
        break-inside: avoid;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.5);
        backdrop-filter: none;
        box-shadow: none;
    }
}
