@import url('https://fonts.googleapis.com/css2?family=Vina+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Source+Sans+Pro:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


body {
  margin: 0;
  overflow: hidden;
  user-select: none;       /* impede seleção de texto */
  -webkit-user-drag: none; /* impede arrastar imagens no Chrome/Safari */
}



/*----------- INTRO VIDEO ----------------------------------------------------------------------------------------------------*/
.intro-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000; /* Maior que tudo */
  overflow: hidden;
  background: black;
  
  /* CRÍTICO para iPad/iOS - permite toques/cliques */
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.intro-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  /* ESSENCIAL: Permite que toques/cliques passem para a div pai */
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Indicador de play */
.play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  animation: fadeIn 0.3s ease-in, pulse 2s infinite 0.5s;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.8); 
  }
  to { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity: 0.7; 
    transform: translate(-50%, -50%) scale(1.05); 
  }
}



/*----------- NUVENS E CONTEUDO ----------------------------------------------------------------------------------------------------*/
#three-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5; /* Nuvens atrás do conteúdo */
  background: linear-gradient(to bottom, #45525de6 0%, #f4f3f2 60%);
}

#ui-overlay {
  position: relative;
  z-index: 50; /* HTML entre nuvens */
}

#three-foreground {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100; /* Nuvens à frente */
  pointer-events: none; /* Permite clicar no HTML */
}

#super-overlay {
  position: relative;
  z-index: 200; /* HTML A FRENTE DAS NUVENS */
}



/*----------- TEXTO INICIAL ----------------------------------------------------------------------------------------------------*/
.hero-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  pointer-events: none;
  z-index: 9999; /* Fica atrás das nuvens e do menu */
  background-color: #F4F3F2;
  opacity: 1;
  animation: fadeOutContainer 2s forwards;
  animation-delay: 4.4s;
  visibility: visible;
  pointer-events: none;
}

@keyframes fadeOutContainer {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.word-row {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 15px;
  align-items: center;
}

.word.reveal {
  display: inline-block;
  overflow: hidden;
}

.word.reveal span {
  display: inline-block;
  transform: translateY(100%);
  animation: revealUp 0.8s forwards, hideDown 0.8s forwards;
}

#word-turn {
  font-family: 'Anton', sans-serif;
  font-size: 70px;
}

#word-turn span {
  animation-delay: 0s, 2s;
}

#word-ideas {
  font-family: 'Anton', sans-serif;
  font-size: 70px;
}

#word-ideas span {
  animation-delay: 0.1s, 2.1s;
}

#row2 {
  display: flex;
  gap: 15px;
}

#word-into {
  font-family: 'Anton', sans-serif;
  font-size: 70px;
}

#word-into span {
  animation-delay: 2.2s, 4.2s;
}

#word-experiences {
  font-family: 'Anton', sans-serif;
  font-size: 70px;
}

#word-experiences span {
  animation-delay: 2.3s, 4.3s;
}

@keyframes revealUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes hideDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}



/*----------- LOGO --------------------------------------------------------------------------------------------------------*/
#btn-logo {
  position: fixed;
  z-index: 100;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  animation: fadeInMenu 1s forwards;
  animation-delay: 2s;
  height: auto; /* Mantém a proporção automática */
  width: clamp(70px, 5vw, 70px);
  top: clamp(15px, 3vw, 20px);
  left: clamp(15px, 3vw, 20px);
}



/*----------- MENU TOPO ----------------------------------------------------------------------------------------------------*/
.top-menu {
  position: fixed;
  top: 20px;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 40px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  z-index: 40;
  opacity: 0;
  animation: fadeInMenu 1s forwards;
  animation-delay: 2.2s;
  pointer-events: auto;
}

.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 100px;
}

.top-menu li a {
  color: #000000;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
  font-weight: bold;
}

/* Efeito hover elegante: underline animado */
.top-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 1px;
  background: #000; 
  transition: width 0.3s ease;
}

.top-menu li a:hover::after,
.top-menu li a.active::after {
  width: 100%;
}

@keyframes fadeInMenu {
  from { opacity: 0; }
  to { opacity: 1; }
}



/*----------- Página Inicial ----------------------------------------------------------------------------------------------------*/
.home-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 50; /* Este texto fica atrás das nuvens, mas à frente do texto inicial */
  opacity: 1;
  visibility: hidden;
  transition: opacity 1s ease;
  pointer-events: none;
}

