/* =========================================
   WHY CHOOSE US SECTION
========================================= */

.why-choose-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 85px 0 75px;
    font-family: 'Poppins', sans-serif;
}

.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: 540px;
}

.why-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3479ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.why-subtitle i {
    font-size: 13px;
}

.why-heading h2 {
    margin: 0;
    color: #0b1c43;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -1.2px;
}

.why-heading h2 span {
    color: #3479ff;
}

/* =========================================
   REVIEW BADGE
========================================= */

.review-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 410px;
    padding: 14px 20px 14px 28px;
    border: 1px solid #eeeeee;
    border-radius: 60px;
    background: #ffffff;
    color: #0b1c43;
    transition: all 0.3s ease;
}

.review-badge:hover {
    border-color: #3479ff;
    box-shadow: 0 10px 30px rgba(52, 121, 255, 0.08);
    transform: translateY(-3px);
}

.review-brand h3 {
    font-size: 29px;
    line-height: 1;
    font-weight: 700;
    margin: 0 0 5px;
    color: #0b1c43;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 11px;
    color: #69758b;
}

.review-stars {
    color: #ff704c;
    font-size: 16px;
    letter-spacing: -2px;
}

.review-avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 2px;
}

.review-avatars img {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-left: -10px;
}

.review-count {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    color: #69758b;
    white-space: nowrap;
}

.review-count strong {
    color: #69758b;
    font-size: 12px;
    font-weight: 600;
}

.review-arrow {
    width: 39px;
    height: 39px;
    min-width: 39px;
    border-radius: 50%;
    background: #3479ff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-size: 14px;
}

/* =========================================
   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.6s ease;
}

.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: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    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;
    transform: rotate(15deg);
}

.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-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: 30px;
}

.why-feature {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 18px;
    font-size: 24px;
    background: rgba(52, 121, 255, 0.04);
}

.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: 10px;
    font-weight: 700;
}

.why-feature h3 {
    color: #0b1c43;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}

.why-feature p {
    max-width: 255px;
    color: #69758b;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
}

/* 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: 45px;
    font-weight: 700;
    letter-spacing: 4px;
    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;
    }
}

/* =========================================
   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: 32px;
    }

    .review-badge {
        min-width: 0;
        max-width: 430px;
    }

    .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-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: 27px;
        line-height: 1.35;
        letter-spacing: -0.7px;
    }

    .why-subtitle {
        font-size: 11px;
    }

    /* REVIEW BADGE */

    .review-badge {
        width: 100%;
        padding: 12px 14px;
        gap: 8px;
        border-radius: 35px;
    }

    .review-brand h3 {
        font-size: 23px;
    }

    .review-rating {
        font-size: 9px;
        gap: 3px;
    }

    .review-stars {
        font-size: 13px;
    }

    .review-avatars img {
        width: 29px;
        height: 29px;
        margin-left: -9px;
    }

    .review-count {
        font-size: 9px;
    }

    .review-count strong {
        font-size: 10px;
    }

    .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: 8px;
    }

    .visual-label-bottom {
        left: 5%;
        bottom: 0;
        font-size: 8px;
    }

    .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: 20px;
        margin-bottom: 15px;
    }

    .feature-number {
        width: 23px;
        height: 23px;
        right: -13px;
        top: 17px;
        font-size: 9px;
    }

    .why-feature h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .why-feature p {
        font-size: 11px;
        line-height: 1.7;
    }

    .why-background-text {
        display: none;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .why-choose-container {
        padding: 0 14px;
    }

    .why-heading h2 {
        font-size: 24px;
    }

    .review-badge {
        gap: 6px;
        padding: 10px;
    }

    .review-brand h3 {
        font-size: 20px;
    }

    .review-avatars img {
        width: 25px;
        height: 25px;
    }

    .review-count {
        font-size: 8px;
    }

    .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: 12px;
    }

    .why-feature p {
        font-size: 10px;
    }
}

/* =========================================
   EXTRA SMALL SCREENS
========================================= */

@media (max-width: 320px) {

    .why-features {
        grid-template-columns: 1fr;
    }

    .why-feature p {
        max-width: 240px;
        font-size: 12px;
    }

    .review-count {
        display: none;
    }
}

/* =========================================
   WHY CHOOSE US - CLEAN ANIMATION LAYER
   Keeps the original layout, sizes and colors
========================================= */

/* Keep the existing section stacking */
.why-choose-section {
    isolation: isolate;
}

.why-choose-container {
    position: relative;
    z-index: 2;
}

/* Scroll reveal: content remains visible without JavaScript */
.why-heading,
.review-badge,
.cleaner-image,
.why-feature {
    will-change: opacity, transform;
}

.why-choose-section.why-visible .why-heading {
    animation: whyHeadingReveal 700ms cubic-bezier(.2, .7, .2, 1) both;
}

.why-choose-section.why-visible .review-badge {
    animation: whyBadgeReveal 800ms cubic-bezier(.2, .7, .2, 1) 120ms both;
}

.why-choose-section.why-visible .cleaner-image-one {
    animation: whyImageReveal 900ms cubic-bezier(.2, .7, .2, 1) 100ms both;
}

.why-choose-section.why-visible .cleaner-image-two {
    animation: whyImageReveal 900ms cubic-bezier(.2, .7, .2, 1) 250ms both;
}

.why-choose-section.why-visible .why-feature:nth-child(1) {
    animation: whyFeatureReveal 700ms cubic-bezier(.2, .7, .2, 1) 100ms both;
}

