* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
    background-color: rgb(8, 9, 11);
    color: white;
}

/* Cabeçalho */

#header {
    position: sticky;
    top: 0;
    background-color: rgb(8, 9, 11);
    text-align: center;
    line-height: 9vh;
    height: 9vh;
    z-index: 999;
    white-space: nowrap
}

#header span {
    margin: 0 12%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

#header a {
    text-decoration: none;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 30px;
    transition: all 0.1 ease;
}

#contact {
  line-height: 9vh;
  height: 9vh;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.9);
  vertical-align: middle
}

#contact ion-icon {
  font-size: 24px;
  vertical-align: -6px;
}

#header a:hover {
  font-weight: bold;
  color: white;
}

#conteudos-header {
  margin: 0 12%;
}

#contact {
  position: absolute;
  left: 83%;
}

/* Home/Imagem de Lucas com o nome e filmmaker */

#home {
    position: relative;
    text-align: center;
    margin-top: 3%;
}

#home img {
    max-width: 60%;
    border-radius: 10%;
}

#nome {
    position: absolute;
    top: 30%;
    right: 0;
    left: 2%;
    margin: 0 auto;
    cursor: default;

    font-weight: bold;
    letter-spacing: 0.4em;
    font-size: 5.5em;
}

#profissão {
    position: absolute;
    top: 54%;
    right: 0;
    left: 0;
    margin: 0 auto;
    cursor: default;

    font-weight: 500;
    letter-spacing: 0.4em;
    font-size: 1.3em;
}

/* div entre */

#trabalhos {
  display: block;
  height: 11vh;
}


/* Vídeo Players */

.grupo-de-videos {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 80vh;
}
  
  /* Cada vídeo é um contêiner absoluto */
  .video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: 48vh;
    max-height: inherit;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Inclui o padding no dimensionamento */
    outline: 2px solid #F1D047;
    box-shadow: 5px 2px 40px 10px #f1cf475b;
  }

  
  /* Comportamento ativo */
  .video[data-status="active"] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 2;
  }
  
  .video[data-status="becoming-active-from-before"],
  .video[data-status="becoming-active-from-after"] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 1;
  }
  
  .video[data-status="before"],
  .video[data-status="after"],
  .video[data-status="unknown"] {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 0;
  }
  
  /* O próprio vídeo: responsivo e com proporção preservada */
  .video video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mude de 'contain' para 'cover' se necessário */
    display: block;
  }

  .media-container {
    position: relative;
    width: 100%;
    min-height: 80vh;
}

/* Substitua o seletor .seletor-botões existente por este: */
.seletor-botões {
  position: absolute;
  width: 100%;
  max-width: 70vh;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 10;
}

.seletor-botões button {
  -webkit-tap-highlight-color: transparent; /* Remove o highlight azul no mobile */
  outline: none; /* Remove contorno no focus */
}

.seletor-botões button:focus {
  outline: none; /* Garante que não apareça outline no focus */
}

.seletor-botões button {
    pointer-events: auto;
    position: relative; /* Alterado para relative */
    top: auto;
    transform: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    background-color: #f1cf47b6;
    color: #08090B;
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;          /* Adicionado */
    align-items: center;    /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    padding: 0;             /* Remove padding extra */
    margin: 0;              /* Remove margem extra */
}

.grupo-de-videos, 
.grupo-de-fotos {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 80vh;
}

.seletor-botões button:hover {
    background-color: #f1cf47b4;
    transform: scale(1.1);
}


#trabalhos {
  display: flex;
  height: 10vh;
  position: relative; /* Adicionado */
}
/* Botões de alternância entre vídeos e fotos */
.toggle-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: absolute; /* Alterado */
  bottom: 10px; /* Distância do fundo */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding-bottom: 10px; /* Espaçamento extra */
}

.toggle-button {
  padding: 8px 20px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.toggle-button.active {
  background-color: #f1cf47b6;
  color: #08090B;
  font-weight: bold;
}

.toggle-button {
  /* seus estilos existentes... */
  -webkit-tap-highlight-color: transparent; /* Remove o highlight padrão no mobile */
  touch-action: manipulation; /* Melhora a responsividade do touch */
}

/* Remove o estado active persistente */
.toggle-button:active, 
.toggle-button.active:active {
  transform: none;
  transition: none;
}

/* Adicione um efeito visual para o toque */
.toggle-button.touch-active {
  transform: scale(0.95);
  opacity: 0.9;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Estilo para as fotos (similar aos vídeos) */
.grupo-de-fotos {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 80vh;
}

.foto {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: 48vh;
  max-height: inherit;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  outline: 2px solid #F1D047;
  box-shadow: 5px 2px 40px 10px #f1cf475b;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Status das fotos (igual aos vídeos) */
.foto[data-status="active"] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 2;
}

.foto[data-status="becoming-active-from-before"],
.foto[data-status="becoming-active-from-after"] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 1;
}

.foto[data-status="before"],
.foto[data-status="after"],
.foto[data-status="unknown"] {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 0;
}

#serviços {
  border-left: 3px solid white;
  margin: 4% 12%;
  margin-bottom: 5%;
  padding-left: 2%;
  font-weight: bold;
  font-size: 3.2em;
  line-height: 144%;
}

