/* Scanning animation */
@keyframes scanning {
    0% {
        top: 20%; /* Start scanning from 10% down the page */
        opacity: 1;
    }
    50% {
        top: 70%; /* Limit scanning to 50% of the page */
        opacity: 0.5;
    }
    100% {
        top: 20%; /* Return to the starting position */
        opacity: 1;
    }
}

/* Overlay for scanning effect */
.scanning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #EEB218;
    background-image: url('../img/Logo1.png');
    background-repeat: no-repeat; /* Prevent image repetition */
    background-position: center; /* Center the image */
    background-size: 45%; /* Ensure the image scales appropriately */
    z-index: 50;
    overflow: hidden;
}

.scanner-bar {
    position: absolute;
    width: 50%;
    margin-left: 23%;
    height: 10px;
    background: white;
    animation: scanning 1s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 2s ease-in-out forwards; /* Slows the fade-in to 3 seconds */
}

/* Page fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95); /* Optional: Slightly zoomed out for a subtle effect */
    }
    
    100% {
        opacity: 1;
    }
}


.carousel-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Vertically center the items */
    transition: all 0.7s ease-in-out;
    opacity: 0.5;
}

.carousel-item.active {
    z-index: 10;
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
}

.carousel-item.left {
    transform: translate(-120%, -50%) scale(0.9);
    z-index: 5;
}

.carousel-item.right {
    transform: translate(120%, -50%) scale(0.9);
    z-index: 5;
}