.home{
    display: flex;
    align-items: center;
    padding: 0 9%;
    background: url('../../img/Pages/home-2.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

.home-content{
    max-width: 50rem;
    z-index: 1;
}

.home-content h1{
    position: relative;
    display: inline-block;
    font-size: 6rem;
    line-height: 1;
    padding-bottom: 1rem;
    margin-bottom: 1.3rem;
}
.home-content h1 span{
    color: var(--text-color);
}

.home-content .text-animate{
    position: relative;
    /*width:55.8rem;*/
}
.home-content .text-animate h3{
    position: relative;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    padding-bottom: .5rem;
    color:transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -50rem 0;
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}
.home-content .text-animate h3::before{
    content: '';
    position: absolute;
    top:0;
    left:0;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--main-color);
    z-index: -1;
    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

/* KEYFRAMES ANIMATION */
@keyframes homeBgText {
    0%, 
    10%, 
    100%{
        background-position: -50rem 0;
    }
    65%, 
    85%{
        background-position: -17rem 0;
    }
}
@keyframes homeCursorText {
    0%, 
    10%, 
    100%{
        width: 0;
    }
    65%, 
    78%,
    85%{
        width: 66%;
        opacity: 1;
    }
    75%, 
    81%{
        opacity: 0;
    }
}

.home-content p{
    position: relative;
    font-size:1.6rem;
    margin: 2rem 0 4rem;
}

.home-social{
    position: absolute;
    bottom:4rem;
    width:105px;
    display: flex;
    justify-content: space-between;
}
.home-social a{
    position: relative;
    width: 40px;
    height: 40px;
    display:inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}
.home-social a::before{
    content:"";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}
.home-social a:hover::before{
    width: 100%;
}
.home-social a:hover{
    color: var(--bg-color);
}

.img-hover{
    position: absolute;
    top:0;
    right: 0;
    width: 45%;
    height: 100%;
    background: transparent;
    transition: 3s;
}
.img-hover:hover{
    background: var(--bg-color);
    opacity: .7;
}

/* RESPONSIVE */
@media (max-width: 991px){
    .home{ 
        padding: 0 4%;
    }
}

@media (max-width: 768px){
    .img-hover{
        pointer-events: none;
        background: var(--bg-color);
        opacity: .6;
    }
}

@media (max-width: 520px){
    .home{
        justify-content: center;
    }
    .home-content{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .home-content h1{
        font-size: 5.5rem;
    }
    .home-content p{
        margin: 2rem;
        margin-bottom: 4rem;
    }
    .home-social{
        justify-content: center;
    }

    @keyframes homeBgText {
        0%, 
        10%, 
        100%{
            background-position: -33rem 0;
        }
        65%, 
        85%{
            background-position: 0rem 0;
        }
    }
    @keyframes homeCursorText {
        0%, 
        10%, 
        100%{
            width: 0;
        }
        65%, 
        78%,
        85%{
            width: 100%;
            opacity: 1;
        }
        75%, 
        81%{
            opacity: 0;
        }
    }
}