/* Fullscreen loading screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

/* Logo shine container */
.logo-shine {
    width: 434px;  /* Mobile default */
    height: 282px;
    background-image: url('../img/NIVA AI SOLUTIONS/NIVA AI SOLUTIONS TRANSPARENT.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;

    /* Masking for shine inside logo shape */
    -webkit-mask-image: url('../img/NIVA AI SOLUTIONS/NIVA AI SOLUTIONS TRANSPARENT.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;

    mask-image: url('../img/NIVA AI SOLUTIONS/NIVA AI SOLUTIONS TRANSPARENT.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;

    overflow: hidden;
}

/* Shine effect overlay */
.logo-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: skewX(-25deg);
    animation: shineSweep 2.5s infinite;
    pointer-events: none;
}

/* Shine movement animation */
@keyframes shineSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fade-out effect for loading screen */
#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Responsive sizes */

/* Tablet: 600px to 1023px */
@media (min-width: 600px) and (max-width: 1023px) {
    .logo-shine {
        width: 650px;
        height: 424px;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .logo-shine {
        width: 870px;
        height: 565px;
    }
}
