/*
 Theme Name: GeneratePress Child
 Template: generatepress
 Version: 1.0.0
 Description: ZenCode custom theme — GeneratePress child
*/

/* ============================================================
   ZENCODE · GLOBALNI STILOVI
============================================================ */

html, body {
  overflow-x: clip;
  width: 100%;
}

:root {
  --zen-bg: #f8fafc;
}

/* ============================================================
   1) BODY — osnovna pozadina (sve strane OSIM homepage)
============================================================ */
body:not(.front-page):not(.home) {
  background: var(--zen-bg) !important;
  background-color: var(--zen-bg) !important;
  background-image: none !important;
}

/* ============================================================
   2) TAMNE KARTICE — ostaju tamne
============================================================ */
.dl-project-card,
.dl-term,
.dl-project-media,
.dl-term-body,
.ab-term,
.ab-term-body,
.ct-terminal,
.ct-terminal-body {
  background-color: #0d1117 !important;
}

.dl-project-bar,
.dl-term-bar,
.ct-terminal-bar {
  background-color: #161b22 !important;
}

/* ============================================================
   3) HOMEPAGE (Gutenberg, page-id-3499)
============================================================ */

body.page-id-3499 .grid-container,
body.page-id-3499 .site.grid-container,
body.page-id-3499 .grid-container.grid-parent {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.page-id-3499 .site-content,
body.page-id-3499 #content,
body.page-id-3499 .content-area,
body.page-id-3499 .site-main,
body.page-id-3499 .inside-article,
body.page-id-3499 .entry-content,
body.page-id-3499 article,
body.page-id-3499 .separate-containers .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
}

body.page-id-3499 .no-sidebar .content-area,
body.page-id-3499 .no-sidebar .site-main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.page-id-3499 .site-header,
body.page-id-3499 .site-footer {
  display: none !important;
}

body.page-id-3499,
body.page-id-3499 #page,
body.page-id-3499 #content,
body.page-id-3499 main,
body.page-id-3499 .site-content,
body.page-id-3499 .content-area,
body.page-id-3499 .site-main,
body.page-id-3499 .inside-article,
body.page-id-3499 .page-content,
body.page-id-3499 .entry-content,
body.page-id-3499 .wp-block-html,
body.page-id-3499 article {
  background-color: transparent !important;
  background-image: none !important;
}

body.page-id-3499 .page-header,
body.page-id-3499 .entry-header,
body.page-id-3499 .entry-title {
  display: none !important;
}

body.page-id-3499 .page-video-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

body.page-id-3499 .page-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.page-id-3499 .page-video-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

body.page-id-3499 > header,
body.page-id-3499 .zen-header {
  position: relative !important;
  z-index: 100 !important;
}

body.page-id-3499 > #page,
body.page-id-3499 > main,
body.page-id-3499 > #content,
body.page-id-3499 .site-content,
body.page-id-3499 .site-main {
  position: relative !important;
  z-index: 2 !important;
}

/* ============================================================
   ZEN HEADER — osnova
============================================================ */
.zen-header {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
  z-index: 100;
  background: transparent;
  position: relative;
}

/* ============================================================
   DESKTOP HEADER (>= 992px)
============================================================ */
.zen-header-desktop {
  width: 100%;
  padding: 20px clamp(20px, 4vw, 64px);
  box-sizing: border-box;
  background: transparent;
  position: relative;
}

.zen-header-desktop::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 99, 235, 0.15) 20%,
    rgba(37, 99, 235, 0.25) 50%,
    rgba(37, 99, 235, 0.15) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.zen-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO */
.zen-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.zen-logo:hover { transform: translateY(-1px); }

.zen-logo img {
  display: block;
  width: auto;
  max-height: 54px;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.4));
}
.zen-logo:hover img { opacity: 0.9; }

/* NAV */
.zen-nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
}

.zen-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zen-nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

/* NAV LINK */
.zen-nav-menu a {
  display: inline-block;
  padding: 10px 18px;
  color: #1a1a1a;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  background: transparent;
  transition: color 0.2s ease;
}

