* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    font-size: 62.5%;


    --white: white;

    --gray-100: #F4F4F4;

    --black-900: black;
    --black-800: #00000040;

    --yellow-500: #D4AF37;
    --yellow-600: #BA9C38;


}

html,
body {
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
}

p,
a,
span {
    font-family: "Istok Web", sans-serif;
}

header {
    height: max-content;


    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;

    gap: 8px;

    color: var(--white);

    padding: 32px 16px 16px 16px;

    background-image: url('./assets/backgroundIMG.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    h2 {
        font-size: 1.8rem;
        font-weight: 600;
        align-self: center;
    }


    h1 {
        font-size: 3.2rem;
        font-weight: 600;
    }


    p {
        font-size: 1.8rem;
        font-weight: 400;
    }

    a {
        text-decoration: none;
        font-weight: 400;
        font-size: 1.6rem;

        color: var(--white);
        background-color: var(--yellow-500);

        padding: 8px;

        border-radius: 4px;
    }


    a:hover {
        transition: background 600ms ease-in-out;
        background-color: var(--yellow-600);
    }

}


main {
    height: max-content;

    display: flex;
    flex-direction: column;

    gap: 16px;

    padding: 16px 8px;

    background-color: var(--gray-100);


    .aboutMe {
        display: flex;
        align-items: center;
        justify-content: center;

        flex-direction: column;

        gap: 10px;

        padding: 8px;


        img {
            width: 250px;
            height: 250px;
            object-fit: cover;
            border-radius: 8px;
        }


        .text {
            width: 100%;

            display: flex;
            flex-direction: column;
            gap: 10px;

            h2 {
                color: var(--black-900);
                font-size: 2.4rem;
                font-weight: 700;
            }

            p {
                color: var(--black-900);
                font-size: 1.8rem;
                font-weight: 400;
            }


        }
    }


    .skills {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;

        gap: 10px;

        padding: 8px;


        .card {
            width: 120px;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            border: 1px solid var(--black-900);
            border-radius: 8px;

            padding: 16px;

            gap: 8px;

            background-color: var(--white);

            box-shadow: 4px 4px 4px 0 var(--black-800);

            span {
                color: var(--black);
                font-size: 1.6rem;
                font-weight: 400;
            }

        }

    }


    .areaOfActivity {

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding: 8px;

        gap: 10px;

        h2 {
            color: var(--black-900);
            font-size: 2rem;
            font-weight: 700;
        }

        .card {
            display: flex;
            flex-direction: column;
            align-items: center;

            padding: 16px;

            gap: 8px;

            border-radius: 8px;
            border: 1px solid var(--black-900);
            background: var(--white);
            box-shadow: 8px 8px 8px 0 var(--black-800);

            h2 {
                color: var(--black-900);
                font-size: 1.6rem;
                font-weight: 600;
            }

            p {
                color: var(--black-900);
                font-size: 1.4rem;
                font-weight: 400;
            }

        }

    }


    .contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        padding: 8px;
        gap: 10px;

        h2 {
            color: var(--black-900);
            font-size: 2rem;
            font-weight: 500;
        }


        .number-email {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 16px;


            .phone,
            .email {
                display: flex;
                align-items: center;
                gap: 8px;

                p {
                    color: var(--black-900);
                    font-size: 1.6rem;
                    font-weight: 400;
                    text-decoration: none;
                }

            }

        }
    }

    .location {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        padding: 8px;

        gap: 10px;


        h2 {
            color: var(--black-900);
            font-size: 2rem;
            font-weight: 500;
        }

        iframe {
            width: 100%;
        }
    }

}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 8px;

    p {
        color: var(--black-900);
        text-align: center;
        font-size: 1.4rem;
        font-weight: 500;
    }

}


@media (min-width: 768px) {

    header {

        h2 {
            font-size: 2.4rem;
            font-weight: 400;
            align-self: flex-start;
        }


        h1 {
            font-size: 3.2rem;
            font-weight: 400;
        }


        p {
            font-size: 1.6rem;
            font-weight: 400;
        }

        a {
            font-size: 1.6rem;
            font-weight: 400;
        }




    }


    main {

        .aboutMe {
            flex-direction: row;
            align-items: flex-start;

            gap: 16px;

            .text {

                h2 {
                    font-size: 2.4rem;
                    font-weight: 700;
                }

                p {
                    font-size: 2.0rem;
                    font-weight: 400;
                }


            }

        }

        .skills {

            .card {
                span {
                    font-size: 1.6rem;
                    font-weight: 400;
                }

            }

        }

        .areaOfActivity {


            h2 {
                font-size: 2.4rem;
                font-weight: 700;
            }

            .card {

                h2 {
                    font-size: 1.8rem;
                    font-weight: 600;
                }

                p {
                    font-size: 1.6rem;
                    font-weight: 400;
                }

            }

        }

        .InformationContact {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;

            .contact {
                width: 100%;

                h2 {
                    font-size: 2.0rem;
                    font-weight: 500;
                }


                .number-email {

                    .phone,
                    .email {

                        p {
                            font-size: 1.6rem;
                            font-weight: 400;
                        }

                    }

                }
            }

            .location {
                width: 100%;
                align-items: center;

                h2 {
                    font-size: 2.0rem;
                    font-weight: 500;
                    text-align: center;
                }

            }
        }

    }
}


@media (min-width: 1024px) {

    header {



        h2 {
            font-size: 2.4rem;
            font-weight: 500;
        }


        h1 {
            font-size: 3.2rem;
            font-weight: 400;
        }


        p {
            font-size: 1.6rem;
            font-weight: 400;
        }

        a {
            font-size: 1.6rem;
            font-weight: 400;
        }

    }


    main {

        .aboutMe {
            flex-direction: row;
            align-items: flex-start;

            gap: 24px;

            img {
                width: 350px;
                height: 350px;
            }

            .text {

                h2 {
                    font-size: 3.2rem;
                    font-weight: 700;
                }

                p {
                    font-size: 2.0rem;
                    font-weight: 400;
                }


            }

        }

        .areaOfActivity {


            h2 {
                font-size: 2.4rem;
                font-weight: 700;
            }

            .card {

                h2 {
                    font-size: 2.0rem;
                    font-weight: 600;
                }

                p {
                    font-size: 1.6rem;
                    font-weight: 400;
                }

            }

        }

        .InformationContact {


            .contact {
                width: 100%;
            }

            .location {
                width: 100%;
                align-items: center;

                h2 {
                    text-align: center;
                }

            }
        }

    }
}