/* ===== TESTIMONIAL IMAGE ENHANCEMENTS ===== */

/* Enhanced testimonial avatar styling */
.author-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.author-avatar img,
.testimonial-avatar {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    background: #f8fafc; /* Fallback color */
    position: relative;
    z-index: 2;
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, #f59e0b, #06b6d4, #8b5cf6);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.8;
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.author-avatar:hover img,
.author-avatar:hover .testimonial-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Testimonial card improvements */
.testimonial-card-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.testimonial-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

/* Quote icon enhancement */
.quote-icon-wrapper {
    position: relative;
    display: inline-block;
}

.quote-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* ===== FOOTER LOGO ENHANCEMENTS ===== */

/* Footer logo container */
.footer-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* ===== FOOTER BRAND STYLING ===== */

.footer-brand h4 {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    margin-bottom: 0;
    transition: all 0.3s ease-in-out;
}

.footer-brand h4:hover {
    color: #fbbf24;
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Remove old footer logo styles since we're not using images anymore */
.footer-logo-container,
.footer-logo,
.footer-logo-fallback {
    display: none !important;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 768px) {
    .author-avatar img,
    .testimonial-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    .author-avatar::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    .footer-logo {
        max-height: 45px !important;
    }
    
    .testimonial-card-modern {
        padding: 2rem !important;
    }
}

@media (max-width: 480px) {
    .author-avatar img,
    .testimonial-avatar {
        width: 70px !important;
        height: 70px !important;
    }
    
    .footer-logo {
        max-height: 40px !important;
    }
}

/* ===== IMAGE LOADING STATES ===== */

/* Loading placeholder for testimonial images */
.author-avatar img[src=""],
.author-avatar img:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error state for broken images */
.author-avatar img[alt]:after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8fafc;
    color: #64748b;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    width: 90%;
    z-index: 3;
}

/* Logo loading state */
.footer-logo[src=""],
.footer-logo:not([src]) {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-width: 120px;
    min-height: 40px;
}

/* ===== AVATAR FALLBACK STYLING ===== */

.avatar-fallback {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.avatar-fallback::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, #f59e0b, #06b6d4, #8b5cf6);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    animation: rotate 6s linear infinite;
}

@media (max-width: 768px) {
    .avatar-fallback {
        width: 80px;
        height: 80px;
    }
    
    .avatar-fallback::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    .avatar-fallback i {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    .avatar-fallback {
        width: 70px;
        height: 70px;
    }
    
    .avatar-fallback i {
        font-size: 2.5rem !important;
    }
}