/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* Variables */
:root {
  --primary-color: rgb(235, 195, 51);
  --primary-color-hover: rgb(163, 135, 33);
  --secondary-color: rgb(235, 195, 51);
  --text-white: #fff;
  --text-grey: #999;
  --text-color: #000;
  --bg-color: #fff;
  --bg-color-secondary: rgb(0,0,0,0.02);
  --footer-bg-color: #333;
  --footer-text-color: #fff;
  --footer-link-color: rgb(235, 195, 51);
}

body {
  line-height: 1.6;
  color: var(--text-color);
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  background-color: var(--bg-color);
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

section {
  padding: 4rem 1rem;
}

@media (max-width: 980px) {
  section {
    padding: 2rem 1rem;
  }
}

/* Início Section */
.home {
  display: flex;
  justify-content: center;
  align-items: center;

  height: calc(100vh - 6.4rem);

  background-size: cover;
  position: relative;
  background-position: center;
  background-attachment: fixed;
  text-align: center;


}

.home::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.home-content {
  flex: 1;
  z-index: 2;
  max-width: 60%;
  margin: 0 auto;
}

.home .container {
  display: flex;
}

.home-image {
  flex: 1;
}

.home-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
}

.home-content h2 {
  font-size: 4rem;
  line-height: 4rem;
  color: var(--text-white);
  margin-bottom: 2rem;
}

.home-content p {
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 2rem;
}

.typed-text {
  font-weight: bold;
}

.blinking-cursor {
  font-weight: bold;
  font-size: 4rem;
  padding: 0 0.5rem;
  color: white;
  animation: blink 0.7s infinite;
}

@media (max-width: 1280px) {
  .home-content {
    max-width: 70%;
  }
}

@media (max-width: 980px) {
  .home-content {
    max-width: 100%;
  }
  .home-content h2 {
    font-size: 2.5rem;
    line-height: 3rem;
    color: var(--text-white);
    margin-bottom: 2rem;
  }
  .home-content p {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 2rem;
  }
  .blinking-cursor {
    font-size: 2.8rem;
  }
}

.btn-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.8rem 2.4rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  border-radius: 100px;
}

.btn:hover {
  background-color: var(--primary-color-hover);
  border-color:var(--primary-color-hover);
  color: white;
}

.btn-home {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

@media (max-width: 980px) {
  h2 {
    font-size: 2.5rem !important;
  }

  h1 {
    font-size: 2.5rem !important;
  }
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.about {
  position: relative;
  padding: 0;

  background-color: var(--bg-color);
}

.about {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100vh;
}

.about .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  align-items: center;

  justify-content: center;
}
.about .row h2 {
  font-weight: 200;
  font-size: 3rem;
  line-height: 3rem;
}
.about .row img {
  width: 100%;
  margin: 0 auto;
  height: 100%;
  object-position: left;
  object-fit: cover;
}

@media (max-width: 980px) {
  .about{
    height:  auto;
  }
  .about .row {
    grid-template-columns: 1fr;
  }
  .about .row h2 {
    line-height: 3rem;
  }
  .about .row h1 {
    line-height: 3rem !important;
  }
  .about .row .about-info {

    padding-top: 2rem !important;
  }
  .about .row .about-info:last-of-type{
    padding-bottom: 2rem !important;
  }
}

.about .row h1 {
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 4rem;
  color: var(--secondary-color);
}

.about .row .about-info {
  display: flex;
  gap: 1rem;
  
  z-index: 1;
  flex-direction: column;
  width: 90% !important;
  padding: 0 4.5rem;
}
.about .btn {
  color: var(--primary-color);
  width: auto;
  align-self: flex-start;
  margin-top: 1rem;
}
.about .btn:hover {
  color: white;
}

#bim {
  background-color: var(--bg-color-secondary);
}

#bim h2 {
  font-weight: 200;
  font-size: 3rem;
  line-height: 3rem;
  text-align: center;
}

#bim .container h2 {
  text-align: center;
}
#bim .container h2 b,


#services .container h2 b {
  color: var(--secondary-color);
}
#bim .grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dividindo em duas colunas de igual tamanho */
  gap: 4rem; /* Espaçamento entre as colunas */
  align-items: center;
  margin-top: 4rem;
}

#bim .container h3 {
  text-align: center;
  margin-top: 1rem;
  font-weight: normal;
  color: var(--text-grey);
}

#threejs-container {
  width: 100%; /* Ocupa todo o espaço disponível da coluna */
  height: 400px; /* Definindo uma altura fixa para o container */
  background-color: #f0f0f0; /* Cor de fundo para facilitar a visualização */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

