/* Performance Optimizations for IEEE RAS IIT Website */

/* Critical CSS improvements */
.main-header {
    will-change: transform;
}

/* Optimize animations for better performance */
.gallery-block_one-inner {
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Improve image loading performance */
img {
    loading: lazy; /* Enable native lazy loading */
}

/* Critical path images should load eagerly */
.banner-one img,
.logo img,
.header-top img {
    loading: eager;
}

/* Optimize background images */
.journal-one {
    background-attachment: scroll; /* Avoid fixed attachment on mobile */
}

@media (min-width: 768px) {
    .journal-one {
        background-attachment: fixed;
    }
}

/* Reduce paint and layout thrashing */
.wow {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap; /* Improve font loading performance */
}

/* Preload critical resources */
.preload-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Optimize scroll performance */
.main-header {
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .wow,
    .animated,
    .banner-one .down-box {
        animation: none !important;
        transition: none !important;
    }
} 