/* ── PAGE LAYOUT ─────────────────────── */
.projects-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  padding: 100px 0 0 0;
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────── */
.sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 28px 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.search-box input {
  width: 100%;
  padding: 11px 15px;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus  { border-color: #c6ff00; }
.search-box input::placeholder { color: #444; }

.category-list { list-style: none; margin-top: 22px; padding: 0; }

.category-list li {
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 10px;
  transition: .2s;
  margin-bottom: 4px;
  font-size: 0.81rem;
  color: #666;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}
.category-list li:hover  { background: rgba(198,255,0,.07); color: #c6ff00; }
.category-list li.active { background: #c6ff00; color: #000; font-weight: 600; }

/* ── MASONRY GRID ────────────────────── */
.projects-grid {
  /* padding: 18px 18px 60px;
  columns: 4 155px;
  column-gap: 8px; */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
}

@media (max-width:1280px){
  .projects-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:768px){
  .projects-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:520px){
  .projects-grid{
    grid-template-columns:1fr;
  }
}

/* ── CARD ────────────────────────────── */
.project-card {
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  margin-bottom: 8px;
  cursor: pointer;
  display: block;
  animation: cardIn .36s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── VIDEO / IMAGE ───────────────────── */
.project-card video,
.project-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .4s ease;
  aspect-ratio: 9 / 16;       /* portrait default */
}
.project-card.landscape video,
.project-card.landscape img { aspect-ratio: 16 / 9; }
.project-card.square video,
.project-card.square img    { aspect-ratio: 1 / 1; }

.project-card:hover video,
.project-card:hover img { transform: scale(1.04); }

/* ── DURATION BADGE ──────────────────── */
.duration-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .69rem;
  font-weight: 500;
  padding: 3px 8px 3px 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(6px);
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  z-index: 2;
}
.duration-badge i { font-size: .52rem; color: #c6ff00; }

/* ── HOVER OVERLAY ───────────────────── */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,rgba(0,0,0,.8) 0%,transparent 52%);
  opacity: 0;
  transition: opacity .26s ease;
  border-radius: 10px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 13px 11px;
}
.project-card:hover .card-overlay { opacity: 1; }
.card-overlay h3 {
  font-size: .8rem; font-weight: 700; color: #fff;
  margin: 0 0 2px; font-family: 'Inter', sans-serif;
}
.card-overlay p {
  font-size: .68rem; color: #c6ff00;
  margin: 0; font-family: 'Inter', sans-serif; font-weight: 500;
}

/* ── PLACEHOLDER ─────────────────────── */
.card-placeholder {
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  color: #2a2a2a; font-size: 1.8rem; border-radius: 10px;
}

/* ── EMPTY ───────────────────────────── */
.grid-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 20px; color: #444;
  font-family: 'Inter', sans-serif; text-align: center; width: 100%;
}
.grid-empty i { font-size: 2.4rem; margin-bottom: 12px; color: #222; }
.grid-empty p { font-size: .86rem; color: #555; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 1280px) { .projects-grid { columns: 3 150px; } }
@media (max-width: 960px) {
  .projects-page { grid-template-columns: 1fr; padding-top: 80px; }
  .sidebar {
    position: relative; top: 0; height: auto;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 14px;
  }
  .category-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
  .category-list li { margin-bottom: 0; font-size: .76rem; padding: 7px 13px; }
  .projects-grid { columns: 3 120px; padding: 12px; }
}
@media (max-width: 520px) { .projects-grid { columns: 2 100px; column-gap: 6px; } }


/* pagination */
.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:50px;
    align-items: center;
}

.page-btn{
    width:45px;
    height:45px;
    border:none;
    border-radius:10px;
    background:#111;
    color:#fff;
    cursor:pointer;
}

.page-btn.active{
    background:#c6ff00;
    color:#000;
    font-weight:700;
}