.zen-nav-menu a:hover,
.zen-nav-menu a:focus-visible {
  color: #2563eb;
  background: transparent !important;
  outline: none;
}

.zen-nav-menu a.active {
  color: #2563eb;
  font-weight: 700;
  background: transparent;
}

.zen-nav-menu a.active::before {
  content: '> ';
  color: #2563eb;
  opacity: 0.85;
  margin-right: 2px;
  font-weight: 700;
}

.zen-nav-menu a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, #2563eb, rgba(37, 99, 235, 0.15));
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.zen-nav-menu a:hover::after,
.zen-nav-menu a:focus-visible::after,
.zen-nav-menu a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* CTA DUGME */
.zen-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #0d1117;
  color: #f5f4ef;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(13, 17, 23, 0.15);
}

.zen-header-cta::before {
  content: '>';
  color: #60a5fa;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.25s ease;
}

.zen-header-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zen-header-cta:hover {
  background: #161b22;
  border-color: #2563eb;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.25);
}
.zen-header-cta:hover::before { color: #93c5fd; }
.zen-header-cta:hover::after  { opacity: 1; }

/* ============================================================
   MOBILE HEADER — base
============================================================ */
.zen-header-mobile {
  display: none;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  position: relative;
}

/* ============================================================
   MOBILE — @media (max-width: 991px)
============================================================ */
@media (max-width: 991px) {

  .zen-header-desktop { display: none !important; }

  /* TRANSPARENTAN header — blagi blur */
  .zen-header-mobile {
    display: block;
    position: relative;
    z-index: 9999;
    background: rgba(248, 250, 252, 0.55);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: none;
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.06);
  }

  .zen-header-mobile-inner {
    height: 96px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }

  /* Sticky state — manji logo, jači blur */
  #zen-mobile-header.zen-sticky {
    background: rgba(248, 250, 252, 0.85) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
  }
  #zen-mobile-header.zen-sticky .zen-header-mobile-inner {
    height: 64px;
  }
  #zen-mobile-header.zen-sticky .zen-logo--mobile img {
    height: 34px;
    max-width: 140px;
  }

  /* LOGO */
  .zen-logo--mobile {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .zen-logo--mobile img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 190px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
  }

  /* ---------- HAMBURGER — TERMINAL STYLE ---------- */
  .zen-menu-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease;
  }

  .zen-menu-toggle::before,
  .zen-menu-toggle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #60a5fa;
    opacity: 0.65;
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  }
  .zen-menu-toggle::before {
    top: 5px;
    left: 5px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 4px;
  }
  .zen-menu-toggle::after {
    bottom: 5px;
    right: 5px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 4px;
  }

  .zen-menu-toggle:hover,
  .zen-menu-toggle:focus-visible {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.35);
    outline: none;
  }
  .zen-menu-toggle:hover::before,
  .zen-menu-toggle:hover::after,
  .zen-menu-toggle:focus-visible::before,
  .zen-menu-toggle:focus-visible::after {
    width: 12px;
    height: 12px;
    opacity: 1;
  }

  .zen-burger,
  .zen-burger::before,
  .zen-burger::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #93c5fd;
    box-shadow: 0 0 6px rgba(147, 197, 253, 0.65);
    transition:
      transform 0.3s ease,
      background 0.25s ease,
      box-shadow 0.25s ease,
      opacity 0.25s ease;
  }

  .zen-burger { position: relative; }

  .zen-burger::before,
  .zen-burger::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .zen-burger::before { top: -6px; }
  .zen-burger::after  { top: 6px; }

  .zen-menu-toggle:hover .zen-burger,
  .zen-menu-toggle:hover .zen-burger::before,
  .zen-menu-toggle:hover .zen-burger::after,
  .zen-menu-toggle:focus-visible .zen-burger,
  .zen-menu-toggle:focus-visible .zen-burger::before,
  .zen-menu-toggle:focus-visible .zen-burger::after {
    background: #dbeafe;
    box-shadow: 0 0 10px rgba(219, 234, 254, 0.9);
  }

  .zen-menu-toggle[aria-expanded="true"] .zen-burger {
    background: transparent;
    box-shadow: none;
  }
  .zen-menu-toggle[aria-expanded="true"] .zen-burger::before {
    top: 0;
    transform: rotate(45deg);
    background: #dbeafe;
    box-shadow: 0 0 10px rgba(219, 234, 254, 0.9);
  }
  .zen-menu-toggle[aria-expanded="true"] .zen-burger::after {
    top: 0;
    transform: rotate(-45deg);
    background: #dbeafe;
    box-shadow: 0 0 10px rgba(219, 234, 254, 0.9);
  }
  .zen-menu-toggle[aria-expanded="true"] {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.85);
  }
  .zen-menu-toggle[aria-expanded="true"]::before,
  .zen-menu-toggle[aria-expanded="true"]::after {
    opacity: 1;
    width: 12px;
    height: 12px;
  }

  /* ---------- MOBILE NAV PANEL ---------- */
  .zen-mobile-nav {
    position: absolute;
    top: 96px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 8px 10px 12px;
    background: linear-gradient(
      145deg,
      rgba(18, 24, 32, 0.98),
      rgba(10, 14, 20, 0.98)
    );
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 16px;
    box-shadow:
      0 20px 45px rgba(0, 0, 0, 0.5),
      0 4px 14px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-sizing: border-box;

    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    transition:
      opacity 0.25s ease,
      transform 0.3s cubic-bezier(.22, .61, .36, 1),
      visibility 0.3s ease;
  }

  .zen-mobile-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* ---------- MENU ---------- */
  .zen-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .zen-mobile-menu li {
    position: relative;
    margin: 0;
    padding: 0;
  }
  .zen-mobile-menu li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.065);
  }
  .zen-mobile-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 12px;
    color: #c9ced6;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-decoration: none;
    border-radius: 9px;
    transition:
      color 0.2s ease,
      background 0.2s ease,
      padding-left 0.2s ease;
  }
  .zen-mobile-menu a::before {
    content: '›';
    display: inline-block;
    width: 24px;
    color: #2563eb;
    font-size: 19px;
    font-weight: 700;
    opacity: 0.85;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .zen-mobile-menu a:hover,
  .zen-mobile-menu a:focus-visible {
    color: #f5f4ef;
    background: rgba(37, 99, 235, 0.075);
    outline: none;
  }
  .zen-mobile-menu a:hover::before,
  .zen-mobile-menu a:focus-visible::before {
    transform: translateX(3px);
  }
  .zen-mobile-menu a.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.10);
  }
  .zen-mobile-menu a.active::before { color: #27c93f; }
  .zen-mobile-menu a.active::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #27c93f;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.65);
  }

  /* ---------- FOOTER U PANELU ---------- */
  .zen-mobile-nav-footer {
    margin-top: 8px;
    padding: 13px 12px 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .zen-mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .zen-mobile-nav-brand img {
    display: block;
    width: auto;
    height: 20px;
    max-width: 82px;
    object-fit: contain;
    opacity: 0.72;
  }
  .zen-mobile-nav-email {
    color: #7f8792;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
  }
  .zen-mobile-nav-email:hover,
  .zen-mobile-nav-email:focus-visible {
    color: #8fb4ff;
    outline: none;
  }

  .zen-header-mobile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(37, 99, 235, 0.15) 20%,
      rgba(37, 99, 235, 0.25) 50%,
      rgba(37, 99, 235, 0.15) 80%,
      transparent 100%
    );
    pointer-events: none;
  }

  /* ---------- SAKRIJ STRANE HAMBURGERE ---------- */
  .jkit-menu-toggle,
  .jkit-hamburger-menu,
  .jkit-nav-toggle,
  .jkit-hamburger,
  .jkit-mobile-menu-toggle,
  [class*="jkit"][class*="toggle"],
  [class*="jkit"][class*="hamburger"],
  [class*="jkit"][class*="burger"],
  [class*="jkit"][class*="mobile-menu"],
  .menu-toggle:not(.zen-menu-toggle),
  .gp-mobile-menu-toggle:not(.zen-menu-toggle),
  .mobile-menu-toggle:not(.zen-menu-toggle),
  button[aria-label*="menu" i]:not(.zen-menu-toggle),
  button[aria-label*="Menu" i]:not(.zen-menu-toggle),
  button[aria-label*="navigacij" i]:not(.zen-menu-toggle),
  .hamburger:not(.zen-menu-toggle),
  .burger:not(.zen-menu-toggle),
  .nav-toggle:not(.zen-menu-toggle) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .zen-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100000 !important;
    background: #0d1117 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(96, 165, 250, 0.6) !important;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(37, 99, 235, 0.15) !important;
    position: relative !important;
  }

  .zen-menu-toggle::before,
  .zen-menu-toggle::after {
    border-color: #60a5fa !important;
    opacity: 1 !important;
  }

  .zen-burger,
  .zen-burger::before,
  .zen-burger::after {
    background: #93c5fd !important;
    box-shadow:
      0 0 8px rgba(147, 197, 253, 0.9),
      0 0 2px rgba(147, 197, 253, 1) !important;
    height: 2px !important;
    width: 20px !important;
  }

  .zen-burger::before { top: -7px !important; }
  .zen-burger::after  { top: 7px !important; }

  .zen-menu-toggle[aria-expanded="true"] .zen-burger::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
  }
  .zen-menu-toggle[aria-expanded="true"] .zen-burger::after {
    top: 0 !important;
    transform: rotate(-45deg) !important;
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
  }

  .zen-menu-toggle[aria-expanded="true"] {
    background: #2563eb !important;
    border-color: #60a5fa !important;
  }

  .zen-header-mobile {
    display: block !important;
    visibility: visible !important;
    z-index: 999999 !important;
  }
}

