/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}


/* ========================== */
html,
body {
  height: 100%;
  position: relative;
  overflow-x: hidden;
  scroll-padding-top: 380px; /* altura do header */
  scroll-behavior: smooth;
}

/* Vídeo de fundo fixo cobrindo toda a tela */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  /* Altura real da viewport, inclusive em celulares modernos */
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  filter: brightness(0.7) blur(1px);
}

/* Header */
header {
  background: linear-gradient(90deg, #003d66, #005a9c, #003d66);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 2rem;
  text-align: center;


  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

header h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
  color: white;
}

header p {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
}

/* Navegação */
nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
}

/* Seções */
section {
  padding: 2rem;
  margin: 1rem;
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0.9),
      rgba(171, 209, 235, 0.9),
      rgba(255, 255, 255, 0.9));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  height: fit-content;
  overflow: hidden;

}

/* Imagens dentro das seções */
section img {
  width: 350px;
  
  border-radius: 8px;
  margin: 0 1rem;
  box-shadow: 10px 10px 20px 10px rgba(0, 0, 0, 0.2);
}

/* Layout das imagens nas seções */
#index>img,
#tecnologias>img {
  float: left;
}

#sobre>img {
  float: right;
}

/* Tipografia e texto */
section p,
section h1,
section li {
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: justify;
}

/* Primeira letra destacada */
section p:first-of-type::first-letter {
  font-size: 2rem;
  font-weight: bold;
  color: #606a70;
}

/* Rodapé */
footer {
  background: #f2f2f2;
  text-align: center;
  padding: 1rem;
}

/* Destaque específico */
section#destaque h2 {
  color: #005a9c;
}

/* ========================= */
/* 📱 RESPONSIVIDADE MOBILE */
/* ========================= */
@media screen and (max-width: 768px) {

  header {
    padding: 1rem;
    max-height: none;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

  }


  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  header a {
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 0;
    list-style: none;
  }


  nav a {
    display: block;
    margin: 0.5rem 0;
    text-align: center;
  }

  section {
    padding: 1rem;
    margin: 1rem 0.5rem;
  }

  section img {
    width: 60%; 
    float: none !important;
    margin: 1rem 0;
    margin: auto;
    display: block;
  }

  section p,
  section h1,
  section li {
    font-size: 1rem;
  }

  #toggle-sound {
    font-size: 1.2rem;
    padding: 0.5rem;
  }
}


/* ========================== */
/* 💻 TABLETS até 1024px */
/* ========================== */
@media screen and (max-width: 1024px) and (min-width: 769px) {

  header {
    padding: 1.5rem;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1.2rem;
  }

  nav a {
    margin: 0 0.5rem;
    font-size: 1.1rem;
  }

  section img {
    width: 60%;
    float: none;
    margin: 1rem auto;
    display: block;
  }

  section {
    padding: 1.5rem;
    margin: 1rem;
  }

  section p,
  section h1,
  section li {
    font-size: 1.05rem;
  }
}


a:hover{
  color: #cccecf;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  
  cursor: pointer;
  
  transition: background-color 0.3s, color 0.3s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


