/* ---- Horizontal slide system ---- */

html, body {
  overflow: hidden;
  height: 100%;
}

.slides-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ---- Thumbnail nav bar (desktop only) ---- */

.thumb-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.thumb-item {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 2px solid #000;
  border-radius: 12px;
  background: #f7f2eb;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  opacity: 0.4;
  box-shadow: 3px 3px 0 0 #000;
  transition: opacity 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.thumb-item.active {
  opacity: 1;
}

.thumb-item:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 3px 5px 0 0 #000;
}

.thumb-item:active {
  transform: translateY(1px);
  box-shadow: 3px 2px 0 0 #000;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-item--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .thumb-bar { display: none; }
}

/* Desktop: shrink slides container to clear the thumb bar */
@media (min-width: 769px) {
  .slides-container {
    height: calc(100% - 80px);
  }
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* ---- Hero slide ---- */

.slide--hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right-edge navigation arrow */
.hero-nav-right {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-nav-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #333;
}

.hero-chevron-wrap {
  animation: bounce-right 2s infinite;
}

.hero-chevron-icon {
  width: 56px;
  height: 56px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 0 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.hero-nav-right:hover .hero-chevron-icon {
  transform: translateY(-2px);
  box-shadow: 8px 10px 0 0 #000;
}

.hero-nav-right:active .hero-chevron-icon {
  transform: translateY(2px);
  box-shadow: 8px 6px 0 0 #000;
}

@keyframes bounce-right {
  0%, 100% { transform: translateX(0); }
  40%       { transform: translateX(10px); }
  60%       { transform: translateX(5px); }
}

/* ---- Project slides ---- */

.slide--project {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 2rem 2rem; /* clear the fixed header */
}

/* Image row: [prev chevron] [media] [next chevron] */
.proj-image-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

.proj-chevron {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 0 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.proj-chevron:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 8px 10px 0 0 #000;
}

.proj-chevron:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 8px 6px 0 0 #000;
}

.proj-chevron:disabled {
  opacity: 0.25;
  cursor: default;
  box-shadow: 8px 8px 0 0 #000;
}

/* Down chevron: mobile-only, absolutely positioned at slide bottom */
.proj-chevron--down {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Hero image / video */
.proj-media-box {
  flex: 1;
  aspect-ratio: 16 / 9;
  border: 2px solid #000;
  box-shadow: 8px 8px 0 0 #000;
  background: #d8d8d8;
  overflow: hidden;
}

.proj-media-box img,
.proj-media-box video,
.proj-media-box iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* Info area — padded to align with image (chevron 48px + gap 20px = 68px each side) */
.proj-info {
  width: 100%;
  max-width: 1100px;
  padding: 1.25rem 68px 0;
}

/* Title + tags on same row */
.proj-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.proj-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.1;
  text-transform: lowercase;
}

.proj-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.proj-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 9999px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid #000;
}

