/* ------------------ VARIÁVEIS DE CORES ------------------ */
:root {
    font-size: 16px;
    /* Base */
    --azul-escuro: #010d26;
    --azul-escuro2: #011140;
    --azul-intermediario: #049ac0;
    --azul: #0442bf;
    --azul-claro: #05cef2;
    --cinza-claro: #f2f2f2;
    --branco: #ffffff;
    --roxo-hover: #6a1fc2;
    --texto-primario: #242424;
    --texto-secundario: #555;
}

/* ------------------ RESET GERAL ------------------ */
* {
    box-sizing: border-box;
    transition: all 0.5s ease-in-out;
    color: var(--branco);
    margin: 0;
}

body {
    height: 100%;
    margin: 0;
    background-color: var(--azul-escuro);
    font-family: 'Raleway', sans-serif;
}

/* ------------------ TIPOGRAFIA ------------------ */
body p,
body a {
    font-size: 16px;
    text-decoration: none;
}

.azul {
    color: var(--azul);
}

body h1 {
    font-size: 50px;
    font-weight: 700;
    text-align: center;
}

body h2 {
    background: linear-gradient(90deg,
            var(--azul) 0%,
            var(--azul) 40%,
            var(--azul-claro) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 40px;
    text-align: center;
}

body h3 {
    font-size: 24px;
    font-weight: normal;

}

body h4 {
    font-size: 20px;
}

/* ------------------ EFEITOS GLOBAIS ------------------ */
body button:hover {
    transition: 0.3s ease;
    background-color: var(--azul-claro);
}

ul {
    list-style: none;
    padding-left: 0;
}

body a:hover {
    color: var(--azul-claro);
}

body button {
    border: 2px solid var(--azul-escuro);
    align-self: flex-start;
    background: var(--azul);
    color: var(--branco);
    padding: 8px 16px;
    cursor: pointer;
    margin: 10px 0;
    font-weight: bold;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

div {
    border-radius: 12px;
    opacity: 1;
    transition: opacity 0.7s ease;
}

div.hidden {
    opacity: 0;
}

/* ------------------ HEADER E NAVEGAÇÃO ------------------ */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    transition: top 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    /* cor ao descer */
}

nav {
    display: flex;
    align-items: center;
}

nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* horizontal */
    align-items: center;
}

nav ul.menu li {
    margin: 0;
}

.menu-texto {
    padding: 0 10px 0 20px;
    display: flex;
    align-items: center;
}

header button.menu-button,
header button.menu-lenguage {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    transition: background-color 0.3s ease;
    margin: 0 0;
}

