:root {
    font-size: 62.5%;

    --fc-main: #ffffff;
    --fc-theme: rgb(255, 153, 0);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    color: var(--fc-main);
    font-family: 'Poppins', sans-serif;

    margin-top: 2rem;

    background: #000000 url("../assets/bg.webp") center bottom / cover fixed;

    min-width: 360px;
    min-height: 100vh;
}

::-webkit-scrollbar-track {
    border: 5px solid rgb(0, 0, 0);
    background-color: #1e1e1e;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: #000000;
}

::-webkit-scrollbar-thumb {
    background-color: #523500;
    border-radius: 10px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    background: url("../assets/bg.webp");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    animation: appearFromTheTop 1s;
}

@keyframes appearFromTheTop {
    0% {
        background: none;
        opacity: 0;
        transform: translateY(-5rem);
    }

    100% {
        background: none;
        opacity: 1;
        transform: translateY(0rem);
    }
}

header div p {
    display: flex;
    align-items: center;
}

header div a {
    display: flex;
    gap: .5rem;
    font-size: clamp(2rem, 2rem + 1vw, 3rem);
    height: 45px;
    cursor: pointer;
}

header div span {
    color: var(--fc-theme);
}

header ul {
    display: flex;
    gap: 1rem;
}

header li {
    list-style: none;
}

.iconMenu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
}

.checkMenu {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.checkMenu:focus+.iconMenu span {
    border: .3rem solid var(--fc-theme);
}

.checkMenu:checked+.iconMenu span:nth-child(1){
    -webkit-transform: translateY(10px) rotate(45deg);
    transform: translateY(10px) rotate(45deg);
}

.checkMenu:checked+.iconMenu span:nth-child(2) {
    -webkit-transform: translateY(0px) rotate(-45deg);
    transform: translateY(0px) rotate(-45deg);
}

.checkMenu:checked+.iconMenu span:nth-child(3){
    width: 0;
    opacity: 0;
}

.iconMenu span {
    display: block;
    width: 3rem;
    height: .3rem;
    border: .3rem solid var(--fc-main);
    border-radius: 1px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.iconMenu:hover {
    cursor: pointer;
}

.iconMenu:hover span {
    border: .3rem solid var(--fc-theme);
}

.hide {
    display: none;
}

header img {
    width: 3rem;
    height: 3rem;
    vertical-align: sub;
    margin-right: .5rem;
    filter: grayscale(100%) brightness(200%);

    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

header li:hover img {
    filter: grayscale(0%) brightness(100%);
}

header li:hover a {
    color: var(--fc-theme);
    cursor: pointer;
}

header nav a:focus {
    color: var(--fc-theme);
}

header a:focus img {
    filter: grayscale(0%) brightness(100%);
}

header a {
    text-decoration: none;
    font-size: clamp(2rem, 2rem + 1vw, 2.5rem);
    color: var(--fc-main);

    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    padding-top: 55px;
}

header div,
#home img,
h1,
h2,
.job {
    transition: 0.3s;
}

#home img:hover,
h1:hover,
h2:hover {
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

h4 {
    padding-top: 1.2rem;
    text-align: left;
}

header div:hover,
.job:hover {
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* CARDS */

.card {
    background-color: rgba(255, 153, 0, 0.1);
    padding: 2rem;
    border-radius: 10px;
    min-height: calc(100vh - 95px);
}

#home {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    align-items: center;
}

#home>img {
    max-width: 30rem;
    max-height: 30rem;
    height: auto;
}

.socialMedia {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.socialMedia img {
    max-width: 5rem;
    max-height: 5rem;
    height: auto;
    filter: grayscale(100%) brightness(200%);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.socialMedia a {
    position: relative;
}

.socialMedia a:hover img {
    filter: grayscale(0%) brightness(100%);
}

.socialMedia a:hover span {
    display: block;
    color: var(--fc-main);
}

.socialMedia span {
    position: absolute;
    display: none;
    animation: showSpan 0.5s;
}

#about {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    align-items: center;
}

#about p {
    max-width: 600px;
}

#about>div:first-child {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about>div:last-child {
    flex-basis: 50%;
}

#about h2 {
    margin-bottom: 5rem;
}

#aboutSkills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 3rem;
    row-gap: 5rem;
}

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.skills img {
    width: 7rem;
    height: 7rem;
}

