* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Rethink Sans';
}

html {
    box-sizing: border-box;
    min-height: 100vh;
    font-size: 18px;
    background: linear-gradient(135deg,#02050a,#002152,#02050a);
}

body {
    box-sizing: border-box;
    max-width: 100vw;
    min-height: 100vh;
    color: #919191;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
#all {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.top-bar {
    display: flex; 
    position: fixed;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 40px;
    font-size: 20px;
    background-color: #02050a5d;
    border-bottom: 1px solid rgba(148, 148, 148, 0.37);
    z-index: 1000;
    user-select: none;
}

#very_left{
    align-items:flex-start;  
    display:flex;
    transition: transform 0.3s ease;
}

#logo{
    
    background: linear-gradient(160deg, #ffffff,#38BDF8,#0b4f8a);
    -webkit-background-clip: text;   /* faz o gradiente aparecer só nas letras */
    background-clip: text;
    color: transparent;              /* fallback */
    -webkit-text-fill-color: transparent; /* esconde o preenchimento padrão */
    font-weight: bold;
}

#very_left:hover{
    transform: scale(1.3);
    cursor: pointer;
}

.menu{
    display: flex;
    text-align: right;
    gap: 60px;
}

.menu a:hover{
    color: #38BDF8;
    transform: scale(1.1);
    text-decoration: underline;
}

.menu a{
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}


#intro{
    text-align: center;
    
}
#intro_inner,
#about_inner,
#skills_inner,
#project_inner,
#contact_inner{
    width: 100%;
    height: 100%;
    transform: translateY(80px);
}
#about_inner{
    margin-right: 1.5rem;
}
#intro, 
#about,
#skills,
#project,
#contact{
    min-height: 100vh;
    width: 100%;
}

.bigDiv{
    margin: 1.5rem 0;
}

.big {
    font-size: 40px;
    font-weight: bold;
    color: #fff;
}

.gradient {
    background: linear-gradient(-2deg, #ffffff,#38BDF8,#00315c);
    -webkit-background-clip: text;   /* faz o gradiente aparecer só nas letras */
    background-clip: text;
    color: transparent;              /* fallback */
    -webkit-text-fill-color: transparent; /* esconde o preenchimento padrão */
    font-weight: bold;
}

.description{
    margin: 2rem auto;
    text-align: center;
    color: #38BDF8;
}
.cursor {
    display: inline-block;
    color: #38BDF8; /* mesma cor do tema, ajuste como quiser */
    font-weight: bold;
    transform: translateY(-2.5px);
    animation: blink 0.9s step-end infinite;
}
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}

.ideas{
    margin: 1.5rem auto;
}

.btnTable{
    justify-content: center;
    margin: 3rem auto;
}

.btn{
    display: inline-block;
    margin: 0.8rem 20px;
    justify-content: center;
    padding: 10px 30px;
    border: 1px solid #919191;
    border-radius: 30px;
    color: #000000;
    font-size: 20px;
    transition: transform 0.5s ease;
    text-decoration: none;
}

.btn:hover{
    transform: scale(1.1);
    border: 1px solid #38BDF8;
    box-shadow: 0 0 20px #38BDF8;
}


#viewProject{
    background: linear-gradient(-2deg, #ffffff,#38BDF8,#00315c);
    border: 1px solid #38BDF8;
}
#talk{
    background: transparent;
    color:#c0c0c0;
    border: 1px solid #c0c0c0;
}

.icons{
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    gap: 4rem;
    fill: #919191;
}
.icons a{
    transition: transform 0.3s ease;
}

