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

body {
  font-family: Arial, sans-serif;
  color: #fff;
  cursor: none;
  overflow: hidden;
  position: relative;
}

/* === GRADIENTE DE FUNDO === */
.gradient-background {
  position: fixed;
  inset: 0;
  /* logo centralizada, ocupando 60% da menor dimensão */
  background-image:
    url('wallpaper.png'),
    linear-gradient(-45deg, #056047, #00384A, #056047, #00384A);
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size:   60% auto,        400% 400%;
  animation: gradientAnimation 15s ease infinite;
  z-index: -2;
}

@keyframes gradientAnimation {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* 1) FUNDO (wallpaper) */
.site-background {
  width: 110vw;              /* largura total da tela */
  height: 160vh;            /* altura total da tela */
  position: fixed;
  inset: 0;                   /* topo:0; direita:0; baixo:0; esquerda:0; */
  background: url('wallpaper.png') center center no-repeat;
  background-size: cover;     /* cobre toda a tela */
  z-index: -1;                /* atrás de todo conteúdo */
}

/* === PRELOADER === */
#preloader {
  position: fixed;
  inset: 0;
  background: url('wallpaper.png') center center no-repeat;
  background-size: contain;
  background-color: #00384A;
  /*z-index: 10;                  /* acima do conteúdo até remover */
  transition: opacity .5s ease;
}

/* 3) CONTEÚDO */
/* 1) Ajuste no container para dar espaço ao vídeo */
.content {
  position: relative;
  z-index: 1;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* alinha à esquerda para respeitar o padding */
  justify-content: flex-start; /* alinha ao topo para respeitar o padding */
  text-align: center;
  /* espaço de 15% da altura e 15% da largura da viewport */
  padding: 5vh 5vw 0 5vw;
  box-sizing: border-box;
}

.intro-video {
  position: relative;
  z-index: 2;

  /* 90% da largura do container, até um máximo de 90vw */
  width: 40%;
  max-width: 50vw;
  height: auto;
  max-height: 50vh; /* altura máxima de 80% da altura da viewport */
  min-height: 100px; /* altura mínima para evitar vídeos muito pequenos */  

  /* mantém proporções e garante que todo o frame seja visível */
  object-fit: contain;

  /* remove bordas/outlines */
  border: none;
  outline: none;

  /* move o vídeo 15% para cima e 15% para a esquerda */
  transform: translate(-15%, -15%);

  /* opcional: sombra pra destacar melhor */
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border-radius: 8px;

  /* espaçamento inferior ajustável */
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  z-index: 2;
  /* 90% da largura do container, até um máximo de 90vw */
  width: 70%;
  max-width: 60vw;
  height: auto;
  max-height: 80vh; /* altura máxima de 80% da altura da viewport */
  min-height: 300px; /* altura mínima para evitar vídeos muito pequenos */  
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;
  top: 0;
  left: 0;
}

/* Ajuste fino em telas muito pequenas, se quiser */
@media (max-width: 600px) {
  .intro-video {
    width: 95%;
    transform: translate(-10%, -10%);
  }
}



/* Botão de e-mail fixo perto do rodapé */
.email-link {
  position: fixed;           /* fixa o botão na tela */
  bottom: 20px;              /* 20px do rodapé */
  left: 20px;               /* 20px da borda direita */
  display: inline-block;
  
  padding: 0.75rem 1.3rem;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 50px;       /* cantos arredondados */
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 5;                /* acima do conteúdo */
}

/* Efeito hover/focus */
.email-link:hover,
.email-link:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #16a085, #138a75);
  outline: none;
}

/* Ajuste em telas móveis */
@media (max-width: 600px) {
  .email-link {
    bottom: 15px;
    right: 15px;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }
}

/* cursor */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transition: transform .15s ease, background .15s ease;
  z-index: 999;
}
.cursor.hover { transform: scale(2.5); background: #3b665d; }

/* responsivo */
@media (max-width: 600px) {
  .intro-video { width: 90vw; }
}
