/* Disable Heavy Animations on Sambutan Pimpinan Section */

/* Disable AOS animations on pimpinan section */
section.py-5.bg-light:has(.pimpinan-foto-wrapper) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Remove rotating decorations */
.photo-decoration.dec-1,
.photo-decoration.dec-2 {
    animation: none !important;
    display: none; /* Hide decorations completely for better performance */
}

/* Remove sambutan decoration animation */
.sambutan-decoration {
    animation: none !important;
    display: none; /* Hide decoration for better performance */
}

/* Simplify transitions */
.pimpinan-foto-wrapper,
.sambutan-card {
    transition: none !important;
}

/* Remove hover effects that can cause repaints */
.sambutan-card:hover {
    transform: none !important;
}

/* Optimize will-change for better performance */
.pimpinan-foto,
.pimpinan-foto-placeholder {
    will-change: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    section.py-5.bg-light:has(.pimpinan-foto-wrapper) * {
        animation: none !important;
        transition: none !important;
    }
    
    .photo-decoration,
    .sambutan-decoration {
        display: none !important;
    }
}

/* Performance optimization - use transform3d for GPU acceleration if needed */
.pimpinan-foto,
.sambutan-card {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