#threejs-container img {
  position: absolute;
  width: 2rem;
  bottom: 10px;
  right: 20px;
}
#bim .container .grid div p {
  text-align: left;
}
#bim .container .grid div:last-of-type {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#bim .container .grid div:last-of-type h2 {
  text-align: left;
  margin-bottom: 1rem;
}

#bim .container .grid div:last-of-type h2 b {
  color: var(--secondary-color);
  font-weight: 800;
}

#bim .btn {
  color: var(--primary-color);
  width: auto;
  align-self: flex-start;
  margin-top: 1rem;
}
#bim .btn:hover {
  color: white;
}

#threejs-container iframe {
  height: 100%;
}

#threejs-container .titlebar {
  display: none !important;
}

@media (max-width: 768px) {
  #bim .grid {
    grid-template-columns: 1fr; /* Em telas menores, o layout vira uma coluna */
  }

  #threejs-container {
    height: 300px; /* Altura reduzida para dispositivos móveis */
  }
}

#services {
  background-color: var(--bg-color-secondary);
  overflow: hidden;
  padding-bottom: 1.1rem;
}

#services h2 {
  font-weight: 200;
  font-size: 3rem;
  line-height: 3.2rem;
  text-align: center;
}

#services .container h3 {
  text-align: center;
  margin-top: 1rem;
  font-weight: normal;
  color: var(--text-grey);
}
#services .service-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: -1rem;
  margin-top: 2rem;
}

#services .service-list .container h2 {
  text-align: left;
  border-left: 8px solid var(--secondary-color);
  padding-left: 1.2rem;
  position: relative;
}

#services .service-list .cards {
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.3);
  margin-top: 1.5rem;
}

#services .service-list .cards.desktop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

#services .service-list .cards .card-item {
  position: relative;
  overflow: hidden; /* Esconde a parte da imagem que ultrapassa os limites */
}

#services .service-list .cards.cards.desktop-layout .card-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.3s ease; /* Transição suave para o zoom */
}

#services .service-list .cards .card-item:hover img {
  transform: scale(1.2); /* Aumenta a escala da imagem ao passar o mouse */
}

#services .service-list .cards .card-item .card-mask {
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0)
  );
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  transition: backdrop-filter 0.3s ease; /* Transição suave para o zoom */
}

#services .service-list .cards .card-item:hover .card-mask {
  backdrop-filter: blur(10px);
}

#services .service-list .cards .card-info {
  padding: 1.5rem 1.5rem;
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#services .service-list .cards .card-info button {
  display: flex;
  align-self: flex-start;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  border-color: white;
  border-width: 1px;
  cursor: pointer;
  padding: 1rem;
  gap: 2rem;
}

#services .service-list .card-info button:hover {
  background-color: #fff;
  color: #000 !important;
}

#services .service-list .cards .card-item h3 {
  font-size: 1.4rem;
  line-height: 1.6rem;
  font-weight: 400;

  color: white;
}

#services .service-list .owl-arquitetura {
  display: none;
}

#services .service-list .owl-engenharia {
  display: none;
}

/* O layout do desktop será oculto no mobile */
@media (max-width: 980px) {
  #services .service-list .cards.desktop-layout {
    display: none !important;
  }

  #services .service-list .owl-arquitetura {
    display: block;
  }

  #services .service-list .owl-engenharia {
    display: block;
  }

  #services .service-list {
    gap: 2rem;
  }
}

#services .service-list .swiper {
  margin-top: 1rem;
}

#services .service-list .swiper .swiper-wrapper {
  width: 100%;
}

#services .service-list .swiper .swiper-slide {
  position: relative;
  display: flex;

  z-index: 3;
}

#services .service-list .swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  z-index: -1;
}
#services .service-list .swiper .swiper-slide .card-mask {
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 40%,
    rgba(0, 0, 0, 0)
  );
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
}

#services .service-list .swiper .swiper-slide h3 {
  font-size: 1.3rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: white;
}

#services .service-list .swiper .card-info {
  padding: 1rem;
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#services .service-list .swiper .card-info button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  border-color: white;
  border-width: 1px;
  cursor: pointer;
  padding: 1rem;
}

