/* ============================================
   REVIEWS SECTION - Modern Card UI Design
   ============================================ */

/* Reviews Section Container */
.reviews-section-modern {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    overflow: hidden;
}

/* Section Header */
.reviews-section-modern .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-section-modern .section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 20px;
}

.reviews-section-modern .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.reviews-section-modern .section-title .highlight {
    color: #7c3aed;
    position: relative;
}

.reviews-section-modern .section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Review Card - Modern UI */
.review-card-modern {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.review-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed 0%, #d4af37 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.review-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.review-card-modern:hover::before {
    transform: scaleX(1);
}

/* Quote Icon */
.review-quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    color: rgba(124, 58, 237, 0.08);
    transition: all 0.4s ease;
}

.review-card-modern:hover .review-quote-icon {
    color: rgba(124, 58, 237, 0.15);
    transform: scale(1.1) rotate(-5deg);
}

/* Card Header - User Info */
.review-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.review-card-modern:hover .review-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 0.2);
}

.review-user-info {
    flex: 1;
}

.review-user-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: block;
}

.review-date {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-date i {
    font-size: 0.75rem;
}

/* Star Rating */
.review-rating {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.review-rating i {
    font-size: 0.875rem;
    color: #fbbf24;
}

/* Review Text */
.review-text {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 16px;
}

.verified-badge i {
    font-size: 0.875rem;
}

/* Alternative Layout - Featured Review */
.review-card-featured {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #ffffff;
    grid-column: span 1;
}

.review-card-featured .review-user-name {
    color: #ffffff;
}

.review-card-featured .review-date {
    color: rgba(255, 255, 255, 0.8);
}

.review-card-featured .review-text {
    color: rgba(255, 255, 255, 0.95);
}

.review-card-featured .review-quote-icon {
    color: rgba(255, 255, 255, 0.1);
}

.review-card-featured:hover .review-quote-icon {
    color: rgba(255, 255, 255, 0.15);
}

.review-card-featured .verified-badge {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

/* Decorative Background Elements */
.reviews-section-modern::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.reviews-section-modern::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 991px) {
    .reviews-section-modern {
        padding: 80px 0;
    }

    .reviews-section-modern .section-title {
        font-size: 2.25rem;
    }

    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .review-card-modern {
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .reviews-section-modern {
        padding: 60px 0;
    }

    .reviews-section-modern .section-header {
        margin-bottom: 40px;
    }

    .reviews-section-modern .section-title {
        font-size: 1.875rem;
    }

    .reviews-section-modern .section-description {
        font-size: 1rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-card-modern {
        padding: 24px;
    }

    .review-quote-icon {
        font-size: 2.5rem;
        top: 20px;
        right: 20px;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
    }

    .review-user-name {
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .reviews-section-modern .section-title {
        font-size: 1.625rem;
    }

    .reviews-section-modern .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .review-card-modern {
        padding: 20px;
    }

    .review-card-header {
        gap: 12px;
        margin-bottom: 16px;
    }
}

/* Animation on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card-modern {
    animation: fadeInUp 0.6s ease-out;
}

.review-card-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.review-card-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.review-card-modern:nth-child(3) {
    animation-delay: 0.3s;
}

.review-card-modern:nth-child(4) {
    animation-delay: 0.4s;
}

.review-card-modern:nth-child(5) {
    animation-delay: 0.5s;
}

.review-card-modern:nth-child(6) {
    animation-delay: 0.6s;
}
