/* ===== Omneix Portfolio v2 — professional grid, animated showcase, lightbox =====
   Uses the site design tokens from style.css (--dark, --lime, --blue, --muted,
   --line, --radius). Component classes are prefixed .omxpf- to avoid clashes
   with the legacy .pf-* board, which content.js no longer overwrites here. */

.omxpf-showcase {
  position: relative; margin-top: 22px; border-radius: 20px; overflow: hidden;
  background: var(--dark); color: #fff; isolation: isolate;
  box-shadow: 0 24px 48px rgba(11,11,12,.22);
}
.omxpf-stage { position: relative; aspect-ratio: 16 / 10; }
@media (min-width: 860px) { .omxpf-stage { aspect-ratio: 16 / 8.2; } }
.omxpf-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .9s ease;
}
.omxpf-slide.on { opacity: 1; pointer-events: auto; }
.omxpf-slide .omxpf-bg {
  position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
  object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.15);
  transform: scale(1.02);
}
.omxpf-slide.on .omxpf-bg { animation: omxpfDrift 7s ease forwards; }
@keyframes omxpfDrift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.omxpf-slide .omxpf-main {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 18px 18px 86px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.45));
}
.omxpf-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 38px 20px 16px;
  background: linear-gradient(to top, rgba(11,11,12,.88) 30%, rgba(11,11,12,0));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.omxpf-slide.on .omxpf-cap > div { animation: omxpfRise .7s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes omxpfRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.omxpf-chip {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--lime-2);
  border: 1px solid rgba(182,240,74,.45); padding: 4px 10px; border-radius: 999px;
  background: rgba(11,11,12,.45);
}
.omxpf-cap h3 { font-size: clamp(17px, 2.6vw, 24px); font-weight: 700; margin-top: 8px; line-height: 1.25; }
.omxpf-cap p { font-size: 12.5px; color: rgba(255,255,255,.78); margin-top: 4px; max-width: 520px; line-height: 1.55; }
.omxpf-view {
  flex: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
  color: #0b0b0c; background: var(--lime); padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 10px 22px rgba(143,224,32,.35); transition: transform .2s, box-shadow .2s;
}
.omxpf-view:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(143,224,32,.45); }
.omxpf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(11,11,12,.5); color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s, transform .2s;
}
.omxpf-nav:hover { background: rgba(11,11,12,.8); }
.omxpf-nav.prev { left: 12px; } .omxpf-nav.next { right: 12px; }
.omxpf-dots { position: absolute; right: 16px; bottom: 66px; z-index: 4; display: flex; gap: 6px; }
.omxpf-dots button {
  width: 22px; height: 4px; border-radius: 99px; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.35); overflow: hidden; position: relative;
}
.omxpf-dots button.on { background: rgba(255,255,255,.35); }
.omxpf-dots button.on::after {
  content: ""; position: absolute; inset: 0; background: var(--lime);
  transform-origin: left; animation: omxpfFill 4.4s linear forwards;
}
@keyframes omxpfFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.omxpf-showcase.paused .omxpf-dots button.on::after { animation-play-state: paused; }

/* ===== Portfolio board — ORIGINAL arrangement: each category is a column,
   its projects stack as rows (identical tarteeb to the original site) ===== */
.omxpf-board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 14px; align-items: start; margin-top: 16px;
  overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 720px) { .omxpf-board { grid-auto-columns: minmax(260px, 1fr); } }
.omxpf-col { scroll-snap-align: start; min-width: 0; }
.omxpf-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; margin-bottom: 12px; border-radius: 14px;
  background: var(--dark); color: #fff; font-weight: 700; font-size: 14px;
}
.omxpf-col:nth-child(3n+1) .omxpf-col-head { box-shadow: inset 0 -3px 0 #8fe020; }
.omxpf-col:nth-child(3n+2) .omxpf-col-head { box-shadow: inset 0 -3px 0 #22b8f0; }
.omxpf-col:nth-child(3n) .omxpf-col-head { box-shadow: inset 0 -3px 0 #b6f04a; }
.omxpf-col-head small { font-size: 11px; font-weight: 600; color: #8fe020; }
.omxpf-rows { display: flex; flex-direction: column; gap: 12px; }
.omxpf-card {
  position: relative; display: block; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.06); cursor: zoom-in; color: var(--text);
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.omxpf-card.in { opacity: 1; transform: none; }
.omxpf-card.in:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(34,184,240,.18); }
.omxpf-media { position: relative; aspect-ratio: 16 / 10; background: var(--dark); overflow: hidden; }
.omxpf-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.omxpf-card:hover .omxpf-media img { transform: scale(1.05); }
.omxpf-media::after {
  content: "View →"; position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #0b0b0c; background: var(--lime);
  padding: 5px 11px; border-radius: 999px; opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.omxpf-card:hover .omxpf-media::after { opacity: 1; transform: none; }
.omxpf-cat {
  position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  background: rgba(11,11,12,.75); color: #8fe020;
}
.omxpf-meta { padding: 11px 14px 13px; }
.omxpf-meta h4 { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.omxpf-meta p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.omxpf-board.compact .omxpf-meta p { display: none; }

/* ===== Lightbox ===== */
.omxpf-lb {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(8,8,10,.93); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.omxpf-lb.open { opacity: 1; }
.omxpf-lb figure { max-width: min(1060px, 100%); text-align: center; }
.omxpf-lb img {
  max-width: 100%; max-height: 76vh; border-radius: 12px; object-fit: contain;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  transform: scale(.965); transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.omxpf-lb.open img { transform: none; }
.omxpf-lb figcaption { color: #fff; margin-top: 14px; }
.omxpf-lb figcaption b { display: block; font-size: 16px; }
.omxpf-lb figcaption span { display: block; font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 3px; }
.omxpf-lb .omxpf-count { color: var(--lime-2); font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; margin-top: 8px; }
.omxpf-lb button {
  position: absolute; border: 1px solid rgba(255,255,255,.25); cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff; border-radius: 50%;
  width: 42px; height: 42px; font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.omxpf-lb button:hover { background: rgba(255,255,255,.2); }
.omxpf-lb .omxpf-close { top: 16px; right: 16px; }
.omxpf-lb .omxpf-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.omxpf-lb .omxpf-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .omxpf-slide, .omxpf-card, .omxpf-lb, .omxpf-lb img, .omxpf-media img { transition: none !important; }
  .omxpf-slide.on .omxpf-bg, .omxpf-dots button.on::after, .omxpf-slide.on .omxpf-cap > div { animation: none !important; }
  .omxpf-card { opacity: 1; transform: none; }
}
