* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}
:root {
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: white;
  --main-color: #00ffee;
}
html {
  font-size: 60%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
#espaco {
  margin-left: 60px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 12%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 2px solid var(--main-color);
  box-shadow: 0 2px 10px rgba(0, 255, 238, 0.2);
}

.logo img {
  height: 70px; /* Define a altura desejada */
  display: block; /* Garante que a imagem não herde comportamentos de inline que podem adicionar espaço */
  cursor: pointer;
  transition: 0.3s ease;
  transform: scaleX(1);
}

.logo:hover {
  transform: scaleX(-1);
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
  margin-left: auto;
}

section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  text-align: justify;
  justify-content: center;
  margin-top: 3rem;
}
span {
  color: var(--main-color);
}

.logo span {
  color: var(--main-color);
}
.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
}
.home-content h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}
.home-img {
  border-radius: 50%;
  position: relative;
  animation: flutuar 2s ease-in-out infinite alternate;
}
.home-img img {
  position: relative;
  top: 3rem;
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}
@keyframes flutuar {
  0% {
    top: 0;
  }
  100% {
    top: 30px;
  }
}
.home-content p {
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}
.tech-icons {
  display: flex;
  gap: 10px;
  padding: 25px;
  justify-content: space-around; /* Ajusta o espaçamento entre os ícones */
}
.icon-border {
  position: relative; /* Permite que o ::before seja posicionado corretamente */
  border: 2px solid var(--main-color);
  border-radius: 50%;
  padding: 10px;
  margin: 10px;
  z-index: 1; /* Garante que o texto apareça acima de outros elementos */
}

.icon-border::before {
  content: "Minha Stack";
  position: absolute;
  top: -15px; /* Move o texto mais para cima para parecer que está fora da borda */
  left: 50%; /* Centraliza o texto horizontalmente */
  transform: translateX(-50%); /* Ajusta para centralizar completamente */
  background-color: var(--bg-color);
  padding: 5px;
  color: var(--main-color); /* Defina a cor do texto para garantir visibilidade */
  font-size: 12px; /* Ajuste o tamanho da fonte conforme necessário */
  z-index: 2; /* Garante que o texto apareça acima de outros elementos */
}

.tech-icons.icon {
  margin: 10px; /* Espaçamento ao redor de cada ícone */
}

.tech-icons.icon img {
  width: 30px; /* Ajuste o tamanho da largura para 30px */
  height: 30px; /* Ajuste o tamanho da altura para 30px */
  box-shadow: 0 0 50px;
  z-index: 1; /* Define um z-index baixo para as imagens */
  object-fit: cover; /* Garante que a imagem cubra todo o espaço disponível sem distorcer */
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}
.social-icons a:hover {
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: o.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}
.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.btn-group a:nth-last-of-type(1) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-last-of-type(1):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}
.text-animation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-animation span:first-child {
  font-size: 34px;
  font-weight: 600;
}

.text-animation .animated-text {
  font-size: 34px;
  font-weight: 600;
  color: var(--main-color);
  min-width: 280px;
  position: relative;
}

/* Apenas o cursor */
.text-animation .animated-text::after {
  content: "|";
  color: var(--main-color);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.heading {
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
}
.education {
  padding: 50px 15px;
  background: var(--second-bg-color);
}
.education h2 {
  margin-bottom: 5rem;
}
/* Ajustes para telas menores */
@media (max-width: 768px) {
  .education {
    padding: 30px 15px;
  }

  .education h2 {
    margin-bottom: 3rem; /* Reduzir o margin-bottom para telas menores */
    font-size: 6rem; /* Reduzir o tamanho do texto para telas menores, se necessário */
  }
}

@media (max-width: 425px) {
  .education {
    padding: 20px 15px; /* Reduzir ainda mais o padding para telas ainda menores */
  }

  .education h2 {
    margin-bottom: 2rem; /* Reduzir ainda mais o margin-bottom para telas ainda menores */
    font-size: 4rem; /* Reduzir ainda mais o tamanho do texto para telas ainda menores */
  }
}

.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--main-color);
  left: calc(50% - 1px);
}
.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  height: 21px;
  width: 21px;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
  top: 10px;
}
.timeline-date {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin: 6px 0 15px;
}
.timeline-content {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  padding: 30px 50px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
  font-size: 20px;
  color: white;
  margin: 0 0 10px;
  font-weight: 500;
}
.timeline-content p {
  color: white;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}
