:root {
    font-size: 62.5%;
    --black: #252424;
    --grey: #5f5f5f;
    --soft_grey: #dddcdc;
    --soft_white: #eee7e1;
    --white: #fefbfb;
}

html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

body {
    display: flex;
    align-items: center;
    margin: 0 auto;
    /* padding: 0; */
    /* padding-top: 5rem; */
    width: 80%;
    height: 100vh;
    background-color: var(--black);
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Josefin Sans', sans-serif;
}

/* ====================================
=========== FOLDER TEMPLATE ===============
======================================= */
.folder {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    height: 90vh;
}

.container_files {
    display: flex;
    align-items: center;
}

.file {
    margin: 0 0.5rem 0 0;
    padding: 0.3rem 0.5rem;
    width: 200px;
    border: 3px solid var(--black);
    border-bottom: none;
    background-color: var(--white);
    color: black;
    text-align: end;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.file:hover {
    color: transparent;
    background-color: var(--black);
    outline: 3px solid var(--white);
    outline-offset: -4px;
    color: var(--soft_white);
}

.file-1 {
    border-radius: 12px 0 0 0;
}
.file-4 {
    border-radius: 0 12px 0 0;
}

.paper {
    border: 3px solid var(--black);
    border-radius: 0 12px 12px 12px;
    background-color: var(--white);
    position: relative;
}

/* ====================================
=========== WELCOME PAGE ===============
======================================= */
.main_container_welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem;
    width: 80%;
    height: 100%;
    transition-property: opacity;
    transition-duration: 1.5s;
    transition-timing-function: ease-in-out;
}

.main_container_welcome:hover {
    opacity: 0;
    transition-duration: 2s;
}

.heading_1_welcome {
    margin: 0 auto;
    width: 80%;
    font-size: 4rem;
    text-align: end;
}

.text_welcome {
    margin: 0 auto;
    width: 80%;
    font-size: 2rem;
}

.text_welcome > span {
    padding: 0 2rem;
    font-family: bold;
}

