/* ============ IMPORTS ============ */
@import url(../css/colors.css);
@import url(../css/scrollbar.css);
@import url(../css/general.css);

/* ============ ESTILO GERAL ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
textarea {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  width: 100%;
}

.container {
  overflow: hidden;
}

/* ============ ESTILO DO PLAYER DE VÍDEO ============ */
.video-cape {
  margin-top: 170px;
  margin-bottom: 70px;
}

/* ============ ESTILO DA PÁGINA DE PORTFÓLIO ============ */
.portfolio-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  opacity: 10%;
  z-index: -1000;
}

.c-welcome {
  padding-top: 10rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-welcome {
  max-width: 1100px;
}

.c-grid-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 0 16px 0;
  max-width: 100rem;
}

.c-unit {
  max-width: 35rem;
  max-height: 14rem;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
  margin-bottom: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.6s ease-in-out;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 1);
  box-shadow: 5px 5px 27px -6px rgba(0, 0, 0, 0.85);
  border: 1.3px solid var(--dark-gray);
}

.c-unit:hover {
  transform: scale(1.1);
  transition: 0.2s ease-in-out;
  border: 2px solid white;
  box-shadow: 0px 0px 45px 0px rgba(255, 255, 255, 0.18);
}

.c-unit:hover h1 {
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease-in-out;
}

.c-unit:hover .underline {
  width: 0;
  transition: 0.3s ease-in-out;
  opacity: 0;
}

.c-unit:hover .c-label {
  transition: 0.2s;
  opacity: 1;
  width: 100%;
  height: 65px;
  transform: translateY(0px);
  transition: transform 0.3s, opacity 0.3s;
}

.c-unit:hover video,
.c-unit:hover img {
  opacity: 1;
  transition: 0.3s;
}

.c-unit h1 {
  position: absolute;
  text-transform: uppercase;
  font-family: Poppins;
  color: white;
  font-size: 23px;
  font-weight: 800;
  transition: 0.2s ease-in-out;
  display: flex;
  min-width: 450px;
  justify-content: center;
  align-items: center;
}

.c-unit video,
.c-unit img {
  width: 450px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  outline: none;
  border: none;
  opacity: 0.25;
  transition: 0.6s;
}

.c-unit .underline {
  height: 6px;
  width: 65px;
  background-color: white;
  border-radius: 10px;
}

.c-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.c-info .underline {
  content: "";
  display: block;
  width: 4em;
  max-width: 70%;
  border-bottom: 0.1em solid white;
  margin: 1.8em auto 0;
  border-radius: 0px;
  transition: 0.3s ease-in-out;
}

.c-unit .c-label {
  flex-direction: column;
  align-items: center;
  justify-content: left;
  position: fixed;
  background:rgba(0, 0, 0, 0.8);
  object-fit: fill;
  padding: 10px 10px;
  bottom: 0;
  opacity: 1;
  transform: translateY(60px);
  transition: transform 0.6s, opacity 0.4s;
  width: 100%;
  backdrop-filter: blur(4px) grayscale(75%);
}

.c-label h2 {
  color: var(--light-blue);
  font-family: Poppins;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 800;
  width: 100%;
}

.c-label p {
  color: white;
  font-family: Lato;
  font-size: 12px;
}

@media screen and (max-width: 992px) {
  .video-cape {
    margin-top: 160px;
    margin-bottom: 55px;
    padding: 0 12px;
  }

  .c-unit {
    max-height: 10rem;
  }

  .c-unit h1 {
    font-size: 20px;
  }

  .c-info .underline {
    width: 4em;
    max-width: 70%;
  }

  .c-label h2 {
    font-size: 15px;
  }

  .c-label p {
    font-size: 11px;
  }
}