/* =========================================================
   TRABALHOS.CSS — INFRONEX PREMIUM
========================================================= */

.works-hero{
  position:relative;
  min-height:76vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:150px 0 90px;

  background:
    linear-gradient(
      rgba(2, 4, 9, 0.48),
      rgba(2, 4, 9, 0.62)
    ),
    url("../img/bg-trabalhos.jpg");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.works-hero::before{
  content:"";
  position:absolute;
  inset:0;

  background:

    radial-gradient(
      circle at 15% 20%,
      rgba(0,255,156,.07),
      transparent 28%
    ),

    radial-gradient(
      circle at 85% 75%,
      rgba(10,132,255,.08),
      transparent 34%
    );

  pointer-events:none;
}

.works-hero::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,.015),
      transparent 42%
    ),

    linear-gradient(
      260deg,
      rgba(10,132,255,.025),
      transparent 48%
    );

  pointer-events:none;
}

.works-hero-content{
  position:relative;
  z-index:2;
  max-width:980px;
}

.works-hero h1{
  max-width:900px;

  font-size:clamp(48px,6vw,88px);

  line-height:.95;

  letter-spacing:-4px;

  margin:18px 0 26px;

  color:#fff;

  text-shadow:
    0 4px 18px rgba(0,0,0,.45);
}

.works-hero h1 strong{
  display:block;

  background:
    linear-gradient(
      135deg,
      #00FF9C,
      #0A84FF
    );

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.works-hero p{
  max-width:760px;

  font-size:18px;

  line-height:1.8;

  color:#f1f1f1;

  margin-bottom:36px;

  text-shadow:
    0 2px 12px rgba(0,0,0,.35);
}

.works-hero-actions{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

/* =========================================================
   GALERIA
========================================================= */

.works-gallery{
  position:relative;
  overflow:hidden;
  padding:110px 0;
  background:
    radial-gradient(circle at 12% 18%,rgba(0,255,156,.10),transparent 28%),
    radial-gradient(circle at 88% 82%,rgba(10,132,255,.14),transparent 34%),
    linear-gradient(135deg,#020409 0%,#071424 50%,#020409 100%);
}

.works-title{
  text-align:left;
  max-width:900px;
  margin:0 0 40px;
}

.work-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:36px;
}

.work-tab{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:none;
  cursor:pointer;
  padding:15px 22px;
  border-radius:999px;
  color:#d8d8d8;
  font-weight:900;
  font-size:14px;
  background:rgba(8,14,24,.82);
  border:1px solid rgba(0,255,156,.14);
  transition:.3s ease;
}

.work-tab i{
  color:#00FF9C;
}

.work-tab:hover,
.work-tab.active{
  color:#00110a;
  background:linear-gradient(135deg,#00FF9C,#0A84FF);
  box-shadow:0 0 28px rgba(0,255,156,.22);
}

.work-tab:hover i,
.work-tab.active i{
  color:#00110a;
}

.albums-wrapper{
  position:relative;
}

.album-panel{
  display:none;
  animation:albumFade .45s ease forwards;
}

.album-panel.active{
  display:block;
}.album-heading{
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:flex-end;
  margin-bottom:28px;
  padding:30px;
  border-radius:30px;
  background:linear-gradient(145deg,rgba(8,14,24,.82),rgba(3,8,16,.94));
  border:1px solid rgba(0,255,156,.14);
}

.album-heading span{
  display:inline-flex;
  margin-bottom:10px;
  color:#00FF9C;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.album-heading h3{
  font-size:36px;
  line-height:1.05;
  letter-spacing:-1.5px;
  color:#fff;
}

.album-heading p{
  max-width:520px;
  color:#d8d8d8;
  line-height:1.7;
}

/* =========================================================
   GRID DAS FOTOS
========================================================= */

.album-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:18px;
}

.album-photo{
  cursor:pointer;
  position:relative;
  height:260px;
  overflow:hidden;
  border-radius:26px;
  background:#020409;
  border:1px solid rgba(0,255,156,.14);
  box-shadow:0 18px 45px rgba(0,0,0,.28);
  transition:.35s ease;
}

.album-photo::before{
  content:"Clique para ampliar";
  position:absolute;
  left:20px;
  bottom:20px;
  z-index:3;
  padding:8px 14px;
  border-radius:999px;
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
  opacity:0;
  transform:translateY(10px);
  transition:.35s ease;
}

.album-photo::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.60),
      rgba(0,0,0,.10) 48%,
      transparent 72%
    );
}