.menu-lenguage img {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.language {
    position: relative;
}

.language-selected {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.language-selected:before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(https://flagcdn.com/w40/br.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.language-selected.change-br:before {
    background-image: url(https://flagcdn.com/w40/br.png);
}

.language-selected.change-en:before {
    background-image: url(https://flagcdn.com/w40/us.png);
}

.language-selected.change-es:before {
    background-image: url(https://flagcdn.com/w40/es.png);
}

.language ul {
    position: absolute;
    border-radius: 8px;
    width: 140px;
    background-color: var(--azul-escuro);
    padding-top: 10px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.5);
    display: none;
}

.language ul li {
    list-style: none;
}

.language ul li a {
    display: block;
    padding: 5px 10px;
}

.language ul li a:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 10px;
}

a.br:before {
    background-image: url(https://flagcdn.com/w40/br.png);
}

a.en:before {
    background-image: url(https://flagcdn.com/w40/us.png);
}

a.es:before {
    background-image: url(https://flagcdn.com/w40/es.png);
}

.language:hover ul {
    display: block;
}

/* ------------------ BOTÕES FIXADOS ------------------ */
.fixado {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Mais espaço entre os blocos */
    bottom: 30px;
    right: 30px;
}

/* Container das redes sociais */
.redes-sociais {
    display: flex;
    gap: 20px;
}

/* Botão de voltar (seta) */
#btn-voltar {
    position: fixed;
    bottom: 110px;
    right: 40px;
    width: 30px;
    height: 40px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 18px;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

#btn-voltar.show {
    opacity: 1;
    pointer-events: auto;
}

/* Estilo base dos botões */
.fixado button {
    width: 50px;
    height: 50px;
    background-color: var(--azul);
    border: none;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* ------------------ PERFIL ------------------ */
.perfil {
    position: relative;
    width: 100%;
    height: 900px;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 100px 0px;
    z-index: 1;
    overflow: visible;
    /* garante que a parte fora continue visível */
}

.seta {
    padding: 15px;
    margin: 0;
    margin-bottom: 10px;
    position: absolute;
    height: 80px;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 30px;
    animation: subirDescer 1.5s ease-in-out infinite;
}

/* Animação: sobe e desce */
@keyframes subirDescer {
    0% {
        transform: translateX(-50%) translateY(50%);
    }

    50% {
        transform: translateX(-50%) translateY(30%);
    }

    100% {
        transform: translateX(-50%) translateY(50%);
    }
}

.text1 {
    position: relative;
    width: 100%;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    top: -500px;
    /* ou o valor desejado */
}

.blue-fade {
    font-weight: bold;
    background: linear-gradient(90deg,
            var(--azul-claro) 0%,
            var(--azul) 40%,
            var(--azul-claro) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.img-wrapper {
    border-radius: 0;
    position: absolute;
    display: block;
    width: 100%;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 900px;
    object-fit: cover;
    transition: width 0.5s ease-in-out;
}

/* Ao aumentar a tela, a imagem cresce para os lados, mas mantém altura */
@media (min-width: 800px) {
    .img-wrapper img {
        width: 150%;
        margin-left: -25%;
    }
}

.img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgb(255, 255, 255, 0) 10%,
            rgb(1, 13, 38, 1) 90%);
    /* ou gradiente, ou outro efeito */
    z-index: 2;
    /* fica SOBRE a imagem, mas só dentro do wrapper */
}

.perfil * {
    z-index: 1;
}

.textoPerfil {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin-bottom: 40px;
    text-align: center;
    align-items: center;
}

.perfil h1 {
    margin-bottom: 10px;
}

.perfil h4 {
    margin: 0;
}

.perfil p {
    max-width: 1000px;
    text-align: center;
    line-height: 1.6;
    padding: 10px;
}

/* ------------------ SOBRE ------------------ */
.sobre {
    width: auto;
    height: auto;
    border: 2px solid var(--azul);
    box-shadow: 0 6px 16px rgba(4, 66, 191, 0.2);
    max-width: 900px;

    /* borda preta de 2px */
    /* opcional, cor de fundo clara */
    margin: 0px 20px;
    /* centraliza horizontalmente */
    padding: 20px 20px;
}

.softskills {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    background-color: var(--cinza-claro);
    padding: 100px 0px;
    gap: 40px;
}

.box-branco {
    border: 2px solid var(--branco);
    background-color: rgb(238, 236, 236);
    width: 320px;
    height: 70px;

    text-align: center;

    display: flex;
    /* Ativa o Flexbox */
    justify-content: center;
    /* Centraliza horizontalmente */
    align-items: center;
    /* Centraliza verticalmente */
}

.softskill {
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.softskills p {
    border: 2px solid var(--azul);
    font-weight: bold;
    border-radius: 12px;
    background: var(--azul-escuro);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.7s ease, max-height 0.7s ease, max-width 0.7s ease;
    overflow: hidden;
    max-height: 60px;
    max-width: 250px;
}

.extra-text {
    text-align: center;
    font-weight: normal;

    display: block;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.container:hover p {
    transform: scale(1.05);
    max-height: 200px;
    max-width: 270px;
}

.container:hover p .extra-text {
    opacity: 1;
}

/* ------------------ FERRAMENTAS ------------------ */
.ferramentas {
    z-index: 1;

    margin: 0 auto;
    /* Centraliza horizontalmente */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

.list div {
    align-items: center;
    /* Alinha verticalmente */
    /* Alinha horizontalmente */
    width: 130px;
    /* Defina uma altura para ter espaço para alinhar */
    transition: transform 0.3s ease;
    gap: 10%;
    padding: 15px;
}

/* Ícones */
.ferramentas i,
.ferramentas svg {
    margin-bottom: 5px;
    font-size: 39px;
    height: 40px;
    transition: transform 0.3s ease;
}

.react i {
    color: #61DBFB;
}

.javascript i {
    color: #F7DF1E;
}

.css i {
    color: #2965F1;
}

.html i {
    color: #E44D26;
}

.java i {
    color: var(--branco);
}

.python i {
    color: #FFE873;
}

.sql i {
    color: #B8BACE;
}

.ferramentas svg {
    margin-left: -8px;
    /* Move o SVG 5px à esquerda */
    margin-right: -10px;
}

.slider {
    padding-top: 20px;
    width: 80%;
    height: 150px;
    overflow: hidden;
    mask-image: linear-gradient(to right,
            transparent,
            #000 10% 90%,
            transparent);
}

.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 24s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((24s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}

@keyframes autoRun {
    from {
        left: 100%;
    }

    to {
        left: calc(var(--width) * -1);
    }
}

.slider[reverse="true"] .item {
    animation: reversePlay 24s linear infinite;
}

@keyframes reversePlay {
    from {
        left: calc(var(--width) * -1);
    }

    to {
        left: 100%;
    }
}

/* ------------------ SERVIÇOS ------------------ */
.servicos {
    max-width: 1200px;
    margin: 0 auto;
    /* Centraliza a section na tela */
    position: relative;
    background-size: cover;
    overflow-x: hidden;
    gap: 20px;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;

}

.servicos-background {
    z-index: 0;
    padding: 100px 0px;

    position: relative;
    /* para posicionar filhos absolute dentro dela */
    width: 100%;
    /* ou o tamanho que quiser */
    background-color: var(--azul-escuro);
    overflow: hidden;
}

.gradiente-superior-esquerdo,
.gradiente-inferior-direito {
    z-index: -1;
    position: absolute;
    width: 1300px;
    height: 1300px;
    pointer-events: none;
    /* para não interferir em cliques */
    background-repeat: no-repeat;
    background-size: cover;
}

/* Gradiente superior esquerdo */
.gradiente-superior-esquerdo {
    top: -700px;
    left: -600px;
    background-image: radial-gradient(circle at center, rgba(4, 66, 191, 0.7) 5%, var(--azul-escuro) 60%);
}

/* Gradiente inferior direito */
.gradiente-inferior-direito {
    bottom: -900px;
    right: -800px;
    background-image: radial-gradient(circle at center, rgba(4, 66, 191, 0.7) 5%, var(--azul-escuro) 60%);
}

.box-azul {
    width: 350px;
    height: 70px;
    border: 2px solid var(--azul);
    text-align: center;

    display: flex;
    /* Ativa o Flexbox */
    justify-content: center;
    /* Centraliza horizontalmente */
    align-items: center;
    /* Centraliza verticalmente */
}

.servicos hr {
    width: 65px;
    height: 2px;
    /* define a espessura da linha */
    background-color: var(--azul);
    border: none;
    /* remove a borda padrão do <hr> */
    margin-bottom: 20px;
}

/* Container dos serviços */
.servico {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
    margin-top: 40px;
}

/* Cartão de serviço */
.servico div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 280px;
    padding: 20px;
    width: auto;
    height: auto;
    border: 2px solid var(--azul);
    box-shadow: 0 6px 16px rgba(4, 66, 191, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.servico p {
    width: 250px;
}

.servico div:hover {
    transform: translateY(-6px) scale(1.02);
}

/* ------------------ PROJETOS / CARROSSEL ------------------ */
.projetos {
    z-index: 1;
    text-align: center;
}

.projetos-background {
    z-index: 0;
    position: relative;
    /* para posicionar filhos absolute dentro dela */
    width: 100%;
    /* ou o tamanho que quiser */
    background-color: var(--azul);
    overflow: hidden;
    padding: 100px 0px;

}

.gradiente-superior-direito,
.gradiente-inferior-esquerdo {
    z-index: -1;
    position: absolute;
    width: 1300px;
    height: 1300px;
    pointer-events: none;
    /* para não interferir em cliques */
    background-repeat: no-repeat;
    background-size: cover;
}

/* Gradiente superior esquerdo */
.gradiente-superior-direito {
    top: -900px;
    right: -800px;
    background-image: radial-gradient(circle at center, rgba(5, 206, 242, 0.7) 5%, var(--azul) 60%);
}

/* Gradiente inferior direito */
.gradiente-inferior-esquerdo {
    bottom: -700px;
    left: -600px;
    background-image: radial-gradient(circle at center, rgba(5, 206, 242, 0.7) 5%, var(--azul) 60%);
}

.projetos h2 {
    background: linear-gradient(90deg,
            rgb(5, 206, 242, 0.8) 40%,
            var(--azul-claro) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-align: center;
    margin: 0 auto;
    /* centraliza horizontalmente */

    display: flex;
    /* Ativa o Flexbox */
    justify-content: center;
    /* Centraliza horizontalmente */
    align-items: center;
    /* Centraliza verticalmente */
}

.carousel-container {
    position: relative;
    z-index: 0;

    padding-top: 40px;
    overflow: hidden;
    width: 1140px;
    max-width: 100%;
    margin: 0px auto;
}

.carousel-wrapper {
    position: relative;
    width: 1140px;
    max-width: 100%;
    margin: auto;
    align-items: center;
    /* Alinha os botões verticalmente */
    justify-content: center;
}

.carousel {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    transition: transform 0.3s ease;
    overflow: visible;
}

.card:first-child {
    margin-left: 0;
}

.card {
    border-radius: 12px;
    margin-left: -90px;
    flex: 0 0 300px;
    height: 340px;
    background: linear-gradient(135deg,
            /* diagonal de cima-esquerda para baixo-direita */
            var(--azul-escuro) 0%,
            var(--azul-escuro) 40%,
            var(--azul) 140%);

    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0.5;
    transform: scale(0.85);
    transition: transform 0.4s ease, opacity 0.4s ease;
    position: relative;
    transform-origin: center center;
    overflow: hidden;
    padding: 12px;
}

.card.active {
    transform: scale(1.1);
    z-index: 10;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.8);
    border-radius: 12px;
    margin-bottom: 12px;
}

.card-content {
    padding: 5px 10px;
    border-radius: 0px;
    width: 220px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    overflow: hidden;
}

/* Botões laterais */
.nav-btn {
    font-size: 18px;
    position: absolute;
    top: 45%;
    z-index: 10;
    background: var(--azul);
    border: 2px solid var(--azul-claro);
    width: 50px;
    /* aumente se quiser um botão maior */
    height: 40px;
    /* manter proporção quadrada deixa melhor */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-btn.prev {

    left: -40px;
    /* Aumente esse valor para afastar mais da esquerda */
}

.nav-btn.next {
    right: -40px;
    /* Aumente esse valor para afastar mais da direita */
}

.nav-btn:hover {

    transform: scale(1.0);
    background-color: var(--azul);
    border: 2px solid var(--branco);

}

/* Dots indicadores */
.dots {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.dot {
    margin-bottom: 0;
    width: 6px;
    height: 6px;
    background: var(--branco);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.dot:hover {
    background-color: var(--azul);
    transform: scale(1.1);
}

.dot.active {
    background: var(--branco);
    transform: scale(1.75);
    box-shadow: 0 0 8px #2a2a2a;
}

.colunaProjeto {
    display: flex;
    /* Ativa o Flexbox */
    gap: -200px;
}

.circulo {
    font-size: 30px;
    display: flex;
    /* Adicione isso */
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    margin: 0px -1px;
}

/* Aplica opacidade no terceiro item */
.mais-opacity {
    /* Para navegadores baseados em WebKit (Chrome, Edge, Safari) */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;

    /* Para Firefox */
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;

    /* Mantém o ícone visível */
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Círculo do + */
.mais {
    font-size: 10px;
    /* aumenta para ficar proporcional */
    margin-left: -15px;
    /* ajuste do espaço */
    color: white;
    opacity: 0.1;
    /* visível */
}

/* ------------------ FOOTER ------------------ */
footer {
    position: relative;
    width: 100%;
    padding: 100px 20px 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    /* impede que os gradientes aumentem o tamanho visível */
}

.footer-gradiente-inferior-esquerdo,
.footer-gradiente-inferior-direito {
    z-index: -2;
    position: absolute;
    width: 110vw;
    /* Largura = 100% da largura da tela */
    height: 80vh;
    /* Altura = 100% da altura da tela */
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: cover;
}


/* Gradiente superior esquerdo */
.footer-gradiente-inferior-esquerdo {
    bottom: -40vh;
    left: -50%;
    background-image: radial-gradient(circle at center, rgba(4, 66, 191, 0.7) 5%, var(--azul-escuro) 35%);
}

/* Gradiente inferior direito */
.footer-gradiente-inferior-direito {
    bottom: -40vh;
    right: -50%;
    background-image: radial-gradient(circle at center, rgba(4, 66, 191, 0.7) 5%, var(--azul-escuro) 35%);
}

.contatos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;

    /* Espaçamento bem maior entre os itens */
    gap: clamp(80px, 9vw, 300px);

    max-width: 1400px;
    width: 100%;
    margin: 0 auto;

    /* Mantém padding lateral balanceado */
    padding-inline: clamp(40px, 5vw, 120px);
}

textarea {
    height: 120px;
    /* Altura fixa para textarea */
    resize: none;
    /* Desativa o redimensionamento */
    width: 100%;
    /* Largura total do container */
}

input {
    width: 100%;
    /* Largura total do container */
}

input,
textarea {
    color: var(--texto-primario);
    box-sizing: border-box;
    /* Garante que padding e border não ultrapassem a largura */
}

.contatos p,
.contatos a {
    line-height: 1.6;
}

footer a:hover {
    color: var(--azul-claro);
    transition: color 0.5s ease;
}

.aesquerda:hover {
    transform: translateX(10px);
    /* aumenta e move 10px para a direita */
}

.aesquerda {
    display: inline-block;
    /* necessário para o transform funcionar corretamente */
    transition: transform 0.3s ease;
}

.leftRows {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.linha-horizontal {
    width: 90%;
    height: 1px;
    background-color: var(--azul-claro);
    opacity: 0.2;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .linha-horizontal {
        margin-top: 20px;
    }

    :root {
        font-size: 14px;
        /* Escala para telas menores */
    }
}

.copyright {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-top: 24px;
}