.profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-profile-picture {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.profile-bg-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 60% 40%,
            #35C54F 0%,
            #4AB971 25%,
            /* Cor intermediária */
            #2FA0B0 50%,
            /* Cor final */
            #4AB971 75%,
            /* Cor intermediária */
            #35C54F 100%);
    animation: bgSpin 6s linear infinite, bgFadeInAndScale 3s ease-out;
    position: relative;
    transform: translateY(30px);
    /* testing */
    /* filter: blur(0.5rem); */
    /* opacity: 0.7; */
}

@keyframes bgSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bgFadeInAndScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
        ;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        ;
    }
}

.profile-image {
    width: clamp(300px, 40%, 500px);
    height: auto;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: imgFadeInAndScale 2s ease-out;
    /* testing */
    filter: grayscale(0);
}

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

    100% {
        opacity: 1;
    }
}

.profile-name {
    font-weight: bolder;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #B1F60F, #3BCD4F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 1;
    overflow: hidden;
    /* Garante que o texto não seja visível inicialmente */
    white-space: nowrap;
    /* Impede a quebra de linha */
    animation: nameTypingAnimation 3s steps(40, end);
    /* testing */
    /* position: absolute;
    bottom: 0; */
}

@keyframes nameTypingAnimation {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.section-achievements {
    background-image: linear-gradient(to right, #18181B, #27272A);
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-image: linear-gradient(to right, #397DEB, #84E627);
    border-image-slice: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    animation: imgFadeInAndScale 3s ease-out;
}

.single-achievements {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    border-right-width: 1px;
    border-right-style: solid;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.single-achievements:last-child {
    border-right-width: 0px;
}

.achievement-number {
    color: #3B82F6;
    font-size: 2rem;
    font-weight: bold;
    padding: 0.2rem;
}

.achievement-title {
    color: #D4D4D8;
    font-size: 1rem;
    padding: 0.2rem;
}

.section-profile-role {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-profile-role h1 {
    display: flex;
    flex-direction: row;
}

.symbol-dev {
    color: #71717A;
    margin: 1rem;
}

.profile-role-title {
    color: #FFFFFF;
    margin: 1rem;
    /* testing */
    overflow: hidden;
    /* Garante que o texto não seja visível inicialmente */
    white-space: nowrap;
    /* Impede a quebra de linha */
    animation: typingAnimation 3s steps(40, end);

}

@keyframes typingAnimation {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


.text-loading {
    color: #454547;
    margin: 1rem;
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.section-profile-description {
    text-align: center;
    justify-content: center;
}

.profile-description {
    color: #D1D5DB;
    text-align: center;
    justify-content: center;
    overflow: hidden;
    /* Garante que o texto não seja visível inicialmente */
    white-space: nowrap;
    /* Impede a quebra de linha */
    animation: typingAnimation 3s steps(40, end);
}

/* s-screen  */
@media screen and (max-width: 500px) {
    .profile-bg-image {
        width: 150px;
        height: 150px;
    }

    .profile-image {
        width: 200px;
        height: auto;
    }

    .profile-name {
        font-size: 0.8rem;
    }

    .section-achievements {
        flex-direction: column;

    }

    .single-achievements {
        border-right-width: 0px;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        margin-top: 0;
        margin-bottom: 0;
    }

    .single-achievements:last-child {
        border-right-width: 0px;
        border-bottom-width: 0px;
    }

    .section-profile-role {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .section-profile-role h1 {
        display: flex;
        flex-direction: row;
        font-size: 1.5rem;
    }

    .symbol-dev,
    .profile-role-title,
    .text-loading {
        margin: 0.2rem;
    }

    .profile-description {
        font-size: 1rem;
    }

}

/* m-screen  */
@media screen and (min-width: 501px) and (max-width: 1023px) {
    .profile-bg-image {
        width: 200px;
        height: 200px;
    }

    .profile-image {
        width: 250px;
        height: auto;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .section-achievements {
        max-width: 480px;

    }

    .single-achievements {}

    .single-achievements:last-child {
        border-right-width: 0px;
        border-bottom-width: 0px;
    }

    .section-profile-role h1 {
        display: flex;
        flex-direction: row;
        font-size: 2rem;
    }

    .symbol-dev,
    .profile-role-title,
    .text-loading {
        margin: 0.2rem;
    }

    .profile-description {
        font-size: 1.5rem;
    }
}

/* l-screen  */
@media screen and (min-width: 1024px) {
    .profile-name {
        font-size: 3rem;
    }
}