.skills img:hover+span {
    display: block;
    animation: showSpan 0.5s;
}

#portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#portfolio h2 {
    margin-bottom: 5rem;
}

#portfolio>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
}

#portfolio button {
    margin-top: 4rem;
}

.job {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: .2rem solid rgba(255, 153, 0, 0.1);
    border-radius: 2rem;
    width: 30%;
}

.job-img {
    width: 100%;
    padding: 2rem;
    text-align: center;
    background-color: rgba(255, 153, 0, 0.1);
    border-radius: 1.8rem 1.8rem 0 0;
}

.job-img img {
    max-width: 30rem;
    width: 100%;
    height: auto;
    transition: all 0.3s ease-in;

    &:hover {
        transform: scale(1.03);
    }
}

.job-description {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
    gap: 1rem;
    padding: 2rem;
    width: 100%;
}

.job ul {
    text-align: left;
    list-style-position: inside;
}

.job a {
    color: var(--fc-main);
    text-decoration: none;
    transition: all 0.3s ease-in;

    &:hover {
        color: var(--fc-theme);
    }
}

.job-skills {
    display: flex;
    gap: 1.2rem;
    padding: 2rem;
}

.job-skills img {
    max-width: clamp(3rem, 1.5rem + 2vw, 5rem);
    height: auto;
}

@keyframes showSpan {
    0% {
        opacity: 0;
        transform: translateY(1rem);
    }

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

.skills span {
    display: none;
    position: absolute;
    bottom: -3rem;
}

#contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact>div {
    border: .2rem solid rgba(255, 153, 0, 0.1);
    border-radius: 2rem;
    max-width: 75rem;
    width: 100%;
    text-align: center;
}

#contact>div>div:first-child {
    background-color: rgba(255, 153, 0, 0.1);
    border-radius: 1.8rem 1.8rem 0 0;
    padding: 1rem;
}

#cardContact {
    display: flex;
    align-items: center;
}

#messageContact {
    font-size: 2.4rem;
    padding: 2rem 0 2rem 2rem;
    max-width: 23rem;
    line-height: 5rem;
}

#messageContact span {
    font-size: 4rem;
    color: var(--fc-theme);
    display: block;
    transition: 0.3s;
}

#messageContact span:hover {
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

#formContact {
    padding: 2rem;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    background: rgba(255, 153, 0, 0.1);
    background-size: cover;
    border-radius: 2rem;
    padding: 2rem;
    text-align: left;
}

input,
textarea,
button {
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    background: rgb(0, 0, 0, 0.6);
    color: var(--fc-main);
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
    border: none;
    outline: none;
}

input {
    margin-bottom: 1.5rem;
}

textarea {
    margin-bottom: 3rem;
    resize: none;
}

form label {
    width: fit-content;
    padding: 0 .7rem;
    position: relative;
    top: 0px;
    left: 10px;
    background-color: rgb(0, 0, 0, 0.6);
    border-radius: 1rem 1rem 0 0;
    border: none;
    transition: 0.3s;
}

button {
    background-color: rgba(255, 153, 0, 0.6);
    color: #000000;
}

button:hover {
    background-color: rgba(255, 153, 0, 0.9);
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    background: #555b69;
}

form div {
    display: flex;
    flex-direction: column;
}

form div:hover label,
form div:hover input,
form div:hover textarea {
    background-color: rgb(0, 0, 0, 0.8);
}

form div:hover label {
    transform: translateX(50px);
}

#formSent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    font-size: 1.8rem;
}

#formSent h3 {
    display: flex;
    align-items: center;

}

#formSent img {
    width: 60px;
    height: 60px;
    object-position: 6px -5px;
    filter: grayscale(100%) brightness(200%);
}

#gifSection {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

#gifTodo {
    background: url('/assets/gif_todo.gif') no-repeat center ;
}

