/* Reviews Section Styles */
.reviews {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.reviews h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 700;
}

.rating-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.overall-rating {
    text-align: center;
    padding: 20px;
}

.overall-rating h3 {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 10px;
    font-weight: 700;
}

.overall-rating .stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.overall-rating .stars i {
    color: #ffd700;
    font-size: 1.5rem;
    animation: twinkle 2s infinite;
}

.overall-rating .stars i:nth-child(2) { animation-delay: 0.2s; }
.overall-rating .stars i:nth-child(3) { animation-delay: 0.4s; }
.overall-rating .stars i:nth-child(4) { animation-delay: 0.6s; }
.overall-rating .stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes twinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.overall-rating p {
    color: #666;
    font-size: 1.1rem;
}

.rating-breakdown {
    padding: 20px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-bar span:first-child {
    min-width: 60px;
    font-size: 0.9rem;
    color: #666;
}

.rating-bar span:last-child {
    min-width: 40px;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f39c12);
    border-radius: 4px;
    transition: width 2s ease;
    animation: fillBar 2s ease;
}

@keyframes fillBar {
    from { width: 0%; }
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: #ff6b35;
    font-family: serif;
    opacity: 0.3;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff6b35;
}

.reviewer-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.reviewer-info .stars {
    display: flex;
    gap: 3px;
}

.reviewer-info .stars i {
    color: #ffd700;
    font-size: 0.9rem;
}

.date {
    color: #999;
    font-size: 0.85rem;
}

.review-card p {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    font-size: 1rem;
}

/* Review Form */
.comment-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.comment-form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-input span {
    color: #2c3e50;
    font-weight: 600;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-rating i:hover,
.star-rating i.active {
    color: #ffd700;
    transform: scale(1.2);
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.comment-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Review Filters */
.review-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.review-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews {
        padding: 60px 0;
    }
    
    .reviews h2 {
        font-size: 2.2rem;
    }
    
    .rating-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .overall-rating h3 {
        font-size: 3rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 25px;
    }
    
    .form-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .comment-form {
        padding: 30px 20px;
    }
    
    .review-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reviews h2 {
        font-size: 1.8rem;
    }
    
    .overall-rating h3 {
        font-size: 2.5rem;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .reviewer-info {
        gap: 10px;
    }
    
    .reviewer-info img {
        width: 40px;
        height: 40px;
    }
    
    .comment-form h3 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in-review {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInReview 0.6s ease forwards;
}

@keyframes fadeInReview {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}