.icons a:hover{
    transform: scale(1.2);
    fill: #38BDF8;
}
.scroll-arrow{
    display: flex;
    justify-content: center;
    margin: 3rem auto 0;
    fill: #919191;
    transition: transform 0.2s ease;
    width:50px;
    animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-arrow:hover{
    transform: scale(1.3);
    fill: #38BDF8;
}
#about,
#skills,
#project,
#contact{
    padding: 2rem 1.5rem 0 ;
}
#space{
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: #38BDF8;
    margin: 4px 5px;
}
.head{
    text-align: left;
    margin: 0 10px;
    color: #38BDF8
}
#text{
    display: flex;
    text-align: justify;
    flex-direction: column;
    gap: 1.5rem;
    margin-right: 15%;
}
#CV{
    display: inline-block;
    text-decoration: none;
    margin: 30px 0 0;
    color: #38BDF8;
    transition: transform 0.3s ease;
}
#CV:hover{
    text-decoration: underline;
    transform: translateX(10px);
}
#CV:hover .seta{
    opacity: 1;
    transition: 0.1s ease-in-out;
}
.buttons{
    display:flex;
    flex-direction: column;
}
.stackText{
    margin: 0 10px;
    font-size: 18px;
}
.stack{
    text-align: left;
    margin: 10px 0;
    padding: 8px 0;
    flex:1;
    background: none;
    transition: 1s ease;
    border-radius: 10px;
    color: #919191;
    border: 1px solid #919191c5;
}
.stack:hover{
    transform: translateX(5px);
}
.seta{
    opacity: 0;
}
.stack.ativo {
    color: var(--color);
    border-color: var(--color);
    box-shadow: 0 0 10px var(--color), inset 0 0 5px var(--color);
}
.stack.ativo .seta {
    opacity: 1;
    transition: 1s ease
}
.skill{
    background-color: #0c121c44;
    border: 1.5px solid #969696;
    border-radius: 15px;
    padding: 10px;
}
.title{
    display: flex;
    color: var(--color);
    margin-bottom: 20px;
}
.dot {
    display: block;
    margin-right: 10px;
    margin-top: 6px;
    width: 8px; 
    height: 8px;
    border-radius: 50%;
    background-color: var(--color);
    box-shadow: 0 0 10px var(--color);
}
.hability{
    margin: 20px 30px;
    width: inherit;
}
.texto{
    width: inherit;
    display: flex;
    justify-content: space-between;
}
.right{
    color: var(--color);
    font-size: 14px;
}
.bar {
    height: 2px;
    background-color: gray;
}
.fill {
    height: 100%;
    width: var(--progress);
    box-shadow: 0 0 10px var(--color);
    background-color: var(--color);
}
#skillScroll, .projectArrow{
    margin: 2rem auto 0;
}
.btn-row{
    display: flex;
    margin: 10px 20px 30px;
    gap: 2rem;
}
.btn-toggle{
    flex-basis:10%;
    border-radius:10px;
    border: 0.5px solid #919191;
    padding: 0.3% 0;
    background-color: transparent;
    color: inherit;
    transition: 1s ease-in-out;
    user-select: none;
}
.btn-toggle:hover{
    transform: scale(1.1);
}
.btn-toggle.active{
    color: var(--color);
    background-color: color-mix(in srgb, var(--color) 30%, transparent);
    border-color: var(--color);
}
.first-work{
    overflow-x: auto;
    flex: 1 1 auto;       /* ocupa todo o espaço entre as setas */
    min-width: 0;         /* essencial p/ o scroll horizontal funcionar */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.work-scroll{
    display: flex;
    gap: 5%;            /* % em gap vira relativo ao container, evite */
    padding-bottom: 14px;
}
.first-work::-webkit-scrollbar{
    height: 6px;
}
.first-work::-webkit-scrollbar-track{
    background: transparent;
}
.first-work::-webkit-scrollbar-thumb{
    background: var(--color);
    box-shadow: 0 0 10px var(--color);
    border-radius: 10px;
}
.box{
    display: flex;
    flex-direction: column;
    flex: 0 0 25%;
    justify-content: flex-start;
    scroll-snap-align: start;
    background-color: #0c0c16;
    border: 1px solid #00000000;
    user-select: none;
    transition: 0.8s ease-in-out;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}
.python .top-box{
    background: linear-gradient(-145deg, #11523a,#0c0c16);
}
.front .top-box{
    background: linear-gradient(-145deg, #4b390b,#0c0c16);
}

.box:hover{
    .top-box a{
        opacity:1;
    }
    .externalArrow{
        opacity: 1;
        transform: translateX(0)  rotate(225deg);
    }
}
.box.python:hover {
    border-color:#34D399;
    box-shadow: 0 0 10px #34D399;
}
.box.front.box.front:hover{
    border-color:#FBBF24;
    box-shadow: 0 0 10px #FBBF24;
}
.top-box{
    width: 100%;
    text-align: right;
    padding: 1px 10px 0;
    border-radius: 20px;
    box-sizing: border-box;
}
.top-box a{
    display: inline-flex;
    align-items: center;
    text-align: right;
    justify-content: center;
    fill:#fff;
    padding: 4px 4px;
    margin: 5px;
    background-color: #b1b1b141;
    border-radius: 5px;
    opacity: 0;
    transition: 0.5s ease-in-out;
}
.top-box a:hover{
    transform: scale(1.1);
}
.top-box div{
    display: flex;
    justify-content: space-between;
    margin: 10px 10px 15px;
    font-size: 16px;
}
.year{
    transform: translateY(10px);
}
.categoryP{
    color: #34D399;
    text-align: right;
    background-color: color-mix(in srgb, #34D399 15%, transparent);
    border: 1px solid #34D399;
    padding: 5px 10px;
    border-radius: 20px;
}
.categoryF{
    color: #FBBF24;
    text-align: right;
    background-color: color-mix(in srgb, #FBBF24 15%, transparent);
    border: 1px solid #FBBF24;
    padding: 5px 10px;
    border-radius: 20px;
}
.bottom-box{
    background-color: #0c0c16;
    padding: 25px;
    border-radius: 20px;
    display: flex;                  /* NOVO */
    flex-direction: column;         /* NOVO */
    flex: 1;                        /* NOVO: preenche o resto da altura do .box */
    justify-content: space-between;
}
.pick{
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.externalArrow{
    width: 20px;
    height: 20px;
    display: inline-flex;
    fill: var(--color);
    transform: translateX(-10px) translateY(3px) rotate(225deg);
    text-align: right;
    opacity: 0;
    transition: 0.5s ease-in-out;
}
.externalArrow:hover{ 
    transform: scale(1.2);
}
.text-box{
    margin-right: 20px;
    overflow: hidden;               /* NOVO */
}
.tecnology{
    margin-top: 13px;
    font-size:14px;
}
.tecnology span{
    border-radius: 20px;
    padding: 5px;
}
.mainP{
    border:1px solid #34D399;
    background-color: color-mix(in srgb, #34D399 15%, transparent);
    color:#34D399;
}
.mainF{
    border:1px solid #FBBF24;
    background-color: color-mix(in srgb, #FBBF24 15%, transparent);
    color:#FBBF24;
}
.lib{
    border:1px solid #919191;
}
.vanish{
    display: none;
}
.ways{
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.media{
    margin: 5px 0;
    display: flex;
    flex-direction: column;
}
.media a{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.7s ease;
}
.media a:hover{
    .icon{
        fill: #38BDF8;
        box-shadow: 0 0 10px #38BDF8;
    }
    .name{
        color: #fff;
    }
    transform: translateX(8px);
}

.icon{
    display: inline-flex;
    flex-shrink: 0;
    padding: 5px;
    fill: #919191;
    border: 1px solid #919191;
    background-color: rgba(0, 0, 0, 0.295);
    border-radius: 8px;
}

.name{
    display: flex;
    flex-direction: column;
}
.way{
    font-size: 13px;
    font-weight: bold;
    color: #38BDF8;
    letter-spacing: .5px;
}
.contactTable {
    border-collapse: separate; /* Garante que as células fiquem separadas */
    border-spacing: 0;      /* Define 15px de espaço entre as células */
}
.contact-info-cell{
    margin: 0;
    width: 35%;
    vertical-align: top;
}
.contact-form-cell{
    width:65%;
}
.form{
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #fff;
    background-color: #020a1669;
    padding: 20px;
    border-radius: 20px;
}
.field label{
    color:#38BDF8;
}
.contactText{
    margin:0;
    padding-right:80px;
}
.cont{
    background-color: #02050a5d;
    border: 1px solid rgba(148, 148, 148, 0.37);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form-spacer{
    border: none;
    height: 0; /* ajuste esse valor: é o quanto a coluna da esquerda vai "sobrar" a mais que a direita */
}
.field input:focus,
.field textarea:focus{
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 10px #38BDF8;
}
.field input::placeholder,
.field textarea::placeholder{
    color: #6b6b6b;
}
.field{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.submit{
    display: inline-block;
    margin: 0.3rem 10px;
    padding: 5px 15px;
    border-radius: 30px;
    background-color: #fff;
    color: #000000;
    font-size: 20px;
    transition: transform 1s ease;
    border: 1px solid #fff;
}
.submit:hover{
    transform: scale(1.09) translateX(10px);
    border-color: #38BDF8;
    box-shadow: 0 0 10px #38BDF8;
}
footer{
    width: 100%;
    font-size: 16px;
    background-color: #0000009c;
    display: flex;
    color:#919191;
    padding: 37px 40px;
    justify-content: space-between;
}
.copyright{
    color: #474747;
}
footer a{
    text-decoration: none;
    transition: .5s ease-in-out;
}
footer a:hover{
    transform: scale(1.04);
    color:#38BDF8;
}