/* ===================================
   PORTFOLIO LIGHTBOX - Full Screen Image
   =================================== */

.portfolio-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 13, 24, 0.98);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.portfolio-lightbox.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Close Button */
.lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10002;
}

.lightbox-close:hover {
  background: rgba(255, 76, 76, 0.8);
  border-color: #ff4c4c;
  transform: rotate(90deg) scale(1.1);
}

/* Navigation Buttons */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10002;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 420px; /* Account for sidebar width */
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 212, 255, 0.8);
  border-color: #00D4FF;
  transform: translateY(-50%) scale(1.1);
}

/* Content Container - Split Layout */
.lightbox-content {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Full Screen Image - Left Side */
.lightbox-image-container {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  width: auto;
  height: auto;
}

/* Info Sidebar - Right Side */
.lightbox-info {
  width: 400px;
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 212, 255, 0.2);
  padding: 40px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 10001;
}

/* Custom Scrollbar for Sidebar */
.lightbox-info::-webkit-scrollbar {
  width: 6px;
}

.lightbox-info::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-info::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 3px;
}

.lightbox-info::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

.lightbox-category {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 25px;
  font-size: 0.85rem;
  color: #00D4FF;
  width: fit-content;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lightbox-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  font-family: var(--font-heading);
  margin: 0;
}

.lightbox-info p {
  color: #B0BEC5;
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

.lightbox-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lightbox-tags .tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  font-size: 0.85rem;
  color: #B0BEC5;
  transition: all 0.3s ease;
}

.lightbox-tags .tag:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: #00D4FF;
}

.lightbox-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #0066CC, #00D4FF);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
  margin-top: auto;
}

.lightbox-visit-btn:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
  transform: translateY(-2px);
  gap: 15px;
}

/* Counter */
.lightbox-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.4);
  padding: 12px 30px;
  border-radius: 25px;
  color: #00D4FF;
  font-weight: 600;
  font-size: 1rem;
  z-index: 10002;
  backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 1024px) {
  .lightbox-content {
    flex-direction: column;
  }

  .lightbox-image-container {
    height: 60vh;
  }

  .lightbox-info {
    width: 100%;
    height: 40vh;
    border-left: none;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
  }

  .lightbox-next {
    right: 30px;
  }
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-image-container {
    height: 50vh;
  }

  .lightbox-info {
    height: 50vh;
    padding: 25px 20px;
  }

  .lightbox-info h2 {
    font-size: 1.5rem;
  }

  .lightbox-counter {
    bottom: 20px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Cursor Change on Portfolio Items */
.portfolio-item {
  cursor: pointer;
}

.portfolio-item:hover {
  cursor: zoom-in;
}

/* Loading State */
.lightbox-image {
  animation: fadeIn 0.3s ease;
}
