/* ________ HERO __________ */

#hero{
    position: relative;
    overflow: hidden;
    margin-bottom: 120px;
}

.background-hero{
    position: absolute;
    width: 900px;
    height: 900px;
    content: "";
    border-radius: 450px;
    background-color: var(--secondary-color-4);
    top : -450px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: -1;
    -webkit-transform-origin: center;
    transform-origin: center;
}

.hero-position{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column wrap;
    flex-flow: column wrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 200px;
}

.hero-position *{
    text-align: center;
}

.hero-position p{
    max-width: 600px;
    font-weight: 700;
    color: var(--secondary-color-4);
}

#hero img.frontpage-image{
    width: 100%;
    height:100%;
    position: absolute;
    -o-object-fit: cover;
    object-fit: cover;
    top: 0;
    left: 0;
    mix-blend-mode: screen;
    z-index: -2;
}

.down-hero{
    width: 100%;
    height: auto;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 50px 0px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    
}

.down-hero .arrow-hero{
    height: 100%;
    width: 50px;
    content: "";
}

.down-hero .arrow-hero::after{
    cursor: pointer;
    text-align: center;
    content:"\f107";
    font-size: 4rem;
    font-family: FontAwesome;
    color: var(--secondary-color-4);
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transform:scale(1);
    transform: scale(1);
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    top: 0;
    left: 0;
    position: relative;
}

.down-hero .arrow-hero:hover::after{
    -webkit-transform:scale(2);
    transform: scale(2) translateX(50px);
    color: var(--main-color-2);
}

/* ___________ NEW HERO __________ */

.hero-introduction .background-introduction{
    position: absolute;
    content:"";
    width: 4000px;
    height: 4000px;
    border-radius: 2000px;
    background-color: var(--main-color-1);
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-2000px, -2000px);
    transform: translate(-2000px, -2000px);
    z-index: -5;
}

.hero-introduction{
    position: relative;
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    margin: 50px 0px;
}

.hero-introduction-margin{
    height: calc(100% - 60px);
}



/* _____________ GO DOWN ____________ */

.go-down{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column wrap;
    flex-flow: column wrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 90px;
}

.bubble-go-down{
    width: 15px;
    height: 15px;
    border-radius: 15px;
    background-color: var(--main-color-4);
    -webkit-transform-origin: center;
    transform-origin: center;
}

.bubble-go-down:nth-child(1){
    -webkit-animation: bubbleAnimation 2s infinite 0s;
    animation: bubbleAnimation 2s infinite 0s;
}

.bubble-go-down:nth-child(2){
    -webkit-animation: bubbleAnimation 2s infinite 0.5s;
    animation: bubbleAnimation 2s infinite 0.5s;
}

.bubble-go-down:nth-child(3){
    -webkit-animation: bubbleAnimation 2s infinite 1s;
    animation: bubbleAnimation 2s infinite 1s;
}


@-webkit-keyframes bubbleAnimation{
    0%{ background-color: var(--main-color-4); -webkit-transform: scale(1); transform: scale(1); }
    7%{ background-color: var(--main-color-2); -webkit-transform: scale(1.1); transform: scale(1.1);}
    18%{ background-color: var(--main-color-2); -webkit-transform: scale(1.3); transform: scale(1.3);}
    25%{ background-color: var(--main-color-4); -webkit-transform: scale(1); transform: scale(1);}
    100%{ background-color: var(--main-color-4); -webkit-transform: scale(1); transform: scale(1);}
    
}


@keyframes bubbleAnimation{
    0%{ background-color: var(--main-color-4); -webkit-transform: scale(1); transform: scale(1); }
    5%{ background-color: var(--main-color-2); -webkit-transform: scale(1.1); transform: scale(1.1);}
    20%{ background-color: var(--main-color-2); -webkit-transform: scale(1.3); transform: scale(1.3);}
    25%{ background-color: var(--main-color-4); -webkit-transform: scale(1); transform: scale(1);}
    100%{ background-color: var(--main-color-4); -webkit-transform: scale(1); transform: scale(1);}
    
}

/* ___________ MEDIA QUERIES _________*/

@media (max-width: 768px){
    .background-hero{
        width: 650px;
        height: 650px;
        border-radius: 325px;
        top : -325px;
    }
    
    .hero-position{
        padding-top: 140px;
    }
    
    .hero-position p{
        max-width: 600px;
        font-weight: 700;
    }
    
    #hero{
        margin-bottom: 60px;
    }
}

@media (max-width: 576px){
    .background-hero{
        width: 450px;
        height: 450px;
        border-radius: 225px;
        top : -225px;
    }
}