* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #000;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Barra de rolagem geral para navegadores baseados em WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 4px; /* Bem fina */
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1); /* quase invisível */
    border-radius: 10px;
  }
  
  /* Para Firefox */
  body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
  }
  

.layout {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.esquerda {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#topo {
  width: 700px;
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  gap: 20px;
}

#topo h1 { font-size: 24px; }
#topo p { font-size: 16px; line-height: 1.4; }
#topo ul {
  list-style: none;
  padding-left: 0;
}
#topo ul li {
  font-size: 16px;
  margin-bottom: 10px;
}
#topo ul li::before {
  content: '✅';
  margin-right: 8px;
  color: #00ff00;
}

#baixo {
  width: 700px;
  background-color: #000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 20px;
  flex-wrap: wrap;
}

.botao {
  background-color: #00ff00;
  color: #000;
  font-weight: bold;
  padding: 25px 30px;
  border-radius: 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: transform 0.2s, background-color 0.2s;
  cursor: pointer;
}

.botao i { font-size: 30px; }
.botao:hover {
  transform: scale(1.05);
  background-color: #00cc00;
}

.retangulo {
  width: 500px;
  height: 620px;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.retangulo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.carrossel-container {
  width: 100%;
  height: 550px;
  overflow: hidden;
  background-color: #000;
  margin-top: 30px;
  position: relative;
}

.carrossel {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.carrossel-inner {
  display: flex;
  animation: scrollCarrossel 30s linear infinite;
  width: max-content;
}

.carrossel-container:hover .carrossel-inner {
  animation-play-state: paused;
}

.card {
  width: 300px;
  height: 500px;
  margin: 0 10px;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes scrollCarrossel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    gap: 0px;
    align-items: center;
  }

  .retangulo {
    width: 100vw;
    height: 500px;
  }

  #topo, #baixo {
    width: 90vw;
    padding: 20px;
  }

  #baixo {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .botao {
    width: 100%;
    max-width: 90vw;
    font-size: 14px;
    justify-content: center;
  }

  .card {
    width: 280px;
    height: 500px;
  }

  .carrossel-container {
    height: 500px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .carrossel-inner {
    animation: scrollCarrossel 15s linear infinite;
  }

  .card {
    scroll-snap-align: start;
  }
}

/* Popup de Vídeo */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.popup-content iframe {
  width: 80vw;
  height: 45vw;
  max-width: 700px;
  max-height: 400px;
  border: none;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00ff00;
  color: #000;
  border: none;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.redirect-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #000;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.redirect-overlay.active {
  display: flex;
}

.redirect-text {
  font-size: 32px;
  font-weight: bold;
  color: white;
  background: linear-gradient(270deg, #00ff00, #ffffff, #00ff00);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}