/* ============================================================
   HOMEPAGE: "WHY ICON TECH STUDIO" STATS + CLIENT TESTIMONIALS
   ============================================================ */

/* ---------- Why us stats strip ---------- */
.why-us-section {
    position: relative;
    padding: 20px 0;
}

.why-us-head {
    text-align: center;
    margin-bottom: 44px;
}

.why-us-head .heading-tag {
    justify-content: center;
    margin-bottom: 16px;
}

.why-us-title {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
}

.why-us-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-us-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg-secondary);
    border: 1px solid var(--glass-border-light);
    transition: border-color var(--duration-normal) var(--ease-standard),
                transform var(--duration-normal) var(--ease-standard);
}

.why-us-stat:hover {
    border-color: var(--glass-border-purple);
    transform: translateY(-4px);
}

.why-us-num {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1;
    background: var(--btn-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.why-us-label {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.testimonials-head {
    text-align: center;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials-head .heading-tag {
    justify-content: center;
    margin-bottom: 14px;
}

.testimonials-head .section-title {
    margin-bottom: 0 !important;
}

/* Scrollable Horizontal Track */
.testimonials-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(340px, 31vw, 420px);
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 14px 6px 28px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(165, 148, 253, 0.35) rgba(255, 255, 255, 0.03);
}

.testimonials-track:focus-visible {
    outline: 2px solid var(--purple-light, #a594fd);
    outline-offset: 4px;
    border-radius: 20px;
}

/* Custom Webkit Scrollbar */
.testimonials-track::-webkit-scrollbar {
    height: 5px;
}

.testimonials-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    margin: 0 40px;
}

.testimonials-track::-webkit-scrollbar-thumb {
    background: rgba(165, 148, 253, 0.3);
    border-radius: 999px;
    transition: background 0.3s ease;
}

.testimonials-track::-webkit-scrollbar-thumb:hover {
    background: rgba(165, 148, 253, 0.6);
}

/* Testimonial Card */
.testimonial-card {
    scroll-snap-align: start;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 34px 30px 28px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(22, 11, 40, 0.72) 0%, rgba(10, 4, 20, 0.88) 55%, rgba(6, 2, 14, 0.95) 100%);
    border: 1px solid rgba(165, 148, 253, 0.16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(165, 148, 253, 0.03);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100%;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

/* Ambient Radial Glow on hover */
.testimonial-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 148, 253, 0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(165, 148, 253, 0.4);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(165, 148, 253, 0.16);
}

.testimonial-card:hover::before {
    opacity: 1;
    transform: scale(1.3);
}

/* Card Top Row: Star Rating & Quote Icon */
.testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.testimonial-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #a594fd;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
}

.testimonial-quote-icon {
    width: 24px;
    height: 24px;
    color: #a594fd;
    opacity: 0.45;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover .testimonial-quote-icon {
    opacity: 0.85;
    transform: scale(1.08);
}

/* Blockquote & Text */
.testimonial-text {
    margin: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.testimonial-text p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 400;
    letter-spacing: -0.1px;
}

/* Author Meta Footer */
.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(165, 148, 253, 0.12);
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(165, 148, 253, 0.1);
    border: 1.5px solid rgba(165, 148, 253, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.testimonial-avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b184f 0%, #15092c 100%);
    border: 1.5px solid rgba(165, 148, 253, 0.32);
    color: #e2dcff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.testimonial-who {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.testimonial-who strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-who span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View Project Button Link */
.testimonial-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #a594fd;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(165, 148, 253, 0.08);
    border: 1px solid rgba(165, 148, 253, 0.22);
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: auto;
}

.testimonial-link .testimonial-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-link:hover {
    background: rgba(165, 148, 253, 0.2);
    border-color: rgba(165, 148, 253, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(165, 148, 253, 0.25);
}

.testimonial-link:hover .testimonial-arrow {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .testimonials-track {
        grid-auto-columns: clamp(300px, 46vw, 380px);
        gap: 18px;
    }
    .testimonial-card {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .why-us-stat {
        padding: 22px 18px;
    }

    .why-us-label {
        font-size: 13px;
    }

    .testimonials-head {
        margin-bottom: 32px;
    }

    .testimonials-track {
        grid-auto-columns: clamp(285px, 86vw, 360px);
        gap: 16px;
        padding: 8px 4px 18px;
    }

    .testimonial-card {
        padding: 26px 20px 22px;
        border-radius: 18px;
    }

    .testimonial-text p {
        font-size: 14.5px;
        line-height: 1.65;
    }

    .testimonial-meta {
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .testimonial-link {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 4px;
        padding: 7px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .why-us-stat {
        transition: none;
    }
}
