/* ── PROJECTS PAGE ── */
body {
  overflow: hidden; /* no page scroll — carousel only */
  height: 100vh;
}

.projects-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
}

/* ── CAROUSEL CONTAINER ── */
.carousel-container {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.carousel-container.is-dragging {
  cursor: grabbing;
}

/* ── TRACK ── */
.carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  /* JS sets transform: translateX() to move between slides */
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-track.no-transition {
  transition: none;
}

/* ── SLIDES ── */
.carousel-slide {
  flex-shrink: 0;
  width: 42vw;
  max-width: 620px;
  opacity: 0.4;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* image wrapper */
.slide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

/* year badge */
.slide-year {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* title + category row */
.slide-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
}

.slide-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  color: var(--color-text);
}

.slide-category {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #888;
}

/* ── BOTTOM CONTROLS ── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 48px 0;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.carousel-btn svg {
  width: 14px;
  height: 14px;
}
.carousel-btn:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
