/* Área onde a cobra vai se mover */
.snake-area{
  width: 100%;
  max-width: 800px;      /* ajuste conforme quiser */
  height: 300px;         /* altura do espaço da cobra */
  margin: 1.5rem auto;
  background: linear-gradient(135deg, #f8f9fc, #e3e7f1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* estilo base do segmento da cobra */
.snake-area .segment{
  position: absolute;
  width: 38px;           /* tamanho do segmento - altera espessura da cobra */
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg,#382ecc,#404adf);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  top: 50%;
  left: -50px;           /* começa fora da área à esquerda */
  transform: translate(-50%, -50%) rotate(0deg);
  animation: slither 8s linear infinite;
  will-change: transform;
 
}

/* cores e tamanho menores para cauda — cada nth-child adapta visual */
.snake-area .segment:nth-child(odd){ background: linear-gradient(135deg,#4c26b3,#455ad1); }
.snake-area .segment:nth-child(2){ transform-origin: center; animation-delay: 0.12s; width: 36px; height: 36px; }
.snake-area .segment:nth-child(3){ animation-delay: 0.24s; width: 34px; height: 34px; opacity: .95; }
.snake-area .segment:nth-child(4){ animation-delay: 0.36s; width: 32px; height: 32px; opacity: .9; }
.snake-area .segment:nth-child(5){ animation-delay: 0.48s; width: 30px; height: 30px; opacity: .85; }
.snake-area .segment:nth-child(6){ animation-delay: 0.60s; width: 28px; height: 28px; opacity: .8; }
.snake-area .segment:nth-child(7){ animation-delay: 0.72s; width: 26px; height: 26px; opacity: .75; }
.snake-area .segment:nth-child(8){ animation-delay: 0.84s; width: 24px; height: 24px; opacity: .7; }
.snake-area .segment:nth-child(9){ animation-delay: 0.96s; width: 22px; height: 22px; opacity: .65; }
.snake-area .segment:nth-child(10){ animation-delay: 1.08s; width: 20px; height: 20px; opacity: .6; }

/* keyframes que descrevem o caminho — edite posições para ajustar curva */
@keyframes slither {
  0% {
    transform: translate(-50%, -50%) translateX(0px) translateY(0px) rotate(0deg);
    left: -10%;
    top: 40%;
  }
  10% {
    left: 10%;
    top: 30%;
    transform: translate(-50%,-50%) rotate(-10deg);
  }
  25% {
    left: 35%;
    top: 24%;
    transform: translate(-50%,-50%) rotate(-20deg);
  }
  40% {
    left: 60%;
    top: 36%;
    transform: translate(-50%,-50%) rotate(8deg);
  }
  55% {
    left: 80%;
    top: 52%;
    transform: translate(-50%,-50%) rotate(30deg);
  }
  70% {
    left: 60%;
    top: 68%;
    transform: translate(-50%,-50%) rotate(160deg);
  }
  85% {
    left: 30%;
    top: 62%;
    transform: translate(-50%,-50%) rotate(200deg);
  }
  100% {
    left: -10%;
    top: 50%;
    transform: translate(-50%,-50%) rotate(360deg);
  }
}


/* responsivo: reduz a cobra em telas pequenas */
@media (max-width:520px){
  .snake-area{ height: 220px; }
  .snake-area .segment{ width: 28px; height: 28px; }
  .snake-area .segment:nth-child(10){ width: 16px; height: 16px; }
}


/* Estrea 3D*/

#star-container {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #020024, #090979, #00d4ff);
  overflow: hidden;
}




/* === RESET E BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(135deg, #f8f9fc, #e3e7f1);
  color: #222;
  line-height: 1.6;
}

/* === CABEÇALHO === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: #e6d114d2;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nome-emoji {
  display: flex;
  flex-direction: column;
}

.nome-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.emoji {
  font-size: 1.8rem;
  margin-left: 4px;
}

/* === MENU DE NAVEGAÇÃO === */
.nav-wrapper {
  display: flex;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #6a5acd;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #6a5acd;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* === SEÇÃO INICIAL === */
.container-alinhado {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 3rem 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.imagem-redonda {
  width: 400px;
  height: 400px;
  background: url('/images/Erick\ Menezes.jpeg') center/cover no-repeat;
  border-radius: 50%;
  border: 4px solid #6a5acd;
  box-shadow: 0 0 20px rgba(106, 90, 205, 0.4);
}

.texto-grande h1 {
  font-size: 2.2rem;
  color: #333;
}

.botao-inspirador button {
  margin-top: 1rem;
  background: #6a5acd;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.botao-inspirador button:hover {
  background: #5847c2;
  transform: translateY(-2px);
}

/* === SEÇÕES === */
.conteudo-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
  position: relative;
}

section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #6a5acd;
  display: block;
  margin-top: 5px;
}

section p {
  margin-top: 0.5rem;
  color: #444;
}

/* === ÍCONES SOCIAIS === */
.icones-sociais {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.icones-sociais a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  font-size: 1.4rem;
  border-radius: 50%;
  color: #fff;
  transition: 0.3s;
}

.whatsapp {
  background: #25d366;
}
.whatsapp:hover {
  background: #1da851;
}

.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.instagram:hover {
  opacity: 0.85;
}



.form-icon {
  background: #6a5acd;
}
.form-icon:hover {
  background: #5847c2;
}

/* === PERGUNTAS FREQUENTES / PROJETOS === */
.faq {
  margin-top: 1.5rem;
}

.pergunta {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  padding: 1rem;
}

.pergunta strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.toggle-btn {
  background: #6a5acd;
  color: #fff;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.pergunta .descricao {
  display: block;
  animation: fadeIn 0.4s ease;
}


.pergunta.open .descricao {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* === RODAPÉ === */
.footer-final {
  background: #6a5acd;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 0 12px;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .container-alinhado {
    flex-direction: column;
    text-align: center;
  }

  .imagem-redonda {
    margin-bottom: 1rem;
  }
}





.skills-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.skills-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #0c0a0c;
  position: relative;
  display: inline-block;
}

.skills-section h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: #6FB7E2;
  margin: 8px auto 0;
  border-radius: 2px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: cente
}



/* === FORMULÁRIO FALE COMIGO === */
#fale-comigo {
  padding: 60px 20px;
  background: #e6d114d2;
  text-align: center;
}

