/* ============================================
   STAGE 5: TESTIMONIALS
   ============================================ */

.btrade-testimonials {
    position: relative;
    width: 100%;
    padding: 40px 40px 20px;   /* ← كان 0 فوق، دلوقتي 60px */
    /* احذف سطر margin-top: 2 !important نهائياً */
    background: linear-gradient(180deg, #0a0a0f 0%, #0d1117 50%, #0a0a0f 100%);
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 20px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2196F3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    background: rgba(33, 150, 243, 0.05);
}

.testimonials-title {
    font-family: "Poppins", "Cairo", sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    color: #8b949e;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonials Wrapper with Mask */
.testimonials-wrapper {
    position: relative;
    max-height: 740px;
    overflow: hidden;
}

.testimonials-mask {
    display: flex;
    justify-content: center;
    gap: 24px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    padding: 40px 0;
}

/* Columns */
.testimonials-column {
    flex: 1;
    max-width: 380px;
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scroll-up var(--duration, 15s) linear infinite;
}

.testimonials-track.reverse {
    animation-direction: reverse;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Pause on hover */
.testimonials-column:hover .testimonials-track {
    animation-play-state: paused;
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(33, 150, 243, 0.2),
        0 0 30px rgba(33, 150, 243, 0.1);
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Stars */
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #ffc107;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
}

/* Text */
.testimonial-text {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #c9d1d9;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

/* Author */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(33, 150, 243, 0.3);
    transition: all 0.3s;
}

.testimonial-card:hover .testimonial-avatar {
    border-color: #2196F3;
    transform: scale(1.1);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.testimonial-role {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #6e7681;
    margin-top: 2px;
}

/* Background Glows */
.testimonials-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.testimonials-glow-1 {
    background: #2196F3;
    top: 10%;
    left: -10%;
    animation: float-glow 8s ease-in-out infinite;
}

.testimonials-glow-2 {
    background: #00BCD4;
    bottom: 10%;
    right: -10%;
    animation: float-glow 8s ease-in-out infinite reverse;
}

@keyframes float-glow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hidden-tablet {
        display: none;
    }
    
    .testimonials-mask {
        gap: 20px;
    }
    
    .testimonials-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .btrade-testimonials {
        padding: 60px 20px;
    }
    
    .hidden-mobile {
        display: none;
    }
    
    .testimonials-mask {
        gap: 16px;
    }
    
    .testimonials-title {
        font-size: 28px;
    }
    
    .testimonials-subtitle {
        font-size: 16px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .testimonials-track {
        animation: none;
    }
    
    .testimonials-header {
        opacity: 1;
        transform: none;
    }
}