.arrows {
  display: flex;
  gap: 0.3rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.arrows .swiper-prev,
.arrows .swiper-next {
  background-color: transparent !important;
  border: 2px solid var(--secondary-color) !important;
  color: var(--primary-color) !important;
  width: 3rem !important;
  height: 3rem !important;
  font-size: 1rem !important;
  display: flex !important;
  justify-content: center !important;
  cursor: pointer !important;
  align-items: center !important;
  transition: background 0.2s ease !important;
  position: relative !important;
  top: inherit !important;
  bottom: inherit !important;
  right: inherit !important;
  left: inherit !important;
  margin-top: 0 !important;
}

.arrows .swiper-prev:hover,
.arrows .swiper-next:hover {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}

.arrows .swiper-prev:after,
.arrows .swiper-next:after {
  content: "" !important;
}

.arrows .swiper-prev::after,
.arrows .swiper-next::after {
  font-size: 1.4rem !important; /* Adjust the size of the arrow itself */
}

.clients {
  width: 100%;
  box-shadow: 0 5px 10px rgba(0,0,0, 0.1);
  padding: 2rem 0rem !important;
}
.clients {
  position: relative;
    background-color: var(--bg-color);
  }
  
  
  .clients .swiper-slide img {
    width: 100%;
    height: 50px;
  
    object-fit: contain;
  
    margin-bottom: -10px;
  }
  
  .clients .swiper-slide img:hover {
    filter: grayscale(0);
  }


footer {
  background-color: #000;
  padding: 4rem 1rem;
  position: relative;
  margin-top: 25px;
}

footer::before {
  content: "";
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  ) !important;
  width: 100%;
  height: 25px;
  position: absolute;
  top: -25px;
  left: 0;
}

footer .container .grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr 1fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 980px) {
  footer .container .grid {
    grid-template-columns: 1fr;
  }
}

footer .container .grid .col img {
  width: 70%;
  margin-bottom: 1rem;
}

footer .container .grid .col hr {
  border-color: #fff;
  border-width: 1px;
  border-style: solid;
}

footer .container .grid .col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #fff;
}

footer .container .grid .col .contact-infos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer .container .grid .col .contact-infos {
  color: #fff;
}

footer .container .grid .col .contact-infos div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

footer .container .grid .col .social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

footer .container .grid .col .social a {
  color: #000;
  font-size: 1.5rem;
  width: 35px;
  text-decoration: none;
  height: 35px;
  background-color: #fff;
  display: flex;
  align-items: center;
  border-radius: 100%;
  margin-top: 1rem;
  opacity: 1;
  transition: opacity 0.12s ease-in-out;
  justify-content: center;
}
footer .container .grid .col .social a:hover {
  opacity: 0.7;
}

footer .container .grid .col .menu {
  display: flex;
  gap: 2rem;
  flex-direction: row;
}

footer .container .grid .col .menu .menu-item div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

footer .container .grid .col .menu a {
  text-decoration: none;
  color: #fff;
  opacity: 1;
  transform: opacity 0.12s ease;
}

footer .container .grid .col .menu a:hover {
  opacity: 0.7;
}

footer .container .grid .col iframe {
  width: 100%;
  border-radius: 12px;
  border: none;
  height: 200px;
}

footer .container .copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: -2rem;
  margin-top: 4rem;
}

.numbers {
  position: relative;

  background-color: var(--bg-color-secondary);
}

.numbers .container .grid {
  display: grid;

  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.numbers .container .about-info {
  display: flex;
  gap: 2rem;
  z-index: 1;

  flex-direction: column;
  max-width: 50%
}
.numbers .container .btn {
  color: var(--primary-color);
  width: auto;
  align-self: flex-start;
  margin-top: 1rem;
}
.numbers .container .btn:hover {
  color: white;
}

.numbers .container h2 {
  font-weight: 200;
  font-size: 3rem;
  line-height: 3.5rem;
}

.numbers .container div p{
  margin-top: 1rem;
}

.numbers .container h2 b {
  color: var(--secondary-color);
}

.numbers .container .col {
  display: flex;
  justify-content: flex-end;
}

.numbers .container .numbers-list {
  display: grid;
  grid-template-columns: 280px 280px;

gap:2rem;
  margin-top: 1rem;
}

#map {
  width: 100%;
}

#map .model-green .state {
  cursor: pointer;
}
#map .model-green .state.disabled {
  cursor: inherit;
}
#map .model-green .state .shape {
  fill: var(--primary-color);
}

#map .model-green .state.disabled .shape {
  fill: #bbb;
}

#map .model-green .state .label-icon-state {
  fill: #fff;
}

#map .state .label-icon-state {
  fill: #fff;
  font-family: Arial;
  font-size: 11px;
  line-height: 12px;
  font-weight: normal;
}

#map .state.state.disabled .label-icon-state {
  fill: #fff;
}

#map .model-green .state .label-icon-state.circle-label {
  fill: #fff;
}

#map .model-green .state.disabled .label-icon-state.circle-label {
  fill: #fff;
}

#map .model-green .state .label-state {
  fill: #bbb;
}

#map .state .label-state {
  display: none;
  font-family: Arial;
  font-size: 14px;
  line-height: 16px;
  font-weight: bold;
}

#map .model-green .state .icon-state {
  fill: #535996;
}

