/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-size: clamp(14px, 1.2vw + 0.5rem, 18px);
  scroll-behavior: smooth;
  font-family: sans-serif;
  background-image: linear-gradient(
    180deg,
    hsl(226, 95.6%, 64.3%) 0%,
    hsl(0, 0%, 100%) 50%,
    hsl(226, 95.6%, 64.3%) 100%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color:rgb(62, 64, 149);
  padding: 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 60px;
}

nav .logo {
  height: 50px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: rgb(128, 146, 235);
}

.menu {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  text-align: center;
  width: 75%;
  margin-right: 3%;
  font-size: 13px;
}

.hamburger {
  display: none;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Seções */
section,
footer {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px 20px 20px;
  position: relative;
  z-index: 1;
  margin: 0;
}
main {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px 20px 20px;
  position: relative;
  z-index: 1;
  margin-top: 80px;
}
main .conteudo,
section .conteudo {
  width: 100%;
  max-width: 60rem;
}

/* EXCEÇÃO para o INÍCIO */
#Inicio {
  padding-top: 0 !important;
}

/* âncoras funcionando sem scroll-padding-top */
section:not(#Inicio),
main:not(#Inicio) {
  scroll-margin-top: 80px;
}

/* Vídeo */
.video {
  width: 72%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Slogan */
.slogan {
  max-width: 30rem;
  margin-top: 20px;
}

/* Sobre */
.sobre {
  margin-top: 20px;
  text-align: justify;
}

.link {
  margin-top: 20px;
}

.link a {
  color: rgb(55, 85, 234);
}
.link a:hover {
  color: rgb(128, 146, 235);
}

/* Produtos */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 1rem;
}
.conteudo{
  text-align: center;
}
.conteudo > a {
  display: block;        /* para que margin auto funcione */
  text-align: center;    /* centraliza o texto dentro do link */
  margin: 2rem auto 0;   /* distância do topo e centraliza horizontalmente */
  font-weight: bold;
  color: rgb(55, 85, 234);
  text-decoration: none;
  max-width: max-content; /* link ocupa só o tamanho do texto */
}

.conteudo > a:hover {
  text-decoration: underline;
}
.link-galeria {
  display: block;       /* Faz o link ocupar linha inteira */
  margin: 10px auto 0;  /* Centraliza horizontalmente com margem superior */
  text-align: center;   /* Centraliza o texto dentro do link */
  font-weight: bold;    /* (opcional) para destaque */
  color:rgb(62, 64, 149);
}

.link-galeria:hover {
  color: rgb(73, 100, 236);
}
.prod {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.prod:hover {
  transform: scale(1.03);
}

.prod img {
  max-width: 80%;
  transition: transform 0.3s;
  margin-bottom: 0.5rem;
}

.prod:hover img {
  transform: scale(1.05);
}

.prod h2 {
  margin: 1rem 0;
  color: #333;
  min-height: 50px;
}

.prod ul {
  padding: 0;
  list-style: none;
}

.prod li {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Making of */
#off p {
  margin-top: 0.5rem;
  text-align: center;
}

/* Carrossel */
.simple-carousel {
  position: relative;
  width: 90%;
  max-width: 700px;
  margin: 10px auto;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  min-width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.simple-carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  transition: background-color 0.3s;
  z-index: 2;
}

.simple-carousel button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.simple-carousel .prev {
  left: 10px;
}

.simple-carousel .next {
  right: 10px;
}

.indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicators span {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicators span.active {
  background-color: rgb(128, 146, 235);
}

/* Footer */
footer {
  background: linear-gradient(180deg, #363732, #3a3b61);
  color: white;
  text-align: center;
}

/* Formulário do contato */
#form-contato {
  padding: 20px 3px;
  border-radius: 12px;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: 600;
  max-width: 700px;
  margin: auto;
}

#form-contato .campo {
  display: flex;
  flex-direction: column;
  text-align: left;
}

#form-contato label {
  color: #d1d5f9;
}

#form-contato input,
#form-contato textarea {
  padding: 6px;
  border: 1.5px solid #8288e3;
  border-radius: 8px;
  font-size: 1rem;
  color: black;
  transition: border-color 0.3s, background-color 0.3s;
  resize: vertical;
}

#form-contato input::placeholder,
#form-contato textarea::placeholder {
  color: rgb(122, 122, 124);
  font-family: sans-serif;
}

#form-contato input:focus,
#form-contato textarea:focus {
  outline: none;
  border-color: #d1d5f9;
}

#form-contato button {
  background-color: rgb(144, 155, 247);
  color: white;
  font-weight: bold;
  padding: 7px 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  align-self: center;
  max-width: 11rem;
}

#form-contato button:hover {
  background-color: #d1d5f9;
}

#resultado {
  font-weight: 600;
  font-size: 1rem;
}

/* Redes */
.redes {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-left: 10px;
}

.redes img {
  width: 40px;
  transition: transform 0.3s;
}

.redes img:hover {
  transform: scale(1.1);
}

.icons {
  font-size: 8px;
}

/* Créditos */
.creditos {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px;
  font-size: 0.9rem;
}

.creditos a {
  color: #ccc;
  text-decoration: none;
}

.creditos a:hover {
  color: white;
}

/* Currículo */
.curriculo {
  width: clamp(300px, 90%, 900px);
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  line-height: 1.7;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.curriculo h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.curriculo h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 20px 0;
}

.curriculo h3 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  margin: 20px 0;
}

.curriculo ul {
  margin-left: 20px;
}

.curriculo p {
  margin: 8px 0;
}

.curriculo .redes {
  justify-content: start;
  margin-top: 15px;
}

.curriculo .redes img {
  width: 35px;
}

/* Responsivo */
@media (max-width: 767px) {
  main {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px 20px 20px;
    position: relative;
    z-index: 1;
    margin-top: 60px;
  }

  section,
  footer {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px 20px 20px;
    position: relative;
    z-index: 1;
    margin: 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #3e4095;
    align-items: center;
    position: absolute;
    top: 60px;
    left: 30%;
    width: 150px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    padding: 5px;
    margin-bottom: 5px;
    text-align: right;
  }

  .hamburger {
    display: block;
  }

  .menu {
    width: 100%;
    margin-right: 0;
  }
  .menu .redes img {
    width: 25px; /* tamanho menor */
  }

  .menu .redes {
    gap: 10px; /* diminui o espaçamento entre os ícones */
    justify-content: center;
  }
  .slogan {
    max-width: 20rem;
  }

  .video {
    width: 100%;
    max-height: 40vh;
    margin: 2rem auto 1rem auto;
  }
}

@media (min-width: 768px) {
  nav ul {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }

  .hamburger {
    display: none;
  }

  .menu {
    width: 75%;
    margin-right: 3%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    text-align: center;
    font-size: 13px;
    position: relative;
  }
}
