/* =========================================
   Project Page Design System
   ========================================= */

/* Override any scroll-lock behavior */
body {
  overflow-y: auto !important;
  overflow-x: hidden;
}

/* --- Navigation --- */
.project-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 2rem;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.project-nav.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.is-flex {
  display: flex;
}

.is-between {
  justify-content: space-between;
  align-items: center;
}

.nav-back,
.nav-logo img {
  opacity: 0.8;
  transition: all 0.2s ease;
}

.nav-back {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.nav-back:hover,
.nav-logo:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-logo img {
  height: 32px;
  width: auto;
}

/* --- Hero Section --- */
.project-header {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  padding-top: 100px;
  /* Increased to give brand logo more room */
}

.project-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 1) 0%, rgba(5, 5, 5, 1) 100%);
  overflow: hidden;
  /* Prevent background orbs from causing horizontal scroll */
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.project-brand-logo {
  height: 120px;
  width: auto;
  margin-bottom: 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.project-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.project-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* --- Metadata Section --- */
.project-meta {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}

/* --- Story Section --- */
.project-story {
  padding: 6rem 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.project-story p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-orange, #fc8626);
  font-weight: bold;
}

/* --- Gallery --- */
.project-gallery-section {
  padding: 4rem 0 8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  min-width: 0;
  /* Prevent grid items from stretching the parent */
  max-width: 100%;
  overflow: hidden;
  /* Safety clipping */
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  transition: transform 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.span-2 {
  grid-column: span 2;
}

.gallery-item.is-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 2rem;
}

.gallery-item.is-portrait img {
  max-height: 600px;
  width: auto;
  max-width: 100%;
  /* Ensure responsive behavior */
  object-fit: contain;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.caption {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* --- Footer --- */
.footer-simple {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .project-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .span-2 {
    grid-column: span 1;
  }

  .project-header {
    min-height: 70vh;
  }
}

/* --- Awards --- */
.awards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.award-badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 280px;
  backdrop-filter: blur(10px);
}

.award-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-orange, #fc8626);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.award-badge .award-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.award-badge .award-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.award-badge .award-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.award-badge .award-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}