.contato-form {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  color: #333;
}

.contato-form h2 {
  margin-bottom: 20px;
  color: #190b68;
  font-size: 28px;
}

.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.contato-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contato-form button {
  padding: 12px 25px;
  background: linear-gradient(90deg, #190b68, #8583da);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contato-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(24, 18, 200, 0.5);
}

#form-message {
  margin-top: 10px;
  font-weight: bold;
}





.linkedin{
  color: #0A66C2 !important; /* azul oficial do LinkedIn */
  transition: color 0.3s;
}

.linkedin:hover{
  color: #16324e; /* azul mais escuro ao passar o mouse */
}



/* === RESPONSIVIDADE CELULAR === */
@media (max-width: 768px) {

  /* Cabeçalho */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nome-emoji {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .nome-header {
    font-size: 1.3rem;
  }

  .emoji {
    font-size: 1.5rem;
    margin-left: 6px;
  }

  /* Menu */
  .nav-wrapper {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    border-radius: 0 0 12px 12px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 0.8rem 0;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
  }

  /* Seção inicial */
  .container-alinhado {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .imagem-redonda {
    width: 250px;
    height: 250px;
    margin-bottom: 1rem;
  }

  .texto-grande h1 {
    font-size: 1.8rem;
  }

  .botao-inspirador button {
    width: 80%;
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  /* Ícones sociais */
  .icones-sociais {
    justify-content: center;
  }

  .icones-sociais a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  /* Skills */
  .skills-grid {
    gap: 10px;
    justify-content: center;
  }

  .skill-card {
    width: 70px;
    padding: 8px;
  }

  .skills-section h2 {
    font-size: 1.5rem;
  }

  /* FAQ / Perguntas */
  .pergunta {
    padding: 0.8rem;
  }

  .toggle-btn {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }

  /* Formulário Fale Comigo */
  .contato-form {
    padding: 20px;
  }

  .contato-form h2 {
    font-size: 24px;
  }

  .contato-form input,
  .contato-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .contato-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}