/* Positional tag colors */
.proj-tags .proj-tag:nth-child(1) { background: #9FC5F8; }
.proj-tags .proj-tag:nth-child(2) { background: #FFE599; }
.proj-tags .proj-tag:nth-child(3) { background: #B5EAD7; }

.proj-blurb {
  font-family: 'PT Serif', serif;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.proj-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.proj-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 2px solid #000;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  box-shadow: 8px 8px 0 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.proj-btn:hover {
  transform: translateY(-2px);
  box-shadow: 8px 10px 0 0 #000;
}

.proj-btn:active {
  transform: translateY(2px);
  box-shadow: 8px 6px 0 0 #000;
}

.proj-btn--play     { background: #F89FA0; }
.proj-btn--download { background: #9FC5F8; }

/* ---- End card ---- */

.slide--end {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  justify-items: center;
}

.end-prev {
  justify-self: center;
}

.end-content {
  text-align: center;
  max-width: 560px;
  padding: 2rem;
}

.end-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #111;
}

.end-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 2px solid #000;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  box-shadow: 8px 8px 0 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 8px 10px 0 0 #000;
}

.social-btn:active {
  transform: translateY(2px);
  box-shadow: 8px 6px 0 0 #000;
}

.social-btn--linkedin { background: #9FC5F8; }
.social-btn--email    { background: #F89FA0; }
.social-btn--x        { background: #FFE599; }

/* ---- Desktop scaling: reduce by ~10% so layout matches 90% browser zoom ---- */

@media (min-width: 769px) {
  /* Header */
  header { padding: 16px 0; }
  .logo-img  { width: 36px; height: 36px; }
  .logo-text { font-size: 1.35rem; }

  /* Hero slide */
  h1 { font-size: 2.7rem; }
  .bio { font-size: 1.05rem; }
  .avatar-container { width: 130px; height: 130px; }
  .hero-nav-right { right: 3.5rem; }
  .hero-chevron-icon { width: 50px; height: 50px; }

  /* Project slides */
  .slide--project { padding: 4.5rem 1.75rem 1.75rem; }
  .proj-image-row { max-width: 990px; gap: 18px; }
  .proj-chevron { width: 43px; height: 43px; }
  .proj-info { max-width: 990px; padding: 1rem 61px 0; }
  .proj-title-row { gap: 14px; margin-bottom: 0.75rem; }
  .proj-title { font-size: 2.2rem; }
  .proj-blurb { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
  .proj-btn { font-size: 0.9rem; padding: 9px 20px; }

  /* End card */
  .end-text { font-size: 1.4rem; }
  .social-btn { padding: 10px 20px; font-size: 0.9rem; }
}

/* ---- Mobile: vertical scroll layout ---- */

@media (max-width: 768px) {
  /* Long scrollable column */
  .slides-container {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .slides-track {
    flex-direction: column;
  }

  /* Slides: tall pages */
  .slide {
    width: 100%;
    flex: none;
    height: auto;
    min-height: 100dvh;
    overflow-y: visible;
    overflow-x: hidden;
  }

  /* Hero stays exactly one screen */
  .slide--hero {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  /* Project slide: column, no horizontal outer padding */
  .slide--project {
    padding: 1.5rem 0 5rem;
    justify-content: flex-start;
    align-items: stretch;
  }

  /* Image row: indented so shadow has room */
  .proj-image-row {
    display: block;
    width: auto;
    max-width: none;
    gap: 0;
    margin: 0 1.25rem;
  }

  .proj-media-box {
    width: 100%;
    box-shadow: 8px 8px 0 0 #000;
  }

  /* Hide horizontal chevrons */
  .proj-chevron--prev,
  .proj-chevron--next {
    display: none;
  }

  /* Show down chevron at bottom of slide */
  .proj-chevron--down {
    display: flex;
    bottom: 1.25rem;
  }

  .proj-info {
    padding: 1.25rem 1.25rem 0;
  }

  .proj-title {
    font-size: 2rem;
  }

  .proj-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .proj-actions {
    justify-content: flex-end;
  }

  /* Hero button: bottom-center, label above chevron */
  .hero-nav-right {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 2rem;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 1rem;
  }

  .hero-chevron-wrap {
    animation: bounce-down 2s infinite;
  }

  @keyframes bounce-down {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    40%       { transform: rotate(90deg) translateX(10px); }
    60%       { transform: rotate(90deg) translateX(5px); }
  }

  /* End card: flex column, centered */
  .slide--end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    min-height: 100dvh;
    padding: 2rem;
    overflow: hidden;
  }

  .end-prev {
    display: none;
  }

  .end-content {
    text-align: center;
    max-width: 100%;
    padding: 0;
  }

  .end-text {
    font-size: 1.25rem;
  }

  .end-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .proj-title  { font-size: 1.75rem; }
  .proj-tag    { font-size: 0.85rem; padding: 4px 12px; }
  .proj-blurb  { font-size: 0.95rem; }
  .proj-btn    { font-size: 0.9rem; padding: 8px 18px; }
  .end-text    { font-size: 1.1rem; }
  .social-btn  { padding: 10px 18px; font-size: 0.9rem; }
}
