/* =========================================
   WHY CHOOSE US SECTION
   Complete Updated & Corrected CSS
========================================= */

.why-choose-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
    padding: 85px 0 75px;
    font-family: 'Poppins', sans-serif;
}

.why-choose-section *,
.why-choose-section *::before,
.why-choose-section *::after {
    box-sizing: border-box;
}

.why-choose-container {
    width: 100%;
    max-width: 1320px;
    padding: 0 25px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =========================================
   HEADER
========================================= */

.why-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 55px;
}

.why-heading {
    max-width: 600px;
}

.why-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #3479ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.why-subtitle i {
    font-size: 16px;
    display: inline-block;
}

.why-heading h2 {
    margin: 0;
    color: #0b1c43;
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -1px;
}

.why-heading h2 span {
    color: #3479ff;
}

/* =========================================
   REVIEW BADGE
========================================= */

.review-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 410px;
    padding: 16px 20px 16px 28px;
    border: 1px solid #eeeeee;
    border-radius: 60px;
    background: #ffffff;
    color: #0b1c43;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        translate 0.3s ease;
}

.review-badge:hover {
    border-color: #3479ff;
    box-shadow: 0 10px 30px rgba(52, 121, 255, 0.10);
    translate: 0 -3px;
}

.review-brand h3 {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0b1c43;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 13px;
    color: #69758b;
}

.review-stars {
    color: #ff704c;
    font-size: 19px;
    letter-spacing: -1px;
    display: inline-block;
}

.review-avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 2px;
}

.review-avatars img {
    position: relative;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-left: -10px;
    transition: translate 0.3s ease, scale 0.3s ease;
}

.review-avatars img:hover {
    translate: 0 -5px;
    scale: 1.08;
    z-index: 5;
}

.review-count {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.5;
    color: #69758b;
    white-space: nowrap;
}

.review-count strong {
    color: #69758b;
    font-size: 14px;
    font-weight: 600;
}

.review-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #3479ff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-size: 15px;
    transition: translate 0.3s ease;
}

.review-badge:hover .review-arrow {
    translate: 3px -3px;
}

/* =========================================
   MAIN CONTENT
========================================= */

.why-content {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 65px;
    position: relative;
}

/* =========================================
   IMAGE COLLAGE
========================================= */

.why-visual {
    min-height: 440px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cleaner-image {
    position: absolute;
    overflow: hidden;
    background: #e9f5f6;
}

.cleaner-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

.cleaner-image:hover img {
    transform: scale(1.06);
}

.cleaner-image-one {
    width: 225px;
    height: 285px;
    left: 0;
    bottom: 30px;
    border-radius: 115px 115px 100px 100px;
    z-index: 1;
}

.cleaner-image-two {
    width: 225px;
    height: 305px;
    left: 245px;
    top: 30px;
    border-radius: 120px 120px 110px 110px;
    z-index: 2;
}

.visual-label {
    position: absolute;
    color: #6d7b95;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.8;
}

.visual-label-top {
    top: 0;
    left: 245px;
}

.visual-label-bottom {
    left: 40px;
    bottom: 0;
    max-width: 200px;
}

.visual-star {
    position: absolute;
    left: 215px;
    bottom: 95px;
    z-index: 3;
    color: #3479ff;
    font-size: 45px;
    rotate: 15deg;
}

.visual-star i {
    display: inline-block;
}

.visual-play {
    width: 68px;
    height: 68px;
    position: absolute;
    z-index: 4;
    left: 405px;
    bottom: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: #3479ff;
    color: #ffffff;
    font-size: 19px;
    box-shadow: 0 0 0 15px rgba(52, 121, 255, 0.04);
}

.visual-play i {
    transition: scale 0.3s ease;
}

.visual-play:hover i {
    scale: 1.15;
}

.visual-dotted-circle {
    position: absolute;
    width: 145px;
    height: 145px;
    bottom: -75px;
    left: 115px;
    border: 2px dashed #dce2ed;
    border-radius: 50%;
    z-index: 0;
}

/* =========================================
   FEATURES GRID
========================================= */

.why-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 45px;
    row-gap: 35px;
}

