.fade-in-letter {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.bg-video {
    width: 250%;
    height: 100%;
    overflow: hidden;
}

.bg-video video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-57.5%);
}

.bg-video1 {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-video1 video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
}

.animation-container {
    gap: 0; /* Removes any default gap between flex items */
}

/* Base styles for each letter */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: enter 1s forwards;
}

/* Animation for entering letters */
@keyframes enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternating directions using nth-child */
.letter:nth-child(even) {
    animation-name: enter-up;
}

.letter:nth-child(odd) {
    animation-name: enter-down;
}

/* Animation for letters entering from the top */
@keyframes enter-up {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

  /* Animation for letters entering from the bottom */
@keyframes enter-down {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Delay each letter's animation based on its index */
.letter {
    animation-delay: calc(var(--i) * 0.1s);
}

.dots::after {
    content: '';
    display: inline-block;
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    33%  { content: '.'; }
    66%  { content: '..'; }
    100% { content: '...'; }
}