/* =========================
   HERO
========================= */
.client-hero {
  padding: 120px 0 40px;
  text-align: center;
  color: var(--text-light);
}

.breadcrumb-custom {
  margin-bottom: 40px;
  color: var(--text-light);
}

.breadcrumb-custom a {
  text-decoration: none;
  color: #999;
}

.hero-content {
  max-width: 700px;
  margin: auto;
}

.project-category {
  display: inline-block;
  padding: 10px 18px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin: 15px 0;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* =========================
   FOTO DESTAQUE
========================= */
.featured-section {
  margin-bottom: 0px;
}

.featured-image {
  width: 100%;
  height: 70vh;
  max-height: 850px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

/* =========================
   TITULOS
========================= */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  color: var(--text-light);
  letter-spacing: 3px;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-top: 10px;
  font-weight: 700;
}

/* =========================
   GALERIA
========================= */
.gallery {
  column-count: 3;
  column-gap: 20px;
}

.gallery-section {
  background: var(--bg-light);
  border-radius: 40px;
  padding: 100px 0;
}

.gallery-item {
  margin-bottom: 20px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--border);
  position: relative;
}

.gallery-item img {
  width: 100%;
  transition: 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* =========================
   VIDEO
========================= */
.video-section {
  padding: 120px 0;
  background: var(--bg-soft);
}

.video-wrapper {
  max-width: 900px;
  background: var(--card);
  padding: 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: auto;
}

.video-wrapper video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* =========================
   CTA
========================= */
.cta-client {
  padding: 120px 0;
  text-align: center;
}

.cta-client h2 {
  font-size: 3rem;
  font-weight: 700;
}

.cta-client p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 40px;
}

/* =========================
   PRÓXIMO PROJETO
========================= */
.next-project {
  padding: 120px 0;
}

.next-project-header {
  text-align: center;
  margin-bottom: 60px;
}

.next-project-header span {
  letter-spacing: 3px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.next-project-header h2 {
  margin-top: 10px;
  font-size: 2.7rem;
  font-weight: 700;
}

.next-project-header p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 20px auto 0;
}

.next-card {
  display: block;
  max-width: 900px;
  margin: auto;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  transition: 0.35s;
  box-shadow: var(--shadow-sm);
}

.next-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.next-card-image {
  overflow: relative;
}

.next-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.65));
  z-index: 2;
}

.next-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: 0.7s;
}

.next-card:hover img {
  transform: scale(1.05);
}

.next-card-content {
  padding: 35px;
}

.next-card-content small {
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 40px;
  padding: 8px 18px;
}

.next-card-content h3 {
  margin: 10px 0 20px;
  color: var(--text);
  font-size: 2rem;
}

.next-card-content span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.next-card:hover span {
  color: var(--accent);
}

.next-card span i {
  transition: 0.3s;
}

.next-card:hover span i {
  transform: translateX(6px);
}

.next-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 15px 0 28px;
}

/* ==========================================
   NEXT PROJECT - ESTADO VAZIO
========================================== */

.next-card-empty {
  max-width: 900px;
  margin: auto;
  padding: 80px 50px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: var(--card);

  border: 2px dashed var(--border);

  border-radius: 28px;
}

.next-empty-icon {
  width: 90px;
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 30px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid var(--border);
}

.next-empty-icon i {
  font-size: 2.4rem;
  color: var(--accent);
}

.next-card-empty h3 {
  margin-bottom: 15px;

  color: var(--text);

  font-size: 2rem;

  font-weight: 700;
}

.next-card-empty p {
  max-width: 550px;

  color: var(--text-muted);

  line-height: 1.8;
}
/* =======================
   LIGHTBOX
======================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 99999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 15px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox img.loaded {
  opacity: 1;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-actions .btn {
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #222;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
}

.lightbox-actions .btn:hover {
  transform: translateY(-2px);
}

.nav-photo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.nav-photo:hover {
  background: rgba(255, 255, 255, 0.25);
}

#prevPhoto {
  left: 30px;
}

#nextPhoto {
  right: 30px;
}

.nav-photo:hover {
  background: rgba(255, 255, 255, 0.25);
}

.photo-counter {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

#lightbox-video {
  width: 80vw;
  max-width: 950px;
  max-height: 75vh;
  border-radius: 20px;
  background: black;
}

#prevVideo {
  left: 40px;
}

#nextVideo {
  right: 40px;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 99999;
}

.video-lightbox .lightbox-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.video-lightbox.active {
  display: flex;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.video-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
}

.video-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* =========================
   INFO CARDS
========================= */
.project-info-section {
  margin-top: 60px;
}

.info-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.3s ease;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.info-card i {
  font-size: 2rem;
  margin-bottom: 15px;
}

.info-card strong {
  display: block;
  font-size: 1.1rem;
}

/* =========================
   DOWNLOAD GERAL
========================= */
.download-section {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.download-all-container {
  text-align: center;
  margin: 0;
}

.download-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 260px;
  padding: 16px 32px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.download-all-btn:hover {
  color: var(--text);
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.download-all-btn i {
  transition: transform 0.3s ease;
}

.download-all-btn:hover i {
  transform: translateY(2px);
}

/* =========================
   MODO SELEÇÃO
========================= */
.selection-toolbar {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 40px));
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

body.selection-open .gallery {
  margin-top: 90px;
}

.selection-toolbar.active {
  display: flex;
}

body.dark-mode .selection-toolbar {
  background: rgba(20, 20, 20, 0.75);
  border-color: #3b3b3b;
}

.selection-counter {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.selection-counter span {
  font-size: 1.3rem;
  font-weight: 700;
}

.selection-counter small {
  opacity: 0.65;
}

.selection-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selection-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.selection-actions button:hover {
  transform: translateY(-2px);
  background: var(--bg-soft);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body.dark-mode .selection-actions button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f2f2;
}

body.dark-mode .selection-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.download-btn {
  .download-btn {
    background: linear-gradient(135deg, var(--accent), #5b8cff);
    color: #fff;
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.25);
  }
}

.download-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-soft);
}

