*{
    background:linear-gradient(to right, rgb(160, 160, 224), rgb(173, 153, 173), rgb(225, 225, 159));
    margin:0;
    box-sizing:border-box;
}
body{
    display:flex;
    align-items: center;
    min-height: 100vh;
}
nav{
    position: relative;
    display: flex;
    gap:30px;
    padding:15px 60px;
    top:-40%;
}
nav a{
    position:relative;
    text-decoration: none;
    font-size: 1.5em;
    z-index: 2;
    color: indigo;
    border-radius: 50px;
    box-sizing: border-box;
}
h1 span{
    position: relative;
    color: rgba(255, 255, 255, 0.1);
    animation: displayText 9s infinite;
    animation-delay: clac(-3s * var(--i));
    animation-duration: 15s;
}

h1 {
    font-size: 5em;
    color: #fff;
    font-weight: 600;
    padding: 0 100px;
}


@keyframes displayText
{
    0% 
    {
        display:inline-block;
    }
    33.33%,100%
    {
        display:none;
    }
}
h1 span::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: black;
    overflow: hidden;
    border-right: 4px solid black;
    filter: drop-shadow(0 0 5px black) drop-shadow(0 0 25px black);
    animation: animate 3s linear infinite;
}
@keyframes animate
{
    0%,10%,100%
    {
        width:0;
    }
    70%,90%
    {
        width: 100%;
    }
}