/* ============================================================
   Work showcase — shared styles for the two-axis filter,
   quick-look panel, and "Related Work" recommendations.
   Accent matches the site: #5EADBA.
   ============================================================ */

/* ---- Two-axis filter rows ---- */
.filter-group {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 40px;
}
.filter-group + .filter-group {
  margin-top: 14px;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9a9a9a;
  margin-right: 4px;
}
.filters-2axis {
  padding: 32px 0 56px;
}
[data-theme="dark"] .filter-label {
  color: #6a6a6a;
}

/* count chip after a filter label */
.filter-count {
  font-size: 13px;
  color: #9a9a9a;
  margin-left: 6px;
}

/* ---- Card filtering animation ---- */
.project-card.is-filtering {
  opacity: 0;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(14px)
    scale(0.97);
  pointer-events: none;
}
.project-card.is-hidden {
  display: none !important;
}
.projects-grid .project-card {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* ---- Quick-look button on cards ---- */
.quicklook-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(94, 173, 186, 0.35);
  background: rgba(94, 173, 186, 0.08);
  color: #4a9aa7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.quicklook-btn:hover {
  background: #5eadba;
  color: #fff;
  border-color: #5eadba;
  transform: translateY(-1px);
}
.quicklook-btn svg {
  width: 14px;
  height: 14px;
}
[data-theme="dark"] .quicklook-btn {
  background: rgba(94, 173, 186, 0.12);
  color: #6bc5d2;
}
[data-theme="dark"] .quicklook-btn:hover {
  color: #fff;
}

/* ---- Quick-look modal ---- */
.ql-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.ql-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ql-panel {
  background: #fff;
  border-radius: 22px;
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}
.ql-overlay.active .ql-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
[data-theme="dark"] .ql-panel {
  background: #161616;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.ql-media {
  background: linear-gradient(135deg, #6bc5d2 0%, #5eadba 50%, #4a9aa7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
}
[data-theme="dark"] .ql-media {
  background: linear-gradient(135deg, #2a4a4f 0%, #1e3a3f 50%, #14292e 100%);
}
.ql-media img,
.ql-media video {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.ql-body {
  padding: 36px 34px;
  overflow-y: auto;
}
.ql-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #5eadba;
  margin-bottom: 10px;
}
.ql-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 14px;
}
[data-theme="dark"] .ql-title {
  color: #f0f0f0;
}
.ql-detail {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}
[data-theme="dark"] .ql-detail {
  color: #b0b0b0;
}
.ql-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.ql-tags .tag {
  padding: 4px 12px;
  background: #f3f3f3;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}
[data-theme="dark"] .ql-tags .tag {
  background: #0c0c0c;
  color: #a0a0a0;
}

.ql-quote {
  border-left: 3px solid #5eadba;
  padding: 4px 0 4px 16px;
  margin-bottom: 24px;
  font-style: italic;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}
.ql-quote .ql-quote-author {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: #1a1a1a;
}
.ql-quote .ql-quote-role {
  font-weight: 400;
  color: #888;
}
[data-theme="dark"] .ql-quote {
  color: #c0c0c0;
}
[data-theme="dark"] .ql-quote .ql-quote-author {
  color: #f0f0f0;
}

.ql-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #5eadba;
  color: #fff;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.ql-cta:hover {
  background: #4a9aa7;
  transform: translateY(-2px);
}
.ql-cta svg {
  width: 16px;
  height: 16px;
}

.ql-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}
.ql-close:hover {
  background: #fff;
  transform: rotate(90deg);
}
[data-theme="dark"] .ql-close {
  background: rgba(40, 40, 40, 0.9);
  color: #f0f0f0;
}

@media (max-width: 720px) {
  .ql-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
  .ql-media {
    max-height: 220px;
  }
  .ql-media img,
  .ql-media video {
    max-height: 200px;
  }
  .ql-body {
    padding: 26px 22px;
  }
}

