@keyframes logoRotateToLine {
    0% {
        transform: rotateY(0deg);
    }
    99% {
        opacity: 1;
        transform: rotateY(448deg);
    }
    100% {
        opacity: 0;
        transform: rotateY(450deg);
    }
}


@keyframes rotateTerminalCursor {
    0% {
        transform: rotateY(-90deg);
    }
    1% {
        font-size: 2rem;
    }
    100% {
        transform: rotateY(0deg);
        font-size: 2rem;
    }
}

@keyframes typeWrite {
    to {
        max-width: 100%;
    }
}

@keyframes appear {
    to {
        opacity: 1;
    }
}

@keyframes disappear {
    to {
        transform: rotateY(90deg);
        width: 0;
        font-size: 0;
        opacity: 0;
    }
}


@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white }
}


.title-animation-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    gap: 0;
}

.terminal-line {
    line-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    white-space: nowrap;
    margin-bottom: 2rem;
    width: max-content;
}

.terminal-cursor {
    display: inline-block;
    opacity: 1;
    font-size: 0;
    color: white;
    transform: rotateY(90deg);
    font-weight: bold;
    transform-origin: center;
    animation: 
        rotateTerminalCursor 1s ease-out 3s forwards,
        disappear 1s ease-in 5.5s forwards;
    
}

.terminal-line .title {
    font-size: 3rem;
    max-width: 0;
    overflow: hidden;
    border-right: 0.75rem solid transparent;
    animation: 
        typeWrite 1.2s steps(12, end) 4s forwards,
        blink-caret 750ms step-end 3s 5;
}


.logo-animation {
    position: absolute;
    height: 80px;
    width: auto;
    top: 0;
    animation: logoRotateToLine 2s ease-in 1s forwards;
    transform: scale(1);
    z-index: 3;
}

.subtitle.hidden {
    font-size: clamp(1rem, 0.5vw, 2rem);
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid transparent;
    animation: appear 2s 5.5s forwards;
}