#cancelSelectionBtn:hover {
  border-color: #ff5d5d;
  color: #ff7a7a;
  background: rgba(255, 70, 70, 0.08);
}

#selectAllBtn:hover {
  border-color: #55b8ff;
  color: #7fd0ff;
  background: rgba(0, 140, 255, 0.08);
}

#clearSelectionBtn:hover {
  border-color: #d89d00;
  color: #d79d00;
  background: rgba(255, 193, 7, 0.2);
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.selection-info i {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
}

.selection-info strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.selection-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================
   CÍRCULO DE SELEÇÃO
========================= */
.gallery-item,
.video-item {
  position: relative;
}

.select-circle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.select-circle i {
  opacity: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

body.selection-mode .select-circle {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

body.selection-mode .gallery-item:hover .select-circle {
  transform: scale(1.15);
}

/* =========================
   ITEM SELECIONADO
========================= */

.gallery-item.selected,
.video-item.selected {
  box-shadow:
    0 0 0 3px var(--accent),
    0 10px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item.selected .select-circle,
.video-item.selected .select-circle {
  background: var(--accent);
  color: white;
}

.gallery-item.selected .select-circle i,
.video-item.selected .select-circle i {
  opacity: 1;
}

.gallery-item.selected img,
.video-item.selected video {
  filter: brightness(0.8);
}

.gallery-item.selected::after,
.video-item.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  border-radius: inherit;
}

.gallery-item.selected {
  transform: scale(0.96);
}

.video-item.selected {
  transform: scale(0.96);
}

body.selection-mode .gallery-item:hover,
body.selection-mode .video-item:hover {
  transform: translateY(-4px);
  cursor: pointer;
}

body.selection-mode .gallery-item,
body.selection-mode .video-item {
  cursor: pointer;
}

/* =========================
   ESTADO VAZIO DOS VÍDEOS
========================= */

.video-empty-state {
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 40px;
  text-align: center;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  background: var(--card-bg);
}

body.dark-mode .video-empty-state {
  border-color: rgba(255, 255, 255, 0.12);
}

.video-empty-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .video-empty-icon {
  background: rgba(255, 255, 255, 0.08);
}

.video-empty-icon i {
  font-size: 2.3rem;
}

.video-empty-state h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

.video-empty-state p {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.video-empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

body.dark-mode .video-empty-badge {
  background: rgba(255, 255, 255, 0.08);
}

.video-empty-badge i {
  font-size: 1.1rem;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {
  .client-hero {
    padding: 100px 0 30px;
  }

  .breadcrumb-custom {
    margin-bottom: 25px;
    font-size: 0.85rem;
  }

  .project-category {
    font-size: 0.75rem;
    padding: 8px 16px;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    margin-bottom: 35px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .gallery-section {
    padding: 70px 0;
    border-radius: 25px;
  }

  .gallery {
    column-count: 2;
  }

  .video-section {
    padding: 70px 0;
  }

  .video-item video {
    height: 220px;
  }

  .cta-client {
    padding: 80px 0;
  }

  .cta-client h2 {
    font-size: 2rem;
  }

  .next-project {
    padding: 80px 0;
  }

  .next-project-header h2 {
    font-size: 2rem;
  }

  .next-card img {
    height: 220px;
  }

  .next-card-content {
    padding: 25px;
  }

  .next-card-content h3 {
    font-size: 1.6rem;
  }

  #lightbox-video {
    width: 95vw;
  }

  .download-all-btn {
    width: 90%;
    max-width: 400px;
  }

  .selection-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  body.selection-open .gallery {
    margin-top: 120px;
  }

  .selection-actions {
    width: 100%;
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 2px;
  }

  .selection-actions button {
    flex: 1;
  }

  .next-card-empty {
    padding: 60px 25px;
  }

  .next-card-empty h3 {
    font-size: 1.7rem;
  }

  .next-empty-icon {
    width: 75px;
    height: 75px;
  }

  .next-empty-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .gallery {
    column-count: 2;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .featured-image {
    height: 320px;
    border-radius: 20px;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }

  .info-card {
    padding: 20px 15px;
  }

  .info-card i {
    font-size: 1.5rem;
  }

  .video-item video {
    height: 180px;
  }

  /* LIGHTBOX */

  .lightbox,
  .video-lightbox {
    padding-top: 70px;
    padding-bottom: 140px;
  }

  .lightbox img {
    max-width: 92vw;
    max-height: 58vh;
    border-radius: 18px;
  }

  #lightbox-video {
    width: 92vw;
    max-height: 58vh;
  }

  /* BAIXAR E COMPARTILHAR */

  .lightbox-actions {
    width: 100%;
    padding: 0 15px;
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }

  .lightbox-actions .btn {
    flex: 1;
    min-width: auto;
    border-radius: 50px;
    height: 50px;
    font-size: 0.95rem;
  }

  /* BOTÕES NEXT E PREV */

  #prevPhoto,
  #nextPhoto,
  #prevVideo,
  #nextVideo {
    top: auto;
    bottom: 75px;
    transform: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  #prevPhoto,
  #prevVideo {
    left: calc(50% - 60px);
  }

  #nextPhoto,
  #nextVideo {
    right: calc(50% - 60px);
  }

  .download-all-btn {
    width: auto;
    min-width: 220px;
    max-width: 280px;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 0.95rem;
    margin: 0 auto;
  }

  .download-all-container {
    display: flex;
    justify-content: center;
  }
}