.image_welcome {
    position: relative;
    margin: 1rem auto;
    width: 80%;
    height: 70%;
    background-color: black;
    background-image: url(../assets/images/home_page_b&w.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.link_welcome {
    position: absolute;
    inset: 0;
}

.enter_link_welcome {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.enter_link_welcome > p {
    font-size: 8rem;
}

.underscore_animation {
    animation-name: opacity;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes opacity {
    0% {
        opacity: 100%;
    }

    25% {
        opacity: 0%;
    }

    50% {
        opacity: 100%;
    }

    80% {
        opacity: 0%;
    }

    100% {
        opacity: 100%;
    }
}

/* ====================================
=========== ABOUT PAGE ===============
======================================= */
.paper_about {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 1fr;
    padding: 5rem;
}

.container_text_paper_about {
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

.container_text_paper_about_white {
    color: white;
}

.container_text_paper_about_bg_img_about {
    background-image: url(../assets/images/ray_dark.jpg);
}

.heading_2_about {
    margin-bottom: 1.5rem;
    font-size: 7rem;
}

.text_about {
    font-size: 1.7rem;
}
/* button */
.button_about {
    display: inline-block;
    margin: auto auto 1rem;
    padding: 1rem 0;
    width: 200px;
    outline: 3px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.button_about_black {
    outline-color: var(--black);
    color: var(--black);
}

.button_about:active {
    outline-color: var(--white);
    background-color: var(--black);
    outline: none;
    color: var(--white);
}

.container_img_paper_about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.container_animation_about p {
    margin: 0;
    padding: 0;
    opacity: 0%;
    font-size: 2.8rem;
    text-align: right;
    animation-name: display-text;
    animation-duration: 4s;
    animation-delay: 1.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes display-text {
    0% {
        opacity: 0%;
    }

    20% {
        opacity: 20%;
    }

    40% {
        opacity: 40%;
    }

    60% {
        opacity: 60%;
    }

    80% {
        opacity: 80%;
    }
    100% {
        opacity: 100%;
    }
}

.invisible_span {
    font-weight: bold;
}

/* ====================================
=========== WORKS PAGE ===============
======================================= */
.paper_works {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: 1fr;
    padding: 5rem;
}

.container_text_paper_works {
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

.container_text_paper_works_bg_img_about {
    background-image: url(../assets/images/cells.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.container_projects_works {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background-color: var(--black);
    color: var(--white);
}

.project_works {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1.2rem 0;
    padding: 1.5rem;
    border: none;
    background-color: var(--white);
}

.project_works:first-of-type {
    margin-top: 0;
}

.project_works:last-of-type {
    margin-bottom: 0;
}

.project_works:nth-child(odd) {
    transform: skew(0deg, 9deg);
}

.project_works:nth-child(even) {
    transform: skew(0deg, -9deg);
}

.project_works * {
    font-weight: bold;
    color: var(--black);
    text-decoration: none;
}

.project_works i {
    font-size: 2rem;
}

/* ====================================
=========== CONTACT PAGE ===============
======================================= */

.paper_contact {
    align-items: flex-end;
    gap: 2rem;
}

/* form */
.container_form {
    min-width: 500px;
    background-color: black;
    box-shadow: 0px -10px white, 0px -20px black, 0px -30px white,
        0px -40px black, 0px -50px white, 0px -60px black, 0px -70px white,
        0px -80px black, 0px -90px white, 0px -100px black;
    padding: 2.5rem;
}

.container_form * {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.subcontainer_form {
    position: relative;
    display: flex;
    width: 100%;
}

.input_form,
.textarea_form {
    outline: 1px solid rgb(255, 255, 255, 0.5);
    border: none;
    font-family: 'Montserrat', sans-serif;
    background-color: black;
    color: white;
}

.input_form {
    margin-bottom: 2.2rem;
    padding: 0;
    line-height: 1.5;
}

.label_form {
    color: white;
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
}

.input_form:focus + .label_form,
.input_form:not(:placeholder-shown).input_form:not(:focus) + .label_form {
    color: white;
    top: -1.5rem;
    /* left: 5rem; */
    background-color: black;
}

.textarea_form:focus + .label_form,
.textarea_form:not(:placeholder-shown).textarea_form:not(:focus) + .label_form {
    color: white;
    top: -1.5rem;

    background-color: black;
}

.button_form {
    display: block;
    width: 200px;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 4rem;
    background-color: var(--black);
    outline: 3px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.button_form:active {
    background-color: var(--white);
    color: var(--black);
    font-weight: bold;
    outline: 3px solid var(--black);
}

.label_input {
    position: relative;
    margin-bottom: 1.5rem;
}

.paper_contact {
    display: grid;
    grid-template-columns: repeat(2, 50%);
}

.container_form,
.container_text_paper_contact {
    width: 100%;
    height: 80%;
}

.container_text_paper_contact_bg_img_contact {
    place-self: start;
    color: white;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 5rem;
    box-shadow: 0px 10px white, 0px 20px black, 0px 30px white, 0px 40px black,
        0px 50px white, 0px 60px black, 0px 70px white, 0px 80px black,
        0px 90px white, 0px 100px black;
}

/* ====================================
=========== GRID GALLERY ===============
======================================= */

.container_gallery {
    display: grid;
    grid-template-columns: 50px 1fr;
    position: relative;
}

.container_projects {
    padding: 0.5rem;
}

.button_back_container {
    background-color: white;
    border-right: 1px solid black;
    min-width: 50px;
}

.button_back_link {
    display: flex;
    justify-content: center;
    position: relative;
}

.button_back_link i {
    display: block;
    margin-left: auto;
    color: black;
    font-size: 3rem;
    padding-top: 3rem;
    position: fixed;
}

.container_foto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: minmax(200px, auto);
    gap: 0.8rem;
    padding: 20px;
    background-color: black;
    background-color: white;
}

.foto {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
    opacity: 0.8;
}

.foto:hover {
    filter: opacity(0.9);
    transform: scale(1.04);
    outline: 2px solid black;
    opacity: 1;
}

.tall {
    grid-row: span 2;
}

.wide {
    grid-column: span 2;
}

.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================================
=========== CARDS GALLERY ===============
======================================= */
.container_cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    grid-template-rows: repeat(auto-fill, 350px);
    grid-auto-rows: 350px;
    justify-items: center;
}

.card {
    display: flex;
    margin: 1rem;
    padding: 1rem;
    width: 420px;
    background-color: var(--white);
    border: 2px solid var(--black);
}

.card * {
    margin: 0;
    padding: 0;
}

.card:hover {
    -webkit-animation: blink-1 1s ease-in-out both;
    animation: blink-1 1s ease-in-out both;
}

@-webkit-keyframes blink-1 {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0;
    }
}
@keyframes blink-1 {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0;
    }
}

.card_image {
    margin-right: 1rem;
    width: 50%;
}

.card_text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card_service {
    text-transform: uppercase;
    letter-spacing: 5px;
}

.card_heading {
    font-weight: bold;
    font-size: 2.5rem;
    padding-bottom: 1.5rem;
}

.card_paragraph {
    line-height: 1.5rem;
    padding: 1.5rem 0;
}

.button_card {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0.8rem 1.5rem;
    width: 85%;
    background-color: var(--white);
    outline: 2px solid var(--black);
    color: var(--black);
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.button_card:first-of-type {
    margin-top: auto;
    margin-bottom: 1rem;
}

.button_card:last-of-type {
    margin-bottom: 2rem;
}

.button_card::after {
    font: var(--fa-font-solid);
    font-weight: 900;
    content: '\f04b';
    padding-left: 1rem;
}

.button_card:active {
    background-color: var(--black);
    color: var(--white);
    outline: none;
}

/* ====================================
=========== MEDIA QUERIES ===============
======================================= */

/* media queries file*/
@media screen and (max-width: 992px) {
    .files {
        width: 100%;
    }

    .file {
        width: 25%;
        font-size: 1.5rem;
        text-align: left;
    }

    .paper_about {
        display: flex;
        width: 100%;
    }

    .container_text_paper_about {
        width: 100%;
    }

    .container_img_paper_about {
        display: none;
    }
}

/* media query welcome page */
@media screen and (max-width: 992px) {
    .heading_1_welcome {
        font-size: 3rem;
    }

    .enter_link_welcome p {
        font-size: calc(20px + 1.5625vw);
    }
}

@media screen and (max-width: 1267px) {
    .text_welcome {
        font-size: 1.5rem;
    }
}
/* media query about page */
@media screen and (max-width: 992px) {
}
/* media query work page */
@media screen and (max-width: 992px) {
    .paper_works {
        display: flex;
        flex-direction: column;
    }

    .h2order {
        order: -1;
    }
}
/* media query contact page */
@media screen and (max-width: 1503px) {
    .paper_contact {
        grid-template-columns: 60% 40%;
    }

    .text_about {
        padding-bottom: 5rem;
    }
}
@media screen and (max-width: 992px) {
    .paper_contact {
        display: flex;
        flex-direction: column;
    }

    .button_form {
        margin-bottom: 2rem;
    }

    .container_text_paper_contact_bg_img_contact {
        margin-bottom: 7rem;
        order: -1;
    }
}

@media screen and (max-width: 800px) {
    .container_foto {
        display: flex;
        flex-direction: column;
    }
}
