:root {
  --main-color: rgb(47, 47, 192);
  --main-white: rgb(255, 255, 255);
}

* {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color: var(--main-color);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: white;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- HEADER --- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  box-shadow: 0px 6px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 30px;
  height: 10vh;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  color: var(--main-color);
  margin-right: 40px;
  flex-shrink: 0;
}

.logo1 {
  width: 80px;
  height: auto;
  max-width: 100%;
}

/* --- MENU --- */
nav {
  display: flex;
  justify-content: center;
  transition: color 0.3s, background-color 0.3s;
  gap: 5px;
}

nav a {
  text-decoration: none;
  color: var(--main-color);
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s, background-color 0.3s;
  padding: 8px 12px;
  border-radius: 4px;
}

nav a:hover {
  background-color: var(--main-color);
  color: var(--main-white);
}

nav a.active-link {
  background-color: var(--main-color);
  color: var(--main-white);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--main-color);
}

/* --- MOBILE MENU --- */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    background: white;
    position: absolute;
    top: 10vh;
    right: 0;
    width: 200px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
    transition: max-height 0.4s ease, opacity 0.4s ease;
    z-index: 999;
  }

  nav.active {
    max-height: 500px;
    opacity: 1;
  }

  nav a {
    text-align: center;
    width: 100%;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* --- BACKGROUND --- */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* --- ANIMAÇÃO DAS MÃOS --- */
.hand {
  position: absolute;
  opacity: 0.25;
  pointer-events: none;
  animation: waveHands 4s ease-in-out infinite;
  transform-origin: center;
  z-index: 0;
}

@keyframes waveHands {
  0%   { transform: translateX(0) rotate(0deg); }
  25%  { transform: translateX(10px) rotate(3deg); }
  50%  { transform: translateX(-10px) rotate(-3deg); }
  75%  { transform: translateX(8px) rotate(2deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

/* --- POSIÇÕES DAS MÃOS --- */
.handA { top: 8%; left: 5%; width: 180px; animation-delay: 0s; }
.handB { top: 15%; right: 8%; width: 220px; animation-delay: 0.4s; }
.handC { bottom: 10%; left: 5%; width: 250px; animation-delay: 0.8s; }
.handD { top: 30%; left: 80%; width: 170px; animation-delay: 1.2s; }
.handE { bottom: 3%; right: 15%; width: 240px; animation-delay: 1.6s; }
.handF { top: 75%; left: 15%; width: 200px; animation-delay: 2s; }
.handG { bottom: 5%; right: 50%; width: 230px; animation-delay: 2.4s; }
.handH { top: 10%; right: 35%; width: 190px; animation-delay: 2.8s; }
.handI { bottom: 45%; left: 65%; width: 210px; animation-delay: 3.2s; }
.handJ { top: 55%; right: 3%; width: 240px; animation-delay: 3.6s; }
.handK { bottom: 55%; left: 40%; width: 210px; animation-delay: 4s; }
.handL { bottom: 0%; left: 50%; width: 210px; animation-delay: 4.4s; }
.handM { bottom: 45%; left: 5%; width: 210px; animation-delay: 4.8s; }

/* --- CONTEÚDO PRINCIPAL --- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  text-align: center;
  width: 100%;
}

.content-container {
  width: 90%;
  max-width: 1000px;
  border-radius: 20px;
  border: 0.05px solid var(--main-color);
  box-shadow: 0px 8px 15px  rgba(0, 17, 255, 0.521);
  backdrop-filter: blur(4px);
  padding: 40px 30px;
  position: relative;
  z-index: 0;
}

.letter img {
  width: 120px;
  height: auto;
  animation: waveHands 3s ease-in-out infinite;
}

.a { width: 135px; height: 120px; animation: waveHands 3s ease-in-out infinite; }
.m { width: 80px; height: 120px; animation: waveHands 3s ease-in-out infinite; }

.m { animation-delay: 0s; }
.a { animation-delay: 0.3s; }
.letter:nth-child(3) { animation-delay: 0.6s; }
.letter:nth-child(4) { animation-delay: 0.9s; }
.letter:nth-child(5) { animation-delay: 1.2s; }

/* --- IMAGEM / VÍDEO RESPONSIVO --- */
main img, main video {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  z-index: 1;
}

/* --- AJUSTES DE TAMANHO --- */
@media (max-width: 768px) {
  .letter img { width: 90px; }
  .a { width: 105px; height: 95px; }
  .m { width: 65px; height: 95px; }
  .content-container {
    width: 95%;
    padding: 20px 15px;
    margin: 20px auto;
    border-radius: 12px;
  }
}


@media (max-width: 480px) {
  .letter img { width: 70px; }
  .a { width: 85px; height: 75px; }
  .m { width: 50px; height: 75px; }
  .content-container {
    width: 100% ;
    padding: 20px 15px;
    border-radius: 12px;
  }
}


/* --- LOGO RESPONSIVO --- */
@media (min-width: 1440px) {
  .logo1 { width: 100px; }
  .logo { font-size: 22px; }
}
@media (max-width: 1024px) {
  .logo1 { width: 70px; }
  .logo { font-size: 18px; }
}
@media (max-width: 768px) {
  .logo1 { width: 65px; }
  .logo { font-size: 17px; }
}
@media (max-width: 480px) {
  .logo1 { width: 55px; }
  .logo { font-size: 16px; }
}
@media (max-width: 360px) {
  .logo1 { width: 45px; }
  .logo { font-size: 15px; }
}
@media (max-width: 300px) {
  .logo1 { width: 40px; }
  .logo { font-size: 14px; }
}
@media (max-width: 250px) {
  .logo1 { width: 35px; }
  .logo { font-size: 13px; }
}

@media (max-width: 768px) {
  .handJ, .handK { opacity: 0; }
}
@media (max-width: 480px) {
  .handL, .handM  .handF, .handG  { opacity: 0; }
}
@media (max-width: 360px) {
  .handH, .handI, .handC  { opacity: 0; }
}
@media (max-width: 300px) {
  .handA, .handB, .handD{ opacity: 0; }
}
