@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
.inter-text {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
a {
  text-decoration: none;
}
body,
html {
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
}
.menu a {
  text-transform: uppercase;
  display: inline-block;
  color: white;
}
header {
  height: 1rem;
}
.menu {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.menu li {
  list-style: none;
}
.container-main {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 0 5rem;
  box-sizing: border-box;
}
.apresentacao {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-right: 3rem;
}
.apresentacao h1 {
  font-size: 2.5rem;
  margin: 0;
}

.apresentacao p {
  font-size: 1.2rem;
}

.myface {
  grid-column: 8 / span 5;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-indicator svg {
  animation: scroll-bounce 1.8s ease-in-out infinite;
  padding: 20px;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.girar-wrapper img {
  width: 300px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 1s ease-in-out;
  transform-style: preserve-3d;
}
.girar-wrapper img.girar {
  transform: rotateY(360deg);
}

.girar-wrapper {
  display: inline-block;
  animation: flutuar 4s ease-in-out infinite;
}
@keyframes flutuar {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px); /* sobe */
  }
  100% {
    transform: translateY(0); /* volta */
  }
}
.apresentacao p {
  color: white;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.texto-info p {
  line-height: 2;
}

.typewriter {
  overflow: hidden;
  border-right: 0.15em solid white;
  white-space: nowrap;
  animation: typing 2s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

.titulo {
  width: 15rem;
}

.js-scroll {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition: opacity 0.6s, transform 0.6s;
}

.js-scroll.ativo {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.projetos {
  position: relative;
  grid-column: 2 / span 10;
  border-radius: 20px;
  margin-top: 5rem;
  padding: 0;
  opacity: 1; /* visível desde o início */
  transform: translateY(0);
  transition: background-color 1s ease;
  background-color: transparent; /* começa transparente */
  z-index: 5000;
  width: 100%;
}

.projetos.js-scroll.ativo {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.titulo-exp {
  text-align: center;
  margin: 5rem;
}

.hemominas,
.pbh {
  flex: 1;
  width: 0; /* garante divisão igual */
  min-width: 0;
  height: 100%;
  margin: 0; /* remova margens laterais se necessário */
}

.hemominas p,
.pbh p {
  letter-spacing: 2px;
  line-height: 2; /* ou 1.6 – um pouco menor já suaviza */
}
.titulo-hemominas {
  text-align: center;
}
.titulo-pbh {
  text-align: center;
}

.titulo-arcelor{
  text-align: center;

}
.gaia {
  margin: 5rem;
  text-align: center;
}

/* MODAL GAIA */
.btn-ver {
  background-color: transparent;
  border: 1px solid #888;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 8px;
  text-align: center;
}
.btn {
  text-align: center;
}

.btn-ver:hover {
  background-color: #1b1a69;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
/*teste*/
.modal-content2{
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.modal-content2 img  {
  width: 80vw;
  max-width: 900px;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.modal-content img {
  width: 250px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.modal-content img:hover {
  transform: scale(1.05);
}

.close {
  color: #fff;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  cursor: pointer;
}
/* FIM MODAL GAIA */
/* GALERIA DE IMAGENS */ 
.image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}




.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 3;
}

.center-img {
  width: 60vw;
  max-width: 900px;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
  transition: all 0.5s ease;
  z-index: 3;
}




.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 4;
}

 .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 35px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s;
  z-index: 4;
}
.next:hover {
  background-color: rgba(255,255,255,0.4);
}


.next { right: 2%; }


.prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 35px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s;
  z-index: 4;
  left: 2%;
}

.prev:hover {
  background-color: rgba(255,255,255,0.4);
}

.carousel {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide {
  display: none;
  width: 100%;
  max-height: 80vh;
  object-fit: contain; 
  border-radius: 10px;
  background-color: #000; 
  
}

.slide.active {
  display: block;
}



#space {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* fica atrás do resto do site */
  background: radial-gradient(ellipse at bottom, #0d1d31 0%, #000 100%);
}

#blackhole-section {
  position: relative;
  width: 100%; /* OK */
  margin: 0;
  padding: 0;
  top: -5rem;
}

#blackhole-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;

  background: 
    /* Fade no topo (azul → transparente pra baixo) */ linear-gradient(
      to bottom,
      rgba(9, 19, 33, 1) 0%,
      rgba(9, 19, 33, 0) 20%
    ),
    /* Fade na base (azul → transparente pra cima) */
      linear-gradient(to top, rgba(9, 19, 33, 1) 0%, rgba(9, 19, 33, 0) 20%);

  background-repeat: no-repeat;
  background-size: 100% 20%, 100% 20%; /* controla altura das faixas */
  background-position: top, bottom;
}

#blackhole {
  position: relative; /* relativo à seção */
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#blackhole canvas {
  display: block;
  width: 100% !important;
  height: auto; /* mantém proporção */
  margin: 0;
  padding: 0;
}
#blackhole {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#blackhole.show {
  opacity: 1;
}

.blackhole-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#blackhole-section {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* Buraco negro desabilitado (mobile/telas menores que 1024px) */
body.no-blackhole .blackhole-wrapper,
body.no-blackhole #blackhole-section {
  height: 0;
  min-height: 0;
  top: 0;
  overflow: hidden;
}

body.no-blackhole #blackhole-section::after {
  display: none;
}

body.no-blackhole .cosmic-eye {
  display: none;
}

.experiencias {
  padding: 4rem 2rem;
  display: flex;
  gap: 2rem;
}
.cosmic-eye {
  position: fixed;
  top: 25px;
  right: 35px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #ffdd77,
    #ff8800 70%,
    #000 100%
  );
  box-shadow: 0 0 20px 5px rgba(255, 180, 70, 0.5);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 10;
}

