/* Testimonials Section - Static Grid (2026 Trend) */
#section-testimonials {
    padding: 4rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Chat Bubble Style Card */
.review-card {
    background: white;
    border-radius: 1.5rem;
    border-bottom-left-radius: 0.2rem;
    /* Chat bubble effect */
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #64748b;
    font-size: 1.25rem;
}

.review-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.review-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Partners Logo Grid (Simple) */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: 0.3s;
}

.partners-grid:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partners-grid img {
    height: 2.5rem;
    transition: 0.3s;
    opacity: 0.6;
}

.partners-grid img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    width: 90%;
    max-width: 30rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay:target .modal-box {
    transform: scale(1);
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    margin-bottom: 1rem;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dark Mode Testimonials */
[data-theme='dark'] .review-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .review-text {
    color: #e2e8f0;
}

[data-theme='dark'] .review-info h4 {
    color: #f1f5f9;
}

[data-theme='dark'] .review-info span,
[data-theme='dark'] .review-author {
    color: #94a3b8;
}

[data-theme='dark'] .modal-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-theme='dark'] .input-field {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}