:root{
    --txtColor: #DFE0E2
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body{
    overflow-x: hidden;
}

header{
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: #252525;
}

.language-switcher{
    position: absolute;
    top: 20px;
    right: 40px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--txtColor); 
}


#txt-section{
    width: 60%;
    display: flex;
    align-items: center;
}

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

.margin-txt{
    margin: 10px 30px 0px 80px
}

.gap-12{
    gap: 12px;
}

.flex-personal-photo{
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#personal-photo{
    height: 76%;
    border-radius: 76% 24% 62% 38% / 36% 58% 42% 64% ;
    box-shadow: -8px 5px 20px 2px #3DFF3DFF;

}

.header-txt{
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 50px;
    color: var(--txtColor);
}

#hi{
    font-size: 35px;
}

.body-txt{
    font-family: "Inter", sans-serif;
    font-weight: normal;
    font-style: normal;
    color: var(--txtColor);
    font-size: 18px;
}

.gs-section{
    width: 100%;
}

/* ------------ About Section ------------ */

.article-about{
    background-color: var(--txtColor);
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 60% 40%;
}

.section-about{
    width: 100%;
    height: 100vh;
    padding: 12px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#about-title{
    color: #252525; 
    margin-bottom: 20px;   
}

#about-txt{
    color: #252525;   
    text-align: justify; 
    padding: 0px 80px 0px 80px;
    font-size: 1rem; 
}

.orbs-spline{
    position: relative;
    z-index: 1;
    bottom: 10%;
    right: 110%;
    /* display: none;  */
}

/* ------ Section Projects ------ */

/* Projects Title */

#projects-title{
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
}

.cards-container{
    gap: 40px;
}

/* From Uiverse.io by Smit-Prajapati */ 
.parent {
    width: 290px;
    height: 300px;
    perspective: 1000px;
}

.card {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(135deg, rgb(0, 182, 30) 0%, #3DFF3DFF 100%);
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: rgba(5, 71, 17, 0) 40px 50px 25px -40px, rgba(5, 71, 17, 0.2) 0px 25px 25px -5px;
}

.glass {
    transform-style: preserve-3d;
    position: absolute;
    inset: 8px;
    border-radius: 55px;
    border-top-right-radius: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.349) 0%, rgba(255, 255, 255, 0.815) 100%);
    /* -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px); */
    transform: translate3d(0px, 0px, 25px);
    border-left: 1px solid white;
    border-bottom: 1px solid white;
    transition: all 0.5s ease-in-out;
}

.content {
    padding: 100px 60px 0px 30px;
    transform: translate3d(0, 0, 26px);
}

.content .title {
    display: block;
    color: #00894d;
    font-weight: 900;
    font-size: 20px;
}

.content .text {
    display: block;
    color: rgba(0, 137, 78, 0.7647058824);
    font-size: 15px;
    margin-top: 20px;
}

.bottom {
    padding: 10px 12px;
    transform-style: preserve-3d;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translate3d(0, 0, 26px);
}

.bottom .view-more {
    display: flex;
    align-items: center;
    width: 40%;
    justify-content: flex-end;
    transition: all 0.2s ease-in-out;
}

.bottom .view-more:hover {
    transform: translate3d(0, 0, 10px);
}

.bottom .social-buttons-container {
    display: flex;
    gap: 10px;
    transform-style: preserve-3d;
}

.bottom .social-buttons-container .social-button {
    width: 30px;
    aspect-ratio: 1;
    padding: 5px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    border: none;
    display: grid;
    place-content: center;
    box-shadow: rgba(5, 71, 17, 0.5) 0px 7px 5px -5px;
}

.bottom .social-buttons-container .social-button:first-child {
    transition: transform 0.2s ease-in-out 0.4s, box-shadow 0.2s ease-in-out 0.4s;
}

.bottom .social-buttons-container .social-button:nth-child(2) {
    transition: transform 0.2s ease-in-out 0.6s, box-shadow 0.2s ease-in-out 0.6s;
}

.bottom .social-buttons-container .social-button:nth-child(3) {
    transition: transform 0.2s ease-in-out 0.8s, box-shadow 0.2s ease-in-out 0.8s;
}

