/* Project cards (used on home + project pages) */

.project-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;

  max-width: 1200px;
  margin: 0 auto 1.25rem;
  padding: 1.25rem;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(47, 187, 170, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

/* Project text */
.project-info {
  flex: 1;
}

.project-info h1,
.project-info h2 {
  margin-bottom: 0.75rem;
}

.project-info p {
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

/* Hover text effects */
.project-card h2,
.project-card h3,
.project-card p,
.project-card a {
  transition: color 0.25s ease;
}

.project-card:hover h2,
.project-card:hover h3,
.project-card:hover a {
  color: var(--H2H3P-Colour);
}

.project-card:hover p {
  color: rgba(38, 42, 46, 0.8);
}

/* Carousel container */
.carousel {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Image strip */
.carousel-images {
  display: flex;
  overflow: hidden;
  border-radius: 10px;
}

/* Individual slide */
.carousel-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 400px;
  background-color: #000;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Carousel controls (used on project page) */
.carousel-control {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(47, 187, 170, 0.4);
  background: transparent;
  color: var(--color-text);
  transition: background 0.2s ease, transform 0.1s ease;
}

.carousel-control:hover {
  background: rgba(47, 187, 170, 0.15);
  transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin: 0 0 1rem;
    max-width: 100%;
  }

  .carousel {
    order: -1;
    /* images first on mobile */
    max-width: 100%;
  }

  .carousel-item {
    height: 240px;
  }
}