
/* ORDEN de estilos:
1- Posicionamiento --> static, absolute, relative, fixed
2- Modelo de caja (Box model) --> margin, border, padding, content
3- Tipografía --> tipos, tamaños de fuente, etc
4- Estilos visuales --> box-shadow, border-radius, gradient, etc
5- Otros --> reglas CSS y más 
*/

:root{
    --main-color-red: #ff043a;
    --main-color-blue: #15a9eab8;
    --main-white:#fcfafa;
    --secondary-white:#FAF8F7;
    --main-black: #201c1c;
    --secondary-black: #282623;
    --main-font:'DM Sans',sans-serif;
}

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

html{
    font-size: 62.5%;
    font-family: var(--main-font);
    scroll-behavior: smooth;
    transition: all 500ms;
}

/* header styles */
header{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    height: 90vh;
    min-height: 652px;
    max-height: 900px;
    text-align: center;
    background-image: linear-gradient(134deg, #e1244eb0 0%, #15a9eab8 100%), url(img/main-image.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* logo */
header img{
    width: 300px;
    height: 300px;
}


.main-title__container{
    width: 76%;
    min-width:288px;
    max-width: 900px;
}

.main-title__container h1{
    margin-top: 20px;
    font-size: clamp(3rem, 3vw, 4rem);
    line-height: 1.4em;
    color:var(--main-white);
  
}

.main-title__container p{
    margin-top: 150px;
    font-size:clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.5em;
    color: var(--secondary-white);
}

.header__button{
    position: absolute;
    top: 96%;
    left: calc(50% - 126px);
    padding: 1.2em 3.7em;
    display: block;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 2.5rem;
    color: var(--main-color-red);
    box-shadow: 0px 4px 8px rgb(89 73 30 / 16%);
    border-radius: 4px;
    background: var(--secondary-white);
    transition: all 500ms;
    z-index: 5;
}

.header__button:hover{
    background:#e1244dfa;
    color: var(--secondary-white);
}

.header__button:focus{
    background:#e1244dfa ;
    color: var(--secondary-white);
}

/* main styles */

main{
    position: relative;
    width: 100%;
    min-width: 320px;
    height: auto;
}

/* About section */
.about-section{
    position: relative;
    width: 100%;
    min-width: 320px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(0deg, var(--main-color-blue) 0%, var(--secondary-white) 46%);

}

.about-section div{
    margin-top:150px;
    margin-bottom: 100px;
}

.about-section h2{
    font-size:3rem;
    font-weight: 700;
    color: var(--main-color-red);
}

.about-card__container{
    width: 80%;
    min-width: 288px;
    max-width: 900px;
    min-height: 600px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.about-card{
    width:30%;
    min-width: 250px;
    max-width: 500px;
    height: 300px;
    margin: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background: var(--main-white);
    border: 1px solid var(--secondary-white);
    box-shadow: 0px 0px 8px #b6b6b6;
    border-radius: 5px;
    transition: all 500ms;
}

.about-card img{
    width: 80px;
    height: 80px;
}

.about-card h3{
    font-size:2rem;
    font-weight: 700;
    color: #626060;
}

.about-card:hover{
    transform: scale(1.1,1.1);
    box-shadow: 0px 0px 20px 9px #ff043a;
    border: 0px;
}

/* Responsive section */

.responsive-section{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-width: 320px;
    min-height: 80vh;
    background:var(--main-color-blue);

}

.content-container{
    margin-top: 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    min-width: 288px;
    max-width: 1200px;
}

.responsive-section .image-container{
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 288px;
    max-width: 550px;
    background: var(--main-color-red);
    box-shadow: 18px -20px 1px 5px #e1244db8;
}

.responsive-section .image-container img{
    width: 288px;
    min-width:288px;
    height: 300px;
}

.responsive-section .text-container{
    margin: 30px;
    padding: 10px;
    min-width: 300px;
    text-align: center;
    color:var(--secondary-white);
}


.responsive-section .text-container h3{
    font-size: clamp(3rem, 3vw, 4.4rem);
    font-weight: 700;
}

.responsive-section .text-container p{
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
}


/* contact section */
#contact-section{
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: var(--main-color-red);
}

.contact-container{
    min-width: 288px;
    max-width: 900px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
}

.contact-container img{
    width: 250px;
    height: 250px;  
}

.contact-container h4{
    padding: 0 0.5em;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--secondary-white);
}

.contact-container .contact-me{
    margin-top: 60px;
    font-size: 2.6rem;
    font-weight: 700;
}

.contact-container input{
    margin: 20px 0;
    padding-left: 10px;
    width: 95%;
    height: 55px;
    font-size: 1.6rem;
    color:var(--main-color-red);
    border: 0px;
    outline: none;
    border-radius: 5px;
    background: var(--secondary-white);
}

.contact-container button{
    margin: 30px 0;
    width: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 3em;
    color: var(--main-color-red);
    background: var(--secondary-white);
    border: 0px;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 500ms;
}

.contact-container button:hover{
    background:#e1244dfa;
    color: var(--secondary-white);
    border: 2px solid var(--secondary-white);
}

/* answer messages  */
.answer{
    display: none;
    margin: 20px 0;
    padding: 20px;
    width: 90%;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--secondary-white);
    border: 1px solid var(--secondary-white);
    border-radius: 5px;
}

.show{
    display: block;
}

.none{
    display: none;
}

/* footer */

footer{
    padding:30px;
    width: 100%;
    min-width: 320px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background: var(--secondary-black);
}

footer h5{
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--main-color-blue);
}

footer h5 span{
    color: var(--main-color-red);
}

footer .social-network{
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--main-color-red);
    text-decoration: none;
    transition: all 300ms;
}

footer .social-network:hover{
    color: #626060;
}
