/* Testimonials Section */
.testimonials {
    padding: 120px 8%;
    background-color: #0d0d0d;
}

.testimonials-container {
    max-width: 1300px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 80px;
}

.testimonials-header h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 25px;
    font-family: 'Orbitron', sans-serif;
}

.testimonials-header p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Slider Controls */
.testimonials-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.testimonials-track-container {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 40px;
    will-change: transform;
}

/* Card Design */
.testimonial-card {
    min-width: calc(50% - 20px);
    /* Defaulting to 2 cards per view on desktop for better readability */
    background: #111;
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 24px;
    padding: 45px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-green);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .quote-icon {
    opacity: 0.3;
}

.message {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.testimonial-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details .name {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.client-details .role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tag {
    font-size: 0.8rem;
    background: rgba(0, 255, 136, 0.08);
    color: var(--neon-green);
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.verified-badge {
    font-size: 0.8rem;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Slider Controls */
.slider-btn {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--neon-green);
    color: #0d0d0d;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: scale(1.1);
}

/* Pagination */
.testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background: var(--neon-green);
    box-shadow: 0 0 12px var(--neon-green);
    transform: scale(1.4);
    width: 30px;
    border-radius: 10px;
}

/* CTA */
.testimonials-cta {
    text-align: center;
}

.btn-view-all {
    background: #fff;
    color: #0d0d0d;
    border: none;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials {
        padding: 60px 16px 40px; /* Consistent padding */
    }

    .testimonials-header {
        margin-bottom: 40px;
    }

    .testimonials-header h2 {
        font-size: 2.2rem;
    }

    .testimonials-header p {
        font-size: 1rem;
    }

    .testimonials-slider-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .testimonials-track-container {
        width: 100%;
        overflow: hidden;
    }

    .testimonials-track {
        gap: 0;
    }

    .testimonial-card {
        min-width: 100%;
        flex-shrink: 0;
        padding: 40px 24px 30px;
        min-height: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .quote-icon {
        top: 15px;
        left: 20px;
        right: auto;
        width: 32px;
        height: 32px;
        opacity: 0.15;
    }

    .slider-btn {
        display: none;
    }

    .message {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 30px;
        width: 100%;
    }

    .client-info {
        justify-content: center;
        gap: 12px;
    }

    .client-img {
        width: 50px;
        height: 50px;
    }

    .client-details .name {
        font-size: 1.1rem;
    }

    .testimonial-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}