* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  overflow-x: hidden;
  font-family: "poppins", sans-serif;
  background-color: black; 
}

html {
  scroll-behavior: smooth;
}

.webgl {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;  /* Vai ficar atrás dos outros elementos */
}

nav {
  color: #fff;
  z-index: 2;
  position: relative;
  padding: 4rem 8rem;
  display: flex;
  justify-content: space-between;
}

nav a { 
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

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

video {
  z-index: 1;
  position: absolute;
  object-fit: cover;
  top: 15%;
}

.title {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 85%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  color: #dddd;
  font-size: 6em !important;
  font-family: "poppins", sans-serif;
  letter-spacing: 0.2em;
  z-index: 1;
}

h1 span {
  opacity: 0;
  display: inline-block;
  animation: animate 1s linear forwards;
  animation-delay: 1s;
}

@keyframes animate {
  0% {
    opacity: 0;
    transform: rotateY(90deg);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
    filter: blur(0);
  }
}

h1 span:nth-child(1) { animation-delay:1s; }
h1 span:nth-child(2) { animation-delay:1.5s; }
h1 span:nth-child(3) { animation-delay:2s; }
h1 span:nth-child(4) { animation-delay:2.5s; }
h1 span:nth-child(5) { animation-delay:3s; }
h1 span:nth-child(6) { animation-delay:3.5s; }
h1 span:nth-child(7) { animation-delay:4s; }
h1 span:nth-child(8) { animation-delay:4.5s; }
h1 span:nth-child(9) { animation-delay:5s; }
h1 span:nth-child(10) { animation-delay:5.5s; }
h1 span:nth-child(11) { animation-delay:6s; }

.elemento {
  position: absolute; /* ou relative, dependendo da necessidade */
  animation: animate 3s infinite; /* Ajuste o tempo e o modo da animação */
}

/* inicio da galeria */
.gallery {
  width: 100%;
  margin-top: 700px;
}

.gallery_title {
  color: #ddd;
  margin-top: 60%;
  text-align: center;
  font-size: 3rem;
}

.gallery_container {
  align-items: center;
  display: flex;
  height: 400px;
  margin: 0 auto;
  max-width: 1000px;
  position: relative;
}

.gallery_item {
  height: 200px;
  opacity: 1;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 330px;
  z-index: 0;
  border-radius: 15px;
  background-size: contain;
}

.gallery_item1 {
  left: 15px;
  opacity: 0.2;
  transform: translateX(-50%);
}

.gallery_item2 .gallery_item4 {
  height: 250px;
  opacity: 0.8;
  width: 380px;
  z-index: 1;
}

.gallery_item2 {
  left: 30%;
  transform: translateX(-50%);
  opacity: 0.4;
}

.gallery_item3 {
  box-shadow: -2px 5px 33px 6px rgb(0, 0, 0, 0.35);
  height: 300px;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 470px;
  z-index: 2;
}

.gallery_item4 {
  left: 70%;
  transform: translateX(-50%);
  opacity: 0.4;
}

.gallery_item5 {
  left: 85%;
  opacity: 0.2;
  transform: translate(-50%);
}

.gallery_controls {
  display: flex;
  justify-content: center;
  margin: 25px 0;
  height: 100px;
}

.gallery_controls button {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 30px;
  margin: 0 50px;
  padding: 0 12px;
  text-transform: capitalize;
}

.gallery_controls button:focus {
  outline: none;
}

.gallery_controls-previous {
  position: relative;
}

.gallery_controls-previous::before {
  border: solid #fff;
  border-width: 0 5px 5px 0;
  content: '';
  display: inline-block;
  height: 5px;
  left: -30px;
  padding: 10px;
  position: absolute;
  top: 25%;
  transform: rotate(135deg) translatey(-50%);
  transition: left 0.15s ease-in-out;
  width: 5px;
}

.gallery_controls-previous:hover::before {
  left: -40px;
}

.gallery_controls-next {
  position: relative;
}

.gallery_controls-next::before {
  border: solid #fff;
  border-width: 0 5px 5px 0;
  content: '';
  display: inline-block;
  height: 5px;
  padding: 10px;
  position: absolute;
  right: -30px;
  top: 45px;
  transform: rotate(-45deg) translateY(-50%);
  transition: right 0.15s ease-in-out;
  width: 5px;
}

.gallery_controls-next:hover::before {
  right: -40px;
}

.gallery_nav {
  bottom: -15px;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: absolute;
  width: 100%;
}

.gallery nav li {
  background: #ccc;
  border-radius: 50%;
  height: 10px;
  margin: 0 16px;
  width: 10px;
}

.gallery-nav li .gallery_iten-selected {
  background: #fff;
}

/* inicio de empresas */
.Empresas {
  font-size: 3rem;
  font-weight: 600;
  margin-top: 50%; /* Distância do topo */
  text-align: center; /* Centraliza o título */
  color: #ddd;
  font-family: "poppins", sans-serif;
}
.Empresas_container {
  display: contents; /* Organiza as listas horizontalmente */
  justify-content: space-around; /* Espaço entre as listas */
  align-items: flex-start; /* Alinha as listas ao topo */
  width: 100%; /* Controla a largura do container */
  max-width: 1200px; /* Limita a largura máxima */
}

.metallic-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #8f8d8d, #807d7d, #757070, #424141);
  box-shadow: 0px 0px 15px rgba(228, 227, 227, 0.9);
  border-top: 2px solid rgba(255, 255, 255, 0.5); /* Reflexo de luz */
  border-bottom: 2px solid rgba(0, 0, 0, 0.5); /* Sombra */
  overflow: hidden;
  position: relative;
  margin-bottom: 3rem;
}

