:root {
  --paper: #f3f1e9;
  --ink: #1e2926;
  --muted: #69746c;
  --line: #d8d9ce;
  --green: #c8e27c;
  --moss: #495d49;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

/* overflow-x: hidden da 3D kartice ne lome širinu stranice */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.7 var(--sans);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  top: -100px;
}

.skip:focus {
  top: 8px;
  left: 10px;
  background: var(--green);
  z-index: 90;
  padding: 8px;
}

/* Header & Navigacija */
.top {
  height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f3f1e9ee;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.brand b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--green);
  display: grid;
  place-items: center;
  font: 11px var(--mono);
}

.brand small {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.top nav {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  font-size: 12px;
  color: #4c5851;
  align-items: center;
}

.top nav a:hover,
.navcontact:hover {
  color: #71912f;
}

.top nav a.nav-cv {
  font-weight: 700;
  color: #3b5026;
  background: rgba(200, 226, 124, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(82, 109, 54, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.top nav a.nav-cv:hover {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}

.navcontact {
  font-size: 12px;
  font-weight: 700;
}

.menu {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* Hero sekcija */
.hero {
  min-height: 670px;
  padding: 75px 9vw 44px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 8%;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.herotext {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow, .kicker, .label, .meta, .tiny, .herofoot, .portrait label,
.portrait aside>small, .photo span, .timeline article>small, .years>div>b,
.archive, .impact span, .education>small, .ainote, .contact-layout>div>small,
footer>p {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 22px;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  background: #8ead42;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #8ead4224;
}

h1 {
  font-size: clamp(60px, 8vw, 105px);
  line-height: .98;
  letter-spacing: -.08em;
  margin: 0 0 25px;
  font-weight: 600;
}

h1 em, h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.065em;
}

h1 em {
  color: #526d36;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  color: #4f5b53;
  max-width: 530px;
  margin: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 31px;
  font-size: 11px;
  font-weight: 700;
}

.button {
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
}

.button span {
  color: var(--green);
  margin-left: 23px;
}

.facts {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  flex-direction: column;
}

.facts b {
  font: 500 19px var(--mono);
}

.facts small {
  font-size: 9px;
  color: var(--muted);
  max-width: 110px;
  line-height: 1.5;
  margin-top: 4px;
}

.tiny {
  font-size: 8px;
  color: #838a7d;
  letter-spacing: .035em;
  margin: 15px 0;
}

.portrait {
  min-height: 485px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo {
  width: min(76%, 390px);
  height: 440px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #d4d6cb;
  transform: rotate(2deg);
  box-shadow: 0 30px 80px #303d2a22;
}

.photo:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, #1118);
}

.photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(.7);
}

.photo span {
  position: absolute;
  bottom: 17px;
  left: 19px;
  color: white;
  font-size: 9px;
  z-index: 2;
}

.orbit {
  position: absolute;
  width: 450px;
  height: 255px;
  border: 1px solid #9daa83;
  border-radius: 50%;
  transform: rotate(-31deg);
}

.portrait aside {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: -15px;
  width: 192px;
  padding: 16px 18px;
  background: var(--green);
  box-shadow: 0 15px 40px #2f3a2722;
  transform: rotate(-4deg);
}

.portrait aside>small {
  font-size: 8px;
}

.portrait aside p {
  font: 16px/1.3 Georgia, serif;
  margin: 8px 0 20px;
}

.portrait aside>small:last-child {
  color: #50623b;
}

.portrait label {
  position: absolute;
  top: 50px;
  right: 0;
  font-size: 9px;
  line-height: 1.6;
  color: var(--moss);
  text-align: right;
}

.sxm-stamp {
  position: absolute;
  top: 22px;
  left: -34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px 11px 13px;
  background: rgba(247, 245, 238, 0.96);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0, 85, 184, 0.75);
  outline: 1px dashed rgba(0, 85, 184, 0.35);
  outline-offset: -5px;
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: 0 14px 34px rgba(15, 28, 46, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: #0b1f3a;
}

.sxm-stamp:hover {
  transform: rotate(-3deg) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 85, 184, 0.18);
}

.sxm-stamp svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.sxm-stamp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sxm-stamp-kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0055b8;
  margin-bottom: 3px;
}

.sxm-stamp-text strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1f3a;
}

.sxm-stamp-text small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #41546e;
  margin-top: 2px;
}

.herofoot {
  position: absolute;
  bottom: 18px;
  left: 5vw;
  right: 5vw;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #81877c;
  letter-spacing: .12em;
}

/* Zajednički elementi */
.wrap {
  padding: 105px 9vw;
}

.label {
  font-size: 9px;
  color: #778076;
}

.label b {
  color: #dc714c;
}

.kicker {
  font-size: 9px;
  color: #7a873e;
  margin: 0 0 15px;
}

/* Sekcija 01: Priča / Intro */
.intro {
  display: grid;
  grid-template-columns: .26fr .74fr;
  gap: 7%;
}

.intro h2, .heading h2, .ai h2, .contact h2 {
  font-size: clamp(36px, 4.7vw, 58px);
  line-height: 1.13;
  letter-spacing: -.065em;
  font-weight: 600;
  margin: 0;
}

.intro h2 {
  max-width: 750px;
}

.intro h2 em, .heading h2 em, .contact h2 em {
  color: #667b46;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  color: #5b655e;
  font-size: 13px;
  line-height: 1.9;
}

.columns p {
  margin: 0;
}

blockquote {
  margin: 40px 0 0;
  padding-left: 20px;
  border-left: 2px solid #dc714c;
  font: italic 22px/1.45 Georgia, serif;
  max-width: 580px;
  color: #455248;
}

/* Sekcija 02: Projekti (Dark tema) */
.dark {
  background: #202a27;
  color: #f3f1e9;
  padding: 100px 0;
}

.dark .label {
  color: #aab2a5;
}

.dark .kicker {
  color: var(--green);
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 50px;
}

.heading h2 {
  font-size: clamp(36px, 4.5vw, 54px);
}

.dark .heading h2 em {
  color: #c8d998;
}

.heading>p {
  max-width: 280px;
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.6;
  color: #aab2a5;
}

.subhead {
  padding: 0 9vw;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.subhead h3 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
}

.subhead h3 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #c8d998;
}

