/* Enhanced css/testimonials.css with Network Nodes Pattern */
.testimonials-content {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Network accent around section title */
.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(52, 152, 219, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(52, 152, 219, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(52, 152, 219, 0.04) 2px, transparent 2px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
}

.carousel-container {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

/* Enhanced carousel with network integration */
.carousel-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(52, 152, 219, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 85% 15%, rgba(52, 152, 219, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 15% 85%, rgba(52, 152, 219, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 85% 85%, rgba(52, 152, 219, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.02) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 120px 120px, 120px 120px, 60px 60px;
    pointer-events: none;
    z-index: -1;
    border-radius: 15px;
}

.testimonials-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.testimonial-card {
    background: linear-gradient(145deg, #2c3e50, #3498db);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #2ecc71;
}

/* Network nodes overlay for testimonial cards */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 120px 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Connection lines within testimonial cards */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.02) 51%, transparent 52%),
        linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.015) 49%, rgba(255, 255, 255, 0.015) 51%, transparent 52%);
    background-size: 150px 150px, 120px 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.image-container {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.testimonial-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ecf0f1;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    color: #ecf0f1;
    flex: 1;
    position: relative;
    z-index: 1;
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Loading States with Network Theme */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(245, 247, 250, 0.9) 0%, rgba(245, 247, 250, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

/* Network-inspired spinner enhancement */
.spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Skeleton loading with network theme */
.skeleton-card {
    background: linear-gradient(145deg, #2c3e50, #3498db);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 80px 80px;
    animation: networkPulse 3s ease-in-out infinite;
}

@keyframes networkPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.skeleton-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(90deg, #34495e 25%, #4a6fa5 50%, #34495e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
    position: relative;
}

.skeleton-text {
    flex: 1;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #34495e 25%, #4a6fa5 50%, #34495e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-line:nth-child(1) {
    width: 90%;
}

.skeleton-line:nth-child(2) {
    width: 95%;
}

.skeleton-line:nth-child(3) {
    width: 80%;
}

.skeleton-line:nth-child(4) {
    width: 60%;
    animation-delay: 0.1s;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Image loading placeholder with network theme */
.image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, #34495e, #4a6fa5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    font-size: 3rem;
    border: 4px solid #ecf0f1;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    animation: networkFloat 4s ease-in-out infinite;
}

@keyframes networkFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.image-loading {
    opacity: 0.5;
}

/* Transition loading state */
.transitioning {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {

    .testimonial-card,
    .skeleton-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .testimonial-image,
    .skeleton-avatar,
    .image-placeholder {
        width: 100px;
        height: 100px;
    }

    .image-container {
        width: 100px;
        height: 100px;
    }

    .testimonial-text p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Adjust network pattern for mobile */
    .section-title::before,
    .carousel-container::before {
        background-size: 60px 60px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .testimonials-content {
        padding: 1.5rem;
    }

    .testimonial-slide {
        padding: 0 1rem;
    }

    .testimonial-card,
    .skeleton-card {
        padding: 1rem;
    }

    .testimonial-text p {
        font-size: 0.9rem;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}