.cosmic-eye:hover {
  box-shadow: 0 0 40px 15px rgba(255, 200, 120, 0.8);
  transform: scale(1.1);
}

.eye-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #000, #331a00 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.6s ease;
}

.eye-lid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, transparent 75%);
  border-radius: 50%;
  animation: blink 8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes blink {
  0%,
  4%,
  100% {
    transform: scaleY(1);
  }
  2% {
    transform: scaleY(0.1);
  }
}

.cosmic-eye::after {
  content: "Entrar no portal";
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffd57a;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  font-family: "Orbitron", sans-serif;
}

.cosmic-eye:hover::after {
  opacity: 1;
}

/* footer */

.footer {
  background-color: #0d1117; /* fundo escuro */
  background-image: url("./img/footer-bg.png");
  height: 10rem;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.contato {
  display: flex;
  align-items: center;
}

.footer .contato a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 8px;
  background-color: #fff;
  border-radius: 50%; 
  transition: background-color 0.3s ease, transform 0.3s ease;
  
}

.footer .contato a:hover {
  background-color: #ccc;
  transform: translateY(-3px);
}

.footer .contato img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: invert(0); /* deixa o ícone escuro */
}

.footer .copyright {
  color: #777;
  font-size: 15px;
  padding-top: 20px;
}

/* ======= Sistema Solar de Tecnologias ======= */
.solar-system-section {
  position: relative;
  padding: 6rem 2rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  overflow: hidden;
}

.solar-system-titulo {
  font-size: 2rem;
  margin: 0;
}

.solar-system-subtitulo {
  color: #bbb;
  margin: 0 0 3rem;
}

.solar-system {
  position: relative;
  width: min(600px, 92vw);
  height: min(600px, 92vw);
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4c2, #ffd54a 45%, #ff9d1f 75%, #c9560e 100%);
  box-shadow: 0 0 40px 10px rgba(255, 170, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #3a1e00;
  z-index: 5;
  animation: sun-pulse 3s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 0 40px 10px rgba(255, 170, 40, 0.6); }
  50% { box-shadow: 0 0 60px 20px rgba(255, 200, 80, 0.9); }
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.orbit-ring.ring-cw {
  animation-name: orbit-spin-cw;
}
.orbit-ring.ring-ccw {
  animation-name: orbit-spin-ccw;
}

@keyframes orbit-spin-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-spin-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.orbit-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.orbit-icon-inner {
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(20, 15, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(155, 92, 255, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.orbit-icon-inner.counter-cw {
  animation-name: orbit-counter-cw;
}
.orbit-icon-inner.counter-ccw {
  animation-name: orbit-counter-ccw;
}

/* Cancelam tanto o giro do anel quanto o ângulo fixo do ícone,
   mantendo cada logo sempre "em pé" enquanto orbita */
@keyframes orbit-counter-cw {
  from { transform: rotate(calc(-1 * var(--angle))); }
  to   { transform: rotate(calc(-1 * var(--angle) - 360deg)); }
}
@keyframes orbit-counter-ccw {
  from { transform: rotate(calc(-1 * var(--angle))); }
  to   { transform: rotate(calc(-1 * var(--angle) + 360deg)); }
}

.orbit-icon-inner:hover {
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.8);
  transform: scale(1.15);
  z-index: 6;
}

.orbit-icon-inner img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.orbit-icon-inner .fallback-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.orbit-icon-tooltip {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #d9c4ff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.orbit-icon-inner:hover .orbit-icon-tooltip {
  opacity: 1;
}

/* Passar o mouse pausa a animação para facilitar ler os nomes */
.solar-system.paused .orbit-ring,
.solar-system.paused .orbit-icon-inner,
.solar-system.paused .sun {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .solar-system-section {
    padding: 4rem 1rem 5rem;
  }
  .solar-system-titulo {
    font-size: 1.5rem;
  }
  .orbit-icon-inner {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
  }
  .orbit-icon-inner img {
    width: 20px;
    height: 20px;
  }
  .sun {
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    font-size: 0.85rem;
  }
}

/* ==========================================================
   AJUSTES MOBILE (telas até 768px)
   Este bloco só afeta celular/tablet — desktop fica como está.
   ========================================================== */
@media (max-width: 768px) {
  .container-main {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 3rem 1.5rem 2rem;
    gap: 2rem;
  }

  /* Foto no topo */
  .myface {
    order: -1;
  }

  .scroll-indicator {
    position: static;
    transform: none;
    margin-top: -1rem;
  }

  .girar-wrapper img {
    width: 180px;
    height: 200px;
  }

  /* Texto logo abaixo da foto */
  .apresentacao {
    padding-right: 0;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }

  .titulo {
    width: auto;
  }

  .apresentacao h1 {
    font-size: 1.8rem;
  }

  .apresentacao p {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .texto-info p {
    line-height: 1.7;
  }

  /* Bloco de projetos/experiências ocupando a tela toda */
  .projetos {
    grid-column: unset;
    margin-top: 2rem;
  }

  .titulo-exp {
    margin: 2rem 1rem;
  }

  .experiencias {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 3rem;
  }

  .hemominas,
  .pbh {
    width: 100%;
    height: auto;
  }

  .gaia {
    margin: 2rem 0;
  }

  /* Ícone do portal um pouco menor para não competir com o conteúdo */
  .cosmic-eye {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
  }

  /* Footer com ícones organizados em telas estreitas */
  .footer .contato {
    flex-wrap: wrap;
    justify-content: center;
  }
}