/* ============================================================
   INSTRUMENT SERIF — fake bold
============================================================ */
h1.terminal-title .build-white,
h1.terminal-title .solutions-blue,
body.page-id-3499 h1.terminal-title .build-white,
body.page-id-3499 h1.terminal-title .solutions-blue {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
  -webkit-text-stroke: 1.8px currentColor !important;
  text-rendering: geometricPrecision !important;
}
h1.terminal-title,
h1.terminal-title * {
  font-synthesis: weight !important;
}

/* ============================================================
   GLOBAL — razmak header/hero
============================================================ */
body:not(.home):not(.front-page) #content,
body:not(.home):not(.front-page) .site-content,
body:not(.home):not(.front-page) .content-area,
body:not(.home):not(.front-page) .site-main,
body:not(.home):not(.front-page) .inside-article,
body:not(.home):not(.front-page) .entry-content,
body:not(.home):not(.front-page) article {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body:not(.home):not(.front-page) .ct-hero-section,
body:not(.home):not(.front-page) .ab-hero-section,
body:not(.home):not(.front-page) .dl-hero {
  padding-top: clamp(16px, 2vw, 36px) !important;
}

/* ============================================================
   GLOBAL — MOBILE (max-width: 991px)
============================================================ */
@media (max-width: 991px) {

  /* ── 1) GP reset ── */
  html body:not(.page-id-3499) .inside-article,
  html body:not(.page-id-3499) .separate-containers .inside-article,
  html body:not(.page-id-3499) .site-content,
  html body:not(.page-id-3499) #content,
  html body:not(.page-id-3499) .content-area,
  html body:not(.page-id-3499) .site-main,
  html body:not(.page-id-3499) #main,
  html body:not(.page-id-3499) article,
  html body:not(.page-id-3499) .entry-content,
  html body:not(.page-id-3499) .grid-container,
  html body:not(.page-id-3499) .site.grid-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* ── 2) Sekcije — spoljni padding ── */
  .dl-hero, .dl-index, .dl-cat,
  .ct-hero-section, .ct-form-section,
  .ab-hero-section, .ab-bio, .ab-refs {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* ── 3) Hero sekcije ── */
  .dl-hero, .ct-hero-section, .ab-hero-section {
    padding-top: 12px !important;
    padding-bottom: 20px !important;
  }

  /* ── 4) Category ── */
  .dl-index { padding-top: 8px !important; padding-bottom: 20px !important; }
  .dl-cat { padding-top: 28px !important; padding-bottom: 8px !important; }
  .dl-cat.dl-cat-last { padding-bottom: 40px !important; }

  /* ── 5) Forme / Bio / Refs ── */
  .ct-form-section { padding-top: 20px !important; padding-bottom: 40px !important; }
  .ab-bio { padding-top: 12px !important; padding-bottom: 12px !important; }
  .ab-refs { padding-top: 12px !important; padding-bottom: 40px !important; }

  /* ── 6) Kontejneri ── */
  .ct-win, .ab-win { border-radius: 12px !important; }
  .ct-pane-body, .ab-bio-body, .ab-refs-body { padding: 16px 14px !important; }

  /* ── 7) Kartice ── */
  .dl-card-body { padding: 14px 16px !important; }
  .dl-project-content { padding: 20px 18px !important; }
  .dl-project-media { padding: 14px !important; }

  /* ── 8) Terminal ── */
  .ct-body, .ab-term-body, .dl-term-body {
    padding: 12px 14px !important;
    font-size: 11.5px !important;
    line-height: 1.6 !important;
  }

  /* ── 9) Naslovi ── */
  .ct-title-dark, .ct-title-blue,
  .ab-title-dark, .ab-title-blue,
  .dl-title-dark, .dl-title-blue { font-size: 42px !important; }
  .dl-cat-title { font-size: 30px !important; }
  .dl-project-title { font-size: 24px !important; }
  .dl-card-title { font-size: 22px !important; }
  .ab-bio-title { font-size: 28px !important; }
  .ct-form-title-light, .ct-form-title-blue { font-size: 34px !important; }

  /* ── 10) Opisi ── */
  .ct-desc, .ab-desc, .dl-desc,
  .dl-project-desc, .ab-bio-text, .dl-cat-desc {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  /* ── 11) About meta ── */
  .ab-meta { grid-template-columns: 1fr !important; }
  .ab-meta-item {
    padding: 12px 16px !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
  }
  .ab-meta-item:first-child { border-top: 0 !important; }

  /* ── 12) Skrati tekst ── */
  .dl-project-desc + .dl-project-desc { display: none !important; }
  .dl-features li:nth-child(n+4) { display: none !important; }

  /* ── 13) Breadcrumb ── */
  .ct-breadcrumb, .ab-breadcrumb, .dl-breadcrumb {
    padding: 4px 10px !important;
    font-size: 10.5px !important;
    margin-bottom: 14px !important;
    gap: 4px !important;
  }
  .ct-bc-prompt, .ab-bc-prompt, .dl-bc-prompt,
  .ct-bc-current, .ab-bc-current, .dl-bc-current { font-size: 10.5px !important; }
  .ct-bc-badge, .ab-bc-badge, .dl-bc-badge {
    font-size: 10px !important;
    margin-left: 8px !important;
    padding-left: 8px !important;
  }
  .ct-bc-badge::before, .ab-bc-badge::before, .dl-bc-badge::before {
    width: 5px !important;
    height: 5px !important;
  }

  /* ── 14) Hero title small ── */
  .ct-title-small, .ab-title-small, .dl-title-small {
    font-size: 13.5px !important;
    margin-top: 12px !important;
  }

  /* ── 15) Hero CTA ── */
  .ct-command-line, .ab-cmd, .dl-cmd {
    padding: 9px 14px !important;
    font-size: 12.5px !important;
    min-height: 40px !important;
  }
  .dl-commands { gap: 6px !important; }

  /* ── 16) Sekcije Demo Lab ── */
  .dl-ls-cmt { display: none !important; }
  .dl-cat-head {
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
  }
  .dl-cat-desc { font-size: 12.5px !important; line-height: 1.55 !important; }

  /* ── 17) Project window ── */
  .dl-project { margin-bottom: 16px !important; }
  .dl-project-card { border-radius: 12px !important; }
  .dl-project-bar { min-height: 38px !important; padding: 0 12px !important; }
  .dl-project-bar .dl-file { font-size: 11px !important; }
  .dl-tag { font-size: 10px !important; padding: 2px 8px !important; }

  .dl-slider, .dl-video-wrap { margin: 8px 0 2px !important; }
  .dl-slider img, .dl-slide video, .dl-video-wrap video {
    max-height: 220px !important;
    object-fit: cover !important;
  }
  .dl-slider-dots { padding: 4px 0 2px !important; }
  .dl-slider-dots .dl-dot-btn { width: 18px !important; height: 18px !important; }

  .dl-pterm { font-size: 11px !important; line-height: 1.6 !important; }
  .dl-pterm-out, .dl-pcode {
    font-size: 10.5px !important;
    line-height: 1.55 !important;
    padding-left: 12px !important;
  }
  .dl-pterm-row + .dl-pterm-row,
  .dl-pterm-out + .dl-pterm-row,
  .dl-pcode + .dl-pterm-row { margin-top: 8px !important; }

  .dl-project-title { margin-bottom: 12px !important; }
  .dl-project-desc { font-size: 12.5px !important; line-height: 1.6 !important; margin-bottom: 10px !important; }

  .dl-features { margin: 10px 0 16px !important; }
  .dl-features li {
    padding: 5px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
  }

  /* ── 18) Category kartice ── */
  .dl-card-title { margin-bottom: 6px !important; }
  .dl-card-desc {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 10px !important;
  }
  .dl-card-metric { margin-bottom: 10px !important; font-size: 11.5px !important; }
  .dl-chips li { padding: 3px 8px !important; font-size: 10.5px !important; }
  .dl-card-foot { padding-top: 12px !important; font-size: 11.5px !important; }
  .dl-cmt-line { margin-bottom: 6px !important; font-size: 10.5px !important; }

  /* ── 19) CTA dugmad ── */
  .dl-btn { padding: 9px 14px !important; font-size: 11.5px !important; }
  .dl-cta { gap: 6px !important; }
}

/* ============================================================
   JAKO MALI TELEFONI
============================================================ */
@media (max-width: 480px) {
  .dl-hero, .dl-index, .dl-cat,
  .ct-hero-section, .ct-form-section,
  .ab-hero-section, .ab-bio, .ab-refs {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .ct-pane-body, .ab-bio-body, .ab-refs-body {
    padding: 14px 12px !important;
  }
  .dl-slider img, .dl-slide video, .dl-video-wrap video { max-height: 180px !important; }
  .dl-project-title { font-size: 22px !important; }
  .dl-cat-title { font-size: 26px !important; }
  .ct-title-dark, .ct-title-blue,
  .ab-title-dark, .ab-title-blue,
  .dl-title-dark, .dl-title-blue { font-size: 38px !important; }
}
/* ============================================================
   ZEN FOOTER — terminal style
============================================================ */
.zen-footer {
  width: 100%;
  background: transparent;      /* ← providno, vidi se pozadina stranice */
  color: #c9d1d9;
  font-family: 'Courier New', monospace;
  padding: 0 clamp(20px, 4vw, 64px) clamp(30px, 4vw, 40px);
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}

.zen-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  margin-top: clamp(40px, 5vw, 60px);
}

/* ── Terminal bar ── */
.zen-footer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 18px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.zen-footer-dots { display: inline-flex; gap: 7px; flex-shrink: 0; }
.zen-footer-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.zen-footer-dot.red    { background: #ff5f56; }
.zen-footer-dot.yellow { background: #ffbd2e; }
.zen-footer-dot.green  { background: #27c93f; }
.zen-footer-file {
  font-size: 12px;
  color: #8b949e;
  opacity: .8;
}
.zen-footer-status {
  margin-left: auto;
  font-size: 11px;
  color: #27c93f;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.zen-footer-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
  animation: zen-footer-ping 2.4s ease-out infinite;
}

@keyframes zen-footer-ping {
  0%   { box-shadow: 0 0 0 0 rgba(39,201,63,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(39,201,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(39,201,63,0); }
}

/* ── Body — 4 kolone ── */
.zen-footer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(28px, 3.5vw, 48px);
}
.zen-footer-col { min-width: 0; }

.zen-footer-cmt {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: #8b949e;
  font-style: italic;
}

/* Brand */
.zen-footer-col-brand .zen-footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 14px;
  transition: transform .3s ease, opacity .3s ease;
}
.zen-footer-col-brand .zen-footer-brand img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(37,99,235,0.15));
}
.zen-footer-col-brand .zen-footer-brand:hover {
  transform: translateY(-1px);
  opacity: 1;
}
.zen-footer-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #8b949e;
  max-width: 42ch;
}

/* Liste */
.zen-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zen-footer-list a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  color: #c9d1d9;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.zen-footer-list a::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  opacity: 0.5;
  transition: opacity .2s ease, transform .2s ease;
}
.zen-footer-list a:hover {
  color: #60a5fa;
  padding-left: 18px;
}
.zen-footer-list a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

