/* ============================================
   TESTIMONIALS SECTION STYLES
   Integrated with Digclo Brand Colors
   ============================================ */

/* Section Background - Match Hero/Features Style */
.testimonials.section {
    --background-color: #3498DB;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --accent-color: #F1C40F;
    --surface-color: rgba(0, 0, 0, 0.25);

    background-color: var(--background-color);
    color: var(--default-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Gradient background pattern similar to hero section */
.testimonials.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1200px 600px at 10% 10%, color-mix(in srgb, var(--accent-color), transparent 80%), transparent 60%),
        radial-gradient(900px 500px at 90% 20%, rgba(0, 0, 0, 0.15), transparent 55%),
        radial-gradient(800px 400px at 50% 80%, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.testimonials.section .container {
    position: relative;
    z-index: 1;
}

/* Section Title Override for White Text */
.testimonials.section .section-title h2,
.testimonials.section .section-title .description-title,
.testimonials.section .section-title p {
    color: var(--heading-color);
}

.testimonials.section .section-title .description-title {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Testimonial Card - Surface style matching other sections */
.testimonial-card {
    background: var(--surface-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
}

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

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

/* Avatar Circle - Brand Colors */
.testimonial-avatar .avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f39c12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card:hover .avatar-circle {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
}

/* Testimonial Info - White text on blue background */
.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
    font-family: var(--heading-font);
}

.testimonial-info .position {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0 0 3px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-info .company {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0 0 5px 0;
}

.testimonial-info .location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.testimonial-info .location i {
    color: var(--accent-color);
    font-size: 14px;
}

/* Rating Stars - Yellow accent */
.testimonial-rating {
    margin-bottom: 15px;
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    color: var(--accent-color);
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Testimonial Message */
.testimonial-message {
    position: relative;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.testimonial-message .quote-icon {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 40px;
    color: var(--accent-color);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-message p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding-left: 0;
    font-style: italic;
    font-weight: 400;
}

/* Responsive Design - Mobile First */
@media (max-width: 1199px) {
    .testimonials.section {
        padding: 70px 0;
    }

    .testimonial-card {
        padding: 28px;
    }
}

@media (max-width: 991px) {
    .testimonials.section {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .testimonial-avatar .avatar-circle {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

    .testimonial-info h4 {
        font-size: 17px;
    }

    .testimonial-message p {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .testimonials.section {
        padding: 50px 0;
    }

    .testimonial-card {
        padding: 22px;
        margin-bottom: 20px;
    }

    .testimonial-header {
        gap: 12px;
    }

    .testimonial-avatar .avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .testimonial-info h4 {
        font-size: 16px;
    }

    .testimonial-info .position,
    .testimonial-info .company {
        font-size: 13px;
    }

    .testimonial-info .location {
        font-size: 12px;
    }

    .testimonial-rating i {
        font-size: 15px;
    }

    .testimonial-message p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 575px) {
    .testimonials.section {
        padding: 40px 0;
    }

    .testimonial-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .testimonial-header {
        flex-direction: row;
        gap: 12px;
    }

    .testimonial-avatar .avatar-circle {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .testimonial-info h4 {
        font-size: 15px;
    }

    .testimonial-info .position,
    .testimonial-info .company {
        font-size: 12px;
    }

    .testimonial-info .location {
        font-size: 11px;
    }

    .testimonial-rating {
        margin-bottom: 12px;
    }

    .testimonial-rating i {
        font-size: 14px;
    }

    .testimonial-message {
        padding-top: 15px;
    }

    .testimonial-message .quote-icon {
        font-size: 32px;
        top: 8px;
    }

    .testimonial-message p {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .testimonial-card {
        padding: 18px;
    }

    .testimonial-avatar .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .testimonial-info h4 {
        font-size: 14px;
    }

    .testimonial-message p {
        font-size: 12px;
    }
}

/* Animation on scroll */
@media (prefers-reduced-motion: no-preference) {
    .testimonial-card {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Print styles */
@media print {
    .testimonials.section {
        background: white;
        color: black;
    }

    .testimonial-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .testimonial-info h4,
    .testimonial-info .company,
    .testimonial-message p {
        color: black;
    }
}

