/* ═══════════════════════════════════════════
   OUR WORK PAGE
   ═══════════════════════════════════════════ */

.work-section {
  overflow:hidden;
  position: relative;
  z-index: 0;
  padding: 180px 102px 100px;
  background: radial-gradient(ellipse 130% 90% at -11% 54%, #9eff66 0%, #f8d2cc 59%);
  min-height: 100vh;
}

/* Reuse ellipse positions from main stylesheet — just adjust for this page */
.work-section .ellipse-11 { top: 0; right: 0; }
.work-section .ellipse-12 { top: 60px; right: 0; }
.work-section .ellipse-16 { top: 800px; right: 0; }
.work-section .ellipse-14 { top: 600px; left: 0; }
.work-section .ellipse-15 { bottom: 1200px; right: 0; }
.work-section .ellipse-13 { bottom: 300px; left: 0; }

/* ── Hero heading ── */
.work-hero {
  position: relative;
  z-index: 10;
  margin-bottom: 80px;
}
.work-title {
  font-family: 'Onest', sans-serif;
  font-size: 90px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 5.76px;
  color: #000;
  text-transform: uppercase;
  max-width: 846px;
}

/* ── Filter tabs ── */
.work-tabs {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin-bottom: 56px;
}
.tab {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #141414;
  background: none;
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 10px 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.tab:hover { border-color: rgba(20,20,20,0.3); }
.tab.active {
  border-color: #141414;
  font-weight: 700;
}

/* ── Portfolio grid ── */
.portfolio-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
  margin-bottom: 72px;
}

/* ── Portfolio card ── */
.port-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.port-card:hover { transform: scale(1.02); }

.port-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.port-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.65);
  transition: background 0.3s ease;
}
.port-card:hover .port-overlay {
  background: rgba(20, 20, 20, 0.45);
}
.port-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.port-name {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: 0.72px;
  color: #fff;
}
.port-cats {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.31;
  color: rgba(255, 255, 255, 0.85);
}

/* Hidden cards (filtered out) */
.port-card.hidden {
  display: none;
}

/* ── CTA button ── */
.work-cta {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}
.btn-work-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  height: 60px;
  border-radius: 30px;
  background: #c07167;
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-work-cta:hover { background: #ad5d54; }

/* ═══════════════════════════════════════════
   RESPONSIVE — ≤ 900px
   ═══════════════════════════════════════════ */
@media(max-width: 900px) {
  .work-section {
  overflow:hidden;
    padding: 100px 20px 56px;
  }
  .work-section .ellipse-11 { width: 200px; height: 200px; top: 40px; right: 0; opacity: 0.55; }
  .work-section .ellipse-12 { display: none; }
  .work-section .ellipse-16,
  .work-section .ellipse-14,
  .work-section .ellipse-15,
  .work-section .ellipse-13 { display: none; }

  .work-title {
    font-size: clamp(36px, 9vw, 72px);
    letter-spacing: 2px;
    margin-bottom: 0;
  }
  .work-hero { margin-bottom: 40px; }

  .work-tabs { gap: 8px 12px; margin-bottom: 36px; }
  .tab { font-size: 13px; padding: 8px 14px; }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .port-name { font-size: 16px; }
  .port-cats { font-size: 13px; }
  .port-info { padding: 16px 16px 20px; }

  .btn-work-cta { font-size: 16px; padding: 0 28px; height: 50px; }
}

@media(max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
