/* Modern Reviews Section Styles */
.reviews-section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Review Cards */
.review-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.review-card:hover::before {
    transform: scaleX(1);
}

/* Quote Icon */
.quote-icon {
    color: #8b5cf6;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.quote-icon svg {
    width: 24px;
    height: 24px;
}

/* Review Content */
.review-content {
    flex: 1;
    margin-bottom: 2rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #e2e8f0;
    font-weight: 400;
    text-align: right;
    direction: rtl;
    margin: 0;
}

/* Review Footer */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Client Info */
.client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.client-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover .client-avatar::before {
    opacity: 1;
}

.client-avatar span {
    position: relative;
    z-index: 1;
}

.client-details {
    min-width: 0;
    flex: 1;
}

.client-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.client-position {
    font-size: 0.875rem;
    color: #8b5cf6;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

/* Rating */
.rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

/* Review Meta */
.review-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.review-date {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.review-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.review-link:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.review-link svg {
    width: 14px;
    height: 14px;
}

/* Review Statistics */
.review-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.review-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.stat-card:hover .stat-icon {
    background: #8b5cf6;
    color: white;
    transform: scale(1.1);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.3;
}

/* Animations */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays for review cards */
.review-card:nth-child(1) {
    animation-delay: 0.1s;
}

.review-card:nth-child(2) {
    animation-delay: 0.2s;
}

.review-card:nth-child(3) {
    animation-delay: 0.3s;
}

.review-card:nth-child(4) {
    animation-delay: 0.4s;
}

.review-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section {
        padding: 80px 4% 60px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .review-card {
        padding: 1.5rem;
        min-height: 250px;
    }

    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .client-info {
        width: 100%;
    }

    .review-meta {
        width: 100%;
        justify-content: space-between;
    }

    .review-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 60px 3% 40px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-stats {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 1.25rem;
    }

    .client-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.9rem;
    }
}