.bottom .social-buttons-container .social-button .svg {
    width: 15px;
    fill: #00894d;
}

.bottom .social-buttons-container .social-button:hover {
    background: black;
}

.bottom .social-buttons-container .social-button:hover .svg {
    fill: white;
}

.bottom .social-buttons-container .social-button:active {
    background: rgb(0, 255, 119);
}

.bottom .social-buttons-container .social-button:active .svg {
    fill: black;
}

.logo {
    position: absolute;
    right: 0;
    top: 0;
    transform-style: preserve-3d;
}

.logo .circle {
    display: block;
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 0;
    right: 0;
    box-shadow: rgba(100, 100, 111, 0.2) -10px 10px 20px 0px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: rgba(0, 249, 203, 0.2);
    transition: all 0.5s ease-in-out;
}

.logo .circle3 {
    width: 90px;
    transform: translate3d(0, 0, 60px);
    top: 17px;
    right: 17px;
    transition-delay: 0.8s;
}

.logo .circle4 {
    width: 70px;
    transform: translate3d(0, 0, 80px);
    top: 23px;
    right: 23px;
    transition-delay: 1.2s;
}

.logo .circle5 {
    width: 50px;
    transform: translate3d(0, 0, 100px);
    top: 30px;
    right: 30px;
    display: grid;
    place-content: center;
    transition-delay: 1.6s;
}

.logo .circle5 .svg {
    width: 20px;
    fill: white;
}

.parent:hover .card {
    transform: rotate3d(1, 1, 0, 30deg);
    box-shadow: rgba(5, 71, 17, 0.3) 30px 50px 25px -40px, rgba(5, 71, 17, 0.1) 0px 25px 30px 0px;
}

.parent:hover .card .bottom .social-buttons-container .social-button {
    transform: translate3d(0, 0, 50px);
    box-shadow: rgba(5, 71, 17, 0.2) -5px 20px 10px 0px;
}

.parent:hover .card .logo .circle3 {
    transform: translate3d(0, 0, 80px);
}

.parent:hover .card .logo .circle4 {
    transform: translate3d(0, 0, 100px);
}

.parent:hover .card .logo .circle5 {
    transform: translate3d(0, 0, 120px);
}

/* ------ Contact section ------ */

/* Astronaut */
#background-contact-img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.astronaut-div{
    position: absolute;
    bottom: 30%;
    right: 20%;
    transition: all 8s ease-in-out 1s;
    animation: astronaut-div 20s infinite;
}

@keyframes astronaut-div{
    0%{bottom: 30%;
        right: 20%;
    }
    50%{bottom: 0;
        right: 16%;
        rotate: -24deg;
    }
    100%{bottom: 30%;
        right: 20%;
    }
}

#astronaut-img{
    scale: 0.5;
    filter: drop-shadow(5px -4px 11px #3DFF3DFF);
}

/* Contact div-icons */

.contact-div-icons{
    position: absolute;
    top: 40%;
    right: 26%;
}

.icons-contact{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 20px;
}

.icons-contact i{
    font-size: 50px;
}

/* Media Queries */

@media only screen and (max-width: 1366px){

    .article-about{
    grid-template-columns: 70% 30%;
    }

    .orbs-spline{
        bottom: 12%;
        left: 12%;
        /* display: none;  */
    }

    .astronaut-div{
        bottom: 40px;
        right:360px;
    }

    @keyframes astronaut-div{
    0%{right: 360px;
        bottom: 60px;
    }
    50%{right: 310px;
        bottom: -60px;
        rotate: -20deg;
    }
    100%{right: 360px;
        bottom: 60px;
    }
    }

    #astronaut-img{
    scale: 0.5;
    }

    .contact-div-icons{
        width: 328px;
        top: 50%;
        left: 54%;
        transform: translate(-50%,-50%);
    }
}



