/* Project Detail Page Styles */

body {
  background: var(--smoky-black);
  color: var(--white-2);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Navigation Styles */
.navbar {
  background: var(--onyx);
  border-radius: 12px;
  padding: 15px 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-2);
  position: sticky;
  top: 20px;
  z-index: 100;
}

.navbar-link {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-1);
  padding: 8px 12px;
  border-radius: 8px;
}

.navbar-link:hover {
  color: var(--white-2);
  background: var(--eerie-black-2);
}

/* Project Detail Styles */
.project-detail {
  background: var(--onyx);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-2);
  position: relative;
}

.project-detail::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.article-title {
  color: var(--white-2);
  font-size: var(--fs-2);
  font-weight: var(--fw-600);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.project-info {
  display: grid;
  gap: 30px;
}

/* Project Meta */
.project-meta {
  background: var(--eerie-black-2);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--orange-yellow-crayola);
}

.project-meta p {
  margin-bottom: 10px;
  font-size: var(--fs-6);
  line-height: 1.6;
}

.project-meta strong {
  color: var(--orange-yellow-crayola);
  font-weight: var(--fw-600);
}

.project-meta a {
  color: var(--vegas-gold);
  text-decoration: none;
  word-break: break-all;
}

.project-meta a:hover {
  color: var(--orange-yellow-crayola);
}

/* Content Sections */
.project-overview,
.project-features,
.project-tech-stack,
.project-results,
.project-future {
  background: var(--eerie-black-2);
  padding: 25px;
  border-radius: 12px;
  position: relative;
}

.project-overview::before,
.project-features::before,
.project-tech-stack::before,
.project-results::before,
.project-future::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.project-overview h3,
.project-features h3,
.project-tech-stack h3,
.project-results h3,
.project-future h3 {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--orange-yellow-crayola);
  padding-bottom: 8px;
}

.project-overview p,
.project-results p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.8;
}

/* Feature Lists */
.project-features ul,
.project-future ul {
  list-style: none;
  padding: 0;
}

.project-features li,
.project-future li {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.project-features li::before,
.project-future li::before {
  content: "▶";
  color: var(--orange-yellow-crayola);
  font-size: 12px;
  position: absolute;
  left: 0;
  top: 2px;
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tech-item {
  background: var(--jet);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--onyx);
  position: relative;
}

.tech-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.tech-item h4 {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 8px;
}

.tech-item p {
  color: var(--light-gray);
  font-size: var(--fs-7);
  line-height: 1.5;
}

/* Project Images */
.project-image {
  width: 100%;
  max-width: 800px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: 20px auto;
  display: block;
  box-shadow: var(--shadow-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  transition: var(--transition-1);
  cursor: pointer;
}

.gallery-image:hover {
  transform: scale(1.02);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.8), 
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white-2);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--orange-yellow-crayola);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-2);
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--orange-yellow-crayola);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white-2);
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  z-index: 10000;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding: 15px;
  }
  
  .project-detail {
    padding: 20px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 10px;
    padding: 6px 12px;
    font-size: var(--fs-8);
  }
  
  .article-title {
    font-size: var(--fs-3);
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 12px 20px;
    position: static;
    margin-bottom: 20px;
  }
  
  .navbar-link {
    font-size: var(--fs-7);
    padding: 6px 10px;
  }
  
  .project-image {
    height: 250px;
  }
  
  .project-meta,
  .project-overview,
  .project-features,
  .project-tech-stack,
  .project-results,
  .project-future {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 10px;
  }
  
  .project-detail {
    padding: 15px;
    border-radius: 12px;
  }
  
  .lightbox-close {
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    font-size: 25px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
    font-size: 25px;
  }
  
  .lightbox-prev {
    left: 5px;
  }
  
  .lightbox-next {
    right: 5px;
  }
  
  .lightbox-counter {
    bottom: 5px;
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .article-title {
    font-size: var(--fs-4);
    margin-bottom: 20px;
  }
  
  .navbar {
    padding: 10px 15px;
  }
  
  .navbar-link {
    font-size: var(--fs-8);
  }
  
  .project-image {
    height: 200px;
    margin: 15px auto;
  }
  
  .project-info {
    gap: 20px;
  }
  
  .project-meta,
  .project-overview,
  .project-features,
  .project-tech-stack,
  .project-results,
  .project-future {
    padding: 15px;
  }
}