.why-feature {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 68px;
    height: 68px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    font-size: 27px;
    background: rgba(52, 121, 255, 0.04);
    transition:
        translate 0.35s ease,
        box-shadow 0.35s ease;
}

.feature-number {
    position: absolute;
    right: -17px;
    top: 20px;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.why-feature h3 {
    color: #0b1c43;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 12px;
    transition: color 0.3s ease;
}

.why-feature p {
    max-width: 280px;
    color: #69758b;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 400;
    margin: 0;
}

.why-feature .feature-icon i {
    transition: rotate 0.35s ease, scale 0.35s ease;
}

.why-feature:hover .feature-icon {
    translate: 0 -5px;
    box-shadow: 0 12px 25px rgba(52, 121, 255, 0.12);
}

.why-feature:hover .feature-icon i {
    rotate: -7deg;
    scale: 1.1;
}

.why-feature:hover h3 {
    color: #3479ff;
}

/* =========================================
   FEATURE COLORS
========================================= */

.feature-blue {
    color: #3479ff;
}

.feature-blue .feature-number {
    background: #3479ff;
}

.feature-orange {
    color: #ff704c;
}

.feature-orange .feature-icon {
    background: rgba(255, 112, 76, 0.04);
}

.feature-orange .feature-number {
    background: #ff704c;
}

.feature-green {
    color: #4bcf67;
}

.feature-green .feature-icon {
    background: rgba(75, 207, 103, 0.04);
}

.feature-green .feature-number {
    background: #4bcf67;
}

.feature-pink {
    color: #ff3290;
}

.feature-pink .feature-icon {
    background: rgba(255, 50, 144, 0.04);
}

.feature-pink .feature-number {
    background: #ff3290;
}

/* =========================================
   BACKGROUND DECORATION
========================================= */

.why-background-text {
    position: absolute;
    top: 50%;
    right: -28px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
    color: transparent;
    -webkit-text-stroke: 1px #e1e5ed;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 5px;
    white-space: nowrap;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

/* =========================================
   LARGE LAPTOP
========================================= */

@media (max-width: 1200px) {

    .why-choose-container {
        max-width: 1100px;
    }

    .why-content {
        gap: 35px;
        grid-template-columns: 0.9fr 1.1fr;
    }

    .cleaner-image-one {
        width: 190px;
        height: 260px;
    }

    .cleaner-image-two {
        width: 195px;
        height: 280px;
        left: 205px;
    }

    .visual-label-top {
        left: 205px;
    }

    .visual-play {
        left: 350px;
    }

    .why-features {
        column-gap: 25px;
    }

    .review-badge {
        min-width: 380px;
    }

    .why-heading h2 {
        font-size: 38px;
    }

    .why-feature h3 {
        font-size: 17px;
    }

    .why-feature p {
        font-size: 13px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .why-choose-section {
        padding: 70px 0;
    }

    .why-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        margin-bottom: 45px;
    }

    .why-heading {
        max-width: 650px;
    }

    .why-heading h2 {
        font-size: 36px;
    }

    .why-subtitle {
        font-size: 14px;
    }

    .review-badge {
        min-width: 0;
        max-width: 430px;
    }

    .review-brand h3 {
        font-size: 30px;
    }

    .review-rating {
        font-size: 12px;
    }

    .review-stars {
        font-size: 17px;
    }

    .review-count {
        font-size: 12px;
    }

    .review-count strong {
        font-size: 13px;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .why-visual {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .cleaner-image-one {
        left: 35px;
    }

    .cleaner-image-two {
        left: 275px;
    }

    .visual-label-top {
        left: 275px;
    }

    .visual-play {
        left: 435px;
    }

    .why-features {
        max-width: 750px;
        margin: 0 auto;
        width: 100%;
        column-gap: 50px;
        row-gap: 40px;
    }

    .why-feature h3 {
        font-size: 18px;
    }

    .why-feature p {
        font-size: 14px;
        line-height: 1.8;
    }

    .why-background-text {
        font-size: 35px;
        right: -65px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .why-choose-section {
        padding: 55px 0;
    }

    .why-choose-container {
        padding: 0 18px;
    }

    .why-header {
        gap: 22px;
        margin-bottom: 35px;
    }

    .why-heading h2 {
        font-size: 30px;
        line-height: 1.4;
        letter-spacing: -0.5px;
    }

    .why-subtitle {
        font-size: 13px;
    }

    /* Review badge */

    .review-badge {
        width: 100%;
        padding: 12px 14px;
        gap: 8px;
        border-radius: 35px;
    }

    .review-brand h3 {
        font-size: 25px;
    }

    .review-rating {
        font-size: 10px;
        gap: 3px;
    }

    .review-stars {
        font-size: 14px;
    }

    .review-avatars img {
        width: 29px;
        height: 29px;
        margin-left: -9px;
    }

    .review-count {
        font-size: 10px;
    }

    .review-count strong {
        font-size: 11px;
    }

    .review-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
    }

    /* Image collage */

    .why-content {
        gap: 45px;
    }

    .why-visual {
        min-height: 360px;
        max-width: 400px;
    }

    .cleaner-image-one {
        width: 43%;
        height: 235px;
        left: 2%;
        bottom: 25px;
    }

    .cleaner-image-two {
        width: 43%;
        height: 250px;
        left: 51%;
        top: 25px;
    }

    .visual-label-top {
        left: 51%;
        top: 0;
        font-size: 9px;
    }

    .visual-label-bottom {
        left: 5%;
        bottom: 0;
        font-size: 9px;
    }

    .visual-star {
        left: 43%;
        bottom: 90px;
        font-size: 32px;
    }

    .visual-play {
        width: 52px;
        height: 52px;
        left: auto;
        right: 0;
        bottom: 65px;
        font-size: 15px;
        border-width: 4px;
    }

    .visual-dotted-circle {
        width: 100px;
        height: 100px;
        left: 20%;
        bottom: -45px;
    }

    /* Features */

    .why-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 35px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 23px;
        margin-bottom: 15px;
    }

    .feature-number {
        width: 23px;
        height: 23px;
        right: -13px;
        top: 17px;
        font-size: 10px;
    }

    .why-feature h3 {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 9px;
    }

    .why-feature p {
        font-size: 12px;
        line-height: 1.8;
    }

    .why-background-text {
        display: none;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .why-choose-container {
        padding: 0 14px;
    }

    .why-heading h2 {
        font-size: 27px;
    }

    .why-subtitle {
        font-size: 12px;
    }

    .review-badge {
        gap: 6px;
        padding: 10px;
    }

    .review-brand h3 {
        font-size: 22px;
    }

    .review-avatars img {
        width: 25px;
        height: 25px;
    }

    .review-count {
        font-size: 9px;
    }

    .why-visual {
        min-height: 310px;
    }

    .cleaner-image-one {
        height: 205px;
    }

    .cleaner-image-two {
        height: 220px;
    }

    .visual-play {
        width: 45px;
        height: 45px;
        right: -2px;
        bottom: 55px;
    }

    .why-features {
        column-gap: 12px;
        row-gap: 30px;
    }

    .why-feature h3 {
        font-size: 14px;
    }

    .why-feature p {
        font-size: 11px;
        line-height: 1.7;
    }
}

/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 320px) {

    .why-heading h2 {
        font-size: 25px;
    }

    .why-features {
        grid-template-columns: 1fr;
    }

    .why-feature h3 {
        font-size: 15px;
    }

    .why-feature p {
        max-width: 240px;
        font-size: 12px;
        line-height: 1.8;
    }

    .review-count {
        display: none;
    }
}

/* =========================================
   ANIMATIONS
   One clean animation layer
========================================= */

/* Reveal animation is triggered by .why-visible */

.why-choose-section.why-visible .why-heading {
    animation: whyFadeUp 0.8s cubic-bezier(.2, .7, .2, 1) both;
}

.why-choose-section.why-visible .review-badge {
    animation: whyFadeUp 0.8s cubic-bezier(.2, .7, .2, 1) 0.15s both;
}

.why-choose-section.why-visible .cleaner-image-one {
    animation: whyImageReveal 0.9s cubic-bezier(.2, .7, .2, 1) 0.15s both;
}

.why-choose-section.why-visible .cleaner-image-two {
    animation: whyImageReveal 0.9s cubic-bezier(.2, .7, .2, 1) 0.3s both;
}

.why-choose-section.why-visible .why-feature:nth-child(1) {
    animation: whyFadeUp 0.75s ease 0.2s both;
}

.why-choose-section.why-visible .why-feature:nth-child(2) {
    animation: whyFadeUp 0.75s ease 0.35s both;
}

.why-choose-section.why-visible .why-feature:nth-child(3) {
    animation: whyFadeUp 0.75s ease 0.5s both;
}

.why-choose-section.why-visible .why-feature:nth-child(4) {
    animation: whyFadeUp 0.75s ease 0.65s both;
}

@keyframes whyFadeUp {
    from {
        opacity: 0;
        translate: 0 30px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes whyImageReveal {
    from {
        opacity: 0;
        scale: 0.93;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/* Subtitle icon float */

.why-subtitle i {
    animation: whyGemFloat 3s ease-in-out infinite;
}

@keyframes whyGemFloat {

    0%,
    100% {
        translate: 0 0;
        rotate: 0deg;
    }

    50% {
        translate: 0 -4px;
        rotate: 10deg;
    }
}

/* Review stars shine */

.review-stars {
    animation: whyStarShine 3s ease-in-out infinite;
}

@keyframes whyStarShine {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.35);
    }
}

/* Floating star */

.visual-star {
    animation: whyStarFloat 4s ease-in-out infinite;
}

.visual-star i {
    animation: whyStarRotate 14s linear infinite;
}

@keyframes whyStarFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }
}

@keyframes whyStarRotate {
    to {
        rotate: 360deg;
    }
}

/* Play button pulse */

.visual-play {
    animation: whyPlayPulse 2.5s ease-out infinite;
}

@keyframes whyPlayPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(52, 121, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(52, 121, 255, 0);
    }
}

/* Dotted circle rotation */

.visual-dotted-circle {
    animation: whyCircleRotate 35s linear infinite;
}

@keyframes whyCircleRotate {
    to {
        rotate: 360deg;
    }
}

/* Feature icon pop */

.why-choose-section.why-visible .why-feature .feature-icon {
    animation: whyIconPop 0.7s cubic-bezier(.2, .8, .2, 1) both;
}

.why-choose-section.why-visible .why-feature:nth-child(1) .feature-icon {
    animation-delay: 0.25s;
}

.why-choose-section.why-visible .why-feature:nth-child(2) .feature-icon {
    animation-delay: 0.4s;
}

.why-choose-section.why-visible .why-feature:nth-child(3) .feature-icon {
    animation-delay: 0.55s;
}

.why-choose-section.why-visible .why-feature:nth-child(4) .feature-icon {
    animation-delay: 0.7s;
}

@keyframes whyIconPop {
    0% {
        scale: 0.75;
    }

    65% {
        scale: 1.12;
    }

    100% {
        scale: 1;
    }
}

/* Feature number pulse */

.feature-number {
    animation: whyNumberPulse 2.8s ease-in-out infinite;
}

@keyframes whyNumberPulse {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.08;
    }
}

/* Background text float */

.why-background-text {
    animation: whyBackgroundFloat 7s ease-in-out infinite;
}

@keyframes whyBackgroundFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
}

/* =========================================
   TOUCH DEVICE FIX
========================================= */

@media (hover: none) {

    .review-avatars img:hover {
        translate: 0 0;
        scale: 1;
    }

    .review-badge:hover .review-arrow {
        translate: 0 0;
    }

    .visual-play:hover i {
        scale: 1;
    }

    .why-feature:hover .feature-icon {
        translate: 0 0;
    }

    .why-feature:hover .feature-icon i {
        rotate: 0deg;
        scale: 1;
    }
}

/* =========================================
   ACCESSIBILITY - REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .why-choose-section *,
    .why-choose-section *::before,
    .why-choose-section *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .why-choose-section.why-visible .why-heading,
    .why-choose-section.why-visible .review-badge,
    .why-choose-section.why-visible .cleaner-image,
    .why-choose-section.why-visible .why-feature {
        opacity: 1 !important;
    }
}