/* =============================
   PROJECT PAGE BASE STYLES
   ============================= */

/* Full-width hero with static background image */
.project-hero {
  height: 50vh;
  background: url('/assets/images/rocket.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.project-hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
}

.project-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.project-hero-content p {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* Main content */
.project-content {
  background: white;
  padding: 70px 8% 100px;
  color: #222;
}

/* Optional alternating background */
.project-content.alt {
  background: #f5f7fa;
}

.project-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center; /* center headings + images as a block */
}

.project-inner h2 {
  font-size: 1.8rem;
  color: #0c3d52;
  margin-bottom: 15px;
}

/* Text left-aligned for readability */
.project-inner p,
.project-inner li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  text-align: left;
}

.project-inner ul {
  margin: 15px auto 40px;
  padding-left: 1.2rem;
}

/* IMAGES: static, centered */
.project-image-large,
.project-image-small {
  display: block;
  margin: 40px auto;
  border-radius: 8px;
}

.project-image-large {
  max-width: 100%;
}

.project-image-small {
  max-width: 70%;
}

/* Placeholder box if needed */
.placeholder-image {
  width: 100%;
  height: 280px;
  background: #e8eef2;
  border: 2px dashed #8aa0ac;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4c5c63;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 40px;
}

/* ============================
   SLIDE-IN TEXT ANIMATIONS
   ============================ */

/* Ensures sliding content doesn't spill visibly out of section */
.slide-section {
  overflow: hidden;
}

/* base slide-in style (from left) */
.slide-in {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* modifier: slide in from right */
.slide-in.right {
  transform: translateX(40px);
}

/* when in view */
.slide-in.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 700px) {
  .project-hero {
    height: 40vh;
  }

  .project-hero-content h1 {
    font-size: 2.3rem;
  }

  .project-image-small {
    max-width: 100%;
  }

  /* on mobile, just slide from bottom a bit for simplicity */
  .slide-in,
  .slide-in.right {
    transform: translateY(30px);
  }
}