.home-page.show {
  opacity: 1;
  visibility: visible;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 50px); /* X = -50% para centralizar */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.home-title {
  font-family: 'Anton', sans-serif;
  font-size: 18vw;
  font-weight: bold;
  background-image: linear-gradient(to bottom, #f4f3f2, rgba(255, 255, 255, 0.2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute; /* mudou de relative para absolute */
  top: -10%;            /* ajuste vertical conforme quiser */
  left: 50%;           /* necessário para centralizar horizontalmente */
  transform: translate(-50%, 0); /* centraliza horizontalmente */
  opacity: 0; /* começa invisível */
  animation: slideUpFade 1.5s ease-out forwards;
  animation-delay: 0s;
}

.home-subtitle {
  position: absolute;
  top: 43%; /* ajusta para subir ou descer sobre o título */
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Anton', sans-serif;
  font-size: 4vw;
  margin-top: 4.5%;
  color: #ffffff; /* preenchimento branco */
  pointer-events: none;
  white-space: nowrap;
  animation: slideUpFade 1s ease-out forwards;
  animation-delay: 1.5s;
  opacity: 0; /* começa invisível */
  text-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
}

.page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.show-page {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



/*--------------------- PÁGINA PROJECTOS ----------------------------------------------------------------------------------------------------*/
.projects-page {
  position: fixed;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  padding: 20px 0;
  box-sizing: border-box;
}

.projects-page.active {
  opacity: 1;
  visibility: visible;
}

/* ---------------- CONTAINER DOS CARDS ---------------- */
.projects-container {
  width: 100vw;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  cursor: grab;
}

.gallery-wrapper:active {
  cursor: grabbing;
}

.gallery-items {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  padding: 20px;
  gap: 20px;
}

.gallery-items::-webkit-scrollbar {
  display: none;
}

/*------------------- CARD ESTILO VIDRO OPACO -------------------*/
.gallery-item {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;

  /* animação inicial igual aos Services */
  opacity: 0;
  transform: translateY(60px);
  animation: slideUp 1s ease forwards;
}

/* Delays por card (ajusta conforme o número de cards que tens) */
.gallery-item:nth-of-type(1) { animation-delay: 0.3s; }
.gallery-item:nth-of-type(2) { animation-delay: 0.6s; }
.gallery-item:nth-of-type(3) { animation-delay: 0.9s; }
.gallery-item:nth-of-type(4) { animation-delay: 1.2s; }

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  height: 350px;
}

/* container da imagem */
.gallery-item .image-wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px 20px 0 0;
  transition: transform 0.3s ease;
}

/* texto abaixo da imagem */
.gallery-item span {
  padding: 10px;
  text-align: center;
  font-family: 'ANTON', sans-serif;
  font-size: 30px;
  color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover span {
  opacity: 1;
}




/*--------------------- PÁGINA SERVIÇOS ----------------------------------------------------------------------------------------------------*/
.services-intro {
  position: absolute;       /* Tira do fluxo normal */
  width: 100%;
  top: 40%;
  left: 0;
  z-index: 1000;
  pointer-events: none;
}

.services-intro h2 {
  position: absolute;
  top: 43%;                 /* altura vertical na tela */
  left: 50%;                /* centro horizontal */
  transform: translate(-50%, 50px);  /* inicia 50px abaixo para animação */
  pointer-events: none;

  font-family: 'Anton', sans-serif;
  font-size: 4vw;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0px 1px 10px rgba(0,0,0,0.2);

  opacity: 0;
  animation: slideUpFade 1s ease-out forwards;
  animation-delay: 0.5s;
}


@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 50px); /* Começa 50px para baixo */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0); /* Termina na sua posição final */
  }
}

.services-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;       /* escondido por padrão */
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.services-page.active {
  display: flex;
}

/* ---------------- CONTAINER DOS CARDS ---------------- */
.services-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30VW;
  flex-wrap: wrap; /* para mobile ficar em coluna */
  z-index: 10; /* fica por baixo do texto */
  position: relative;
  margin-top: -5vh;
}