#map .model-green .state .icon-state .label-icon-state {
  fill: black !important;
}

#map .model-green .state.state.disabled .icon-state {
  fill: #bbb;
}

#map .model-green .state:hover .shape,
#map .model-green .state.hover .shape {
  fill: #5E34EB !important;
}

#map .model-green .state.disabled:hover .shape,
#map .model-green .state.hover .shape {
  fill: #bbb !important;
}

#map .model-green .state:hover .icon-state,
#map .model-green .state.hover .icon-state {
  fill: #5E34EB !important;
}

#map .model-green .state:hover .icon-state,
#map .model-green .state.hover .icon-state {
  fill: #5E34EB !important;
}
#map .model-green .state:hover .label-icon-state {
  fill: #fff !important;
}

#map .model-green .state.state.disabled:hover .icon-state,
#map .model-green .state.hover .icon-state {
  fill: #999 !important;
}

#map .model-green .state .label-state {
  fill: #999;
}
#map .state:hover .label-state,
#map .state.hover .label-state {
  display: block;
}

#map .state.disabled:hover .label-state,
#map .state.hover .label-state {
  display: none;
}

@media (max-width: 980px) {
  .numbers{
    padding-top:8rem;
  }
  .numbers .container .grid {
    grid-template-columns: 1fr;
  }

  .numbers .container .col {
    display: flex;
    justify-content: center;
  }

  .numbers .container .about-info {
    display: flex;
    gap: 2rem;
    z-index: 1;
  
    flex-direction: column;
    max-width: 100% !important;
  }
  #map {
    width: auto !important;
    margin-top: 4rem;
  }
}


@media (max-width: 980px) {
  .numbers .container .grid {
    grid-template-columns: 1fr;
  }

  .numbers .container .col {
    display: flex;
    justify-content: center;
  }

  #map {
    width: 100% !important;
    margin-top: 4rem;
  }
}

.gallery-full {
  display: grid;
  width: 70% !important;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
  align-self: center;
  gap: 1rem;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .gallery-full {
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
  }
}

.gallery-full .gallery-item {
  height: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1; /* This makes the items square */
  box-shadow: 0 0px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1140px) {
  .gallery-full {
    width: 100% !important;
    align-self: center;
  }
}

.gallery-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.2s ease;
}

.gallery-full img:hover {
  transform: scale(1.2);
  cursor: pointer;
}

/* Estilos para o modal */
.modal {
  display: none; /* Oculto por padrão */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease; /* Animação para aparecer suavemente */
}

/* Estilos para o conteúdo do modal com animação de zoom */
.modal-content {
  background-color: transparent;
  max-width: 90vw; /* Limita a largura do modal em relação à tela */
  height: 90vh; /* Limita a altura do modal em relação à tela */
  transform: scale(0.5); /* Começa com o modal reduzido */
  animation: zoomIn 0.3s ease forwards; /* Animação de zoom in */
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mantém a proporção da imagem */
}

.close-button {
  position: absolute;
  text-shadow: 0 0px 5px rgba(0, 0, 0, 0.4);
  right: 0.8rem;
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001; /* Garante que o botão esteja sobre a imagem */
}

@media (max-width: 980px) {
  .close-button {
    top: -2.5rem;
    right: -0.45rem;
  }
}

/* Animação de zoom in (abrindo) */
@keyframes zoomIn {
  0% {
    transform: scale(0.5); /* Começa pequeno */
    opacity: 0;
  }
  100% {
    transform: scale(1); /* Expande para o tamanho normal */
    opacity: 1;
  }
}

/* Animação de zoom out (fechando) */
@keyframes zoomOut {
  0% {
    transform: scale(1); /* Começa no tamanho normal */
    opacity: 1;
  }
  100% {
    transform: scale(0.5); /* Diminui o tamanho */
    opacity: 0;
  }
}

/* Keyframes para fade in (aparecer suavemente) */
@keyframes fadeIn {
  0% {
    background-color: rgba(0, 0, 0, 0);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.75);
  }
}

.projects {
  background-image: url("/images/bg-icone.jpg");
  background-size: cover;
  background-position: right;
  overflow: hidden;
}

.projects h2 {
  font-weight: 200;
  font-size: 3rem;
  line-height: 3.2rem;
  text-align: center;
}

.projects .container h3 {
  text-align: center;
  margin-top: 1rem;
  font-weight: normal;
  color: var(--text-grey);
  margin-bottom: 3rem;
}

.projects .container h2 b {
  color: var(--secondary-color);
}

.projects .container .footer {
  display: flex;
  align-self: center;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}


#myVideo {
  height: auto;
  left: 0;
  height: 100%;
  -o-object-fit: cover;
  
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}
