#firstSectionFirstHand,
#sectionMoreProjects {
  position: relative;
  overflow: hidden;
}

.container-logo-firsthand {
  position: absolute;
  height: 0px;
  padding-top: 80%;
  display: flex;
  align-items: end;
  gap: 20px;
}

.container-first-section-firsthand,
.container-first-section-projects {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0px;
  left: 0px;
}

.container-logo-firsthand > figure {
  width: 136px;
  height: 70px;
}

.container-logo-firsthand > figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#secondSectionFirstHand {
  padding-top: 140px;
  padding-bottom: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container-left-side-second-section > p {
  font: var(--body-max);
}

.container-left-side-second-section > p > em {
  color: var(--orange);
}

.container-middle-text {
  align-self: center;
}

.container-middle-text > span {
  text-align: center;
  font: var(--title-big);
  font-weight: 600;
}

.container-right-side-second-section > p > strong {
  font-weight: bold;
}

#secondSectionFirstHand .c1:last-child {
  align-self: end;
  width: 50%;
}

#thirdSectionFirstHand {
  padding-top: 160px;
  padding-bottom: 160px;
}

body:has(#thirdSectionFirstHand .container-main-video.opened),
body:has(#thirdSectionFirstHand .c1.opened) {
  overflow: hidden;
}

.container-main-video {
  margin-bottom: 40px;
}

.main-video-text {
  padding-bottom: 20px;
  border-bottom: 2px solid #1111110d;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
}

.main-video-text > h2 {
  font: var(--body-max);
  padding: 10px 0px;
}

.main-video-text > div > h3 {
  font: var(--title-smaller);
}

.main-video-text > div > div > h4 {
  font: var(--detail);
  padding: 10px 0;
}

.main-video-text > div > div > p {
  font: var(--detail);
  opacity: 0.4;
}

.main-video {
  position: relative;
  max-height: 400px;
  cursor: pointer;
}

.main-video > figure {
  width: 100%;
  height: 100%;
}

.main-video > figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-firsthand-video-main {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-video:hover .play-firsthand-video-main {
  background: rgba(255, 255, 255);
}

.play-firsthand-video-main > figure {
  width: 100%;
  height: 100%;
  position: relative;
}

.play-firsthand-video-main > figure > img {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: auto;
}

.container-firsthand-image,
.container-project-image {
  position: relative;
}

.container-project-image,
.container-firsthand-image {
  height: 0px;
  padding-top: 100%;
}

.container-firsthand-image > figure,
.container-project-image > figure {
  position: absolute;
  top: 0px;
  width: 100%;
  height: 100%;
}

.container-firsthand-image > figure > img,
.container-project-image > figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container-firsthand-card-text,
.container-project-card-text {
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.container-firsthand-card-text > h3 {
  font: var(--detail);
  font-weight: 500;
}

.container-firsthand-card-text > p {
  font: var(--detail-min-regular);
}

.container-firsthand-card-text p:last-of-type {
  opacity: 0.4;
}

.container-title-firsthand-video {
  display: flex;
  padding: 20px 0px;
  align-items: end;
  justify-content: space-between;
}

.container-title-firsthand-video > h2 {
  font: var(--title-smaller);
  font-weight: 400;
  margin-bottom: 0px;
}

.button-watch-video-firsthand-list > button,
.button-watch-video-firsthand > button {
  font: var(--detail-min-medium);
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1;
  width: max-content;
  transform: translateX(-8px);
}

.button-watch-video-firsthand-list > button img,
.button-watch-video-firsthand > button img {
  vertical-align: middle;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.button-watch-video-firsthand-list > button:hover img,
.button-watch-video-firsthand > button:hover img {
  transform: translateX(5px);
}

.play-firsthand-video {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  text-align: center;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: all 0.3s ease;
}

.play-firsthand-video figure {
  width: 100%;
  height: 100%;
  position: relative;
}

.play-firsthand-video figure img {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: auto;
}

.firsthand-list-card {
  border-bottom: 2px solid #1111110d;
}

.container-firsthand-image {
  cursor: pointer;
}

.container-firsthand-image:hover .play-firsthand-video {
  background: rgba(255, 255, 255);
}

/* Página de projetos */

#firstSectionProjects {
  position: relative;
  padding-top: 120px;
}

.container-first-section-firsthand,
.container-first-section-projects {
  position: absolute;
  left: calc((100% - var(--container-max)) / 2);
  right: 0px;
}

.first-section-firsthand-text,
.first-section-project-text {
  position: relative;
}

.first-section-firsthand-text > h1,
.first-section-project-text > h1 {
  font: var(--title-big);
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  padding-right: 50px;
}

.first-section-project-text > a {
  position: absolute;
  bottom: 5px;
}

.first-section-project-text > a > figure {
  width: 36px;
  height: 36px;
}

.first-section-project-text > a > figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first-section-project-text > a > figure > img {
  transition: transform 0.3s ease;
}

.first-section-project-text > a > figure > img:hover {
  transform: translateY(5px);
}

.container-imagens-firsthand-first-section,
.container-imagens-projects-first-section {
  display: flex;
  gap: 20px;
  position: relative;
  margin-top: 20px;
}

.figure-one {
  position: relative;
  height: 0;
  width: 100%;
  padding-top: 90%;
}

.figure-one > img {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-twoo {
  position: relative;
  height: 0;
  width: 50%;
  padding-top: 90%;
}

.figure-twoo > img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0px;
  width: 100%;
  height: 70%;
  object-fit: cover;
}

#secondSectionProjects,
#sectionMoreProjects {
  padding-top: 120px;
  padding-bottom: 160px;
}

.search-project-form {
  display: flex;
  gap: 20px;
}

.custom-select-wrapper {
  width: 100%;
  position: relative;
}

.custom-select {
  position: relative;
  user-select: none;
}

.custom-select__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 2px solid #1111110d;
  padding: 10px 0px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.custom-select__trigger > span {
  opacity: 0.4;
  font: var(--detail);
}

.custom-select__trigger .select-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select__trigger .select-arrow {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  list-style: none;
  display: flex;
  flex-direction: column;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #d3d3d34d;
  pointer-events: none;
  visibility: hidden;
}

.custom-select.open .custom-options {
  opacity: 1;
  max-height: 200px;
  overflow-y: auto;
  pointer-events: auto;
  visibility: visible;
}

.custom-option {
  padding: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.custom-select.open .custom-select__trigger {
  border-bottom: 2px solid black;
}

.custom-option:hover {
  color: var(--orange);
}

.container-projects {
  margin-top: var(--margin-g);
}

.button-see-detail-project {
  color: var(--orange);
  text-transform: uppercase;
}

.button-see-detail-project span {
  color: var(--orange);
  text-transform: uppercase;
  font: var(--detail-min-medium);
}

.button-see-detail-project {
  display: flex;
  align-items: center;
}

.button-see-detail-project > img {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.link-project-card:hover .button-see-detail-project img {
  transform: translateX(5px);
}

.project-category-tag {
  text-align: center;
  text-transform: uppercase;
  padding: 5px 15px;
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  font: var(--detail-min-medium);
}

.project-category-tag p {
  color: var(--black);
}

.container-project-card-text > div > h3 {
  font: var(--title-smaller);
  font-weight: 400;
  margin-bottom: var(--margin-p);
  color: var(--black);
  transition: all 0.3s ease;
}

.link-project-card:hover .container-project-card-text > div > h3 {
  color: var(--orange);
}

.container-project-card-text > div > p {
  font: var(--detail);
  color: var(--black);
  opacity: 0.4;
  margin-bottom: var(--margin-p);
}

#secondSectionProjects .button-more-projects {
  margin: auto;
  margin-top: var(--margin-g);
}

#secondSectionProjects .button-more-projects > a {
  padding: 15px;
}

.button-orange {
  text-transform: uppercase;
  padding: 15px 30px;
  background: radial-gradient(
    circle,
    var(--orange1) 0%,
    var(--orange2) 50%,
    var(--orange3) 100%
  );
  color: var(--white);
  width: max-content;
  font: var(--detail-min-medium);
  transition: background 0.5s ease;
  text-align: center;
  cursor: pointer;
  transition: --orange1 0.3s ease, --orange2 0.3s ease, --orange3 0.3s ease;
}

.button-orange:hover {
  --orange1: rgba(255, 167, 156, 1);
  --orange2: rgba(245, 130, 115, 1);
  --orange3: rgba(228, 85, 65, 1);
}

.button-orange > a {
  color: inherit;
}

/* Página de mais projetos */

.container-more-projects-text {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.container-search-projects > h2,
.container-more-projects-text > h2 {
  font: var(--body-max);
}

.container-search-projects > div,
.container-more-projects-text > div {
  font: var(--detail-min-regular);
}

.container-search-projects > form {
  margin: 40px 0px;
}

.pagination-info {
  opacity: 0.4;
}

.container-buttons-pages-mobile {
  display: none;
}

.container-buttons-pages {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.container-buttons-pages > button > a {
  padding: 15px 0px;
}

.btn-clear-search {
  text-transform: uppercase;
  color: var(--orange);
  transition: all 0.3s ease;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.btn-clear-search:hover {
  text-decoration: underline;
}

.container-pagination-results-page {
  display: flex;
  justify-content: space-between;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container-videos-firsthand,
  .container-projects {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .container-message-center span {
    display: inline;
  }

  .container-first-section-firsthand,
  .container-first-section-projects {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .container-mobile-logo-firsthand.mobile-only {
    left: 50% !important;
    transform: translate(-50%) !important;
  }

  .first-section-firsthand-text > h1,
  .first-section-project-text > h1 {
    top: 30%;
  }

  .container-imagens-firsthand-first-section {
    margin-top: 0px !important;
  }

  #secondSectionFirstHand .c1:last-child {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .container-first-section-firsthand {
    margin-top: 40px;
    height: 80%;
    gap: 0px;
  }

  .container-mobile-logo-firsthand.mobile-only {
    position: absolute;
    bottom: 40px;
    left: var(--margin-lateral);
  }

  .container-mobile-logo-firsthand.mobile-only > p {
    width: max-content;
    position: absolute;
    bottom: 0px;
    left: 115px;
  }

  .container-mobile-logo-firsthand.mobile-only > figure {
    width: 105px;
    height: 54px;
  }

  .container-mobile-logo-firsthand.mobile-only > figure > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .container-middle-text {
    padding: 40px 0px;
  }

  .container-middle-text > span {
    display: inline-block;
    padding: 0px 60px;
    width: 100%;
  }

    #secondSectionFirstHand .c1:last-child {
    width: 100%;
  }

  .container-main-video {
    gap: 0px;
  }

  .main-video {
    max-height: 200px;
  }

  .main-video-text {
    border-bottom: none;
    padding-bottom: 0px;
  }

  .main-video-text > h2 {
    padding-bottom: 0px;
  }

  .main-video-text > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .main-video-text > div > div h4,
  .main-video-text > div > div p {
    display: inline-block;
    margin: 0 5px;
  }

  .main-video-text > div > div > p {
    font: var(--detail);
    opacity: 0.4;
  }

  .play-firsthand-video,
  .play-firsthand-video-main {
    width: 35px;
    height: 35px;
  }

  .play-firsthand-video > figure > img,
  .play-firsthand-video-main > figure > img {
    width: 13px;
  }

  .container-title-firsthand-video {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .container-message-center span {
    display: block;
  }

  .button-watch-video-firsthand > button {
    transform: translateX(0px);
  }

  #thirdSectionFirstHand {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .first-section-firsthand-text {
    position: unset;
  }

  .first-section-firsthand-text > h1 {
    padding-right: 0px;
    margin-bottom: 20px;
    position: unset;
    top: unset;
    transform: unset;
  }

  /* Página de projetos */

  #secondSectionProjects,
  #sectionMoreProjects {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .container-first-section-projects {
    margin-top: 60px;
    height: 80%;
    gap: 20px;
  }

  .first-section-project-text > h1 {
    padding: 0px;
    right: calc((100% - var(--container-max)) / 2);
  }

  .arrow-down-projects-mobile {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
  }

  .container-imagens-firsthand-first-section {
    margin-top: -40px;
  }

  .container-images-firsthand,
  .container-images {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .search-project-form {
    flex-direction: column;
  }

  .search-project-form > button {
    width: 100%;
  }

  .container-project-card-text {
    display: flex;
    flex-direction: column;
  }

  .container-project-card-text > div > p {
    font: 400 14px/21px var(--onest);
  }

  .container-client-and-button {
    display: flex;
    justify-content: space-between;
  }

  .container-project-card-text > div > p {
    margin-bottom: 0px;
  }

  .button-see-detail-project {
    display: flex;
  }

  .button-see-detail-project span > img {
    margin-left: 0px;
  }

  .figure-one,
  .figure-twoo {
    padding-top: 80%;
  }

  /* Página de mais projetos */

  .container-more-projects-text {
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
    margin-bottom: var(--margin-m);
  }

  .container-buttons-pages {
    display: none;
  }

  .container-buttons-pages-mobile {
    display: none;
  }

  .container-buttons-pages-mobile {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }

  .container-buttons-pages-mobile > button {
    width: 165px;
    height: 48px;
  }

  .btn-clear-search {
    margin-top: -20px;
  }

  .container-pagination-results-page {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 40px;
  }
}

@media (max-height: 738px) {
    .container-imagens-firsthand-first-section {
        margin-top: 0px;
    }

    .figure-one, .figure-twoo {
        padding-top: 70%;
    }
}
