﻿.reviews-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: transparent;
}

    .reviews-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
    }

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== SLIDER CONTAINER ===== */
.reviews-slider-container {
    position: relative;
    max-width: 95vw;
    margin: 0 auto;
}

.reviews-wrapper {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.reviews-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    padding: 15px;
    background: transparent !important;
}

/* ===== REVIEW CARDS ===== */
.review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
    position: relative;
    min-height: 100px;
}

    .review-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .review-card:hover::before {
        transform: scaleX(1);
    }

    .review-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 18px 45px rgba(102, 126, 234, 0.2);
    }

.card-content {
    padding: 15px;
    position: relative;
}

/* ===== QUOTE ICON ===== */
.quote-icon {
    color: #667eea;
    margin-bottom: 12px;
    opacity: 0.8;
}

    .quote-icon svg {
        animation: float 3s ease-in-out infinite;
    }

/* ===== STARS ===== */
.stars-container {
    margin-bottom: 10px;
    display: flex;
    gap: 4px;
}

.star {
    font-size: 18px;
    color: #ddd;
    transform: scale(0);
    animation: starPop 0.5s ease forwards;
}

    .star.filled {
        color: #ffc107;
        text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
    }

    .star:nth-child(1) {
        animation-delay: 0.1s;
    }

    .star:nth-child(2) {
        animation-delay: 0.2s;
    }

    .star:nth-child(3) {
        animation-delay: 0.3s;
    }

    .star:nth-child(4) {
        animation-delay: 0.4s;
    }

    .star:nth-child(5) {
        animation-delay: 0.5s;
    }

/* ===== REVIEW TEXT ===== */
.review-text {
    font-size: 15px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 12px;
    font-style: italic;
    position: relative;
    padding-left: 16px;
}

    .review-text::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, #667eea, #764ba2);
        border-radius: 2px;
    }

/* ===== REVIEWER INFO ===== */
.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 3px 0;
}

.review-date {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ===== NAVIGATION ===== */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

    .slider-nav:hover {
        background: white;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
        transform: translateY(-50%) scale(1.05);
    }

    .slider-nav.prev {
        left: -20px;
    }

    .slider-nav.next {
        right: -20px;
    }

/* ===== DOTS NAVIGATION ===== */
.slider-dots {
    text-align: center;
    margin-bottom: 20px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dot.active {
        background: white;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

    .dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

/* ===== PROGRESS BAR ===== */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.6s ease;
    width: 33.33%;
}

/* ===== FLOATING BACKGROUND ELEMENTS ===== */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 50px;
    height: 50px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes starPop {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(120deg);
    }

    66% {
        transform: translateY(8px) rotate(240deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .slider-nav {
        display: none;
    }

    .reviews-slide {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .card-content {
        padding: 15px;
    }

    .reviews-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 12px;
    }

    .review-card {
        margin: 0 4px;
    }
}

/* ===== ACCESSIBILITY ===== */
.slider-nav:focus,
.dot:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .reviews-track,
    .review-card,
    .star,
    .floating-element {
        animation: none;
        transition: none;
    }
}