.metallic-line::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -50%;
  width: 50%;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(5px);
  transform: rotate(10deg);
  animation: shine 2s infinite linear;
}

@keyframes shine {
  from {
    left: -50%;
  }
  to {
    left: 120%;
  }
}



.list_Ecotec, .list_Comin, .list_Cardan {
  display: flex;
  flex-direction: column; /* Organiza os itens de cada lista em coluna */
  align-items: center; /* Centraliza os itens horizontalmente */
  justify-content: flex-start; /* Garante que o conteúdo fique no topo */
  margin: 0; /* Espaço entre as listas */
  text-align: center;
  color: #fff;
  font-family: "poppins", sans-serif;
}

h2 {
  font-size: 1.5rem;
  margin: 20px 0;
}

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

li {
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.Técnico {
  margin: 5px 0 0 1px;
  font-family: "poppins", sans-serif;
}

/* Inicio dos Cursos */
.Cursos {
  font-size: 3rem;
  font-weight: 600;
  margin-top: 50%; /* Distância do topo */
  text-align: center; /* Centraliza o título */
  color: #ddd;
  font-family: "poppins", sans-serif;
}

.Cursos_container {
  display: contents; /* Organiza as listas horizontalmente */
  justify-content: space-around; /* Espaço entre as listas */
  align-items: flex-start; /* Alinha as listas ao topo */
  width: 100%; /* Controla a largura do container */
  max-width: 1200px; /* Limita a largura máxima */
}

.list_MA, .list_IFMG, .list_Registro, .list_cnh {
  display: flex;
  flex-direction: column; /* Organiza os itens de cada lista em coluna */
  align-items: center; /* Centraliza os itens horizontalmente */
  justify-content: flex-start; /* Garante que o conteúdo fique no topo */
  margin: 0; /* Espaço entre as listas */
  text-align: center;
  color: #fff;
  font-family: "poppins", sans-serif;
}

h2 {
  font-size: 1.5rem;
  margin: 20px 0;
}

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

li {
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

/* Media Query para dispositivos com tela 1080x2408 */
@media (min-width: 1080px) and (max-height: 2408px) {
  /* Ajustes para a navegação */
  nav {
    padding: 2rem 3rem;
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Ajuste do título */
  .title {
    font-size: 4em;
    top: 75%; /* Ajuste do posicionamento */
  }


  /* Ajuste do container principal */
  .container {
    flex-direction: column;
    align-items: center;
  }

  /* Ajustes para a linha metálica */
  .metallic-line {
    height: 3px;
    margin-bottom: 1rem;
  }

  /* Ajustes das listas */
  .list_Ecotec, .list_Comin, .list_Cardan,
  .list_MA, .list_IFMG, .list_Registro, .list_cnh {
    margin: 10px 0;
  }

  h2 {
    font-size: 1.2rem;
  }

  /* Ajuste dos vídeos */
  video {
    width: 100%;
    height: auto;
  }

  .webgl {
    width: 100%;
    height: 100%;
  }
}

/* Media Query geral para telas maiores que 1080px */
@media (min-width: 1024px) {
  nav {
    padding: 4rem 8rem;
    flex-direction: row;
    justify-content: space-between;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    gap: 4rem;
  }}

  /* Estilo do rodapé */
.footer {
  background-color: #161616;
  color: #fff;
  text-align: center;
  padding: 20px;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Estilo do conteúdo do rodapé */
.footer-content {
  margin-bottom: 10px;
}

.footer-content h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

/* Links sociais */
.footer-social a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.footer-social a:hover {
  text-decoration: underline;
}

.linkedin{
  width: 30px; 
  height: 30px; 
  vertical-align: middle; 
  margin-right: 5px; 
  background-color: transparent;
}