.subhead>p {
  max-width: 320px;
  font-size: 11px;
  line-height: 1.6;
  color: #aab2a5;
  margin: 0 0 5px;
}

/* ============================================================
   AUTORSKI PROIZVODI — 3D COVERFLOW CAROUSEL
   Centralna kartica je najveća i oštra; bočne su manje i blurovane
   ============================================================ */
.own-showcase {
  margin: 20px 0 90px;
  position: relative;
  overflow: visible;
}

.carousel-shell {
  position: relative;
  width: 100%;
  outline: none;
  margin: 0 auto;
}

/* Tabs navigacija */
.carousel-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 5vw;
}

.carousel-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(14, 20, 18, 0.7);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.carousel-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #8f9d93;
  font: 12px var(--sans);
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-tab b {
  font: 11px var(--mono);
  color: var(--green);
}

.carousel-tab .draft-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a261;
  display: inline-block;
}

.carousel-tab:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.carousel-tab.active {
  background: #25332e;
  color: #ffffff;
  border-color: rgba(200, 226, 124, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Viewport i 3D prostor */
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 600px;
  perspective: 1200px;
  perspective-origin: center center;
  transform-style: flat;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Osnovni stil kartice — proširena komponenta na 1080px i vizuelni deo za sliku na 510px */
.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1080px, 90vw);
  height: 540px;
  display: grid;
  grid-template-columns: 510px 1fr;
  background: #17211e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
              opacity 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
              filter 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
              box-shadow 0.55s ease;
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

/* Alternirajući raspored — parne kartice imaju vizuelni panel/sliku sa DESNE strane */
.carousel-slide.reverse-layout,
.carousel-slide:nth-of-type(even) {
  grid-template-columns: 1fr 510px;
}

.carousel-slide.reverse-layout .cvisual,
.carousel-slide:nth-of-type(even) .cvisual {
  order: 2;
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel-slide.reverse-layout .cbody,
.carousel-slide:nth-of-type(even) .cbody {
  order: 1;
}

/* 1. CENTRALNO IZABRANA KARTICA — NAJVEĆA, OŠTRA, NA VRHU */
.carousel-slide.active {
  transform: translate(-50%, -50%) scale(1) translateZ(0);
  opacity: 1;
  filter: blur(0px);
  z-index: 10;
  pointer-events: auto;
  cursor: default;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 226, 124, 0.25);
}

.carousel-slide.active[data-href] {
  cursor: pointer;
}

.carousel-slide.active[data-href]:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(200, 226, 124, 0.5);
}

