/* Full screen fixed overlay */
.aj-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

/* Hide when animation finishes */
.aj-welcome-overlay.aj-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.aj-animation-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Default states before animation starts */
.aj-company-logo,
.aj-company-name,
.aj-company-tagline {
    opacity: 0; /* Hidden initially */
    margin-bottom: 20px;
}

.aj-company-name {
    margin-bottom: 10px;
}

/* 
 * The animations are triggered when the wrapper gets the .aj-animate-active class via JS.
 * The animation-delay and animation-name are set dynamically inline via PHP.
 */
.aj-animate-active .aj-company-logo,
.aj-animate-active .aj-company-name,
.aj-animate-active .aj-company-tagline {
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    animation-fill-mode: forwards; 
}


/* Keyframes Dictionary */

@keyframes ajZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ajScrollUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ajFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes ajSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button */
.aj-start-btn {
    position: absolute;
    z-index: 10;
    padding: 15px 30px;
    font-size: 18px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.aj-start-btn:hover { transform: scale(1.05); }
.aj-start-btn.aj-btn-hidden { display: none; }