/* Reviews Section Styles */
.view-reviews {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
}

.reviews-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.reviews-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.reviews-grid {
    column-count: 3;
    column-gap: 2rem;
    perspective: 1000px;
}

@media (max-width: 1024px) {
    .reviews-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        column-count: 1;
    }
}

.review-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    backdrop-filter: blur(10px);
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.review-card:hover::before {
    transform: translateX(100%);
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Staggered animation delays for cards */
.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.3s; }
.review-card:nth-child(3) { animation-delay: 0.5s; }

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 2px;
    background: var(--bg-tertiary);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.review-card:hover .reviewer-avatar {
    transform: rotate(360deg) scale(1.1);
}

.reviewer-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.review-stars {
    color: #ffd700;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.review-stars i {
    animation: starPulse 2s infinite;
}

.review-stars i:nth-child(1) { animation-delay: 0.1s; }
.review-stars i:nth-child(2) { animation-delay: 0.2s; }
.review-stars i:nth-child(3) { animation-delay: 0.3s; }
.review-stars i:nth-child(4) { animation-delay: 0.4s; }
.review-stars i:nth-child(5) { animation-delay: 0.5s; }

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.review-content::before {
    content: '"';
    font-family: serif;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: -1;
}

/* Floating background particles for "crowd" feel */
.reviews-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes popIn {
    0% { transform: scale(0.8) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes slideDown {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
