/* Animation inspired by  https://css-tricks.com/snippets/css/typewriter-effect/ Typewriter Effect: */
/* type writer animation */
.typewriter h1 {
    overflow: hidden;
    border-right: .15em solid transparent; 
    white-space: nowrap; 
    margin: 0 auto; 
    animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end 3;
}

.typewriter h2 {
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    visibility: hidden;
    border-right: .15em solid transparent;
    animation: typingH2 2.5s steps(30, end) 2.5s forwards,      
    blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
    from { width: 0% }
    to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--font-color); }
}

@keyframes typingH2 {
    from { 
        width: 0%;
        visibility: visible; 
    }
    to { 
        width: 44%;
        visibility: visible;
    }
}
/* End of type writer */

/* Hero Button animation */
.hero a {
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
    animation-delay: 5.0s;
}

@keyframes fadeIn {
    to { opacity: 1;}
}
/* End of hero button */

/* Animation inspired by  https://prismic.io/blog/css-hover-effects#9-rotating-cube CSS Hover Effects: */
/* Hologram effect */
.hologram-card {
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.5s ease;
    height: 104%;
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    #ced9fa88
);
    transform: rotate(-45deg);
    transition: all 1s ease;
    opacity: 0;
}

.hologram-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ced9fa88;
}

.hologram-card:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

.hologram-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}
/* End of the hologram effect */

/* Responsive design */
@media (max-width: 768px) {
    .typewriter h1 {
        animation: 
        typing 3.0s steps(40, end),
        blink-caret .75s step-end 4;
    }

    .typewriter h2 {
        animation: typingH2 2.5s steps(30, end) 3s forwards,      
        blink-caret .75s step-end infinite;
    }

    @keyframes typingH2 {
        from { 
            width: 0%;
            visibility: visible; 
        }
        to { 
            width: 93%;
            visibility: visible;
        }
    }
}
/* End of responsive design */