/* Project Lightbox - Premium Detail View */
:root {
  --purple-glow: #a855f7;
  --cyan-glow: #06b6d4;
  --dark-glass: rgba(10, 10, 20, 0.8);
  --white-glass: rgba(255, 255, 255, 0.1);
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #050510;
  box-shadow: 
    0 0 40px rgba(168, 85, 247, 0.4),
    0 0 60px rgba(6, 182, 212, 0.3);
  display: flex;
  flex-direction: column;
}

.lightbox-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-bottom: 2px solid var(--white-glass);
}

.lightbox-footer {
  padding: 25px 35px;
  background: var(--dark-glass);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.lightbox-info h3 {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 5px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.lightbox-info p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
}

.go-live-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 8px 15px rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.go-live-purple:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(124, 58, 237, 0.4);
  color: white;
}

/* UI Controls */
.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: var(--white-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10000;
}

.nav-arrow.left { left: -80px; }
.nav-arrow.right { right: -80px; }

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

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

/* Body Lock */
body.lightbox-open {
  overflow: hidden !important;
  padding-right: 0; /* Prevent layout shift if possible */
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .nav-arrow.left { left: 10px; }
  .nav-arrow.right { right: 10px; }
  .lightbox-close { top: 20px; right: 20px; }
}

@media (max-width: 768px) {
  .lightbox-content { width: 95%; }
  .lightbox-footer { 
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  .lightbox-info h3 { font-size: 1.4rem; }
  .nav-arrow { width: 45px; height: 45px; }
}
