/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

/* Background vídeo */
.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

/* Overlay escuro por cima do vídeo */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

/* Logo */
.logo {
  width: 10%;
  height: auto;
  margin-bottom: 25px;
  animation: fadeIn 1s ease-in-out;
}

/* Texto principal */
.intro-text h1 {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 10px;
  animation: slideUp 1s ease-out;
}

.intro-text p {
  font-size: 1.1em;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: fadeIn 1.5s ease-in-out;
}

/* Botões */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.buttons a {
  flex: 1 1 calc(33.333% - 32px); /* 3 por linha com gap */
  min-width: 180px;
  max-width: 280px;
  padding: 14px 28px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  animation: fadeInUp 1.7s ease-in-out;
}

.buttons a:hover {
  background-color: white;
  color: black;
  transform: scale(1.05);
}


.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.8s ease;
}

.transition-overlay.active {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1.2); /* zoom in suave */
}


.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* fundo preto */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.page-transition:not(.show) {
  opacity: 0;
}

.page-transition.show {
  opacity: 1;
  pointer-events: all;
}

.page-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  animation: logoFadeIn 0.6s ease forwards;
  animation-delay: 0.3s;
}

@keyframes logoFadeIn {
  to { opacity: 1; transform: scale(1); }
  from { opacity: 0; transform: scale(1.2); }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 600px) {
  .logo {
    width: 18%;
    margin-bottom: 20px;
  }

  .intro-text h1 {
    font-size: 1.6em;
    margin-bottom: 8px;
  }

  .intro-text p {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .buttons a {
    flex: unset;
    width: 100%;
    max-width: 320px;
  }
}