/* ── Bottom line ── */
.zen-footer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(28px, 3.5vw, 48px);
  background: #161b22;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.zen-footer-copy {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}
.zen-footer-copy-prompt {
  color: #2563eb;
  font-weight: 700;
  margin-right: 4px;
}

.zen-footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #c9d1d9;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.zen-footer-top-arrow {
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.zen-footer-top:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
.zen-footer-top:hover .zen-footer-top-arrow {
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .zen-footer-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }
  .zen-footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .zen-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .zen-footer-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }
  .zen-footer-col-brand .zen-footer-brand img {
    height: 38px;
  }
  .zen-footer-desc {
    font-size: 12px;
  }
  .zen-footer-foot {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .zen-footer-copy {
    font-size: 11.5px;
  }
  .zen-footer-top {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================================
   FOOTER — MOBILE (samo brand + legal + back to top)
============================================================ */
@media (max-width: 768px) {

  /* Skrati spoljni padding */
  .zen-footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 24px !important;
  }

  .zen-footer-inner {
    margin-top: 40px !important;
    border-radius: 12px !important;
  }

  /* Bar kraći */
  .zen-footer-bar {
    min-height: 38px !important;
    padding: 0 12px !important;
    gap: 10px !important;
  }
  .zen-footer-dot { width: 9px !important; height: 9px !important; }
  .zen-footer-file { font-size: 11px !important; }
  .zen-footer-status { font-size: 10.5px !important; }

  /* ── SAKRIJ Navigate + Projects kolone na mobilnom ── */
  .zen-footer-col:nth-child(2),   /* // navigate */
  .zen-footer-col:nth-child(3) {  /* // projects */
    display: none !important;
  }

  /* Body — samo brand + legal u 2 kolone */
  .zen-footer-body {
    grid-template-columns: 1fr auto !important;
    gap: 20px !important;
    padding: 20px 16px !important;
    align-items: start !important;
  }

  /* Brand */
  .zen-footer-col-brand {
    grid-column: auto !important;
  }
  .zen-footer-cmt {
    margin-bottom: 8px !important;
    font-size: 10.5px !important;
  }
  .zen-footer-col-brand .zen-footer-brand img {
    height: 32px !important;
    max-width: 110px !important;
    margin-bottom: 10px !important;
  }
  .zen-footer-desc {
    font-size: 11.5px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }

  /* Legal kolona */
  .zen-footer-list {
    gap: 6px !important;
  }
  .zen-footer-list a {
    font-size: 12px !important;
    padding-left: 12px !important;
  }

  /* Bottom line — kompaktniji */
  .zen-footer-foot {
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .zen-footer-copy {
    font-size: 11px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }
  .zen-footer-top {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 11.5px !important;
  }
}

/* Jako mali telefoni — sve jedno ispod drugog */
@media (max-width: 480px) {
  .zen-footer-body {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
/* ============================================================
   ZEN ENHANCEMENTS — progress bar, reveal, cursor, hover polish
============================================================ */

/* ── 1) SCROLL PROGRESS BAR ── */
.zen-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 999999;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .1s linear;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* ── 2) SCROLL REVEAL ── */
.zen-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .7s cubic-bezier(0.22, 1, 0.36, 1),
    transform .7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.zen-reveal.zen-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ── 3) CUSTOM CURSOR — terminal elementi ── */
.dl-pterm,
.dl-term-body,
.ab-term-body,
.ct-body,
.dl-pcode,
.dl-pterm-out {
  cursor: crosshair;
}

/* Copy cursor za kod blokove */
.dl-pcode code,
.dl-code-line {
  cursor: text;
}

/* ── 4) PROJECT WINDOW — jači lift ── */
.dl-project-card {
  transition:
    transform .45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .45s ease,
    box-shadow .45s ease !important;
}
.dl-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    0 30px 80px -20px rgba(13, 17, 23, 0.5),
    0 0 70px rgba(37, 99, 235, 0.15),
    0 0 0 1px rgba(37, 99, 235, 0.2) inset;
}

/* ── 5) CATEGORY CARD — file icon glow ── */
.dl-card .dl-file {
  transition: color .35s ease, opacity .35s ease, text-shadow .35s ease;
}
.dl-card:hover .dl-file {
  color: #93c5fd;
  opacity: 1;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

/* 3 tačkice — suptilni pulse na hover */
.dl-card .dl-dot {
  transition: transform .3s ease, box-shadow .3s ease;
}
.dl-card:hover .dl-dot.green {
  box-shadow: 0 0 8px rgba(39, 201, 63, 0.7);
  transform: scale(1.15);
}
.dl-card:hover .dl-dot.yellow {
  box-shadow: 0 0 8px rgba(255, 189, 46, 0.7);
}
.dl-card:hover .dl-dot.red {
  box-shadow: 0 0 8px rgba(255, 95, 86, 0.7);
}

/* ── 6) MOBILE MENU — staggered fade-in ── */
@media (max-width: 991px) {
  .zen-mobile-menu li,
  .zen-mobile-nav-footer {
    opacity: 0;
    transform: translateX(-8px);
    transition:
      opacity .35s ease,
      transform .35s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0ms;
  }
  .zen-mobile-nav.open .zen-mobile-menu li,
  .zen-mobile-nav.open .zen-mobile-nav-footer {
    opacity: 1;
    transform: translateX(0);
    transition-delay: var(--zen-stagger, 0ms);
  }
}

/* ── 7) Reduced motion — poštuj korisnike ── */
@media (prefers-reduced-motion: reduce) {
  .zen-progress { transition: none; }
  .zen-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .dl-project-card:hover {
    transform: none !important;
  }
  .zen-mobile-menu li,
  .zen-mobile-nav-footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ============================================================
   FOOTER — veći ekrani (širi, bliži ivicama)
============================================================ */
@media (min-width: 1540px) {
  .zen-footer {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .zen-footer-inner {
    max-width: 100%;
  }
}

@media (max-width: 991px) {

  /* Sakrij sve output blokove — git log, package.json, npm test */
  .dl-pterm-out,
  .dl-pcode {
    display: none !important;
  }

  /* Ostavi samo prve 2 komandne linije, ostale sakrij */
  .dl-pterm-row:nth-of-type(n+3) {
    display: none !important;
  }

  /* Malo zbij razmak između komandi */
  .dl-pterm-row + .dl-pterm-row {
    margin-top: 6px !important;
  }

}