/* -------------------- Global -------------------- */
body {
  background-color: #02030f; 
  color: white; 
  font-family: sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevent scroll during slide */
}

/* Page wrapper for transitions */
#page-wrapper {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Slide animations */
.page-exit-left #page-wrapper { transform: translateX(-100%); opacity: 0; }
.page-exit-right #page-wrapper { transform: translateX(100%); opacity: 0; }

/* -------------------- Hero Section -------------------- */
.project-hero {
  background: #02030f url('/images/Colloseum.png') no-repeat center center;
  background-size: contain;
  color: white;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-hero .container {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 12px;
}

.project-hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.project-hero p { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* -------------------- Back Button -------------------- */
.btn-back {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.7rem 1.2rem;
  background: #f05a28;
  color: #f6f6f6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
.btn-back:hover { background: #d04a1e; transform: translateY(-2px); }

/* -------------------- Project Details -------------------- */
.project-details { padding: 4rem 1rem; text-align: center; }
.project-details h2, .project-details h3 { margin-bottom: 1rem; }
.project-details p, .project-details ul {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  text-align: left;
}
.project-details ul { list-style: disc; padding-left: 1.5rem; }

/* -------------------- Project Images -------------------- */
.project-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.project-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 12px;
}
.project-images img:hover {
  transform: scale(1.01);
  transition: transform 0.2s ease;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 768px) {
  .project-hero h1 { font-size: 2rem; }
  .project-hero p { font-size: 1rem; }
  .project-images img { max-width: 90%; }
}
@media (max-width: 480px) {
  .project-hero h1 { font-size: 1.6rem; }
  .project-hero p { font-size: 0.85rem; }
  .project-images img { max-width: 100%; }
}
