/* Project Detail Page Styles */

.project-detail-page {
  background: #0A0A0A;
}

/* Project Hero Section */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.6);
  transform: scale(1);
  transition: transform 10s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-hero:hover .project-hero-bg {
  transform: scale(1.05);
}

.project-hero-overlay {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 60px;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #D9D9D9;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-bottom: 32px;
  transition: all 300ms ease;
  text-transform: uppercase;
}

.back-link:hover {
  color: #FFFFFF;
  transform: translateX(-4px);
}

.back-link svg {
  width: 20px;
  height: 20px;
}

.project-hero-content {
  animation: fadeInUp 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-category {
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(217, 217, 217, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 24px 0;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #D9D9D9;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.meta-item svg {
  opacity: 0.7;
}

/* Project Details Section */
.project-details {
  padding: 80px 0;
  background: #0A0A0A;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .project-info-grid {
    grid-template-columns: 2fr 1fr;
    gap: 64px;
  }
}

.project-description h2 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 24px 0;
  letter-spacing: 0.05em;
}

.project-description p {
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(217, 217, 217, 0.9);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.project-specs {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(35, 35, 35, 0.4));
  padding: 32px;
  border: 1px solid rgba(217, 217, 217, 0.1);
  border-radius: 4px;
}

.project-specs h3 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 24px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(217, 217, 217, 0.1);
}

.specs-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(217, 217, 217, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-value {
  font-family: 'Titillium Web', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

/* Project Gallery Section */
.project-gallery {
  padding: 80px 0 120px;
  background: #000000;
}

.gallery-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 48px 0;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  background: #1A1A1A;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 400ms ease;
}

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

/* Project Navigation */
.project-navigation {
  padding: 60px 0;
  background: #0A0A0A;
  border-top: 1px solid rgba(217, 217, 217, 0.1);
}

.nav-projects {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-projects {
    grid-template-columns: 1fr;
  }
}

.nav-project {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(35, 35, 35, 0.4));
  border: 1px solid rgba(217, 217, 217, 0.1);
  color: #D9D9D9;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 4px;
}

.nav-project:hover {
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.8), rgba(26, 26, 26, 0.6));
  border-color: rgba(217, 217, 217, 0.3);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.nav-project svg {
  width: 20px;
  height: 20px;
}

.prev-project {
  justify-self: start;
}

.all-projects {
  justify-self: center;
}

.next-project {
  justify-self: end;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: lightboxZoomIn 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

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

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 48px;
  cursor: pointer;
  padding: 8px 16px;
  line-height: 1;
  transition: all 300ms ease;
  z-index: 10001;
}

.lightbox-close:hover {
  color: #D9D9D9;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(217, 217, 217, 0.1);
  border: 1px solid rgba(217, 217, 217, 0.2);
  color: #FFFFFF;
  font-size: 32px;
  cursor: pointer;
  padding: 16px 20px;
  transition: all 300ms ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(217, 217, 217, 0.2);
  border-color: rgba(217, 217, 217, 0.4);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFFFFF;
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 24px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

/* Footer Styles for Project Pages */
.main-footer {
  background: #000000;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(217, 217, 217, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 5000px;
  height: auto;
}

.footer-tagline {
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(217, 217, 217, 0.7);
  letter-spacing: 0.05em;
  line-height: 1.6;
  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #D9D9D9;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 217, 217, 0.1);
}

.footer-bottom p {
  font-family: 'Titillium Web', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(217, 217, 217, 0.5);
  letter-spacing: 0.05em;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-hero {
    height: 60vh;
    min-height: 400px;
  }

  .project-hero-overlay {
    padding: 60px 0 40px;
  }

  .project-details {
    padding: 60px 0;
  }

  .project-gallery {
    padding: 60px 0 80px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 12px 16px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 12px;
  }

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