/* ---- Before/After comparison slider ---- */
.ba-section {
  max-width: 1200px;
  margin: 70px auto 30px;
  padding: 0 40px;
}
.ba-section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #1a1a1a;
}
[data-theme="dark"] .ba-section h2 {
  color: #f0f0f0;
}
.ba-section .ba-sub {
  text-align: center;
  color: #888;
  font-size: 15px;
  margin-bottom: 34px;
}
.ba-slider {
  max-width: 980px;
  margin: 0 auto;
}
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 900;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  user-select: none;
  touch-action: pan-y;
}
[data-theme="dark"] .ba-frame {
  border-color: #2a2a2a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}
.ba-before-wrap .ba-before {
  /* width set in JS to match frame so the image doesn't squish */
  max-width: none;
  height: 100%;
}
.ba-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #5eadba;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.ba-handle svg {
  width: 22px;
  height: 22px;
}
.ba-tag {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 20, 22, 0.62);
  backdrop-filter: blur(6px);
  z-index: 3;
  pointer-events: none;
}
.ba-tag-before {
  left: 16px;
}
.ba-tag-after {
  right: 16px;
  background: rgba(94, 173, 186, 0.92);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 60px;
  height: 100%;
  cursor: ew-resize;
}
.ba-range::-moz-range-thumb {
  width: 60px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}
.ba-range:focus-visible {
  outline: none;
}
.ba-range:focus-visible + .ba-range {
}
.ba-slider:focus-within .ba-handle {
  box-shadow:
    0 0 0 4px rgba(94, 173, 186, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.25);
}
@media (max-width: 720px) {
  .ba-section {
    padding: 0 22px;
  }
  .ba-handle {
    width: 40px;
    height: 40px;
  }
}

/* ---- Case-study testimonial block ---- */
.cs-testimonial {
  max-width: 860px;
  margin: 70px auto 10px;
  padding: 0 40px;
  text-align: center;
}
.cs-testimonial-inner {
  background: linear-gradient(
    135deg,
    rgba(94, 173, 186, 0.07),
    rgba(94, 173, 186, 0.02)
  );
  border: 1px solid rgba(94, 173, 186, 0.18);
  border-radius: 22px;
  padding: 44px 48px;
  position: relative;
}
[data-theme="dark"] .cs-testimonial-inner {
  background: linear-gradient(
    135deg,
    rgba(94, 173, 186, 0.1),
    rgba(94, 173, 186, 0.02)
  );
  border-color: rgba(94, 173, 186, 0.22);
}
.cs-quote-mark {
  width: 38px;
  height: 38px;
  color: #5eadba;
  opacity: 0.55;
  margin-bottom: 12px;
}
.cs-testimonial blockquote {
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.6;
  font-weight: 500;
  color: #2a2a2a;
  margin: 0 0 22px;
}
[data-theme="dark"] .cs-testimonial blockquote {
  color: #ededed;
}
.cs-testimonial-author {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 15px;
}
[data-theme="dark"] .cs-testimonial-author {
  color: #f0f0f0;
}
.cs-testimonial-role {
  display: block;
  font-weight: 400;
  color: #5eadba;
  font-size: 14px;
  margin-top: 3px;
}
@media (max-width: 720px) {
  .cs-testimonial {
    padding: 0 22px;
  }
  .cs-testimonial-inner {
    padding: 32px 26px;
  }
}

/* ---- Related Work (recommendation engine) ---- */
.related-work {
  max-width: 1200px;
  margin: 40px auto 90px;
  padding: 0 40px;
}
.related-work h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #1a1a1a;
}
[data-theme="dark"] .related-work h2 {
  color: #f0f0f0;
}
.related-work .related-sub {
  text-align: center;
  color: #888;
  font-size: 15px;
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
}
.related-card.reveal {
  opacity: 1;
  transform: translateY(0);
}
.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  border-color: #5eadba;
}
[data-theme="dark"] .related-card {
  background: #161616;
  border-color: #2a2a2a;
}
[data-theme="dark"] .related-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border-color: #5eadba;
}
.related-thumb {
  height: 190px;
  background: linear-gradient(135deg, #6bc5d2 0%, #5eadba 50%, #4a9aa7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
[data-theme="dark"] .related-thumb {
  background: linear-gradient(135deg, #2a4a4f 0%, #1e3a3f 50%, #14292e 100%);
}
.related-thumb img,
.related-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}
.related-card:hover .related-thumb img,
.related-card:hover .related-thumb video {
  transform: scale(1.05);
}
.related-body {
  padding: 20px 22px 24px;
}
.related-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5eadba;
  margin-bottom: 7px;
}
.related-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
[data-theme="dark"] .related-title {
  color: #f0f0f0;
}
.related-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #777;
}
[data-theme="dark"] .related-desc {
  color: #9a9a9a;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-work {
    padding: 0 24px;
  }
}