::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}
.services {
  background: var(--bg-color);
  color: white;
  padding: 10rem 12% 10rem;
}

.services h2 {
  margin-bottom: 3rem;
  color: white;
}

.services h3 {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

/* Grid de projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards dos projetos */
.project-card {
  position: relative;
  background: linear-gradient(145deg, var(--second-bg-color), #1a1a1a);
  border-radius: 2rem;
  border: 2px solid rgba(0,255,238,0.2);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 300px;
}

/* Efeito hover - crescimento */
.project-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--main-color);
  box-shadow: 
    0 20px 40px rgba(0,255,238,0.2),
    0 0 30px rgba(0,255,238,0.1);
}

/* Preview do projeto (estado inicial) */
.project-preview {
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.4s ease;
}

.project-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  filter: grayscale(0);
  transform: scale(1.2);
}

.project-preview h4 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.project-summary {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.project-card:hover .project-summary {
  opacity: 1;
  color: white;
}

/* Detalhes do projeto (estado expandido) */
.project-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--main-color), #00d4c4);
  color: black;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado ativo (quando clicado) */
.project-card.active .project-details {
  opacity: 1;
  transform: translateY(0);
}

.project-card.active .project-preview {
  opacity: 0;
  transform: translateY(-100%);
}

.project-details h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: black;
}

.project-details p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.8);
  flex-grow: 1;
}

.project-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: black;
  color: var(--main-color);
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.project-link:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsividade */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    height: 280px;
  }
  
  .project-preview {
    padding: 2rem;
  }
  
  .project-details {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    height: 260px;
  }
  
  .project-card:hover {
    transform: translateY(-5px) scale(1.02);
  }
}
#link {
  color: inherit; /* Mantém a cor do texto igual ao do restante do documento */
  text-decoration: none; /* Remove o sublinhado */
  cursor: pointer;
}

/*
.contact {
    background-color: var(--bg-color);
}
.contact h2 {
    margin-bottom: 3rem;
    color: white;
}
.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact form .btn {
    margin-top: 2rem;
} */
.containeForms {
  border: 2px solid var(--main-color); /* Exemplo: uma borda sólida de 2px de largura e preta */
  padding: 20px; /* Adiciona algum espaço interno para separar a borda do conteúdo */
  margin: 20px auto; /* Centraliza horizontalmente e adiciona margem ao redor */
  max-width: 600px; /* Limita a largura máxima do contêiner */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adiciona uma sombra suave ao redor do contêiner */
}
.containeForms h2 {
  color: var(--main-color);
  text-align: center;
  font-size: 40px;
}
.contact-info {
  text-align: center;
  padding: 10rem 0;
}

.contact-info p {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.contact-info.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}
#secondBottom {
  margin-right: 20px;
}

.contact-info.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}
/* RODAPÉ 3D COM TEMA DO PORTFÓLIO */
.footer-3d {
  position: relative;
  background: linear-gradient(145deg, var(--bg-color), var(--second-bg-color));
  color: var(--text-color);
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Camada de profundidade */
.footer-depth-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, 
      rgba(0, 255, 238, 0.1) 0%, 
      transparent 30%, 
      rgba(0, 255, 238, 0.05) 70%, 
      transparent 100%
    ),
    radial-gradient(circle at 20% 20%, rgba(0, 255, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 238, 0.1) 0%, transparent 50%);
  transform: translateZ(-50px);
  animation: depth-pulse 4s ease-in-out infinite alternate;
}

@keyframes depth-pulse {
  0% {
    opacity: 0.3;
    transform: translateZ(-50px) scale(1);
  }
  100% {
    opacity: 0.7;
    transform: translateZ(-30px) scale(1.02);
  }
}

/* Conteúdo principal 3D */
.footer-main-3d {
  position: relative;
  z-index: 2;
  padding: 4rem 9% 2rem;
  transform: translateZ(0);
}