#serviços span {
  display: block;
}

#serviços p {
  transition: all .2s ease;
  cursor: default;
}

#serviços p:hover {
  color: #F1D047;
}


#fim {
  display: flex;
  margin: 0 12% 1% 12%;
  padding: 2% 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  justify-content: center;
  align-items: center;
}

#fim button {
  border-radius: 25px;
  padding: .5% 1%;
  cursor: pointer;         /* Muda o cursor para pointer */
  transition: background-color 0.3s ease;
}

#fim a {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #08090B;
  font-size: 1em;          /* Tamanho da fonte */
  letter-spacing: 0.12rem;
  font-weight: 570;
  transition: all 0.3s ease; /* Adiciona transição suave */
}


#fim button:hover {
  background-color: rgba(255, 255, 255, 0.825); /* Efeito hover sutil */
}

#fim button svg {
  padding-top: 2px;
  width: 1.5rem;            /* Tamanho do ícone */
  height: 1.5rem;
  fill: white;            /* Cor do ícone */
}

/* Media Queries */

@media (max-width: 1199px) {
  #contact {
    left: 82%;
  }
  #contact ion-icon {
    font-size: 24px;
    vertical-align: -5px;
  }
  #home {
    margin-top: 3%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 4.4em;  /* ESSE */
    top: 35%;
    left: 2.5%;
  }
  #trabalhos {
    height: 11vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 80vh;
  }
  .video .foto {
    max-width: 48vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 10px;   /* ESSE */
  }
  #serviços {
    margin-top: 6%;
    font-size: 3.2em;
    line-height: 144%;
  }
}