/* 2. LEVA KARTICA — MANJA, BLUROVANA SA STRANE */
.carousel-slide.prev {
  transform: translate(-50%, -50%) translateX(-46%) scale(0.85) rotateY(6deg);
  opacity: 0.5;
  filter: blur(4px);
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
}

.carousel-slide.prev:hover {
  opacity: 0.8;
  filter: blur(2px);
}

/* 3. DESNA KARTICA — MANJA, BLUROVANA SA STRANE */
.carousel-slide.next {
  transform: translate(-50%, -50%) translateX(46%) scale(0.85) rotateY(-6deg);
  opacity: 0.5;
  filter: blur(4px);
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
}

.carousel-slide.next:hover {
  opacity: 0.8;
  filter: blur(2px);
}

/* 4. SAKRIVENE KARTICE POZADI */
.carousel-slide.hidden {
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

/* Strelica navigacije */
.carousel-nav-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1240px, 97vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 25;
}

.carousel-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 26, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f3f1e9;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.carousel-btn:hover {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
  transform: scale(1.1);
}

/* Donji progres indikatori */
.carousel-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-bar-seg {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-bar-seg:hover {
  background: rgba(255, 255, 255, 0.35);
}

.carousel-bar-seg.active {
  background: var(--green);
  width: 52px;
}

/* Teme za kartice */
.theme-noema {
  background: linear-gradient(155deg, #1d2e24 0%, #111a15 100%);
}

.theme-vigor {
  background: linear-gradient(155deg, #2c2118 0%, #18120e 100%);
}

.theme-mystyle {
  background: linear-gradient(155deg, #202234 0%, #12131f 100%);
}

.theme-brain {
  background: linear-gradient(155deg, #2b1a2f 0%, #170e1a 100%);
}

/* Vizuelni panel kartice */
.cvisual {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.cvisual-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cvisual-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Kontejner za sliku/mockup unutar vizuelnog panela */
.cvisual-img {
  width: 100%;
  flex: 1;
  min-height: 290px;
  margin: 2px 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.cvisual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-slide:hover .cvisual-img img {
  transform: scale(1.03);
}

.cvisual-footer {
  display: flex;
  flex-direction: column;
}

.cvisual span:first-child {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

.cvisual .status-pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1.5px dashed rgba(200, 226, 124, 0.55);
  background: rgba(200, 226, 124, 0.14);
  color: var(--green);
  display: inline-block;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.cvisual .status-pill.placeholder {
  background: rgba(244, 162, 97, 0.14);
  border-color: rgba(244, 162, 97, 0.55);
  color: #f4a261;
}

.cvisual strong {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.cpills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.cpills em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  color: #cbd5cb;
  display: inline-block;
  width: fit-content;
}

.cvisual small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* Telo kartice (desna strana) */
.cbody {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
  overflow-y: auto;
}

.cbody::-webkit-scrollbar {
  width: 5px;
}

.cbody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.cbody .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.cbody .meta i {
  font-style: normal;
  color: #88968c;
  margin-left: 12px;
}

.cbody h4 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.cbody .sub {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #c8d998;
  margin-bottom: 14px;
  line-height: 1.4;
}

.cbody p {
  font-size: 13px;
  line-height: 1.7;
  color: #a4b0a7;
  margin: 0 0 10px;
}

.placeholder-box {
  border-left: 2px dashed rgba(244, 162, 97, 0.4);
  padding-left: 14px;
  margin: 8px 0;
  font-style: italic;
  color: #9ea9a2;
}

.cbody-foot {
  margin-top: auto;
  padding-top: 12px;
}

.cbody-foot hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 10px;
}

.cbody-foot small {
  font-family: var(--mono);
  font-size: 9px;
  color: #738076;
  letter-spacing: 0.08em;
}

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  color: #e2e8e3;
  margin-left: 6px;
}

/* ============================================================
   KLIJENTSKI I ISTRAŽIVAČKI PROJEKTI
   ============================================================ */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 9vw;
  margin-top: 20px;
}

.card {
  background: #17211e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 226, 124, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* Subtle green glow marks projects that are still active. */
.card.ongoing {
  border-color: rgba(200, 226, 124, 0.36);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 32px rgba(200, 226, 124, 0.16), 0 0 72px rgba(200, 226, 124, 0.06);
}

.card.ongoing:hover {
  border-color: rgba(200, 226, 124, 0.58);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 42px rgba(200, 226, 124, 0.25), 0 0 86px rgba(200, 226, 124, 0.1);
}

.featured.card.ongoing {
  border-color: rgba(200, 226, 124, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 38px rgba(200, 226, 124, 0.18), 0 0 84px rgba(200, 226, 124, 0.07);
}

.featured.card.ongoing:hover {
  border-color: rgba(200, 226, 124, 0.62);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 48px rgba(200, 226, 124, 0.28), 0 0 96px rgba(200, 226, 124, 0.12);
}

/* Pulsirajuća aktivna tačkica uz datum */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  box-shadow: 0 0 8px var(--green);
  animation: liveDotPulse 2.4s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--green);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
    box-shadow: 0 0 2px var(--green);
  }
}

.featured.card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pimage {
  background: #101715;
  height: 240px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.featured .pimage {
  height: 100%;
  min-height: 320px;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.pimage.short {
  height: 200px;
}

.pimage img {
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.adidas-shot img.adidas-project-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.adidas-shot > span {
  top: auto;
  bottom: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(5, 19, 34, 0.78);
  color: rgba(255, 255, 255, 0.85);
}

.card:hover .pimage img {
  transform: scale(1.02);
}

.pimage span {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

.signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #1c2a23 0%, #0d1612 100%);
}

.signal span {
  position: static;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

.signal b {
  font: 700 36px var(--mono);
  color: var(--green);
  letter-spacing: 0.05em;
}

.signal i {
  font: 500 18px var(--mono);
  color: #8ead42;
  font-style: normal;
}

.signal small {
  font: 9px var(--mono);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* Custom vizuelni bedževi za novije enterprise projekte */
.pimage.sxm {
  background: linear-gradient(135deg, #0e1e2d 0%, #060e15 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.sxm-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sxm-badge b {
  font: 800 34px var(--sans);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sxm-badge b span {
  color: #38bdf8;
}

.sxm-badge .tagline {
  font: 500 10px var(--mono);
  color: #7dd3fc;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sxm-badge .pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.sxm-badge .pills-row span {
  position: static;
  font: 9px var(--mono);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.pimage.pharma {
  background: linear-gradient(135deg, #0b241e 0%, #051310 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pharma-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pharma-badge b {
  font: 800 24px var(--sans);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.pharma-badge b span {
  color: #34d399;
}

.pharma-badge .tagline {
  font: 500 9px var(--mono);
  color: #6ee7b7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pharma-badge .pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.pharma-badge .pills-row span {
  position: static;
  font: 9px var(--mono);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.pimage.betting {
  background: linear-gradient(135deg, #271a0f 0%, #120b06 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.betting-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.betting-badge b {
  font: 800 22px var(--sans);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.betting-badge b span {
  color: #fbbf24;
}

.betting-badge .tagline {
  font: 500 9px var(--mono);
  color: #fcd34d;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.betting-badge .pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.betting-badge .pills-row span {
  position: static;
  font: 9px var(--mono);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.pbody {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.pbody .meta {
  font-size: 10px;
  color: var(--green);
  font-family: var(--mono);
  margin-bottom: 8px;
}

.pbody .meta i {
  color: #839187;
  margin-left: 10px;
  font-style: normal;
}

.pbody h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
}

.pbody .sub {
  font-size: 13px;
  font-weight: 600;
  color: #c8d998;
  margin-bottom: 14px;
  display: block;
}

.pbody p {
  font-size: 13px;
  line-height: 1.8;
  color: #a6b2a9;
  margin: 0 0 12px;
}

.pbody hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 14px 0 12px;
}

.pbody small {
  font-family: var(--mono);
  font-size: 9px;
  color: #738076;
}

.fire {
  margin: 50px 9vw 0;
  padding: 28px 32px;
  background: #16201d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #dc714c;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 50px 1fr 160px;
  gap: 24px;
  align-items: center;
}

.fire b {
  font: 700 40px Georgia, serif;
  color: #dc714c;
}

.fire h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #ffffff;
}

.fire p {
  font-size: 13px;
  line-height: 1.7;
  color: #a4b0a7;
  margin: 0;
}

.fire small {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  color: #8a968d;
}

/* ============================================================
   SEKCIJA 03: PROFESIONALNA PUTANJA & VREMENSKA LINIJA
   ============================================================ */
.journey {
  background: var(--paper);
  color: var(--ink);
}

.timeline {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.timeline time {
  font: 500 16px var(--mono);
  color: #526d36;
}

.timeline h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.timeline p {
  font-size: 13px;
  line-height: 1.8;
  color: #4f5b53;
  margin: 0;
}

.timeline article>small {
  font-size: 9px;
  color: var(--muted);
  text-align: right;
}

.founder details {
  margin-top: 18px;
  background: #e9e7dd;
  padding: 14px 20px;
  border-radius: 4px;
}

.founder summary {
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.founder summary b {
  color: #526d36;
  font-size: 14px;
}

.years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.years>div {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.years>div>b {
  font-size: 12px;
  color: #526d36;
  display: block;
}

.years>div>strong {
  font-size: 13px;
  display: block;
  margin: 2px 0 6px;
  color: var(--ink);
}

.years>div>p {
  font-size: 11px;
  line-height: 1.6;
  color: #4f5b53;
  margin: 0 0 8px;
}

.years>div>small {
  font-size: 9px;
  color: var(--muted);
  font-family: var(--mono);
  display: block;
}

.archive {
  font-size: 9px;
  color: var(--muted);
  margin-top: 14px;
}

.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding: 36px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.impact div {
  display: flex;
  flex-direction: column;
}

.impact b {
  font: 700 44px var(--mono);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.impact span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ============================================================
   SEKCIJA 04: ZNANJE I ALATI (SKILLS)
   ============================================================ */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.skills article {
  background: #17211e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 22px;
  cursor: pointer;
  display: flex;
  gap: 16px;
  position: relative;
  transition: all 0.2s ease;
  outline: none;
}

.skills article:hover, .skills article:focus {
  background: #1c2723;
  border-color: rgba(200, 226, 124, 0.3);
}

.skills article>b {
  font: 500 13px var(--mono);
  color: var(--green);
}

.skills article h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
}

.skills article p {
  font-size: 12px;
  line-height: 1.6;
  color: #8e9c91;
  margin: 0;
}

.skills article aside {
  display: none;
  font-size: 12px;
  line-height: 1.6;
  color: #c4cebe;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.skills article.expanded aside {
  display: block;
}

.skills article>i {
  font-style: normal;
  font-size: 12px;
  color: var(--green);
  margin-left: auto;
  transition: transform 0.2s ease;
}

.skills article.expanded>i {
  transform: rotate(45deg);
}

.education {
  margin-top: 60px;
  padding: 28px 32px;
  background: #16201d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 50px 1fr 160px;
  gap: 24px;
  align-items: center;
}

.education>b {
  font: 700 40px Georgia, serif;
  color: var(--green);
}

.education h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #ffffff;
}

.education p {
  font-size: 13px;
  line-height: 1.7;
  color: #a4b0a7;
  margin: 0;
}

.education small {
  font-family: var(--mono);
  font-size: 9px;
  color: #8a968d;
}

/* ============================================================
   SEKCIJA 05: AI DANAS
   ============================================================ */
.ai {
  padding: 100px 9vw;
  background: #e8e6dc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8%;
}

.ailede {
  font-size: 15px;
  line-height: 1.8;
  color: #4c5850;
  margin-top: 24px;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.principles article {
  padding: 22px 24px;
  background: var(--paper);
  border-left: 3px solid #526d36;
  border-radius: 3px;
  display: flex;
  gap: 16px;
}

.principles article>b {
  font: 500 13px var(--mono);
  color: #526d36;
}

.principles article h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.principles article p {
  font-size: 13px;
  line-height: 1.7;
  color: #4f5b53;
  margin: 0;
}

.ainote {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================
   SEKCIJA 06: KONTAKT & FOOTER
   ============================================================ */
.contact {
  padding: 100px 9vw;
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8%;
  align-items: center;
  margin-top: 20px;
}

.contact-layout a {
  display: inline-block;
  font: 600 24px var(--mono);
  color: var(--ink);
  border-bottom: 2px solid #526d36;
  padding-bottom: 4px;
  margin: 18px 0;
  transition: color 0.2s;
}

.contact-layout a:hover {
  color: #526d36;
}

.contact-layout small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

footer {
  padding: 40px 9vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
  flex-wrap: wrap;
  gap: 20px;
}

footer a:hover {
  color: #526d36;
}

.langfoot a {
  font-weight: 700;
  color: #526d36;
}

/* ============================================================
   RESPONSIVE PRILAGOĐAVANJA
   ============================================================ */
@media (max-width: 980px) {
  .menu {
    display: block;
  }
  .top nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px 9vw;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  .top nav.open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 40px;
  }
  .portrait {
    min-height: 400px;
  }
  .sxm-stamp {
    top: 8px;
    left: 4px;
    padding: 9px 12px;
    transform: rotate(-4deg) scale(0.92);
    transform-origin: top left;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .subhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .featured.card {
    grid-template-columns: 1fr;
  }
  .featured .pimage {
    min-height: 240px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .timeline article {
    grid-template-columns: 90px 1fr;
    gap: 20px;
  }
  .timeline article>small {
    grid-column: 2;
    text-align: left;
  }
  .impact {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .fire, .education {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 70px 6vw;
  }
  .subhead, .projects {
    padding: 0 6vw;
  }
  .fire {
    margin-left: 6vw;
    margin-right: 6vw;
  }
  .carousel-viewport {
    min-height: 610px;
    height: 610px;
  }
  .carousel-slide,
  .carousel-slide.reverse-layout,
  .carousel-slide:nth-of-type(even) {
    width: calc(100% - 36px);
    height: 550px;
    grid-template-columns: 1fr;
  }
  .carousel-slide .cvisual,
  .carousel-slide.reverse-layout .cvisual,
  .carousel-slide:nth-of-type(even) .cvisual {
    order: 1;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 22px;
  }
  .carousel-slide .cbody,
  .carousel-slide.reverse-layout .cbody,
  .carousel-slide:nth-of-type(even) .cbody {
    order: 2;
  }
  .cvisual-img {
    flex: none;
    min-height: 180px;
    height: 180px;
    margin: 6px 0;
  }
  .carousel-slide.prev {
    transform: translate(-50%, -50%) translateX(-42%) scale(0.85);
    opacity: 0.3;
    filter: blur(5px);
  }
  .carousel-slide.next {
    transform: translate(-50%, -50%) translateX(42%) scale(0.85);
    opacity: 0.3;
    filter: blur(5px);
  }
  .cvisual {
    padding: 20px 22px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cvisual strong {
    font-size: 26px;
  }
  .cpills {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 8px 0;
  }
  .cbody {
    padding: 22px;
  }
  .carousel-nav-arrows {
    width: 100%;
    padding: 0 4px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .carousel-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.pimage.adidas-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:repeating-linear-gradient(135deg,#e8e8e3 0 16px,#deded9 16px 32px);color:#161616}.pimage.adidas-art .adidas-wordmark{font:800 40px/1 var(--sans);letter-spacing:-.08em;text-transform:lowercase}.pimage.adidas-art strong{font:9px/1.8 var(--mono);letter-spacing:.16em;text-align:center}.pimage.adidas-art>span:last-child{position:absolute;top:15px;left:15px;right:auto}