.footer-content-3d {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Marca com efeito 3D */
.footer-brand-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.footer-brand-3d:hover {
  transform: rotateY(5deg) rotateX(2deg);
}

.brand-title-3d {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 
    0 0 10px var(--main-color),
    0 0 20px var(--main-color),
    0 0 30px var(--main-color),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  transform: translateZ(20px);
  transition: all 0.3s ease;
}

.brand-title-3d:hover {
  transform: translateZ(30px) scale(1.05);
  text-shadow: 
    0 0 15px var(--main-color),
    0 0 30px var(--main-color),
    0 0 45px var(--main-color),
    3px 3px 6px rgba(0, 0, 0, 0.9);
}

.brand-title-3d span {
  color: var(--main-color);
  filter: drop-shadow(0 0 10px var(--main-color));
}

.brand-subtitle-3d {
  font-size: 1.4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  font-weight: 600;
  transform: translateZ(15px);
  text-shadow: 0 0 10px var(--main-color);
}

.brand-description-3d {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 400px;
  transform: translateZ(10px);
}

/* Redes sociais 3D */
.social-links-3d {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  transform: translateZ(25px);
}

.social-btn-3d {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, var(--second-bg-color), var(--bg-color));
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 255, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-btn-3d:hover {
  transform: translateY(-8px) translateZ(15px) rotateY(15deg);
  background: linear-gradient(145deg, var(--main-color), #00d4c4);
  color: var(--bg-color);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.4),
    0 0 40px var(--main-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.social-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(var(--main-color), transparent, var(--main-color));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: rotate-glow 3s linear infinite;
}

.social-btn-3d:hover .social-glow {
  opacity: 0.8;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cards 3D para links */
.footer-links-3d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  transform: translateZ(15px);
}

.footer-card-3d {
  background: linear-gradient(145deg, var(--second-bg-color), var(--bg-color));
  border: 1px solid rgba(0, 255, 238, 0.3);
  border-radius: 15px;
  padding: 2rem;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 255, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-card-3d:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  border-color: var(--main-color);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 255, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-card-3d h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px var(--main-color);
  transform: translateZ(10px);
}

.footer-card-3d ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-card-3d ul li {
  margin-bottom: 0.8rem;
  transform: translateZ(5px);
}

.footer-card-3d ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-card-3d ul li a:hover {
  opacity: 1;
  color: var(--main-color);
  transform: translateX(10px) translateZ(5px);
  text-shadow: 0 0 10px var(--main-color);
}

.footer-card-3d ul li a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--main-color);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px var(--main-color);
}

.footer-card-3d ul li a:hover::before {
  width: 10px;
}

