/* ==========================================================================
   JH Web Solutions - Dynamic Client Testimonials Stylesheet (client.css)
   ========================================================================== */

:root {
    --jh-client-bg-start: #080f1d;
    --jh-client-bg-mid: #0d1b33;
    --jh-client-bg-end: #070d18;
    --jh-client-card-bg: rgba(255, 255, 255, 0.04);
    --jh-client-card-border: rgba(255, 255, 255, 0.08);
    --jh-client-card-hover-border: rgba(59, 130, 246, 0.4);
    --jh-client-text-main: #f8fafc;
    --jh-client-text-muted: #94a3b8;
    --jh-client-gold: #fbbf24;
    --jh-client-blue: #3b82f6;
    --jh-client-cyan: #06b6d4;
    --jh-client-emerald: #10b981;
}

/* Main Section Wrapper */
.jh-client-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    padding: 75px 0 85px;
    background: linear-gradient(165deg, var(--jh-client-bg-start) 0%, var(--jh-client-bg-mid) 50%, var(--jh-client-bg-end) 100%);
    overflow: hidden;
    color: #ffffff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Atmospheric Radiant Glows */
.jh-client-section::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

.jh-client-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -80px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, rgba(6, 182, 212, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.jh-client-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Component */
.jh-client-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
}

.jh-client-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 16px;
}

.jh-client-beacon {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.jh-client-beacon::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.5);
    animation: jhClientBeaconPulse 2s infinite ease-in-out;
}

@keyframes jhClientBeaconPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

.jh-client-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.28;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.jh-client-title-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.jh-client-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: var(--jh-client-text-muted);
    margin: 0 0 24px;
}

/* Trust Metric Bar */
.jh-client-trust-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    backdrop-filter: blur(8px);
}

.jh-client-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

.jh-client-trust-item i {
    color: var(--jh-client-gold);
    font-size: 14px;
}

.jh-client-trust-item .fa-check-circle {
    color: var(--jh-client-emerald);
}

.jh-client-trust-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* Carousel / Slider Container */
.jh-client-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.jh-client-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.jh-client-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Individual Card Slide */
.jh-client-slide {
    flex: 0 0 33.3333%;
    padding: 0 12px;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .jh-client-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 640px) {
    .jh-client-slide {
        flex: 0 0 100%;
        padding: 0 6px;
    }
}

/* Testimonial Card */
.jh-client-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 330px;
    background: var(--jh-client-card-bg);
    border: 1px solid var(--jh-client-card-border);
    border-radius: 16px;
    padding: 28px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.jh-client-card:hover {
    transform: translateY(-5px);
    border-color: var(--jh-client-card-hover-border);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.15);
}

/* Top Meta Row in Card */
.jh-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.jh-client-rating-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jh-client-stars {
    color: var(--jh-client-gold);
    font-size: 14px;
    letter-spacing: 1px;
}

.jh-client-score-pill {
    margin-left: 6px;
    padding: 2px 7px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    color: #fef08a;
    font-size: 11px;
    font-weight: 700;
}

.jh-client-badge-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jh-client-quote-mark {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

/* Testimonial Quote Text */
.jh-client-body {
    flex-grow: 1;
    margin-bottom: 22px;
}

.jh-client-feedback {
    font-size: 14.5px;
    line-height: 1.68;
    color: #cbd5e1;
    margin: 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author Profile Row */
.jh-client-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jh-client-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.jh-client-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #0f172a;
    display: block;
}

.jh-client-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jh-client-info {
    flex-grow: 1;
    min-width: 0;
}

.jh-client-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.jh-client-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.jh-client-verified-icon {
    color: #10b981;
    font-size: 13px;
    flex-shrink: 0;
}

.jh-client-role-company {
    font-size: 12.5px;
    color: var(--jh-client-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.jh-client-location-text {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

/* Carousel Navigation Controls */
.jh-client-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

.jh-client-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jh-client-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jh-client-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.jh-client-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jh-client-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.jh-client-arrow:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.jh-client-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Bottom CTA Banner */
.jh-client-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.jh-client-cta-text {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.jh-client-cta-text strong {
    color: #ffffff;
}

.jh-client-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.jh-client-cta-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .jh-client-section {
        padding: 50px 0 60px;
    }
    .jh-client-title {
        font-size: 26px;
    }
    .jh-client-trust-bar {
        padding: 8px 14px;
        gap: 10px 16px;
    }
    .jh-client-trust-divider {
        display: none;
    }
    .jh-client-card {
        padding: 22px 18px;
        min-height: 290px;
    }
    .jh-client-bottom-cta {
        text-align: center;
        justify-content: center;
    }
}
