/* ───────────────────────────────────────────────
   BLOMWE — Portfolio styles (2025-06-02, full update)
   • Filters + spacing
   • Grid with titles and title‐hover color
   • Overlay locking body scroll
   • Overlay’s thin, dark scrollbar flush right
   • Category pill styling
   • Gallery styling
   • Full‐size image overlay styling
   • Clickable overlay‐thumb cursor style
   ─────────────────────────────────────────────── */

/* ==== VARIABLES ==== */
:root {
  --black:   #080103;
  --white:   #ffffff;
  --main:    #FC016B;
  --accent1: #C1FF17;
  --accent2: #177CFF;
}

/* ==== FILTER BAR ==== */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 32px auto 32px auto; /* 32px margin-top and bottom */
}
.filter-btn {
  padding: 16px 64px;
  border: 3px solid var(--white);
  background: transparent;
  color: var(--white);
  font: 24px 'Bebas Kai','Bebas Neue',sans-serif;
  cursor: pointer;
  transition: .25s;
}
.filter-btn:hover {
  border-color: var(--accent1);
  color: var(--accent1);
}
.filter-btn.active {
  background: var(--accent1);
  color: var(--black);
  border-color: var(--accent1);
}

/* ==== GRID ==== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px; /* spacing below grid */
}
@media (max-width: 1199px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
.portfolio-item {
  opacity: .8;
  cursor: pointer;
  transition: .3s;
  text-align: center; /* center thumbnail + title */
}
.portfolio-item:hover {
  opacity: 1;
}
/* Change the title color to accent1 on hover */
.portfolio-item:hover h3.item-title {
  color: var(--accent1);
}
.portfolio-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
/* Title under each thumbnail as <h3> */
.portfolio-item h3.item-title {
  margin-top: 12px;
  font: 36px 'Bebas Kai','Bebas Neue',sans-serif;
  color: var(--white);
  line-height: 1.2;
}

/* ==== PROJECT OVERLAY ==== */
.portfolio-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(8, 1, 3, .80);
  backdrop-filter: blur(64px);

  /* overlay itself scrolls when needed; lock body underneath */
  overflow-y: auto;

  /* center horizontally; align-items: flex-start so it scrolls if content too tall */
  display: flex;
  justify-content: center;
  align-items: flex-start;

  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  transition:
    transform .45s cubic-bezier(.4, 0, .2, 1),
    opacity .3s;
}
.portfolio-overlay.open {
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

/* ==== THIN, DARK SCROLLBAR ==== */
/* Firefox */
.portfolio-overlay {
  scrollbar-width: thin;
  scrollbar-color: var(--black) transparent;
}
/* Chrome/Safari */
.portfolio-overlay::-webkit-scrollbar {
  width: 6px;
}
.portfolio-overlay::-webkit-scrollbar-track {
  background: transparent;
}
.portfolio-overlay::-webkit-scrollbar-thumb {
  background-color: var(--black);
  border-radius: 3px;
}

/* Logo (top-left) */
.overlay-logo {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 16px;
  background: var(--black);
}

/* Close button (top-right) */
.close-portfolio {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--black);
  border: none;
  padding: 24px;
  border-radius: 600px;
  cursor: pointer;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.close-portfolio:hover {
  transform: rotate(360deg);
}
/* Hide hover‐state icon by default */
.close-portfolio .ico-hv {
  display: none;
}
/* Swap icons on hover */
.close-portfolio:hover .ico {
  display: none;
}
.close-portfolio:hover .ico-hv {
  display: block;
}

/* Navigation arrows (center vertically; hidden below 1200px) */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0 24px;
  cursor: pointer;
}
.nav-prev {
  left: 0;
}
.nav-next {
  right: 0;
}
@media (max-width: 1199px) {
  .nav-arrow {
    display: none;
  }
}

/* ==== OVERLAY INNER (CONTENT BOX) ==== */
/* center content horizontally */
.overlay-inner {
  width: 100%;
  max-width: 1200px;
  margin: 64px auto; /* 64px top & bottom margin */
  padding: 0 32px;
  text-align: center;
}
/* Project title */
.overlay-inner h1 {
  font-size: 64px;
  margin-bottom: 8px;
  color: var(--white);
}
/* Category pill under title */
.overlay-inner p.item-category {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--main);
  color: var(--white);
  border-radius: 100px;
  font-size: 16px;
  margin-bottom: 24px;
}
/* Main overlay thumbnail (clickable) */
.overlay-inner img.overlay-thumb {
  width: 100%;
  max-width: 524px;
  display: block;
  margin: 0 auto 32px auto;
  cursor: pointer; /* indicates click opens full-size */
}

/* === PORTFOLIO OVERLAY – spacing for description 1 === */
/* The first paragraph that follows the main thumbnail */
.overlay-thumb + p {
  margin-bottom: 32px;
}

/* ==== GALLERY ==== */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
@media (max-width: 1199px) {
  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery-item {
  opacity: .64;
  transition: .3s;
  cursor: pointer;
  text-align: center;
}
.gallery-item:hover {
  opacity: 1;
}

/* 2. Turn both lines to accent-1 when the item is hovered */
.gallery-item:hover h3 {
  color: var(--accent1);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.gallery-item h3 {
  font-size: 20x;
  margin-top: 8px;
  color: var(--white);
  margin: 4px 0 2px;
}
.gallery-item p {
  font-size: 14px;
  color: var(--white);
   margin-top: -16px;
}

/* ==== FULL-SIZE IMAGE OVERLAY ==== */
.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, .9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}
.image-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.image-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
}
/* Close button inside image-overlay */
.image-overlay button.img-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.image-overlay button.img-close-btn .ico-hv {
  display: none;
}
.image-overlay button.img-close-btn:hover .ico {
  display: none;
}
.image-overlay button.img-close-btn:hover .ico-hv {
  display: block;
  transform: rotate(360deg);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
