@import "./common.css" ;

/* @import '/css/services.css'
@import '/css/about_me.css'
@import '/css/hero.css' */

/* hero part starts */


#hero {
    background-image: url("../img/kiet.jpg");
    background-size: cover;
    position: relative;
    background-position: top center;
    z-index: 1;
}

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

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

#hero h1{
    display: block;
    width: fit-content;
    font-size: 4rem;
    position: relative;
    /* color: white; */
    color: transparent;
    animation: textReveal 1s ease forwards;
    animation-delay: .5s;
}

#hero h1:nth-child(1){
    animation-delay: .7s;
}
#hero h1:nth-child(2){
    animation-delay: 1.7s;
}
#hero h1:nth-child(3){
    animation: textReveal_name 1s ease forwards;
    animation-delay: 2.7s;
}

#hero h1 span{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: crimson;  
    animation: textRevealBox 1.5s ease ;  
    animation-delay: 1s;
    --webkit-animation : textRevealBox 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 .cta{
    display: inline-block;
    padding: 10px 30px;
    /* color: crimson; */
    color: white;
    text-transform: uppercase;
    font-size: 2rem;
    border: 2px solid crimson;
    letter-spacing: .3rem;
    margin-top: 30px;
    transition: .35s ease-in-out background-color; 
    border-radius: 14% 0%;
    background: transparent;
}

#hero .cta:hover{
    background-color: rgb(216, 52, 85);
    color: rgb(255, 255, 255) ;
    
}



@keyframes textRevealBox{
    0%{
        width: 100%;
        left : 0%;
    }
    100%{
        width: 0% ;
        height:10%;
        left: 100%;
    }
}

@keyframes textReveal{
    100%{
        color:white;
    }
}

@keyframes textReveal_name{
    100%{
        color:crimson;
    }
} 

/* hero part ends */