/* ------------------- CARD ESTILO VIDRO OPACO ------------------- */
.service-item {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  width: 300px;
  height: 550px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
  opacity: 0;
  transform: translateY(60px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* sombra inicial leve */
  animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* animação para a sombra do card da esquerda */
@keyframes shadowGlow {
  from { box-shadow: 0 10px 30px rgba(0,0,0,0.25); } /* Ligeiramente mais suave que o original */
  to   { box-shadow: 0 15px 40px rgba(0,0,0,0.5); }  /* Ligeiramente mais forte que o original */
}

/* NOVA ANIMAÇÃO: para o card da direita intensificar a sombra */
@keyframes shadowIntensify {
  from { 
    /* Parte da sombra inicial do card, para transicionar suavemente */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
  }
  to { 
    /* A sombra mais carregada que se quer */
    box-shadow: 0 25px 60px rgba(0,0,0,0.6); 
  }
}

/* Vídeo ocupa o topo */
.service-item video {
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
  flex: 1;
}

/* Texto dentro do card */
.service-item span {
  padding: 10px;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover span {
  opacity: 1;
}

/* ------------------- TEXTO CENTRAL ------------------- */
.service-text {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  text-align: center;
  z-index: 1000;
}

.service-text h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cada linha começa invisível */
.service-text .line {
  opacity: 0;
  transform: translateX(-40px);
  display: inline-block;
  animation: fadeSlide 1s ease forwards;
}

/* Fade + slide da esquerda */
@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Delays de 1s entre linhas */
.service-text .line:nth-child(1) { animation-delay: 2s; }
.service-text .line:nth-child(2) { animation-delay: 4s; }
.service-text .line:nth-child(3) { animation-delay: 6s; }
.service-text .line:nth-child(4) { animation-delay: 8s; }
.service-text .line:nth-child(5) { animation-delay: 10s; }




/*--------------------- PÁGINA CONTACTOS ----------------------------------------------------------------------------------------------------*/
.contact-intro {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 1s ease forwards;
  opacity: 1;
  z-index: 100;
}

.contact-intro h2 {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Anton', sans-serif;
  font-size: 4vw;
  margin-top: 4.5%;
  color: #ffffff; /* título branco */
  pointer-events: none;
  white-space: nowrap;
  animation: slideUpFade 1s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
  text-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
}

/* ------------------- CONTAINER ------------------- */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
}

/* ------------------- CARTA (FORMULÁRIO TODO) ------------------- */
.contact-form {
  width: 35vw;
  max-width: 95%;
  padding: 20px 20px 200px 20px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: -5vh;
  opacity: 0;
  transform: translateY(60px);
  animation: slideUp 1s ease forwards;
  animation-delay: 1s;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
}

/* ------------------- COLUNA DE INPUTS ------------------- */
.form-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ------------------- INPUTS ------------------- */
.input-container {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 0.8s ease forwards;
}

.input-container:nth-of-type(1) { animation-delay: 0.6s; } 
.input-container:nth-of-type(2) { animation-delay: 0.9s; } 
.input-container:nth-of-type(3) { animation-delay: 1.2s; } 

/* ------------------- AUTOFILL SEM FUNDO ------------------- */
.input-container input:-webkit-autofill,
.input-container input:-webkit-autofill:hover,
.input-container input:-webkit-autofill:focus,
.input-container input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,0) inset;
  -webkit-text-fill-color: #ffffff; /* texto autofill branco */
  transition: background-color 5000s ease-in-out 0s;
}

.input-container input:-moz-autofill {
  box-shadow: 0 0 0px 1000px rgba(255,255,255,0) inset;
  -moz-text-fill-color: #ffffff; /* texto autofill branco */
}

/* -ESTILOS VISUAIS DOS INPUTS ------------------- */
.input-container input,
.input-container textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 12px;
  outline: none;
  font-size: 16px;
  font-family: 'Quicksand', sans-serif;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(5px);
  color: #ffffff; /* texto branco */
}

/* Placeholder branco ou cinza claro */
.input-container input::placeholder,
.input-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* -TEXTAREA COM SCROLL CUSTOMIZADO ------------------- */
.input-container textarea {
  resize: none;
  height: 120px;
  overflow-y: auto;

  /* Firefox */
  scrollbar-width: none; 
  -ms-overflow-style: none; /* IE e Edge */
}

/* Chrome, Safari e Edge */
.input-container textarea::-webkit-scrollbar {
  width: 0;  /* scrollbar invisível */
  background: transparent;
}

/* ------------------- BOTÃO (COLUNA DIREITA) ------------------- */
.send-button { 
  width: 20%;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(5px);
  color: rgba(255, 255, 255, 0.7);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 0.8s ease forwards;
  animation-delay: 1.1s;

  transition: all 0.3s ease;
}

.send-button:hover {
  background: rgba(255,255,255,0);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 1px 10px rgba(0,0,0,0.25);
}

/* ------------------- ANIMAÇÕES ------------------- */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 50px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}




/*--------------------- REDES SOCIAIS ----------------------------------------------------------------------------------------------------*/
.social-media-container .in-progress::after {
  content: "IN PROGRESS";
  position: absolute;
  bottom: 70px; /* acima do botão */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.463);
  color: #000000;
  font-size: 12px;
  font-family: 'Quicksand', sans-serif;
  padding: 4px 8px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
  z-index: 1000;
}

/* Mostra o tooltip no hover */
.social-media-container .in-progress:hover::after {
  opacity: 1;
}

.social-media-container {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  transform: translate(-50%, 40px); /* começa abaixo */
  display: flex;
  gap: 20px;
  z-index: 1000;
  opacity: 0; /* invisível por padrão */
  pointer-events: none; /* impede interação quando invisível */
}

.social-media-container.show {
  pointer-events: auto; /* permite interação quando visível */
}

.social-media-container .neu-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-media-container .neu-button img {
  width: 40px;
  height: 40px;
}

.social-media-container .neu-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* ------------------- ANIMAÇÕES ------------------- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
}