@media (max-width: 999px) {
  #contact {
    left: 81%;
  }
  #contact ion-icon {
    font-size: 22px;
    vertical-align: -5px;
  }
  #home {
    margin-top: 3%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 3.5em;  /* ESSE */
    top: 38%;
    left: 2%;
  }
  #profissão {
    top: 54%;
  }
  #trabalhos {
    height: 14vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 80vh;
  }
  .video .foto {
    max-width: 48vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 10px;   /* ESSE */
  }
  #serviços {
    margin-top: 10%;
    font-size: 2.8em;
    line-height: 160%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 799px) {
  #header a {
    margin: 0 30px;    /* ESSE */
  }
  #contact {
    position: absolute;
    left: 80%;
  }
  #contact ion-icon {
    font-size: 22px;
    vertical-align: -5px;
  }
  #home {
    margin-top: 5%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 3em;  /* ESSE */
    top: 38%;
    left: 2%;
  }
  #profissão {
    top: 54%;
    font-size: 1.3em;
  }
  #trabalhos {
    height: 14vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 80vh;
  }
  .video .foto {
    max-width: 48vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 10px;   /* ESSE */
  }
  #serviços {
    margin-left: 8%;
    margin-top: 10%;
    margin-bottom: 10%;
    font-size: 2.6em;   /* ESSE */
    line-height: 180%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 699px) {
  #header a {
    margin: 0 25px;    /* ESSE */
  }
  #contact {
    position: absolute;
    left: 80%;
  }
  #contact ion-icon {
    font-size: 22px;
    vertical-align: -5px;
  }
  #home {
    margin-top: 8%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 2.75em;  /* ESSE */
    top: 40%;
    left: 2%;
  }
  #profissão {
    top: 54%;
    font-size: 1.3em;
  }
  #trabalhos {
    height: 14vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 80vh;
  }
  .video .foto {
    max-width: 48vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 10px;   /* ESSE */
  }
  #serviços {
    margin-left: 8%;
    margin-top: 15%;
    margin-bottom: 10%;
    font-size: 2.25em;   /* ESSE */
    line-height: 200%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 599px) {
  #header a {
    margin: 0 25px;    /* ESSE */
  }
  #contact {
    position: absolute;
    left: 80%;
  }
  #contact ion-icon {
    font-size: 22px;
    vertical-align: -5px;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 2.5em;  /* ESSE */
    top: 40%;
  }
  #profissão {
    top: 54%;
    font-size: 1.3em;
  }
  #trabalhos {
    height: 10vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 80vh;
  }
  .video .foto {
    max-width: 48vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 10px;   /* ESSE */
  }
  #serviços {
    margin-left: 8%;
    margin-top: 13%;
    margin-bottom: 10%;
    font-size: 2.1em;   /* ESSE */
    line-height: 200%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 569px) {
  #header a {
    margin: 0 17px;
  }
  #contact {
    position: absolute;
    left: 81%;
  }
  #contact ion-icon {
    font-size: 22px;
    vertical-align: -5px;
  }
  #home {
    margin-top: 10%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 2.25em;
    top: 40%;
  }
  #profissão {
    top: 54%;
    font-size: 1.3em;
  }
  #trabalhos {
    height: 14vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 80vh;
  }
  .video .foto {
    max-width: 48vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 15px;
  }
  #serviços {
    margin-left: 8%;
    margin-top: 15%;
    margin-bottom: 10%;
    font-size: 1.9em;
    line-height: 200%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 519px) {
  #header a {
    margin: 0 12px;
    font-size: 1em;
  }
  #contact {
    position: absolute;
    left: 81%;
  }
  #contact ion-icon {
    font-size: 22px;
    vertical-align: -5px;
  }
  #home {
    margin-top: 10%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 210%;
    top: 40%;
  }
  #profissão {
    top: 54%;
    font-size: 1.3em;
  }
  #trabalhos {
    height: 14vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 80vh;
  }
  .video .foto {
    max-width: 48vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 15px;
  }
  #serviços {
    margin-left: 8%;
    margin-top: 15%;
    margin-bottom: 10%;
    font-size: 1.8em;
    line-height: 200%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 479px) {
  #header {
    height: 9.2vh;
}
  #header a {
    margin: 0 11px;
    font-size: 0.9em;
  }
  #contact {
    position: absolute;
    left: 81%;
  }
  #contact ion-icon {
    font-size: 21px;
    vertical-align: -6px;
  }
  #home {
    margin-top: 10%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 194%;
    top: 40%;
  }
  #profissão {
    top: 54%;
    font-size: 1em;
  }
  #trabalhos {
    height: 14vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 70vh;
  }
  .video .foto {
    max-width: 40vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 20px;
  }
  #serviços {
    margin-left: 8%;
    margin-top: 15%;
    margin-bottom: 10%;
    font-size: 1.6em;
    line-height: 200%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 425px) {
  #header {
    height: 9.2vh;
}
  #header a {
    margin: 0 7px;
    font-size: 0.9em;
  }
  #contact {
    position: absolute;
    left: 81%;
  }
  #contact ion-icon {
    font-size: 21px;
    vertical-align: -6px;
  }
  #home {
    margin-top: 20%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 170%;
    top: 40%;
  }
  #profissão {
    top: 54%;
    font-size: 1em;
  }
  #trabalhos {
    height: 14vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 70vh;
  }
  .video .foto {
    max-width: 40vh;
    max-height: 100vh;
  }
  #serviços {
    margin-left: 8%;
    margin-top: 15%;
    margin-bottom: 10%;
    font-size: 1.5em;
    line-height: 200%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 399px) {
  #header {
    height: 9.5vh;
}
  #header a {
    margin: 0 4px;
    font-size: 0.8em;
  }
  #contact {
    position: absolute;
    left: 81%;
  }
  #contact ion-icon {
    font-size: 18px;
    vertical-align: -6px;
  }
  #home {
    margin-top: 25%;
  }
  #home img {
    max-width: 75%;
    border-radius: 10%;
  }
  #nome {
    font-size: 160%;
    top: 40%;
  }
  #profissão {
    top: 54%;
    font-size: 1em;
  }
  #trabalhos {
    height: 20vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 70vh;
  }
    .video, .foto {
    width: 42vh !important;
    max-height: none !important; /* Remove limitações */
  }
  .video video .foto img {
    max-width: 40vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 10px;
  }
  .seletor-botões button {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  #serviços {
    margin-left: 8%;
    margin-top: 15%;
    margin-bottom: 10%;
    font-size: 1.35em;
    line-height: 200%;
  }
  #fim button {
    margin-top: 2.5%;
    border-radius: 25px;
    padding: 2% 2%;
  }
}

@media (max-width: 359px) {
  #header {
    height: 9.5vh;
}
  #header a {
    margin: 0 3px;
    font-size: 0.7em;
  }
  #contact {
    position: absolute;
    left: 81%;
  }
  #contact ion-icon {
    font-size: 18px;
    vertical-align: -6px;
  }
  #home {
    margin-top: 25%;
  }
  #home img {
    max-width: 73%;
    border-radius: 10%;
  }
  #nome {
    font-size: 140%;
    top: 40%;
  }
  #profissão {
    top: 54%;
    font-size: 1em;
  }
  #trabalhos {
    height: 20vh;
  }
  .grupo-de-videos .grupo-de-fotos {
    min-height: 70vh;
  }
    .video, .foto {
    width: 38vh !important;
    height: 80vh !important;
    max-height: none !important; /* Remove limitações */
  }
  .video video .foto img {
    max-width: 40vh;
    max-height: 100vh;
  }
  .seletor-botões {
    padding: 0 10px;
  }
  .seletor-botões button {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  #serviços {
    margin-left: 8%;
    margin-top: 15%;
    margin-bottom: 10%;
    font-size: 1.2em;
    line-height: 220%;
  }
  #fim button {
    margin-top: 2%;
    border-radius: 25px;
    padding: 1% 3%;
  }
}