@import url(./main.css);
@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400';

.firstinfo, .badgescard, body {
    display: flex;
    justify-content: center;
    align-items: center;
}

html {
    height: 100%;
}

body {
    background-image: url('../img/background/Ia-tech2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.74); 
    z-index: -1;
}

*, *:before, *:after {
    box-sizing: border-box;
}

.content {
    position: relative;
    animation: animatop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;
}

.card {
    margin-top: 5rem;
    width: 600px;
    min-height: 100px;
    padding: 20px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.card:after {
    content: "";
    display: block;
    width: 190px;
    height: 400px;
    background: rgb(0, 0, 0);
    position: absolute;
    animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) 1s both;
}

.contato {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.linkedin {
    z-index: -1;
}

.badgescard {
    padding: 10px 20px;
    border-radius: 3px;
    background-color: #ECECEC;
    width: 580px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: -1;
    left: 10px;
    bottom: 10px;
    animation: animainfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}
.badgescard span {
    font-size: 1.6em;
    margin: 0px 6px;
    opacity: 0.6;
}

.firstinfo {
    flex-direction: row;
    z-index: 2;
    position: relative;
}
.firstinfo img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}
.firstinfo .profileinfo {
    padding: 0px 20px;
}
.firstinfo .profileinfo h1 {
    font-size: 1.8em;
}
.firstinfo .profileinfo h3 {
    font-size: 1.2em;
    color: #009688;
    font-style: italic;
}
.firstinfo .profileinfo p.bio {
    padding: 10px 0px;
    color: #5A5A5A;
    line-height: 1.2;
    font-style: initial;
    text-align: justify
}

@keyframes animatop {
    0% {
        opacity: 0;
        bottom: -500px;
    }
    100% {
        opacity: 1;
        bottom: 0px;
    }
}
    @keyframes animainfos {
    0% {
        bottom: 10px;
    }
    100% {
        bottom: -42px;
    }
}
@keyframes rotatemagic {
    0% {
        opacity: 0;
        transform: rotate(0deg);
        top: -24px;
        left: -253px;
    }
    100% {
        transform: rotate(-30deg);
        top: -24px;
        left: -78px;
    }
}


@media(max-width: 576px) {
    /* Ajustes adicionais para telas ainda menores */
    .content {
        margin: 0 1rem;
    }



    .card {
        width: 100%;
        padding: 0.5rem;
        margin-top: 3.5rem;
    }

    .badgescard {
        display: flex;
        width: 95%;
        flex-wrap: wrap; /* Permite quebrar linha para ícones */
        justify-content: center;
    }

    .firstinfo .profileinfo {
        padding: 0 0.2rem;
    }

    .badgescard span {
        font-size: 1.2em; /* Reduz mais o tamanho */
        margin: 2px; /* Espaço reduzido */
    }

    .firstinfo img {
        width: 80px; /* Reduz ainda mais o tamanho */
        height: 80px;
    }

    .firstinfo .profileinfo h1 {
        font-size: 1.2em;
    }

    .firstinfo .profileinfo h3 {
        font-size: 0.9em;
    }

    .firstinfo .profileinfo p.bio {
        font-size: 0.8em; /* Texto menor para facilitar leitura em telas pequenas */
        margin-bottom: 0.2rem;
    }
    body:before {
        background: rgba(0, 0, 0, 0.37); 
    }
    .card:after {
        content: "";
        display: block;
        width: 130px;
        height: 400px;
        background: rgb(0, 0, 0);
        position: absolute;
        animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) 1s both;
    }
}