/* Project Detail Page Styles */

body {
  background-color: #fff;
}

/* Header Always Visible */
.header {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Project Hero */
.project-hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 40px 60px;
  background: #f7f7f5;
  position: relative;
}

.project-hero-content {
  max-width: 1000px;
  text-align: center;
}

.project-hero-category {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #f05a22;
  margin-bottom: 1.5rem;
  display: inline-block;
  font-weight: 600;
}

.project-hero-title {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  color: #000;
}

.project-hero-subtitle {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  max-width: 800px;
  margin: 0 auto;
}

/* Project Details */
.project-details {
  padding: 80px 40px;
  background: #f7f7f5;
}

.project-details-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.project-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-detail-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f05a22;
  font-weight: 600;
}

.project-detail-value {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #222;
}

/* Project Overview */
.project-overview {
  padding: 100px 40px;
  background: #fff;
}

.project-overview-content {
  max-width: 1200px;
  margin: 0 auto;
}

.project-section-title {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 2rem 0;
  color: #000;
}

.project-overview-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-overview-text p {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* Project Gallery */
.project-gallery {
  padding: 0 40px 100px;
  background: #fff;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-gallery-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-gallery-full {
  grid-column: span 2;
}

.project-gallery-half {
  grid-column: span 1;
}

.project-gallery-third {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .project-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .project-gallery-full {
    grid-column: span 3;
  }

  .project-gallery-half {
    grid-column: span 2;
  }

  .project-gallery-third {
    grid-column: span 1;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-nav::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.lightbox-nav.prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.lightbox-nav.next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* Media Embeds */
.project-media-embed {
  background: #000;
  cursor: default;
}

.project-media-embed:hover {
  transform: none;
  box-shadow: none;
}

.project-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.project-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
  overflow: hidden;
  background: #f5f5f5;
}

.project-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Project Results */
.project-results {
  padding: 100px 40px;
  background: #f7f7f5;
}

.project-results-content {
  max-width: 1200px;
  margin: 0 auto;
}

.project-results-text {
  margin-bottom: 4rem;
}

.project-results-text p {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

.project-results-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.project-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-metric-value {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.project-metric-label {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Next Project */
.project-next {
  padding: 80px 40px;
  background: #fff;
  position: relative;
  border-top: 1px solid #e0e0e0;
}

.project-next-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.project-next-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #f05a22;
  margin-bottom: 2rem;
  display: inline-block;
  font-weight: 600;
}

.project-next-link {
  text-decoration: none;
  display: block;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-next-link:hover .project-next-title {
  color: #f05a22;
}

.project-next-title {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #000;
}

.project-next-category {
  font-family: 'Strawford', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  color: rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .project-hero {
    padding: 120px 24px 60px;
    min-height: 40vh;
  }

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

  .project-overview {
    padding: 80px 24px;
  }

  .project-results {
    padding: 80px 24px;
  }

  .project-next {
    padding: 60px 24px;
  }
}
