/* ===========================
   PORTFÓLIO PAGE - portfolio.html
   =========================== */

.portfolio-section {
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-section__title {
  font-family: var(--font-heading);
  font-size: 50px;
  color: var(--white);
  text-align: center;
  margin-bottom: 30px;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 60px;
  border: 3px solid var(--gold);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Botões do Carousel */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1);
  background: rgba(0, 0, 0, 0.4);
  border: 3px solid white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.25s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

.carousel__btn svg {
  width: 26px;
  height: 26px;
  transition: transform 0.25s ease;
}

.carousel__btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 170, 25, 0.3);
}

.carousel__btn:hover svg path {
  stroke: var(--gold);
}

.carousel__btn--prev:hover svg {
  transform: translateX(-2px);
}

.carousel__btn--next:hover svg {
  transform: translateX(2px);
}

.carousel__btn:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel__btn--prev {
  left: 15px;
}

.carousel__btn--next {
  right: 15px;
}

/* Portfolio CTA */
.portfolio-cta {
  text-align: center;
  padding: 40px 20px;
}

.portfolio-cta__title {
  font-family: var(--font-heading);
  font-size: 60px;
  color: var(--white);
  margin-bottom: 10px;
}

.portfolio-cta__subtitle {
  color: var(--gold);
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.contact-info-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  color: var(--white);
}

.contact-info-item svg,
.contact-info-item img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.carousel__slide img { cursor: zoom-in; }

/* Lightbox (imagem ampliada) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 96vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
}

/* RESPONSIVE - PORTFÓLIO */
@media (max-width: 768px) {
  .portfolio-section { padding: 40px 16px; }
  .portfolio-section__title { font-size: 32px; }
  .portfolio-cta__title { font-size: 34px; }
  .portfolio-cta__subtitle { font-size: 18px; }
  .contact-info-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  /* mostra fotos (muitas em retrato) maiores no celular */
  .carousel { aspect-ratio: 4 / 5; border-width: 2px; }
  .carousel__btn { width: 44px; height: 44px; }
}
