/* ========================================
   DROPHELLO TRUSTED COMPANIES SECTION
   Light Theme with Proper Logo Display
   ======================================== */

.drophello-trusted-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Container */
.drophello-trusted-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Section Header */
.drophello-trusted-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.drophello-trusted-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.drophello-trusted-description {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Logo Carousel Container */
.drophello-trusted-carousel {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    margin: 0 auto;
    width: 100%;
    
    /* Gradient masks for fade effect on edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

/* Logo Track - The Moving Container */
.drophello-trusted-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: drophello-trusted-scroll-animation 40s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Pause animation on hover */
.drophello-trusted-carousel:hover .drophello-trusted-track {
    animation-play-state: paused;
}

/* Individual Logo Item - FIXED */
.drophello-trusted-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 180px;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover effect overlay */
.drophello-trusted-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(18, 140, 126, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}

/* Logo item hover state */
.drophello-trusted-logo-item:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.drophello-trusted-logo-item:hover::before {
    opacity: 1;
}

/* Logo images - FIXED DISPLAY */
.drophello-trusted-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Removed grayscale for better visibility */
    filter: opacity(0.75) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.drophello-trusted-logo-item:hover .drophello-trusted-logo-img {
    filter: opacity(1) contrast(1.2);
    transform: scale(1.05);
}

/* Placeholder for broken images */
.drophello-trusted-logo-img::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
}

/* Alternative text styling for broken images */
.drophello-trusted-logo-img[alt]::after {
    content: attr(alt);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

/* Infinite Scroll Animation */
@keyframes drophello-trusted-scroll-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet - Large */
@media (max-width: 1024px) {
    .drophello-trusted-section {
        padding: 60px 0;
    }
    
    .drophello-trusted-title {
        font-size: 2rem;
    }
    
    .drophello-trusted-description {
        font-size: 1rem;
    }
    
    .drophello-trusted-track {
        gap: 60px;
        animation-duration: 35s;
    }
    
    .drophello-trusted-logo-item {
        width: 160px;
        height: 90px;
        padding: 20px;
    }
}

/* Tablet - Small / Mobile Large */
@media (max-width: 768px) {
    .drophello-trusted-section {
        padding: 50px 0;
    }
    
    .drophello-trusted-container {
        padding: 0 1.5rem;
    }
    
    .drophello-trusted-header {
        margin-bottom: 40px;
    }
    
    .drophello-trusted-title {
        font-size: 1.75rem;
    }
    
    .drophello-trusted-description {
        font-size: 0.95rem;
    }
    
    .drophello-trusted-carousel {
        padding: 30px 0;
    }
    
    .drophello-trusted-track {
        gap: 40px;
        animation-duration: 30s;
    }
    
    .drophello-trusted-logo-item {
        width: 140px;
        height: 80px;
        padding: 18px;
    }
}

/* Mobile - Medium */
@media (max-width: 480px) {
    .drophello-trusted-section {
        padding: 40px 0;
    }
    
    .drophello-trusted-container {
        padding: 0 1rem;
    }
    
    .drophello-trusted-title {
        font-size: 1.5rem;
    }
    
    .drophello-trusted-description {
        font-size: 0.9rem;
    }
    
    .drophello-trusted-carousel {
        padding: 25px 0;
    }
    
    .drophello-trusted-track {
        gap: 30px;
        animation-duration: 25s;
    }
    
    .drophello-trusted-logo-item {
        width: 120px;
        height: 70px;
        padding: 15px;
        border-radius: 12px;
    }
}

/* Mobile - Small */
@media (max-width: 360px) {
    .drophello-trusted-section {
        padding: 35px 0;
    }
    
    .drophello-trusted-title {
        font-size: 1.35rem;
    }
    
    .drophello-trusted-description {
        font-size: 0.85rem;
    }
    
    .drophello-trusted-track {
        gap: 25px;
        animation-duration: 20s;
    }
    
    .drophello-trusted-logo-item {
        width: 110px;
        height: 60px;
        padding: 12px;
    }
}

/* ========================================
   ACCESSIBILITY & SPECIAL MODES
   ======================================== */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .drophello-trusted-track {
        animation: none !important;
    }
    
    .drophello-trusted-carousel {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        padding-bottom: 20px;
        scroll-behavior: smooth;
    }
    
    .drophello-trusted-track {
        justify-content: flex-start;
    }
    
    .drophello-trusted-logo-item {
        transition: none;
    }
    
    .drophello-trusted-logo-item:hover {
        transform: translateY(-2px);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .drophello-trusted-logo-item {
        border: 2px solid #1e293b;
    }
    
    .drophello-trusted-logo-img {
        filter: opacity(1) contrast(1.5);
    }
}

/* Print Styles */
@media print {
    .drophello-trusted-section {
        padding: 20px 0;
        background: white;
        page-break-inside: avoid;
    }
    
    .drophello-trusted-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .drophello-trusted-carousel {
        -webkit-mask-image: none;
        mask-image: none;
        overflow: visible;
    }
    
    .drophello-trusted-logo-item {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .drophello-trusted-logo-img {
        filter: none;
    }
}

/* ========================================
   LOADING STATE (SKELETON) - ENHANCED
   ======================================== */

.drophello-trusted-logo-img[src=""],
.drophello-trusted-logo-img:not([src]),
.drophello-trusted-logo-img[src*="placeholder"] {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: drophello-trusted-skeleton-loading 1.5s ease-in-out infinite;
    min-height: 60px;
    border-radius: 8px;
}

@keyframes drophello-trusted-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Handle broken images gracefully */
.drophello-trusted-logo-img:not([src]),
.drophello-trusted-logo-img[src=""] {
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
}

.drophello-trusted-logo-img:not([src])::before,
.drophello-trusted-logo-img[src=""]::before {
    content: '🏢';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU Acceleration for smooth animations */
.drophello-trusted-track,
.drophello-trusted-logo-item,
.drophello-trusted-logo-item::before {
    transform: translateZ(0);
    will-change: auto;
}

/* Optimize rendering during animation */
.drophello-trusted-track {
    contain: layout style paint;
}

/* Image optimization */
.drophello-trusted-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}