@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;700&display=swap');

* {
  box-sizing: border-box;

}


html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.container, header, nav, main {
  max-width: 100%;
}


html {
    scroll-behavior: smooth;
  }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0a0f1e;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
}


header {
  background: linear-gradient(90deg, #0a0f1e, #162447);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;

  box-sizing: border-box;
  padding: 18px 10px;
  overflow: hidden;
}


nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

nav .nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}



nav .nav-list li a {
    text-decoration: none;
    color: #00bcd4;
    font-size: 18px;
    transition: color 0.3s;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.h-p {
  padding-left: 15px;
}

.c-f {
  padding-right: 15px;
}

nav .nav-list li a:hover {
    color: #03f4fc;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.secao-animada .container-home {
  justify-content: center;
}

.texto-home p {
  justify-content: center;
  text-align: justify;
}



#home {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    justify-content: center;
    padding: 80px 20px;
    gap: 40px;
    max-width: 900px;
    width: 100%;
    scroll-margin-top: 100px;
    height: 100vh;
}



#home h2 {
    font-size: 32px;
    text-align: center;
    white-space: nowrap;
    animation: brilhoTexto 2s infinite ease-in-out;
    font-family: 'Rajdhani', sans-serif;
    padding-left: 10px;
}

@keyframes brilhoTexto {
    0% {
        text-shadow: 0 0 5px #00bcd4;
    }
    50% {
        text-shadow: 0 0 15px #03f4fc;
    }
    100% {
        text-shadow: 0 0 5px #00bcd4;
    }
}

#home p {
    max-width: 600px;
    font-size: 18px;
    text-align: justify;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300; /* Fica mais leve e legível */
}


@keyframes pulsarBorda {
    0% {
        box-shadow: 0px 0px 10px #00bcd4;
    }
    50% {
        box-shadow: 0px 0px 20px #03f4fc;
    }
    100% {
        box-shadow: 0px 0px 10px #00bcd4;
    }
}

.imagem-dinamica {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
    border: 3px solid #00bcd4;
    flex-shrink: 0;
    animation: pulsarBorda 2s infinite ease-in-out;
    z-index: 1;
}


.binario {
    position: absolute;
    font-size: 20px;
    color: #00bcd4;
    opacity: 0.7;
    animation: subir 3s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes subir {
    from {
        transform: translateY(100px);
        opacity: 1;
    }
    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.tecnologias {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content:space-between
}

.tecnologias img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease-in-out;
}

.tecnologias img:hover {
    transform: scale(1.2);
}

.imagem-sobre {
    transition: transform 0.3s ease-in-out;
}

.sobre-mim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
      width: 100vw;
      height: 100vh;
    background-color: #162447;
    color: #fff;
    scroll-margin-top: 10px;
  }
  
  .sobre-mim h2 {
    font-size: 32px;
    text-align: center;
    animation: brilhoTexto 2s infinite ease-in-out;
    font-family: 'Rajdhani', sans-serif;
    
  }
  
  .container-sobre {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .bio {
    max-width: 500px;
    text-align: left;
  }
  
  .bio p {
    max-width: 600px;
    font-size: 18px;
    text-align: justify;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    margin: 0;
  }
  
  .infos li {
    margin-bottom: 10px;
    font-size: 1rem;
    list-style: none;
  }

  ul li {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
  }


  
  .foto-sobre img {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00bcd4;
    animation: pulsarBorda 2s infinite ease-in-out;
    flex-shrink: 0;
  }

  .projetos {
    padding: 20px 10px;
    background-color: #0a0f1f;
    color: #fff;
    text-align: center;
    justify-content: center;
    scroll-margin-top: 10px;
    
  }

  .projetos h2 {
    font-size: 36px;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 40px;
    animation: brilhoTexto 2s infinite ease-in-out;
  }

  .container-cards {
  display: flex;
  gap: 20px;
  align-items: stretch; /* força os cards a ficarem da mesma altura */
}

  .cards-projetos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

  .card {
   width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 10px;
  background-color: #0e1628;
  box-shadow: 0 0 10px cyan;
  flex: none;
  }

  .card:hover {
    transform: translate(-10px);
    box-shadow: 0 0 25px #03f4fc;
  }

  .card img {
    width: 100%;
    height: 130px;
    border-radius: 10px;
    object-fit: cover;
    
  }

  .card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    color: #00bcd4;
    margin: 0;
  
  }

  .card p {
    font-size: 16px;
    color: #ccc;
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
  }

  .botoes {
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    font-family: 'Rajdhani', sans-serif;
    gap: 4px;
    margin: 0;
    padding: 0;
    
  }

  .botoes a {
    text-decoration: none;
    padding: 14px 28px;
    background-color: rgba(0, 188, 212, 0.1);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
    
  }

  .botoes a:hover {
    background-color: #03f4fc;
    color: #000;
  }

  .sobre-mim, .projetos {
    position: relative;
    overflow: hidden;
  }

  h4 {
    font-family: 'Rajdhani', sans-serif;

  }

  .tecnologias-usadas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
  }

  .tecnologias-usadas span {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    gap: 8px;
    backdrop-filter: blur(4px);
    
  }

  .tecnologias-usadas img {
    width: 30px;
    height: 30px;
    justify-content: center;
    margin-bottom: 0;
}

