@import "main_style.css";
/* @import "font_style.css"; */

.sub_body{
    background-position: 50% 40%, center;
}

/* ================== CONTACT TEXT ============ */
.contact_text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* animation: slideLeft2 1.2s ease-in-out .5s forwards; */
    animation: slideIn2 1.2s ease-in-out .5s forwards;
}

.contact_title{
    margin-top: 4rem;
    color: white;
    text-transform: uppercase;
    font-family: 'Exo';
    text-shadow: 2px 1px 3px hotpink, -2px -1px 3px #1aabff;
    /* font-family: 'Doctor Glitch Regular'; */
}

.desc{
    color: rgb(255, 217, 255);
    text-align: center;
    padding: .5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem;
}

.contact_text a{
    font-family: 'Jost';
    color: rgb(218, 230, 255);
    display: inline-block;
    padding: 0 .5rem;
}

.contact_text a:hover{
    animation: glitch2 .3s ease-in-out forwards alternate-reverse;
}

/* ==================== CONTACT FORM =========== */
.contact_form{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 1.8rem;
    /* animation: slideRight2 1.2s ease-in-out .5s forwards; */
}

@keyframes slideRight2{
    from{
        opacity: 0;
        transform: translateX(10%);
        backdrop-filter: blur(2px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
        backdrop-filter: blur(2px);
    }
}

@keyframes slideLeft2{
    from{
        opacity: 0;
        transform: translateX(-10%);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

.first_line{
    width: 100%;
}
.form_input{
    width: 100%;
    border-radius: 5px;
    padding: .3rem;
    border: none;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    opacity: 0;
    animation: fadein2 1.2s ease-in-out 1s forwards;
}

::placeholder, input, textarea{
    color: rgba(255, 255, 255, 0.699);
}

textarea.form_input{
    resize: none;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadein2 1.2s ease-in-out 1s forwards;
}

input.form_input:focus, textarea.form_input:focus{
    outline-width: 0;
}

input:focus::placeholder, textarea:focus::placeholder {
    color: transparent;
}

.submit_container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUp2 1.2s ease-in-out 1.5s forwards;
    opacity: 0;
    
}

.submit_button{
    background: linear-gradient(64deg,#c8f1fa,#fd3ecc, #c8f1fa, #fd3ecc, #c8f1fa);
    /* background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82); */
    background-size: 200% 200%;
    z-index: -1;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% + .5rem);
    padding: 1rem;
    position: absolute;
    box-shadow: 0 0 10px #d2b6ff;
    animation: border-flicker3 1s linear infinite alternate-reverse;
}

@keyframes border-flicker3 {
    from{
        box-shadow: 0 0 10px rgba(210, 182, 255, 40%);
    }
    to{
        box-shadow: 0 0 10px rgba(210, 182, 255, 100%);
    }
}

.submit{
    border: none;
    background-color: #292929;
    padding: .3rem 1.5rem;
    border-radius: 3px;
    cursor: pointer;
}

.submit_container:hover .submit_button{
    display: block;
    animation: border-gradient 1s ease-in-out alternate-reverse infinite;
}

@keyframes border-gradient{
    0%{
        background-position: 0% 50%;
    }
    100%{
        background-position: 100% 50%;
    }
    /* 100%{
        background-position: 0% 50%
    } */
}

/* ============ ARROWS IMG =============== */
.arrow_glitch{
    position: fixed;
    left: 0;
    top: 300px;
    display: none;
}
.arrow_glitch img{
    width: 100%;
}

/* ================= FOOTER ================ */
footer{
    opacity: 0;
}

/* ================== MEDIA QUERIES =========== */
@media screen and (min-width: 320px) and (max-width: 479px){
    footer{
        bottom: 0;
        display: none;
    }
}

@media screen and (min-width: 480px){
    .sub_body{
        background-size: 60%, cover;
    }
    .arrow_glitch{
        display: block;
        filter: blur(1px);
        top: 150px;
    }
    .arrow_glitch img{
        width: 70px;
    }
}

@media screen and (min-width: 768px){
    .sub_body{
        background-image: url("../img/triangles_tablet.png"), url("../img/background2.png");
        width: 100%;
        background-repeat: no-repeat, no-repeat;
        background-position: center, center;
        background-attachment: fixed, fixed;
        background-size: auto, cover;
        justify-content: center;
    }
/* ============ main =========== */
    .contact_title{
        font-size: 2.5rem;
        margin: 0 0 1rem 0;
    }
    .desc{
        padding: .5rem 2rem;
        line-height: 1.2rem;
        font-size: 1rem;
    }
/* ===================== form =========== */
    .contact_form{
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        padding: 1rem 3rem;
    }
    .first_line{
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .mail{
        width: 55%;
    }
    .form_input:first-child{
        width: 43%;
    }
/* ================= img =============== */
    .arrow_glitch{
        top: 225px;
    }
}

@media screen and (min-width: 1024px){
    .sub_body{
        background-image: url("../img/triangles_desktop.png"), url("../img/background2.png");
        width: 100%;
        background-size: 85%, cover;
        background-repeat: no-repeat, no-repeat;
        background-position: 40px 35%, center;
        background-attachment: fixed, fixed;
    }
    .main_container{
        grid-template-columns: 1fr 1fr;
    }
    .contact_title{
        font-size: 3rem;
    }
    .contact_text{
        align-items: flex-start;
        padding: 0 5rem;
        animation: slideLeft 1.5s ease-in-out forwards;
    }
    .desc{
        padding: .5rem 0;
        text-align: left;
        font-size: 1.2rem;
        line-height: 1.4rem;
    }
    .desc:nth-child(4){
        margin-bottom: 1.5rem;
    }
    .socials{
        font-size: 1.2rem;
    }
    .socials a:first-child{
        padding-left: 0;
    }
    .contact_form{
        margin-top: 7rem;
        padding: 0 2rem;
    }
    .form_input{
        padding: .5rem;
    }
    textarea.form_input{
        padding-bottom: 5rem;
    }

    .arrow_glitch{
        top: 150px;
    }
    .arrow{
        display: block;
        transform: initial;
        bottom: 5%;
        right: 0;
        left: initial;
        top: initial
    }
    .arrow img{
        width: 80%;
        position: relative;
        right: -20%;
    }
}

@media screen and (min-width: 1400px){
    .contact_title{
        font-size: 4rem;
        margin-bottom: 3rem;
    }
    .contact_form{
        width: 80%;
        justify-content: flex-start;
    }
    .contact_text{
        padding: 0 5rem 0 8rem;
    }
    .socials{
        margin-top: 1rem;
    }
    .submit_container{
        margin-left: .4rem;
    }
    .submit_button{
        padding: 1.15rem;
    }
    .submit{
        padding: .5rem 1.5rem;
    }
    .arrow_glitch{
        top: 200px;
    }
    .arrow_glitch img{
        width: 120px
    }
}