/* Badges 3D para tecnologias */
.tech-badge-3d {
  display: inline-block;
  background: linear-gradient(145deg, var(--main-color), #00d4c4);
  color: var(--bg-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateZ(8px);
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(0, 255, 238, 0.4);
}

.tech-badge-3d:hover {
  transform: translateZ(15px) scale(1.1);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 0 25px var(--main-color);
}

/* Rodapé inferior 3D */
.footer-bottom-3d {
  background: linear-gradient(145deg, var(--second-bg-color), var(--bg-color));
  padding: 1.5rem 9%;
  border-top: 1px solid rgba(0, 255, 238, 0.3);
  position: relative;
  z-index: 2;
  transform: translateZ(5px);
  box-shadow: 
    0 -5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-bottom-content-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-content-3d p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.8;
}

.footer-badges-3d {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge-3d {
  background: linear-gradient(145deg, var(--main-color), #00d4c4);
  color: var(--bg-color);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateZ(10px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(0, 255, 238, 0.3);
}

.badge-3d:hover {
  transform: translateZ(20px) scale(1.1);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 0 25px var(--main-color);
}

/* Partículas flutuantes */
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--main-color);
  animation: float-particle 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  left: 30%;
  animation-delay: 1s;
  animation-duration: 8s;
}

.particle:nth-child(3) {
  left: 50%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.particle:nth-child(4) {
  left: 70%;
  animation-delay: 3s;
  animation-duration: 9s;
}

.particle:nth-child(5) {
  left: 90%;
  animation-delay: 4s;
  animation-duration: 5s;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(100%) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90%) translateX(10px) scale(1);
  }
  50% {
    transform: translateY(50%) translateX(-20px) scale(1.2);
  }
  90% {
    opacity: 1;
    transform: translateY(10%) translateX(15px) scale(1);
  }
}

/* Responsividade */
@media (max-width: 1024px) {
  .footer-content-3d {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-links-3d {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-main-3d {
    padding: 3rem 5% 2rem;
  }
  
  .brand-title-3d {
    font-size: 2.8rem;
  }
  
  .footer-links-3d {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-content-3d {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-badges-3d {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-main-3d {
    padding: 2.5rem 5% 1.5rem;
  }
  
  .brand-title-3d {
    font-size: 2.2rem;
  }
  
  .social-links-3d {
    justify-content: center;
  }
  
  .social-btn-3d {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}
@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
  .services-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
  }
}
@media (max-width: 991px) {
  header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .timeline-items::before {
    left: 7px;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 37px;
  }
  .timeline-dot {
    left: 0;
  }
  .services {
    padding-bottom: 7rem;
  }
  .contact form {
    flex-direction: column;
  }
  .footer {
    padding: 2rem 3%;
  }
}
@media (max-width: 895px) {
  #menu-icon {
    display: block;
    z-index: 1001;
  }
  
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
    z-index: 1000;
  }
  
  .navbar.active {
    display: block;
  }
  
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: white;
    text-align: center;
  }
  
  .language-toggle-header {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    z-index: 999;
  }
  
  .navbar.active ~ .language-toggle-header {
    display: none;
  }
  
  .language-toggle-header .lang-btn {
    padding: 5px 8px;
    font-size: 1rem;
    gap: 3px;
  }
  .home {
    flex-direction: column-reverse;
    margin: 5rem 4rem;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 8rem;
    margin-top: 3rem;
  }
  .home-content p {
    max-width: 600px;
    margin: 0 auto;
  }
  .home-img img {
    width: 56vw;
  }
  .services h2 {
    margin-bottom: 3rem;
  }
  .services-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 798px) {
  .logo img {
    flex-direction: column-reverse;
    height: 50px;
  }
}
@media (max-width: 768px) {
  .language-toggle-header {
    right: 60px;
  }
  
  .language-toggle-header .lang-btn {
    padding: 4px 6px;
    font-size: 0.9rem;
  }
  
  .navbar {
    width: 60%;
  }
  .text-animation span {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 8px;
  }
  ::-webkit-scrollbar {
    width: 8px;
  }
}
@media (max-width: 596px) {
  #secondBottom {
    margin-right: 0;
    margin-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .language-toggle-header {
    right: 55px;
  }
  
  .language-toggle-header .lang-btn {
    padding: 3px 5px;
    font-size: 0.8rem;
    border-width: 1px;
  }
  
  .navbar {
    width: 70%;
  }
  
  .navbar a {
    font-size: 1.8rem;
    margin: 2.5rem 0;
  }
  .text-animation span {
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 9px;
  }
  ::-webkit-scrollbar {
    width: 6px;
  }
}
@media (max-width: 498px) {
  .home-content h1 {
    font-size: 4.5rem;
    line-height: 0.8;
    margin-top: 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .home-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .text-animation {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  
  .text-animation span {
    font-size: 2rem;
    font-weight: 100;
    margin-bottom: 8px;
    display: inline;
  }
  
  .home-content {
    text-align: center;
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .home {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .animated-text {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
  }
}

@media (max-width: 400px) {
  .home-content h1 {
    font-size: 3.8rem;
    line-height: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .home-content h3 {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .text-animation span {
    font-size: 1.7rem;
  }
  
  .animated-text {
    max-width: 50%;
  }
}

@media (max-width: 350px) {
  .home-content h1 {
    font-size: 3.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .home-content h3 {
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .text-animation span {
    font-size: 1.5rem;
  }
  
  .animated-text {
    max-width: 45%;
  }
}

@media (max-width: 366px) {
  .language-toggle-header {
    right: 50px;
  }
  
  .language-toggle-header .lang-btn {
    padding: 2px 4px;
    font-size: 0.7rem;
  }
  
  .navbar {
    width: 75%;
    right: -5px;
  }
  
  .navbar a {
    font-size: 1.6rem;
    margin: 2rem 0;
  }
  ::-webkit-scrollbar {
    width: 4px;
  }
}

/* Fundo de estrelas animado - VERSÃO CORRIGIDA */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.stars, .stars2, .stars3 {
  position: absolute;
  width: 100%;
  height: 200%; /* Altura dupla para criar continuidade */
  background: transparent;
}

/* Estrelas pequenas */
.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
    radial-gradient(1px 1px at 200px 120px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 250px 60px, #fff, transparent),
    radial-gradient(1px 1px at 300px 20px, rgba(255,255,255,0.5), transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  animation: move-stars-continuous 25s linear infinite;
  top: -100%; /* Começa fora da tela */
}

/* Estrelas médias */
.stars2 {
  background-image: 
    radial-gradient(1px 1px at 40px 60px, #fff, transparent),
    radial-gradient(1px 1px at 120px 10px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 170px 50px, #eee, transparent),
    radial-gradient(2px 2px at 220px 90px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 280px 130px, #ddd, transparent),
    radial-gradient(1px 1px at 350px 40px, rgba(255,255,255,0.8), transparent);
  background-repeat: repeat;
  background-size: 500px 250px;
  animation: move-stars-continuous 35s linear infinite;
  top: -100%;
  animation-delay: -5s; /* Offset para variação */
}

/* Estrelas grandes com cor ciano */
.stars3 {
  background-image: 
    radial-gradient(2px 2px at 60px 80px, rgba(0,255,238,0.8), transparent),
    radial-gradient(2px 2px at 180px 20px, rgba(0,255,238,0.6), transparent),
    radial-gradient(1px 1px at 220px 90px, var(--main-color), transparent),
    radial-gradient(3px 3px at 320px 140px, rgba(0,255,238,0.4), transparent),
    radial-gradient(2px 2px at 380px 50px, rgba(0,255,238,0.7), transparent),
    radial-gradient(1px 1px at 450px 110px, var(--main-color), transparent);
  background-repeat: repeat;
  background-size: 600px 300px;
  animation: move-stars-continuous 45s linear infinite;
  top: -100%;
  animation-delay: -10s; /* Offset diferente */
}

/* Animação contínua corrigida */
@keyframes move-stars-continuous {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh); /* Move exatamente a altura da tela */
  }
}

/* Estrelas cadentes - mantém o mesmo código */
.shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, var(--main-color), transparent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--main-color), 0 0 12px var(--main-color), 0 0 18px var(--main-color);
  animation: shoot 3s linear infinite;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--main-color), transparent);
  transform: translateY(-50%) rotateZ(45deg);
  border-radius: 100px;
  animation: shining 3s ease-in-out infinite;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
  transform: translateY(-50%) rotateZ(45deg);
  border-radius: 100px;
  animation: shining 3s ease-in-out infinite;
}

@keyframes shoot {
  0% {
    transform: translateX(-100px) translateY(-100px);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(1200px) translateY(1200px);
    opacity: 0;
  }
}

@keyframes shining {
  0% {
    width: 0;
  }
  50% {
    width: 50px;
  }
  100% {
    width: 0;
  }
}

/* Efeito de brilho adicional para as estrelas */
.stars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(1px 1px at 100px 150px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 300px 50px, rgba(0,255,238,0.2), transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .stars {
    background-size: 300px 150px;
  }
  
  .stars2 {
    background-size: 350px 175px;
  }
  
  .stars3 {
    background-size: 400px 200px;
  }
  
  .shooting-star {
    width: 3px;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .stars {
    background-size: 250px 125px;
  }
  
  .stars2 {
    background-size: 300px 150px;
  }
  
  .stars3 {
    background-size: 350px 175px;
  }
}
/* Efeito elegante na foto - VERSÃO SIMPLIFICADA */
.home-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img img {
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  /* Borda sutil e elegante */
  border: 3px solid rgba(0,255,238,0.4);
  /* Sombra suave */
  box-shadow: 
    0 0 20px rgba(0,255,238,0.2),
    0 0 40px rgba(0,255,238,0.1);
}

/* Efeito hover simples e elegante */
.home-img:hover img {
  transform: scale(1.03);
  border-color: rgba(0,255,238,0.6);
  box-shadow: 
    0 0 25px rgba(0,255,238,0.3),
    0 0 50px rgba(0,255,238,0.15);
  filter: brightness(1.05);
}

/* Animação sutil de pulsação na borda */
.home-img img {
  animation: subtle-border-pulse 4s ease-in-out infinite;
}

@keyframes subtle-border-pulse {
  0%, 100% {
    border-color: rgba(0,255,238,0.4);
  }
  50% {
    border-color: rgba(0,255,238,0.6);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .home-img img {
    border-width: 2px;
    box-shadow: 
      0 0 15px rgba(0,255,238,0.2),
      0 0 30px rgba(0,255,238,0.1);
  }
}

@media (max-width: 480px) {
  .home-img img {
    border-width: 2px;
    box-shadow: 
      0 0 10px rgba(0,255,238,0.2),
      0 0 20px rgba(0,255,238,0.1);
  }
  
  .home-img:hover img {
    transform: scale(1.02);
  }
}

/* Estilos para o botão de tradução no header */
.language-toggle-header {
  display: flex;
  gap: 5px;
  align-items: center;
}

.language-toggle-header .lang-btn {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--main-color);
  padding: 8px 12px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-toggle-header .lang-btn:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 255, 238, 0.3);
}

.language-toggle-header .lang-btn.active {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 10px rgba(0, 255, 238, 0.5);
}

/* Responsividade ajustada - botões se movem para baixo a partir de 1100px */
@media (max-width: 1175px) {
  .language-toggle-header {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 998;
  }
  
  .language-toggle-header .lang-btn {
    padding: 6px 10px;
    font-size: 1.1rem;
  }
}

/* A partir de 1100px os botões vão para baixo do header */
@media (max-width: 1100px) {
  .language-toggle-header {
    position: fixed;
    top: 80px; /* Abaixo do header */
    right: 10px;
    z-index: 998;
  }
  
  .language-toggle-header .lang-btn {
    padding: 5px 8px;
    font-size: 1rem;
  }
}

/* Quando o menu mobile aparece */
@media (max-width: 895px) {
  #menu-icon {
    display: block;
    z-index: 1001;
  }
  
  /* Mantém os botões abaixo do header */
  .language-toggle-header {
    position: fixed;
    top: 80px;
    right: 10px;
    z-index: 998;
  }
  
  .language-toggle-header .lang-btn {
    padding: 4px 6px;
    font-size: 0.9rem;
    gap: 2px;
  }
  
  /* Esconde quando menu está ativo */
  .navbar.active ~ .language-toggle-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .language-toggle-header .lang-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
    border-width: 1px;
    min-width: 40px;
    min-height: 32px;
  }
}

@media (max-width: 600px) {
  .language-toggle-header .lang-btn {
    padding: 8px 12px;
    font-size: 1rem;
    gap: 2px;
    min-width: 45px;
    min-height: 36px;
  }
}

@media (max-width: 499px) {
  .language-toggle-header .lang-btn {
    padding: 10px 14px;
    font-size: 1.1rem;
    min-width: 50px;
    min-height: 40px;
    border-width: 2px;
  }
}

@media (max-width: 400px) {
  .language-toggle-header .lang-btn {
    padding: 8px 12px;
    font-size: 1rem;
    min-width: 48px;
    min-height: 38px;
  }
}

@media (max-width: 350px) {
  .language-toggle-header .lang-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
    min-width: 44px;
    min-height: 36px;
  }
}

/* Estilos para o botão de tradução */
.language-toggle {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.language-toggle button {
  background: var(--main-color);
  color: var(--bg-color);
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 255, 238, 0.3);
}

.language-toggle button:hover {
  background: var(--text-color);
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 255, 238, 0.5);
}

.language-toggle button.active {
  background: var(--text-color);
  color: var(--main-color);
  box-shadow: 0 0 10px rgba(0, 255, 238, 0.8);
}

/* Responsividade para o botão de tradução */
@media (max-width: 768px) {
  .language-toggle {
    top: 80px;
    right: 15px;
  }
  
  .language-toggle button {
    padding: 6px 10px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .language-toggle {
    top: 70px;
    right: 10px;
  }
  
  .language-toggle button {
    padding: 5px 8px;
    font-size: 0.9rem;
  }
}

/* Estilo adicional quando menu está ativo */
.header.menu-active .language-toggle-header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