.why-choose-section.why-visible .why-feature:nth-child(2) {
    animation: whyFeatureReveal 700ms cubic-bezier(.2, .7, .2, 1) 220ms both;
}

.why-choose-section.why-visible .why-feature:nth-child(3) {
    animation: whyFeatureReveal 700ms cubic-bezier(.2, .7, .2, 1) 340ms both;
}

.why-choose-section.why-visible .why-feature:nth-child(4) {
    animation: whyFeatureReveal 700ms cubic-bezier(.2, .7, .2, 1) 460ms both;
}

@keyframes whyHeadingReveal {
    from {
        opacity: 0;
        translate: 0 24px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes whyBadgeReveal {
    from {
        opacity: 0;
        translate: 0 20px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes whyImageReveal {
    from {
        opacity: 0;
        scale: .94;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes whyFeatureReveal {
    from {
        opacity: 0;
        translate: 0 24px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* Decorative subtitle gem */
.why-subtitle i {
    animation: whyGemFloat 3.2s ease-in-out infinite;
}

@keyframes whyGemFloat {

    0%,
    100% {
        translate: 0 0;
        rotate: 0deg;
    }

    50% {
        translate: 0 -3px;
        rotate: 10deg;
    }
}

/* Review stars: subtle shine */
.review-stars {
    animation: whyStarShine 3.5s ease-in-out infinite;
}

@keyframes whyStarShine {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.22);
    }
}

/* Reviewer images keep their original size and overlap */
.review-avatars img {
    transition: translate 300ms ease, scale 300ms ease;
}

.review-avatars img:hover {
    translate: 0 -5px;
    scale: 1.08;
    z-index: 4;
}

/* Review arrow motion without affecting its layout */
.review-arrow {
    transition: translate 300ms ease;
}

.review-badge:hover .review-arrow {
    translate: 3px -3px;
}

/* Existing image hover zoom remains; add smooth entrance */
.cleaner-image img {
    transition: transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.cleaner-image:hover img {
    transform: scale(1.06);
}

/* Floating star: use translate/rotate properties so the
   original positioning remains intact */
.visual-star {
    animation: whyStarFloat 4.2s ease-in-out infinite;
}

.visual-star i {
    display: inline-block;
    animation: whyStarRotate 12s linear infinite;
}

@keyframes whyStarFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -9px;
    }
}

@keyframes whyStarRotate {
    to {
        rotate: 360deg;
    }
}

/* Play button pulse: preserve its original dimensions and position */
.visual-play {
    animation: whyPlayPulse 2.6s ease-out infinite;
}

.visual-play i {
    transition: scale 300ms ease;
}

.visual-play:hover i {
    scale: 1.15;
}

@keyframes whyPlayPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(52, 121, 255, .16);
    }

    50% {
        box-shadow: 0 0 0 13px rgba(52, 121, 255, 0);
    }
}

/* Dotted circle: use the rotate property, not transform */
.visual-dotted-circle {
    animation: whyDottedCircleRotate 35s linear infinite;
}

@keyframes whyDottedCircleRotate {
    to {
        rotate: 360deg;
    }
}

/* Feature icon pop when the section enters the viewport */
.why-feature .feature-icon {
    transition:
        translate 350ms ease,
        scale 350ms ease,
        box-shadow 350ms ease;
}

.why-choose-section.why-visible .why-feature .feature-icon {
    animation: whyIconPop 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.why-choose-section.why-visible .why-feature:nth-child(1) .feature-icon {
    animation-delay: 180ms;
}

.why-choose-section.why-visible .why-feature:nth-child(2) .feature-icon {
    animation-delay: 300ms;
}

.why-choose-section.why-visible .why-feature:nth-child(3) .feature-icon {
    animation-delay: 420ms;
}

.why-choose-section.why-visible .why-feature:nth-child(4) .feature-icon {
    animation-delay: 540ms;
}

@keyframes whyIconPop {
    0% {
        scale: .72;
    }

    65% {
        scale: 1.12;
    }

    100% {
        scale: 1;
    }
}

/* Feature hover stays subtle and doesn't alter card dimensions */
.why-feature:hover .feature-icon {
    translate: 0 -5px;
}

.why-feature .feature-icon i {
    transition: rotate 350ms ease, scale 350ms ease;
}

.why-feature:hover .feature-icon i {
    rotate: -7deg;
    scale: 1.1;
}

.why-feature h3 {
    transition: color 300ms ease;
}

.why-feature:hover h3 {
    color: #3479ff;
}

/* Number badge pulse */
.feature-number {
    animation: whyNumberPulse 2.8s ease-in-out infinite;
}

@keyframes whyNumberPulse {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.07;
    }
}

/* Background lettering: preserve the original translateY(-50%) rotate(90deg) */
.why-background-text {
    animation: whyBackgroundFloat 8s ease-in-out infinite;
}

@keyframes whyBackgroundFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
}

/* Touch devices: avoid sticky hover transforms */
@media (hover: none) {

    .review-avatars img:hover,
    .review-badge:hover .review-arrow,
    .visual-play:hover i,
    .why-feature:hover .feature-icon,
    .why-feature:hover .feature-icon i {
        translate: 0 0;
        scale: 1;
        rotate: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .why-choose-section *,
    .why-choose-section *::before,
    .why-choose-section *::after {
        animation: none !important;
        transition-duration: .01ms !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;
    }
}