@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100&display=swap');

*{
    padding: 0;
    margin:0;
    box-sizing:border-box;
}

html{
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
}

a{ 
    text-decoration: none;
    color:grey;
    background-color: transparent;
}

.container {
    min-height: 100vh;
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center ;
}

/* Hero section */
#hero{
    background-image: url(./img/bg.png);
    background-size: cover;
    background-position: center center;
    position: relative;
    z-index: 1;
}

#hero::after{
    content:'';
    position: absolute;
    left:0;
    top:0;
    height: 100%;
    width:100%;
    background-color: black;
    opacity: 0.65;
    z-index: -1;
}

#hero .hero{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    justify-content: flex-start;
}

#hero h1{
    display:block;
    width:fit-content;
    font-size: 4rem;
    position:relative;
    color: transparent;
    animation: text_reveal .5s ease forwards;
}
#hero h1:nth-child(1){
    animation-delay: 1s;
}
#hero h1:nth-child(2){
    animation-delay: 2s;
}
#hero h1:nth-child(3){
    animation-delay: 3s;
}

#hero h1 span{
    position: absolute;
    top:0;
    left:0;
    height:100%;
    width:0%;
    background-color: crimson;
    animation: text_reveal_box 1s ease;
}
#hero h1:nth-child(1) span{
    animation-delay: .5s;
}
#hero h1:nth-child(2) span{
    animation-delay: 1.5s;
}
#hero h1:nth-child(3) span{
    animation-delay: 2.5s;
}

#hero h2{
    display:block;
    width:fit-content;
    font-size: 2rem;
    position:relative;
    color: transparent;
    animation: subtext_reveal .5s ease forwards;
    animation-delay: 0s;
}

#hero h2 a{
    transition: .5s ease;
    color: grey;
    background-color: transparent;
    transition-property: background-color, color;
    transition-delay: 0s;
}

#hero h2 span{
    position: absolute;
    top:0;
    left:0;
    height:100%;
    width:0%;
    background-color: crimson;
    animation: text_reveal_box 1s ease;
    animation-delay: 3s;
}

#hero .cta{
    display: inline-block;
    padding:10px 10px;
    color: rgba(255, 255, 255, 0.301);
    background-color: transparent;
    border: 1px solid crimson;
    font-size: 2rem;
    text-transform: lowercase;
    letter-spacing: 0.1rem;
    margin-top: 1px;    
    transition: .5s ease;
    transition-property: background-colour, color;
}

#hero .cta:hover{
    color:white;
    background-color: crimson;
}

/* Animation/Key Frames */
@keyframes text_reveal_box {
    50%{
        width:100%;
        left: 0;
    }
    100% {
        width:0%;
        left: 100%;
    }
}
@keyframes text_reveal{
    100%{
        color:white;
    }
}
@keyframes subtext_reveal{
    0%{
        color:transparent;
    }
    100%{
        color:grey;
    }
}