.header {
    background-image: url('images/jpeg-optimizer_profile_photo.jpg');
    color: white;
}

.header::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.header-text {
    position: absolute;
    /* top: 50px; */
    left: 50%;
    transform: translateX(-50%);
    font-size: 70%;
    color: #ffffff;
    letter-spacing: 15px;
    font-weight: normal;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    z-index: 2;
    top: -100px; /* Start above the viewport */
    opacity: 0; /* Start invisible */
    animation: dropFade 1.5s forwards;
}


@keyframes dropFade {
    0% {
        top: -100px;
        opacity: 0;
    }
    100% {
        top: 50px;
        opacity: 1;
    }
}

.header-text p {
    letter-spacing: 15px;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide text overflow */
    opacity: 0;
    animation: typing 3.5s steps(40, end) 0.6s forwards, fadeIn 0.2s ease-in-out 0.6s forwards;
}

@media (max-width: 1180px) {
    .header-text p {
        animation: typing 2s steps(40, end) 1.2s forwards, fadeIn 0.2s ease-in-out 1.2s forwards;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0; /* Start hidden */
    }
    100% {
        opacity: 1; /* Fade out */
    }
}



@keyframes typing {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}