#gifTeams {
    background: url('/assets/gif_teams.gif') no-repeat center;
}

#gifCodegym {
    background: url('/assets/gif_codegym.gif') no-repeat center;
}

#gifFiiTracker {
    background: url('/assets/gif_fii_tracker.gif') no-repeat center;
}

#gifTodo, #gifTeams, #gifFiiTracker, #gifCodegym {
    margin: 0 auto;
    width: 90%;
    height: 90vh;
    background-size: contain;
}

.hidden {
    opacity: 0;
    transition: all 1.5s;
    transform: translateX(-100%);
}

.hidden2 {
    display: none;
}

.show {
    opacity: 1;
    transition: all 1.5s;
    transform: translateX(0);
}

.socialMedia :nth-child(2) {
    transition-delay: 200ms;
}

#aboutSkills :nth-child(2) {
    transition-delay: 200ms;
}

#aboutSkills :nth-child(3) {
    transition-delay: 400ms;
}

#aboutSkills :nth-child(4) {
    transition-delay: 600ms;
}

#aboutSkills :nth-child(5) {
    transition-delay: 800ms;
}

#aboutSkills :nth-child(6) {
    transition-delay: 1000ms;
}

#aboutSkills :nth-child(7) {
    transition-delay: 1200ms;
}

#aboutSkills :nth-child(8) {
    transition-delay: 1400ms;
}

#aboutSkills :nth-child(9) {
    transition-delay: 1600ms;
}

#aboutSkills :nth-child(10) {
    transition-delay: 1800ms;
}

#aboutSkills :nth-child(11) {
    transition-delay: 2000ms;
}

#aboutSkills :nth-child(12) {
    transition-delay: 2200ms;
}

@media only screen and (max-width: 900px) {
    .iconMenu {
        display: flex;
    }

    header div:first-child {
        z-index: 1;
    }

    header nav {
        position: fixed;
        display: none;
        width: auto;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, .9);
        height: 100%;
        font-size: clamp(2rem, 2rem + 2vw, 2.5rem);
    }

    header ul {
        flex-direction: column;
        margin: 10rem 0 0 2rem;
    }

    .animateOpenMenu {
        animation-name: openMenu;
        animation-duration: 0.3s;
    }

    .animateCloseMenu {
        animation-name: closeMenu;
        animation-duration: 0.3s;
        animation-fill-mode: forwards;
    }

    @keyframes openMenu {
        from {
            opacity: 0;
            transform: translateX(-340px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes closeMenu {
        from {
            opacity: 1;
            transform: translateX(0px);
        }

        to {
            opacity: 0;
            transform: translateX(-340px);
        }
    }

    .job {
        flex-direction: column;
        align-items: center;
        border: .2rem solid rgba(255, 153, 0, 0.1);
        border-radius: 2rem;
        width: 47%;
    }
}

@media only screen and (max-width: 830px) {
    #about {
        display: flex;
        flex-direction: column;
        gap: 5rem;
    }

    #about h2,
    #portfolio h2 {
        margin-bottom: 2rem;
    }

    #cardContact {
        display: flex;
        flex-direction: column;
    }

    #messageContact {
        font-size: 2.4rem;
        padding: 2rem 2rem 0 2rem;
        max-width: 100%;
        width: 100%;
        line-height: 5rem;
    }

    #messageContact span {
        font-size: 4rem;
        color: var(--fc-theme);
        display: inline-flex;
        transition: 0.3s;
    }

    #messageContact span:hover {
        -ms-transform: scale(1.05);
        transform: scale(1.05);
    }
}

@media only screen and (max-width: 820px) {
    .job {
        width: 100%;
    }
}

@media only screen and (max-width: 670px) {
    #home {
        flex-direction: column;
    }
}

@media only screen and (max-width: 430px) {
    main {
        padding: 55px 0 0 0;
    }

    .card {
        border-radius: 0;
    }

    #home h1 {
        font-size: 3rem;
    }

    form {        
        border-radius: 0 0 1.8rem 1.8rem;
    }

    #formContact {
        padding: 2rem 0 0;
    }
}