/* 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: #EB9334;
  --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;
  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;
    }
}



.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: #fff;
color: var(--primary-color);
border: none;
}


.service-hero{
  background: url("/images/pj.jpg");
  background-size: cover;

  background-position: 20% 50%;
  background-attachment: fixed;
  position: relative;
}


.service-hero .hero-mask{
  background-color: rgba(0,0,0,0.7);
  width: 100%;
  height: 100%;
  position: absolute;
  top:0;
  left: 0;
  z-index: 1;
  transition: backdrop-filter 0.3s ease; /* Transição suave para o zoom */
}


.service-hero:hover  .hero-mask{
  backdrop-filter: blur(10px);
}

.service-hero .container{
  z-index: 2;
  position: relative;
  color: white;
}

.service-hero .container .grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
}

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

.service-hero .container .grid .col{
  display: flex;
  flex-direction: column;
  gap:1rem;
}

.service-hero .container .grid .col p{
  color:rgba(255,255,255,0.9)
}

.service-hero .container h2{
  font-size: 2rem;
}
.service-hero .container p{
  font-size: 1.2rem;
}

.service-content{
  background-image: url("/images/");
}

.service-content .container .grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:6rem;
  align-items: center;
}

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

.service-content .container .grid .col{
  display: flex;
  gap:1rem;
  flex-direction: column;
}

.service-content .container .grid .col img{
  max-width: 100%;
  border-radius: 40px;
  box-shadow: 0 20px 20px 10px rgba(0,0,0,0.1);
}

.service-content .container .grid .col button{
  display: flex;
  align-self: flex-start;
  margin-top: 1rem;
}

.service-content .container .grid h2{
font-weight: 200;
font-size: 2.5rem;
line-height: 3rem;
}

.service-content .container .grid h2 b{
  color: var(--secondary-color);
}

.service-content .container .grid h2 p{
  color:rgba(0,0,0,0.5);
  font-size: 1.2rem;
}


.gallery{
  display: grid;
  width: 60%;
  align-self: flex-end;
  gap: 1rem;
}

.gallery .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{
    
    width: 100%;
    align-self: center;

  }
}

.gallery img{
  width: 100%;
  height: 100%;
  object-fit: cover;
 
  transition: transform 0.2s ease;
}

.gallery 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: .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: -.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);
}
}


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:.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 .12s ease-in-out;
justify-content: center;
}
footer .container .grid .col .social a:hover{
opacity: .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:.45rem;
margin-top: .45rem;
}

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

footer .container .grid .col .menu a:hover{
opacity: .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;
}