/* Certifications Section */
.certifications-section {
    padding: 10px 0;
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
}

.certifications-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.certifications-track {
    display: flex;
    animation: scroll 30s linear infinite;
    will-change: transform;
    width: max-content;
    min-width: 100%;
}

.certifications-slide {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    flex-shrink: 0;
}

.certifications-slide img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.5);
    opacity: 0.7;
    transition: all 0.3s ease;
    will-change: transform;
}

.certifications-slide img:hover {
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* Pause animation on hover */
.certifications-section:hover .certifications-track {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .certifications-track {
        animation-duration: 40s;
    }
    
    .certifications-slide img {
        height: 60px;
    }
}

@media (max-width: 992px) {
    .certifications-track {
        animation-duration: 45s;
    }
    
    .certifications-slide {
        gap: 30px;
    }
    
    .certifications-slide img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .certifications-section {
        padding: 30px 0;
    }
    
    .certifications-track {
        animation-duration: 50s;
    }
    
    .certifications-slide {
        gap: 25px;
        padding: 0 15px;
    }
    
    .certifications-slide img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .certifications-track {
        animation-duration: 60s;
    }
    
    .certifications-slide {
        gap: 20px;
        padding: 0 10px;
    }
    
    .certifications-slide img {
        height: 35px;
    }
}
