/* RND Solutions — "Radovi" (portfolio + case study hub).
   Ucitava se posle tech.css (tamna osnova, t-browser, t-eyebrow...). Dve grane:
   web/tech  = emerald → cyan → plava   (--accent-mid, --tech-cyan, --accent-blue)
   social    = ljubicasta → magenta → koral (iste vrednosti kao css/social.css) */

.theme-work {
  --w-tech: linear-gradient(100deg, var(--accent-mid), var(--tech-cyan) 55%, var(--accent-blue));
  --w-soc: linear-gradient(100deg, #8b5cf6, #ec4899 56%, #fb967f);
  --w-soc-ink: #f0b8f5;
}
.theme-work h2::after { display: none; }
.theme-work .w-sec-title { margin-bottom: 14px; }

/* ---------- hero + project wall ---------- */
.w-hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1040px) { .w-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; } }
.theme-work .hero h1 { max-width: 16ch; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.theme-work .hero h1 span { display: block; background: none; color: #5EEAD4; }
.w-wall { position: relative; height: 500px; isolation: isolate; }
.w-wall::before, .w-wall::after { content: ''; position: absolute; z-index: -1; width: 60%; height: 70%; top: 15%; filter: blur(10px); pointer-events: none; }
.w-wall::before { left: -6%; background: radial-gradient(ellipse, rgba(34,211,238,.18), transparent 70%); }
.w-wall::after { right: -6%; background: radial-gradient(ellipse, rgba(236,72,153,.17), rgba(139,92,246,.1) 45%, transparent 72%); }
.w-wall > * { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(148,163,184,.22); background: #0B1622; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.w-wall img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-wall .w-wb { left: 0; top: 26px; width: 64%; }
.w-wall .w-wb img { aspect-ratio: 1200 / 544; height: auto; object-position: top; }
.w-wall .w-wp { left: 7%; top: 212px; width: 23%; border-radius: 22px; border: 5px solid #111b2b; }
.w-wall .w-wp img { aspect-ratio: 390 / 844; height: auto; object-position: top; }
.w-wall .w-wr { right: 3%; top: 0; width: 30%; aspect-ratio: 9 / 16; border-radius: 18px; border-color: rgba(236,72,153,.4); }
.w-wall .w-wf { left: 33%; top: 300px; width: 40%; aspect-ratio: 3 / 2; }
.w-wall .w-wpost { right: 0; top: 330px; width: 24%; aspect-ratio: 3 / 4; border-color: rgba(139,92,246,.4); }
.w-wall .w-wm {
  left: 36%; top: 232px; padding: 12px 14px; overflow: visible; z-index: 3;
  background: rgba(10,20,32,.92); border-color: rgba(236,72,153,.45); backdrop-filter: blur(6px);
}
.w-wm b { display: block; font-size: 1.25rem; color: #fff; letter-spacing: -.02em; }
.w-wm span { display: block; font-size: .72rem; color: var(--tech-muted); }
.w-wall .w-lbl { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(10,20,32,.75); padding: 4px 8px; border-radius: 6px; border: 0; }
.w-strip { position: absolute; left: 0; right: 0; bottom: -2px; border: 0; background: none; box-shadow: none; overflow: visible; text-align: center; font-size: .7rem; font-weight: 800; letter-spacing: .32em; color: rgba(148,163,184,.4); }
@media (max-width: 1039px) { .w-wall { height: 460px; max-width: 640px; margin: 0 auto; width: 100%; } }
@media (max-width: 639px) {
  .w-wall { height: 340px; }
  .w-wall .w-wb { width: 72%; top: 0; }
  .w-wall .w-wr { width: 34%; top: 40px; }
  .w-wall .w-wp, .w-wall .w-wf, .w-wall .w-wpost { display: none; }
  .w-wall .w-wm { left: 0; top: 200px; }
  .w-strip { bottom: 0; letter-spacing: .2em; }
}

/* ---------- filteri ---------- */
main.theme-work > section.w-filter-wrap { padding-top: 18px !important; padding-bottom: 18px !important; background: #081019 !important; content-visibility: visible; }
.w-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.w-filters button {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font: 700 .76rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: #CBD5E1; background: transparent; border: 1px solid var(--tech-line);
  transition: background .2s, border-color .2s, color .2s;
}
.w-filters button:hover { border-color: rgba(34,211,238,.5); color: #fff; }
.w-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.w-filters button:focus-visible { outline: 2px solid var(--tech-cyan); outline-offset: 3px; }
.w-count { margin: 10px 0 0; text-align: center; font-size: .78rem; }
[data-cat][hidden] { display: none !important; }

/* ---------- uvod: problem → rnd → resenje → rezultat ---------- */
.w-flow4 { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.w-flow4 li { margin: 0; max-width: none; display: inline-flex; align-items: center; gap: 10px; }
.w-flow4 li + li::before { content: ''; width: 22px; height: 2px; background: var(--w-tech); border-radius: 2px; }
.w-flow4 span { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--tech-line); background: rgba(13,27,42,.7); color: #F1F5F9; font-weight: 800; font-size: .82rem; letter-spacing: .12em; }
.w-flow4 li:nth-child(2) span { border-color: rgba(16,185,129,.5); color: #5EEAD4; }
@media (max-width: 599px) { .w-flow4 li + li::before { display: none; } }

/* ---------- projekat: zajednicki sistem ---------- */
main.theme-work > section.w-proj { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.w-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; margin-bottom: 16px; }
.w-num { font-size: .86rem; font-weight: 800; letter-spacing: .12em; color: #5EEAD4; }
.w-soc .w-num { color: var(--w-soc-ink); }
.w-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.w-cats li { margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #5EEAD4; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.28); }
.w-soc .w-cats li { color: var(--w-soc-ink); background: rgba(236,72,153,.1); border-color: rgba(236,72,153,.32); }
.w-proj h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 12px; }
.w-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: #E2E8F0 !important; font-weight: 600; max-width: 34ch; margin: 0 0 22px; line-height: 1.4; }
.w-facts { display: grid; gap: 16px 28px; margin: 0 0 24px; }
@media (min-width: 640px) { .w-facts { grid-template-columns: 1fr 1fr; } }
.w-facts div { border-top: 1px solid var(--tech-line); padding-top: 12px; }
.w-facts dt { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5EEAD4; margin-bottom: 6px; }
.w-soc .w-facts dt { color: var(--w-soc-ink); }
.w-facts dd { margin: 0; font-size: .95rem; color: var(--tech-muted); line-height: 1.6; }
.w-facts .w-wide { grid-column: 1 / -1; }
.w-svc { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.w-svc li { margin: 0; max-width: none; font-size: .8rem; font-weight: 600; color: #E2E8F0; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--tech-line); background: rgba(13,27,42,.6); }
.w-cta { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; }
.w-cta a { text-decoration: none; }
.w-cta a:hover { text-decoration: underline; }
.w-soc .w-cta a:not(.btn) { color: var(--w-soc-ink); }

.w-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .w-split { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 60px; } .w-rev > :first-child { order: 2; } }
.w-split > * { min-width: 0; }

/* uredjaji */
.w-devices { position: relative; padding-bottom: 40px; }
.w-devices .t-browser img { width: 100%; height: auto; aspect-ratio: 1200 / 544; object-fit: cover; object-position: top; display: block; }
.w-phone { position: absolute; right: -8px; bottom: 0; width: 26%; min-width: 118px; border-radius: 26px; border: 6px solid #111b2b; overflow: hidden; background: #0B1622; box-shadow: 0 30px 60px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(148,163,184,.2); }
.w-phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; display: block; }
.w-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w-chips li { margin: 0; max-width: none; display: inline-flex; align-items: center; gap: 8px; }
.w-chips li + li::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--w-tech); }
.w-chips span { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: #E2E8F0; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--tech-line); background: rgba(13,27,42,.8); }
.w-chips li:last-child span { border-color: rgba(34,211,238,.5); color: var(--tech-cyan); }
.w-soc .w-chips li + li::before { background: var(--w-soc); }
.w-soc .w-chips li:last-child span { border-color: rgba(236,72,153,.5); color: var(--w-soc-ink); }

/* LD-TEC: vertikalni tok + metrika */
.w-vflow { display: grid; gap: 0; justify-items: stretch; max-width: 420px; }
.w-vflow .t-node { justify-content: flex-start; }
.w-vflow .t-node--bad { border-color: rgba(248,113,113,.45); color: #FECACA; }
.w-vflow .t-node--bad svg { color: #F87171; }
.w-vflow .t-wire { justify-self: center; }
.w-metric { margin-top: 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(16,185,129,.35); background: linear-gradient(180deg, rgba(16,185,129,.1), rgba(16,185,129,.02)); }
.w-metric b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.w-metric span { display: block; margin-top: 6px; font-size: .85rem; color: var(--tech-muted); }
.w-metric a { font-size: .82rem; font-weight: 700; }
.w-soc .w-metric { border-color: rgba(236,72,153,.4); background: linear-gradient(180deg, rgba(236,72,153,.1), rgba(139,92,246,.03)); }

/* Impact: sistem isporuka */
.w-system { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
@media (min-width: 700px) { .w-system { grid-template-columns: repeat(4, 1fr); } }
.w-system div { padding: 16px; border-radius: 14px; border: 1px solid var(--tech-line); background: rgba(13,27,42,.7); }
.w-system b { display: block; font-size: .78rem; letter-spacing: .12em; color: #fff; margin-bottom: 6px; }
.w-system span { display: block; font-size: .82rem; color: var(--tech-muted); line-height: 1.45; }
.w-system div:nth-child(1) { border-top: 2px solid var(--accent-mid); }
.w-system div:nth-child(2) { border-top: 2px solid var(--accent-blue); }
.w-system div:nth-child(3) { border-top: 2px solid #8b5cf6; }
.w-system div:nth-child(4) { border-top: 2px solid var(--tech-cyan); }
.w-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 24px; }
.w-stats div { padding: 14px; border-radius: 12px; border: 1px solid var(--tech-line); text-align: center; }
.w-stats b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.w-stats span { display: block; font-size: .74rem; color: var(--tech-muted); margin-top: 4px; }

/* ---------- social/video prekid ---------- */
main.theme-work > section.w-break {
  text-align: center; overflow: hidden; isolation: isolate; position: relative;
  background: radial-gradient(ellipse 60% 90% at 50% 100%, rgba(236,72,153,.2), rgba(139,92,246,.1) 45%, transparent 75%), #0A1420 !important;
  border-top: 1px solid rgba(236,72,153,.35);
}
.w-break h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0 auto 16px; max-width: 14ch; }
.w-break p { margin: 0 auto; max-width: 56ch; font-size: 1.08rem; }
.w-soc-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--w-soc-ink); padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(236,72,153,.1); border: 1px solid rgba(236,72,153,.32); }
.w-soc-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #ec4899; box-shadow: 0 0 0 4px rgba(236,72,153,.18); }
main.theme-work > section.w-soc { background-image: radial-gradient(ellipse 50% 60% at 90% 30%, rgba(139,92,246,.09), transparent 70%) !important; }

/* reel: poster + dugme, video tek na klik */
.w-reel { position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 6px solid #111b2b; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(236,72,153,.3), 0 0 60px -10px rgba(236,72,153,.25); margin: 0 auto; }
.w-reel img, .w-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.w-reel button { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); cursor: pointer; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: 700 .8rem/1.2 var(--font-body); letter-spacing: .06em; }
.w-reel button i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .25s var(--ease-out); }
.w-reel button i svg { width: 24px; height: 24px; color: #0A1420; margin-left: 3px; }
.w-reel button:hover i { transform: scale(1.08); }
.w-reel button:focus-visible { outline: 3px solid #f0b8f5; outline-offset: -6px; }
.w-reel figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: .72rem; color: rgba(255,255,255,.85); pointer-events: none; text-align: center; }

.w-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.w-content figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(236,72,153,.22); aspect-ratio: 3 / 4; background: #0B1622; }
.w-content img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-stage { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .w-stage { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); } }

/* Jurta: veliki video showcase */
.w-show { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .w-show { grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: 32px; } }
.w-bts { display: grid; gap: 12px; }
.w-show .w-facts { grid-template-columns: 1fr; }
.w-bts figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(236,72,153,.22); position: relative; }
.w-bts img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.w-bts figcaption { position: absolute; left: 8px; bottom: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(10,20,32,.72); padding: 4px 8px; border-radius: 6px; }
@media (max-width: 999px) { .w-bts { grid-template-columns: 1fr 1fr; } }

/* DOMI + UMFISD: kompaktni, tekstualni */
.w-duo { display: grid; gap: 22px; }
@media (min-width: 900px) { .w-duo { grid-template-columns: 1fr 1fr; } }
.w-card { padding: clamp(24px, 3vw, 36px); border-radius: 18px; border: 1px solid rgba(236,72,153,.22); background: linear-gradient(180deg, rgba(139,92,246,.06), rgba(10,20,32,.4)); }
.w-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.w-card .w-lead { font-size: 1.08rem; }
.w-card .w-facts { grid-template-columns: 1fr; }
.w-honest { font-size: .84rem; border-left: 0; padding: 12px 14px; border-radius: 10px; background: rgba(148,163,184,.06); border: 1px solid var(--tech-line); }

/* ---------- rezultati ---------- */
.w-results { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 640px) { .w-results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .w-results { grid-template-columns: repeat(5, 1fr); } }
.w-res { padding: 22px 20px; border-radius: 16px; border: 1px solid var(--tech-line); background: rgba(13,27,42,.6); display: flex; flex-direction: column; gap: 8px; }
.w-res b { font-size: clamp(1.9rem, 3vw, 2.4rem); color: #fff; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-res strong { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #5EEAD4; }
.w-res.s strong { color: var(--w-soc-ink); }
.w-res span { font-size: .86rem; color: var(--tech-muted); line-height: 1.5; }
.w-res a { margin-top: auto; font-size: .8rem; font-weight: 700; }
.w-res.s a { color: var(--w-soc-ink); }

/* ---------- white label ---------- */
main.theme-work > section.w-white { background: #060C14 !important; }
.w-white-in { max-width: 760px; }
.w-white h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.w-white .t-eyebrow { color: #CBD5E1; background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.25); }
.w-white .t-eyebrow i { background: #CBD5E1; box-shadow: 0 0 0 4px rgba(148,163,184,.14); }

/* ---------- usluge ---------- */
.w-services { display: grid; gap: 20px; }
@media (min-width: 900px) { .w-services { grid-template-columns: 1fr 1fr; } }
.w-svc-card { position: relative; overflow: hidden; padding: clamp(26px, 3.4vw, 40px); border-radius: 20px; border: 1px solid var(--tech-line); background: #0B1622; isolation: isolate; display: flex; flex-direction: column; }
.w-svc-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; }
.w-svc-card::after { content: ''; position: absolute; z-index: -1; right: -20%; top: -30%; width: 70%; height: 90%; pointer-events: none; }
.w-svc-card.tech::before { background: var(--w-tech); }
.w-svc-card.tech::after { background: radial-gradient(ellipse, rgba(34,211,238,.14), transparent 70%); }
.w-svc-card.soc::before { background: var(--w-soc); }
.w-svc-card.soc::after { background: radial-gradient(ellipse, rgba(236,72,153,.16), transparent 70%); }
.w-svc-card small { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #5EEAD4; }
.w-svc-card.soc small { color: var(--w-soc-ink); }
.w-svc-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 10px 0 18px; line-height: 1.2; }
.w-svc-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.w-svc-card li { margin: 0; font-size: .82rem; font-weight: 600; color: #E2E8F0; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--tech-line); }
.w-svc-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- zavrsni CTA sa stvarnim kadrovima ---------- */
.w-final-bg { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 20px; opacity: .1; pointer-events: none; filter: saturate(.6);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); }
.w-final-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
@media (max-width: 899px) { .w-final-bg { display: none; } }
.w-final .t-eyebrow { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) { .w-reel button i { transition: none; } }

/* telefon: manji telefon da ne pokrije snimak racunara */
@media (max-width: 599px) {
  .w-phone { width: 30%; min-width: 96px; right: -4px; border-width: 4px; border-radius: 18px; }
  .w-devices { padding-bottom: 56px; }
}
