/* ═══ DECK INTRO ANIMATION ═══ */
.deck-intro {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--navy-dark, #0a1628);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
}

.deck-title {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
}

.deck-stack {
  position: relative;
  width: 280px;
  height: 380px;
  perspective: 1200px;
  margin-top: 40px;
}

.deck-card {
  position: absolute;
  width: 280px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  backface-visibility: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deck-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  pointer-events: none;
}

.deck-intro.done {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, height 0s 0.6s;
}

@media (max-width: 768px) {
  .deck-stack { width: 220px; height: 300px; }
  .deck-card { width: 220px; height: 300px; }
}

@media (max-width: 480px) {
  .deck-stack { width: 180px; height: 250px; }
  .deck-card { width: 180px; height: 250px; }
}

/* ═══ GALLERY ═══ */
.gallery-section { background: var(--white); }

.gallery-filters {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter-btn {
  background: var(--sky-pale);
  border: 1px solid var(--border-sky);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--sky-blue);
  color: var(--white);
  border-color: var(--sky-blue);
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.4s;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(43,168,224,0.15);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,20,40,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item .placeholder-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-family: 'IBM Plex Mono', 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s;
}

.gallery-item:hover .placeholder-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ LIGHTBOX ═══ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  color: var(--navy);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox-close:hover { background: var(--sky-blue); color: var(--white); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--navy);
  transition: all 0.3s;
}

.lightbox-nav:hover { background: var(--sky-blue); color: var(--white); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
