.lazy-section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lazy-section:not(.loaded) {
    opacity: 0;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.lazy-section:not(.loaded)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

.lazy-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}