/* Transição de chegada das seções */

.secao-animada {
    opacity: 0;
    transform: translate(80px);
    filter: blur(4px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.secao-visivel {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
}

.ajuste-ancora {
    position: relative;
    top: -100px;
}

.hidden {
    display: none;
}

.entre-em-contato {
  animation: brilhoTexto 2s infinite ease-in-out;
  font-size: 36px;
}


.redes-sociais {
  font-family: 'Rajdhani', sans-serif;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 120px;
  
}


.redes-sociais a  img {
  width: 30px;
}

.imagem-dinamica-responsiva {
  display: none;
}

/* ---------- CARROSSEL - substitua o bloco antigo ---------- */

.caroussel-section {
  width: 100%;
  background-color: #162447;
  padding: 40px 20px;
  box-sizing: border-box;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;      /* limite para desktop */
  margin: 0 auto;
  aspect-ratio: 16 / 9;  /* mantém proporção responsiva */
  overflow: hidden;
  border-radius: 12px;
  background: #0e1628;
}

.carousel-item {
  position: absolute;
  inset: 0;               /* equivale a top/right/bottom/left: 0 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: transform 0.6s ease, opacity 0.4s ease;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  transform: translateZ(0) scale(1);
  z-index: 2;
  pointer-events: auto;
}

.carousel-item.prev,
.carousel-item.next {
  opacity: 0.6;
  transform: scale(0.9);
  z-index: 1;
  pointer-events: none;
}

/* imagens: respeitar container, manter proporção */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* corta mantendo proporção */
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* botões */
.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.carousel-buttons button {
  background: #00f7ff85;
  border: none;
  padding: 10px 14px;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ajustes mobile */
@media (max-width: 600px) {
  .carousel { max-width: 420px; aspect-ratio: 4/3; }
  .carousel-buttons button { padding: 8px 12px; font-size: 1rem; }
}





/* ===================================================== */
/* RESPONSIVIDADE - AJUSTES PARA CELULAR (ATÉ 768px)     */
/* ===================================================== */

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


  /* HOME */
  #home {
    flex-direction: column;
    height: auto;
    padding-top: 140px; /* compensar header fixo */
    padding-bottom: 60px;
    gap: 20px;
  }

  .imagem-dinamica {
    display: none; /* some a grande */
  }

.imagem-dinamica-responsiva {
  display: block;
  width: 220px;     /* tamanho ideal */
  height: 220px;
  margin: 0 auto;   /* CENTRALIZA */
  border-radius: 50%;
  object-fit: cover;
  animation: pulsarBorda 2s infinite ease-in-out;
}

  #home h2 {
    font-size: 24px;
    white-space: normal;
  }

  #home p {
    font-size: 16px;
    text-align: center;
  }

  .tecnologias {
    justify-content: center;
    gap: 15px;
  }

  /* SOBRE MIM */
  .sobre-mim {
    height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .container-sobre {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .foto-sobre img {
    width: 260px;
    height: 260px;
  }

  .bio {
    max-width: 90%;
  }

  .bio p {
    text-align: justify;
  }

  /* PROJETOS */
  .container-cards {
    flex-direction: column;
    width: 100%;
  }

  .cards-projetos {
    flex-direction: column;
    padding: 10px;
  }

  .card {
    width: 100%;
    max-width: 330px;
    margin: auto;
  }

 

  /* BOTÕES */
  .botoes {
    flex-direction: column;
    gap: 12px;
  }

  .botoes a {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }

  /* CARROSSEL */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

  .carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* CONTATO */
  .redes-sociais {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .redes-sociais a img {
    padding-top: 50px;
    width: 80px;
    align-items: center;
    justify-content: center;
    width: 30px;
  }

  .tecnologias-usadas img{
    width: 30px;
    height: 30px;
  }


}