.album-photo:hover{
  transform:translateY(-6px) scale(1.01);
  border-color:rgba(0,255,156,.34);
  box-shadow:
    0 24px 60px rgba(0,0,0,.38),
    0 0 24px rgba(0,255,156,.08);
}

.album-photo:hover::before{
  opacity:1;
  transform:translateY(0);
}

.album-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:
    transform .65s ease,
    filter .65s ease;
}

.album-photo:hover img{
  transform:scale(1.06);
  filter:brightness(1.08) contrast(1.04);
}

/* =========================================================
   CTA
========================================================= */

.works-cta{
  padding:110px 0;
  background:
    radial-gradient(circle at 20% 25%,rgba(0,255,156,.13),transparent 30%),
    radial-gradient(circle at 82% 78%,rgba(10,132,255,.15),transparent 36%),
    linear-gradient(135deg,#020409 0%,#071424 50%,#020409 100%);
}

.works-cta-box{
  text-align:center;
  padding:70px;
  border-radius:36px;
  background:linear-gradient(145deg,rgba(8,14,24,.92),rgba(4,8,14,.96));
  border:1px solid rgba(0,255,156,.18);
  box-shadow:0 30px 90px rgba(0,0,0,.42);
}.works-cta-box h2{
  max-width:900px;
  margin:18px auto;
  font-size:clamp(40px,5vw,68px);
  line-height:1;
  letter-spacing:-3px;
}

.works-cta-box p{
  max-width:720px;
  margin:0 auto 34px;
  color:#d8d8d8;
  line-height:1.9;
}

/* =========================================================
   ANIMAÇÃO
========================================================= */

@keyframes albumFade{
  from{
    opacity:0;
    transform:translateY(18px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media(max-width:1100px){

  .album-grid{
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:16px;
  }

  .album-photo{
    height:240px;
  }

}

@media(max-width:768px){

  .works-hero{
    min-height:auto;
    padding:130px 0 80px;
  }

  .works-hero h1{
    font-size:42px;
    line-height:1.05;
    letter-spacing:-2px;
  }

  .works-hero p{
    font-size:15px;
  }

  .works-gallery,
  .works-cta{
    padding:80px 0;
  }

  .works-title{
    text-align:center;
    margin:0 auto 34px;
  }

  .work-tabs{
    justify-content:center;
  }

  .work-tab{
    width:100%;
    justify-content:center;
  }

  .album-heading{
    display:block;
    text-align:center;
    padding:26px;
  }

  .album-heading h3{
    font-size:28px;
  }

  .album-heading p{
    margin-top:14px;
  }

  .album-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .album-photo{
    height:220px;
    border-radius:22px;
  }

  .works-cta-box{
    padding:42px 24px;
  }

  .works-cta-box h2{
    font-size:36px;
    letter-spacing:-2px;
    line-height:1.08;
  }

}

/* =========================================================
   MODAL DE IMAGEM
========================================================= */

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .90);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}

.photo-modal.active {
  opacity: 1;
  visibility: visible;
}

.photo-modal img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 26px;
  border: 1px solid rgba(0, 255, 156, .22);
  box-shadow:
    0 0 80px rgba(0, 255, 156, .14),
    0 30px 90px rgba(0, 0, 0, .65);
  background: #020409;
}

.photo-modal-close {
  position: absolute;
  top: 28px;
  right: 34px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: .25s ease;
}

.photo-modal-close:hover {
  background: #00FF9C;
  color: #00110a;
}