@media only screen and (max-width: 768px){
    /*  */
    body{
        width: 100vw;
    }
    .header-wrapper{
        flex-wrap: wrap;
    }
    #txt-section{
        width: 100%;
        height: 40vh;
        text-align: left;
        justify-content: left;
        margin-top: 60px;
    }

    .language-switcher{
    font-size: 0.9rem;
    }

    .margin-txt{
        margin: 0px 20px 0px 20px;
    }

    .header-txt{
        font-size: 1.8rem;
    }

    #header-p{
        margin-top: 10px;
        font-size: 0.8rem;
    }

    #typing-svg{
        width: 100vw;      /* Define a largura para 100% da largura da viewport */
        height: auto;      /* Mantém a proporção original do SVG automaticamente */
        display: block;    /* Ajuda a remover margens indesejadas que alguns SVGs podem ter */
        max-width: 100%;   /* Garante que ele não ultrapasse o tamanho de um contêiner pai */
        margin-top: 10px;
    }
    

    #personal-photo{
        width: 72%;
        height: auto;
        margin-left: 4%;
        margin-top: 0px;
        margin-bottom: 40px;
    }

    /* ------------ About Section ------------ */

    .article-about{
        grid-template-columns: 100%;
        height: 100vh;
    }

    #about-title{
        margin-bottom: 0px;
    }

    #about-txt{
        padding: 0px 10px 20px 10px; 
        font-size: 0.8rem;
    }  

    .section-about{
        margin-top: 0px;
        gap: 20px;
    }

    .orbs-spline{
        display: none;
    }

    /* ------ Section Projects ------ */
    #projects-title{
        font-size: 1.8rem;
    }

    /* ------ Cards ------ */
    .cards-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 4px;
    grid-row-gap: 0px;
    }

    .parent{
        width: 180px;
        height: 220px;
    }

    .content{
        padding: 60px 30px 0px 20px;
    }

    .content .title{
        font-size: 1rem;
    }

    .content .text{
        font-size: 0.8rem;
        margin-top: 10px;
    }

    #margin-card-top{
        margin-top: 140px;
    }
    
    #margin-card-bottom{
        margin-bottom: 60px;
    }

    .logo .circle3 {
        width: 50px;
    }

    .logo .circle4 {
        width: 36px;
    }

    .logo .circle5 {
        width: 20px;
    }

    .bottom .social-buttons-container .social-button{
        width: 26px;
    }

    .bottom {
        bottom: 14px;
        left: 16px;
    }

    /* ------ Contact ------ */
    #background-contact-img{
    position:fixed;
    height: 100vh;
    width: unset;
    top: 0;
    left: 0;
    }

    #astronaut-img{
    width: 100vw;
    max-width: 600px;
    scale: 1;
    }

    .astronaut-div{
        position: absolute;
        right: auto;
        bottom: auto;
        width: 80%;
        transition: none;
        animation: astronaut-mobile 20s infinite;
    }

    @keyframes astronaut-mobile{
        0%{top: 20px;
            left: -120px;
            rotate: -20deg;
        }
        50%{top: 150px;
            left: 20px;
            rotate: 50deg;}
        100%{top: 20px;
            left: -120px;
            rotate: -20deg;}
    }

    #contact-title-br{
        width: 320px;
        margin-top: 40px;
    }

    .contact-div-icons{
    position: absolute;
    top: 55%;
    right: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    }

    #contact-title{
    font-size: 32px;
    justify-content: center;
    display: flex;
    }

    .icons-contact i{
    font-size: 42px;
    }
}


/* --- Específico Rog Phone --- */
@media only screen and (max-width: 412px) and (max-height:933px){
    #txt-section{
        margin-top: 40px;
    }

    #personal-photo{
        margin-bottom: 150px;
    }


    /* Section about */
    .section-about{
        margin-bottom: 100px
    }

    /* cards container */

    #projects-title{
        top: 12%;
    }
    
    #margin-card-top{
        margin-top: 200px;
        margin-left: 12px;
    }

    #margin-card-bottom{
        margin-left: 12px;
        margin-bottom: 140px;
    }

    #title-cards{
        font-size: 1rem;
    }

    #txt-cards{
        font-size: 0.8rem;
    }

    /*  Contact section */
    .contact-div-icons{
        top: 45%;
        left: 50%;
    }
}
