@import url("https://fonts.googleapis.com/css2?family=Bytesized&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  font-family: "Roboto Flex", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

:root {
  --primary-color: #0056b3;
  --dark-color: #333;
  --light-color: #fff;
  --border-color: #e0e0e0;
  --off-white-bg: #f8f9fa;
}

section {
  width: 100%;
  padding: 70px 20px;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 40px;
}

.section-content {
  max-width: 850px;
  margin: 0 auto;
}

/* SEÇÃO TOP TELA CHEIA */
#top {
  display: flex;
  flex-direction: column;
  height: 100vh; /* Ocupa 100% da altura da tela */
  width: 100%;   /* Ocupa 100% da largura da tela */
  padding: 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--off-white-bg);
  align-items: center;
  justify-content: center;
}

.top-content {
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
}

.top-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-width: 300px;
}

.top-title > h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 64px;
  color: var(--dark-color);
  text-align: center;
}

.top-title > p {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 22px;
  color: var(--primary-color);
}

.top-right {
  perspective: 800px;
}

@keyframes rotate-cube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.cube {
  transform-style: preserve-3d;
  position: relative;
  width: 180px;
  height: 180px;
  animation: rotate-cube 12s linear infinite;
}

.face {
  width: 180px;
  height: 180px;
  position: absolute;
  opacity: 0.5;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.front {
  transform: translateZ(90px);
  background-color: rgba(83, 206, 255, 0.5);
}
.back {
  transform: translateZ(-90px);
  background-color: rgba(83, 255, 112, 0.5);
}
.right {
  transform: rotateY(90deg) translateZ(90px);
  background-color: rgba(244, 255, 83, 0.5);
}
.left {
  transform: rotateY(-90deg) translateZ(90px);
  background-color: rgba(255, 83, 106, 0.5);
}
.top {
  transform: rotateX(90deg) translateZ(90px);
  background-color: rgba(200, 83, 255, 0.5);
}
.down {
  transform: rotateX(-90deg) translateZ(90px);
  background-color: rgba(238, 255, 83, 0.5);
}

/* SEÇÃO DE CONTATO */
#contact .section-content {
  text-align: center;
}

#contact p {
  margin-bottom: 12px;
  font-size: 16px;
}

#contact a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
}

/* RODAPÉ */
footer {
  width: 100%;
  padding: 20px 0;
  background-color: var(--dark-color);
  color: #ccc;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: auto;
}

/* AJUSTES PARA TELAS MENORES */
@media (max-width: 768px) {
  section {
    padding: 50px 15px;
  }
  section h2 {
    font-size: 28px;
  }

  .top-content {
    flex-direction: column;
  }
  .top-side {
    width: 100%;
    padding: 25px 10px;
  }
  .top-title > h1 {
    font-size: 44px;
  }
  .top-title > p {
    font-size: 18px;
  }
  .cube {
    width: 140px;
    height: 140px;
  }
  .face {
    width: 140px;
    height: 140px;
  }
  .front {
    transform: translateZ(70px);
  }
  .back {
    transform: translateZ(-70px);
  }
  .right {
    transform: rotateY(90deg) translateZ(70px);
  }
  .left {
    transform: rotateY(-90deg) translateZ(70px);
  }
  .top {
    transform: rotateX(90deg) translateZ(70px);
  }
  .down {
    transform: rotateX(-90deg) translateZ(70px);
  }
}
