/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  color: #000;
}

/* Container central para telas grandes */
.container {
  max-width: 1400px;   /* limite máximo do conteúdo */
  margin: 0 auto;      /* centraliza */
  width: 100%;
}

/* Hero com fundo */
.hero {
  min-height: 100vh;
  background: url("images/bg-home.svg") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px;
  position: relative;
}

/* Área do topo */
.top-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  margin-top: 0px;
  position: relative;
  z-index: 2;
}

/* Logo */
.logo {
  max-width: 900px;
  height: auto;
  margin-top: 50px;
}

/* Texto abaixo do logo */
.choisirunivers {
  max-width: 900px;
  height: auto;
  margin-top: 1px;
}

/* Área dos botões */
.cards {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.cards img {
  max-width: 260px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: -20px;
}

.cards img:hover {
  transform: scale(1.05);
}

/* Developed by */
.developed {
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.developed img {
  max-width: 400px;
  height: auto;
  margin-top: 0px;
}

/* Robot - Desktop à direita */
.robot {
  position: absolute;
  top: 100px;
  right: -250px;
  width: 40vw;
  max-width: 720px;
  min-width: 300px;
  height: auto;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease, width 0.3s ease;
}

/* Transição de opacidade no resize */
@media (max-width: 1600px) {
  .robot { opacity: 0.9; }
}
@media (max-width: 1400px) {
  .robot { opacity: 0.6; }
}
@media (max-width: 1200px) {
  .robot { opacity: 0.3; }
}
@media (max-width: 1000px) {
  .robot { opacity: 0.1; }
}
@media (max-width: 850px) {
  .robot { opacity: 0; pointer-events: none; }
}

/* Responsivo: mobile (até 768px) */
@media (max-width: 768px) {
  .hero {
    padding: 5vh 5vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .top-section {
    align-items: center;
    margin: 0;
    gap: 2vh;
  }

  .logo {
    max-width: 95vw;
    height: auto;
    margin-top: 0vh;
  }

  .choisirunivers {
    max-width: 80vw;
    height: auto;
    margin-top: 4vh;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 0vh;
    margin: 5vh 0;
    width: 100%;
    margin-top: 2vh;
  }

  .cards img {
    width: 70vw;
    max-width: 400px;
    height: auto;
  }

  .developed {
    margin: 3vh 0 0 0;
    text-align: center;
    width: 100%;
  }

  .developed img {
    width: 90vw;
    max-width: 850px;
    height: auto;
    margin-top: -5vh;
  }

  .robot {
    position: static;
    margin: 0vh 0;
    margin-top: -3vh;
    width: 40vw;
    max-width: 200px;
    height: auto;
    opacity: 1;
    align-self: center;
  }
}