/* ================================
   Why Choose Us Section
   ================================ */

.why-choose-us {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-color: #ffffff;
}

/* Background Decoration (Similar to others) */
.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(99, 64, 222, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.why-choose-us .container {
    position: relative;
    z-index: 1;
}

/* ================================
   Layout System (Flexbox)
   ================================ */

.why-choose-us .row {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.why-choose-us .row > div[class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
}

@media (min-width: 768px) {
    .why-choose-us .row {
        flex-direction: row;
        gap: 50px;
        align-items: center;
    }
    
    .why-choose-us .row > div[class*="col-"] {
        flex: 1;
        width: auto;
    }
}

/* ================================
   Left Column: Content
   ================================ */

.why-choose-us__content {
    padding-right: 30px;
}

.why-choose-us__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 40px;
}

/* Progress Bars */
.why-choose-us__progress {
    margin-bottom: 45px;
}

.progress-item {
    margin-bottom: 25px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-item__title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-item__title {
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-secondary);
}

.progress-item__percent {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
}

.progress-item__bar {
    height: 7px;
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-item__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #6E54F3;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.42, 0.41, 1);
}

/* DOT at the end of the fill */
.progress-item__fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #6E54F3;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(110, 84, 243, 0.3);
}

/* CTA Area */
.why-choose-us__cta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.why-choose-us__call {
    display: flex;
    align-items: center;
    gap: 15px;
}

.why-choose-us__call-icon {
    width: 55px;
    height: 55px;
    background-color: #6E54F3;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-all);
}

.why-choose-us__call:hover .why-choose-us__call-icon {
    transform: rotate(15deg) scale(1.1);
}

.why-choose-us__call-content span {
    display: block;
    font-size: 14px;
    color: var(--color-gray-500);
    margin-bottom: 2px;
}

.why-choose-us__call-content a {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-colors);
}

.why-choose-us__call-content a:hover {
    color: #6E54F3;
}

/* ================================
   Right Column: Image Collage
   ================================ */

.why-choose-us__collage {
    position: relative;
    width: 100%;
    height: 560px;
}

/* Main Background Image */
.why-choose-us__img-bg {
    position: absolute;
    top: 50px;
    right: 0;
    width: 85%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.why-choose-us__img-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Foreground Curved Image */
.why-choose-us__img-fg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    height: 400px;
    z-index: 2;
    border-radius: 0 180px 12px 12px;
    overflow: hidden;
    border: 8px solid #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.why-choose-us__img-fg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.why-choose-us__badge {
    position: absolute;
    background-color: #6E54F3;
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(110, 84, 243, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Badge 1: Active Clients */
.why-choose-us__badge--clients {
    top: 70px;
    left: 20px;
}

.why-choose-us__badge--clients::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    border-left: 15px solid transparent;
    border-top: 15px solid #6E54F3;
    transform: rotate(45deg);
}

.why-choose-us__badge-count {
    font-family: 'Barlow', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.why-choose-us__badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

/* Badge 2: Customer Service */
.why-choose-us__badge--service {
    bottom: 80px;
    right: 20px;
    padding: 25px 35px;
    background: linear-gradient(135deg, #6E54F3 0%, #5a3edb 100%);
    overflow: hidden;
}

/* Network background effect for service badge */
.why-choose-us__badge--service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.5;
}

.why-choose-us__badge--service .why-choose-us__badge-text {
    font-size: 20px;
    font-weight: 700;
}

/* Floating Animations */
.why-choose-us__badge {
    animation: badgeFloat 4s ease-in-out infinite;
}

.why-choose-us__badge--service {
    animation-delay: 2s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Decorative Dotted Lines (Placeholder using SVG or border) */
.why-choose-us__dots {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* ================================
   Responsive Adjustments
   ================================ */

@media (min-width: 768px) and (max-width: 991px) {
    .why-choose-us__collage {
        height: 500px;
        margin-top: 50px;
    }
    
    .why-choose-us__img-fg {
        height: 350px;
    }
    
    .why-choose-us__img-bg {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .why-choose-us {
        padding: 80px 0;
    }
    
    .why-choose-us__content {
        padding-right: 0;
        margin-bottom: 60px;
    }
    
    .why-choose-us__collage {
        height: 450px;
    }
    
    .why-choose-us__img-bg {
        width: 100%;
        height: 320px;
        top: 0;
    }
    
    .why-choose-us__img-fg {
        width: 80%;
        height: 300px;
        border-radius: 0 100px 12px 12px;
    }
    
    .why-choose-us__badge--clients {
        top: 20px;
        left: 0;
        padding: 15px 20px;
    }
    
    .why-choose-us__badge-count {
        font-size: 24px;
    }
    
    .why-choose-us__badge--service {
        bottom: 40px;
        right: 0;
        padding: 15px 20px;
    }
    
    .why-choose-us__badge--service .why-choose-us__badge-text {
        font-size: 16px;
    }
    
    .why-choose-us__cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
}
