/* testimonial.css */

/*----testimonial section----*/

.qaorev-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto !important;
    width: 100%;
    max-width: 100vw;
    height: auto !important;
    min-height: 100vh;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(141, 220, 250, 0.2),
        inset 0 1px 1px rgba(141, 220, 250, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(141, 220, 250, 0.3);
    background: rgba(0, 40, 90, 0.4);
}

/* Background Effects */
.qaorev-bg-layer {
    position: fixed;
    width: 100%;
    height: 100%;
    /* ✅ UPDATED - Same as About */
    background: linear-gradient(135deg,
        rgba(141, 220, 250, 0.1) 0%,
        rgba(1, 40, 145, 0.08) 50%,
        rgba(202, 240, 250, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.qaorev-glass-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(141, 220, 250, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141, 220, 250, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.2;
    z-index: 2;
    pointer-events: none;
}

/* Content Container */
.qaorev-content {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto !important;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    z-index: 10;
    padding: clamp(60px, 12vh, 100px) 0;
}

.qaorev-container {
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

/* Animation Classes */
.qaorev-fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.qaorev-fade-in-up.qaorev-animated {
    opacity: 1;
    transform: translateY(0);
}

.qaorev-fade-in-down {
    opacity: 0;
    transform: translateY(-60px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.qaorev-fade-in-down.qaorev-animated {
    opacity: 1;
    transform: translateY(0);
}

.qaorev-scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qaorev-scale-in.qaorev-animated {
    opacity: 1;
    transform: scale(1);
}

/* Section Header */
.qaorev-section-header {
    text-align: center;
    margin-bottom: clamp(50px, 10vh, 80px);
}

.qaorev-badge {
    display: inline-block;
    padding: clamp(8px, 2vw, 12px) clamp(20px, 4vw, 30px);
    /* ✅ UPDATED - Same as About */
     background: linear-gradient(135deg, 
        rgba(0, 5, 37, 0.7) 0%,
        rgba(1, 40, 145, 0.6) 50%,
        rgba(0, 5, 37, 0.7) 100%
    );
    border: 1px solid rgba(141, 220, 250, 0.3);
    border-radius: 50px;
    color: #8ddcfa;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(141, 220, 250, 0.3);
}

.qaorev-section-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    /* ✅ UPDATED - Same as About */
    background: linear-gradient(135deg, 
        #8ddcfa 0%,
        #ccf2fb 25%,
        #caf0fa 50%,
        #8ddcfa 75%,
        #ccf2fb 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: -2px;
    line-height: 1.2;
}

.qaorev-section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(204, 242, 251, 0.7);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Carousel Container */
.qaorev-carousel-wrapper {
    position: relative;
    margin-bottom: clamp(60px, 12vh, 100px);
    padding: clamp(20px, 7vh, 50px) 0;
}

.qaorev-carousel {
    position: relative;
    width: 100%;
    height: clamp(400px, 50vh, 450px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qaorev-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Slide */
.qaorev-slide {
    position: absolute;
    width: min(700px, 90%);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.qaorev-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

/* Testimonial Card */
.qaorev-card {
    /* ✅ UPDATED - Same as About */
     background: linear-gradient(135deg, 
        rgba(0, 5, 37, 0.7) 0%,
        rgba(1, 40, 145, 0.6) 50%,
        rgba(0, 5, 37, 0.7) 100%
    );
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: clamp(40px, 6vw, 60px) clamp(30px, 5vw, 50px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(141, 220, 250, 0.2);
    transition: all 0.3s ease;
    min-height: clamp(450px, 60vh, 500px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qaorev-slide.active .qaorev-card {
    border: 2px solid rgba(141, 220, 250, 0.5);
    box-shadow: 0 40px 100px rgba(141, 220, 250, 0.4);
}

/* Animated Border Effect */
.qaorev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(135deg, #8ddcfa, #caf0fa, #8ddcfa);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
    animation: qaorev-border-move 4s ease-in-out infinite;
}

@keyframes qaorev-border-move {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.qaorev-slide.active .qaorev-card::before {
    opacity: 1;
}

/* Quote Icon */
.qaorev-quote-icon {
    position: absolute;
    top: clamp(20px, 4vw, 30px);
    left: clamp(25px, 5vw, 40px);
    font-size: clamp(3rem, 8vw, 5rem);
    color: rgba(141, 220, 250, 0.15);
    line-height: 1;
    z-index: 1;
}

/* Card Content */
.qaorev-card-content {
    position: relative;
    z-index: 2;
}

.qaorev-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(204, 242, 251, 0.9);
    line-height: 1.9;
    margin-bottom: clamp(30px, 5vh, 40px);
    font-style: italic;
}

/* Author Section */
.qaorev-author {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 20px);
    position: relative;
    z-index: 2;
}

/* Avatar */
.qaorev-avatar-wrapper {
    width: clamp(65px, 12vw, 85px);
    height: clamp(65px, 12vw, 85px);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    box-shadow: 
        0 0 0 3px rgba(0, 0, 0, 0.5),
        0 0 0 5px rgba(141, 220, 250, 0.3),
        0 10px 30px rgba(141, 220, 250, 0.5);
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle, white 100%, black 100%);
    mask-image: radial-gradient(circle, white 100%, black 100%);
}

.qaorev-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    clip-path: circle(50% at 50% 50%);
}

.qaorev-thumb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    clip-path: circle(50% at 50% 50%);
}

.qaorev-author-info {
    flex: 1;
}

.qaorev-author-info h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 8px;
}

.qaorev-author-info p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: rgba(204, 242, 251, 0.6);
}

/* Rating Stars */
.qaorev-rating {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.qaorev-star {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #ffd700;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

/* Navigation */
.qaorev-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(55px, 10vw, 70px);
    height: clamp(55px, 10vw, 70px);
    background: linear-gradient(135deg, rgba(141, 220, 250, 0.2), rgba(202, 240, 250, 0.2));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(141, 220, 250, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.qaorev-nav:hover {
    background: linear-gradient(135deg, rgba(141, 220, 250, 0.4), rgba(202, 240, 250, 0.4));
    border-color: rgba(141, 220, 250, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 20px 50px rgba(141, 220, 250, 0.5);
}

.qaorev-nav:active {
    transform: translateY(-50%) scale(1);
}

.qaorev-nav-prev {
    left: clamp(10px, 3vw, 50px);
}

.qaorev-nav-next {
    right: clamp(10px, 3vw, 50px);
}

.qaorev-nav svg {
    width: clamp(22px, 5vw, 28px);
    height: clamp(22px, 5vw, 28px);
    fill: #8ddcfa;
    filter: drop-shadow(0 2px 8px rgba(141, 220, 250, 0.6));
}

/* Progress Bar */
.qaorev-progress {
    margin-top: clamp(40px, 8vh, 60px);
    text-align: center;
}

.qaorev-progress-bar {
    width: min(400px, 90%);
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto clamp(20px, 4vh, 30px);
    overflow: hidden;
    position: relative;
}

.qaorev-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8ddcfa, #caf0fa);
    border-radius: 10px;
    transition: width 0.25s ease;
    box-shadow: 0 0 20px rgba(141, 220, 250, 0.8);
}

.qaorev-progress-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(204, 242, 251, 0.6);
    font-weight: 600;
}

.qaorev-progress-text span {
    color: #8ddcfa;
    font-weight: 800;
}

/* Thumbnails */
.qaorev-thumbnails {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 3vw, 20px);
    margin-top: clamp(30px, 6vh, 40px);
    flex-wrap: wrap;
    padding: 0 20px;
}

.qaorev-thumb-wrapper {
    width: clamp(58px, 12vw, 75px);
    height: clamp(58px, 12vw, 75px);
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(141, 220, 250, 0.3), rgba(202, 240, 250, 0.3));
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    filter: grayscale(100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.qaorev-thumb-wrapper:hover {
    transform: scale(1.1);
    opacity: 0.8;
    filter: grayscale(50%);
}

.qaorev-thumb-wrapper.active {
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(141, 220, 250, 0.5), 0 15px 35px rgba(141, 220, 250, 0.6);
}

/* Stats Section */
.qaorev-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(25px, 5vw, 40px);
    padding: clamp(40px, 8vw, 70px);
    /* ✅ UPDATED - Same as About */
    background: linear-gradient(135deg, 
        rgba(0, 5, 37, 0.7) 0%,
        rgba(1, 40, 145, 0.6) 50%,
        rgba(0, 5, 37, 0.7) 100%
    );
    backdrop-filter: blur(20px);
    border: 2px solid rgba(141, 220, 250, 0.2);
    border-radius: 35px;
    margin-bottom: clamp(60px, 12vh, 100px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.qaorev-stat-item {
    text-align: center;
}

.qaorev-stat-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 15px;
    display: inline-block;
}

.qaorev-stat-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    /* ✅ UPDATED - Same as About */
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    min-height: clamp(50px, 10vw, 70px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qaorev-stat-label {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(204, 242, 251, 0.8);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* CTA Section */
.qaorev-cta {
    text-align: center;
    padding: clamp(50px, 10vw, 90px) clamp(30px, 6vw, 60px);
    /* ✅ UPDATED - Same as About */
     background: linear-gradient(135deg, 
        rgba(0, 5, 37, 0.7) 0%,
        rgba(1, 40, 145, 0.6) 50%,
        rgba(0, 5, 37, 0.7) 100%
    );
    backdrop-filter: blur(20px);
    border: 2px solid rgba(141, 220, 250, 0.3);
    border-radius: 40px;
    margin-bottom: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.qaorev-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(141, 220, 250, 0.1), transparent);
    animation: qaorevCtaRotate 10s linear infinite;
}

@keyframes qaorevCtaRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qaorev-cta-content {
    position: relative;
    z-index: 1;
}

.qaorev-cta-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    /* ✅ UPDATED - Same as About */
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    line-height: 1.2;
}

.qaorev-cta-text {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(204, 242, 251, 0.8);
    margin-bottom: clamp(35px, 7vh, 45px);
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.qaorev-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.qaorev-btn {
    padding: clamp(18px, 3vw, 22px) clamp(40px, 7vw, 55px);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.qaorev-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.qaorev-btn:hover::before {
    left: 100%;
}

.qaorev-btn-primary {
    /* ✅ UPDATED - Same as About */
    background: linear-gradient(135deg, #8ddcfa 0%, #012891 100%);
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(141, 220, 250, 0.5);
}

.qaorev-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(141, 220, 250, 0.7);
}

.qaorev-btn-secondary {
    background: rgba(204, 242, 251, 0.05);
    color: #ffffff;
    border: 2px solid rgba(141, 220, 250, 0.5);
    backdrop-filter: blur(10px);
}

.qaorev-btn-secondary:hover {
    background: rgba(141, 220, 250, 0.1);
    border-color: #8ddcfa;
    transform: translateY(-5px) scale(1.05);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .qaorev-wrapper {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto !important;
        width: 100%;
        height: auto !important;
        min-height: 100vh;
        z-index: 5;
    }

    .qaorev-section-title {
        letter-spacing: -1px;
    }

    .qaorev-carousel {
        height: auto;
        min-height: 550px;
    }

    .qaorev-card {
        min-height: 500px;
        backdrop-filter: blur(15px);
    }

    .qaorev-text {
        margin-bottom: 30px;
    }

    .qaorev-author {
        flex-direction: row;
    }

    .qaorev-nav:hover {
        transform: translateY(-50%);
    }

    .qaorev-btn:hover {
        transform: scale(1.02);
    }

    .qaorev-btn:active {
        transform: scale(0.98);
    }

    .qaorev-cta-buttons {
        flex-direction: column;
    }

    .qaorev-btn {
        width: 100%;
        justify-content: center;
    }

    .qaorev-glass-grid {
        background-size: 50px 50px;
        opacity: 0.15;
    }

    .qaorev-stats {
        backdrop-filter: blur(15px);
    }
}

@media (max-width: 480px) {
    .qaorev-wrapper {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto !important;
        width: 100%;
        height: auto !important;
        min-height: 100vh;
        z-index: 5;
    }

    .qaorev-badge {
        font-size: 0.7rem;
        padding: 8px 18px;
        letter-spacing: 1px;
    }

    .qaorev-carousel {
        min-height: 600px;
    }
}

/* تحسينات للأداء */
@media (prefers-reduced-motion: reduce) {
    .qaorev-card::before,
    .qaorev-btn::before,
    .qaorev-cta::before {
        animation: none;
    }

    .qaorev-wrapper * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}