/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(16,185,129,0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 28%, #eef4fb 100%);
  color: #0f2244;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: #4a5a7a; }

/* ── Utility ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; min-width: 0; }
.accent { color: #2563eb; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(147,197,253,0.55);
  box-shadow: 0 10px 30px rgba(37,99,235,0.08);
}
.bg-light { background: #f4f7fb; }
.bg-white { background: #fff; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,251,255,0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219,234,254,0.9);
  box-shadow: 0 12px 40px rgba(15,34,68,0.06);
  overflow: visible;
}
nav .inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 2rem;
  overflow: visible;
}
.logo {
  display: flex; align-items: center;
  text-decoration: none;
  height: 54px;
  overflow: visible;
  flex-shrink: 0;
}
nav .logo img {
  height: 92px;
  width: auto;
  display: block;
}
/* Top-level nav row only (not the dropdown ul) — desktop */
@media (min-width: 701px) {
  nav > div > ul {
    list-style: none;
    display: flex; gap: 1.1rem; align-items: center;
  }
}
nav ul a {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: #4a5a7a; transition: color 0.2s, background 0.2s;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}
nav ul a:hover,
nav ul a.active {
  color: #2563eb;
  background: rgba(255,255,255,0.8);
}

/* ── NAV DROPDOWN ── */
.has-dropdown { position: relative; }
.has-dropdown > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.has-dropdown > a .chev {
  width: 12px; height: 12px; flex-shrink: 0;
  transition: transform 0.2s;
}
.has-dropdown.open > a .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: rgba(248,251,255,0.98);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15,34,68,0.12);
  backdrop-filter: blur(18px);
  list-style: none;
  display: flex; flex-direction: column; /* vertical stack */
  padding: 0.4rem 0;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.has-dropdown.open .dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-radius: 0;
  font-size: 0.88rem;
  color: #4a5a7a;
  background: transparent;
  white-space: nowrap;
}
.dropdown li a:hover { color: #2563eb; background: #f0f6ff; }
.dropdown li a.active { color: #2563eb; }

/* ── HAMBURGER (mobile) ── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  position: relative; z-index: 102;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #0f2244; border-radius: 2px; transition: 0.3s;
}
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 34, 68, 0.35);
  z-index: 99;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.nav-overlay.open { display: block; }
body.nav-open {
  overflow: hidden;
  position: fixed;
  left: 0; right: 0;
  width: 100%;
}
@media (max-width: 700px) {
  .logo { height: 44px; }
  nav .logo img { height: 64px; }
  nav .inner { padding: 0.7rem 1.2rem; position: relative; }
  .nav-toggle { display: flex; }
  #navMenu {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(248,251,255,0.98);
    border-bottom: 1px solid #dbeafe;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(15,34,68,0.08);
    z-index: 101;
    list-style: none;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #navMenu.open { display: flex; }
  #navMenu > li > a {
    display: block; padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #eaf2ff;
    font-size: 1rem;
  }
  /* Dropdown becomes inline list on mobile */
  .dropdown {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; box-shadow: none; border: none; border-radius: 0;
    background: #f0f6ff; padding: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a {
    padding: 0.75rem 1.5rem 0.75rem 2.2rem;
    font-size: 0.95rem; border-bottom: 1px solid #dbeafe;
  }
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 0 6rem;
  background: linear-gradient(150deg, #eaf2ff 0%, #dbeafe 40%, #e8f5f0 100%);
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 45%, rgba(37,99,235,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(16,185,129,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 90% 90%, rgba(37,99,235,0.05) 0%, transparent 60%);
}
/* #hero::after dot-grid replaced by bg-pcb SVG layer */
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4.5rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-text .eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #2563eb; margin-bottom: 1.2rem;
}
.hero-text h1 {
  margin-bottom: 1.4rem;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-text p {
  font-size: 1.1rem; max-width: 480px; margin-bottom: 2rem; color: #4a5a7a;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
  padding: 0.95rem 2.1rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 18px 36px rgba(37,99,235,0.24);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(37,99,235,0.28);
  filter: saturate(1.05);
}
.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
}
/* Secondary button on light backgrounds */
.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 2px solid rgba(37,99,235,0.35);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(37,99,235,0.06);
  border-color: rgba(37,99,235,0.6);
  box-shadow: none;
}
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Robot SVG illustration */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  min-height: 520px;
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.48));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 28px 70px rgba(37,99,235,0.12);
  overflow: hidden;
}
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.65;
}
.hero-visual::before {
  width: 180px; height: 180px;
  top: 16px; right: 18px;
  background: radial-gradient(circle, rgba(37,99,235,0.22), transparent 68%);
}
.hero-visual::after {
  width: 160px; height: 160px;
  bottom: 14px; left: 10px;
  background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 68%);
}
.arm-wrap {
  width: 100%; max-width: 460px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 50px rgba(15,34,68,0.18));
  animation: floatArm 5s ease-in-out infinite;
}
@keyframes floatArm {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 8rem 0 3.5rem;
  background: linear-gradient(150deg, #eaf2ff 0%, #dbeafe 40%, #e8f5f0 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.page-hero p {
  max-width: 560px;
  margin: 0 auto;
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 2.5rem 0 3.5rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
  background: #fff;
}
.stats-bar.flush { background: #fff; padding-top: 2.5rem; }
.stats-inner {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem;
  background: linear-gradient(135deg, #0f2244 0%, #183563 55%, #1e3a6e 100%);
  border-radius: 28px;
  padding: 2rem 2.4rem;
  box-shadow: 0 28px 60px rgba(15,34,68,0.18);
  border: 1px solid rgba(96,165,250,0.16);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: #2563eb; }
.stat span { font-size: 0.85rem; color: #8aa0c8; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── SECTIONS shared ── */
section { padding: 6.5rem 0; position: relative; overflow-x: clip; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  margin-bottom: 0.8rem;
  text-wrap: balance;
}
.section-header p { max-width: 560px; margin: 0 auto; }
.text-link {
  display: inline-block;
  margin-top: 2rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, #0f2244 0%, #1e3a6e 100%);
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: #8aa0c8; max-width: 480px; margin: 0 auto 1.5rem; }
.cta-contact-row {
  display: flex; justify-content: center; align-items: center;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.cta-contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: #93c5fd; font-size: 0.95rem; text-decoration: none;
  transition: color 0.2s;
}
.cta-contact-item:hover { color: #fff; }
.cta-contact-item svg { opacity: 0.7; flex-shrink: 0; }
.cta-social-row {
  margin-top: 2.5rem;
}
.cta-social-row > span {
  display: block; text-align: center;
  color: #8aa0c8; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.cta-social-row .social-links-grid {
  max-width: 560px; margin: 0 auto;
}
.cta-social-row .social-link-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}
.cta-social-row .social-link-card:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.cta-social-row .slc-body h3 { color: #e8f0ff; }
.cta-social-row .slc-body p  { color: #8aa0c8; }

/* ── O NAMA ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.about-text,
.about-values { align-self: start; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-values .values {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 0;
}
.value-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,0.72);
  border-radius: 18px; padding: 1.15rem 1.25rem;
  border-left: 3px solid #2563eb;
  border: 1px solid rgba(219,234,254,0.9);
  box-shadow: 0 16px 34px rgba(15,34,68,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15,34,68,0.1);
}
.value-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  box-shadow: 0 0 0 6px rgba(37,99,235,0.08);
}

/* ── PROJEKAT ── */
.project-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(219,234,254,0.95);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15,34,68,0.1);
}
.project-image-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, #eef5ff 0%, #e8f5f0 100%);
  border-right: 1px solid rgba(219,234,254,0.9);
}
.project-photo {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(15,34,68,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15,34,68,0.16);
}
.project-photo img {
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}
.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.2rem;
}
.project-info h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.project-info > p {
  margin-bottom: 1.25rem;
  max-width: 62ch;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  width: 100%;
  min-width: 0;
}
.spec-grid > * { min-width: 0; }
.spec-item {
  background: #f4f7fb;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(219,234,254,0.85);
  border-left: 3px solid #2563eb;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.spec-item small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8aa0c8; display: block; margin-bottom: 0.2rem; }
.spec-item strong { font-size: 1rem; color: #0f2244; }
.project-note {
  background: linear-gradient(135deg, #eaf2ff, #e8f5f0);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  font-size: 0.86rem;
  color: #4a5a7a;
  border-left: 4px solid #2563eb;
}
.project-note strong { color: #0f2244; }

/* ── PROIZVODI ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  width: 100%;
  min-width: 0;
}
.products-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.product-card--solo {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.products-grid > * { min-width: 0; }
.product-card {
  background: #fff;
  border-radius: 22px;
  padding: 2rem 1.8rem;
  box-shadow: 0 16px 38px rgba(26,26,46,0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid rgba(219,234,254,0.85);
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  opacity: 0.18;
  transition: opacity 0.2s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(26,26,46,0.14);
  border-color: rgba(147,197,253,0.95);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #eaf2ff, #dbeafe);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.product-icon svg { width: 36px; height: 36px; }
.product-card h3 {
  margin-bottom: 0.6rem;
  color: #0f2244;
  overflow-wrap: break-word;
  word-break: normal;
}
.product-card p { font-size: 0.92rem; overflow-wrap: break-word; word-break: normal; }
.product-tags { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  font-size: 0.72rem; font-weight: 600;
  background: #e8f5ee; color: #10864f;
  padding: 0.3rem 0.7rem; border-radius: 20px;
  border: 1px solid #b6e2cb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  overflow-wrap: break-word;
  word-break: normal;
}
.placeholder-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8aa0c8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.2rem;
}

/* ── KONTAKT ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: stretch;
}
.contact-info {
  display: flex;
  flex-direction: column;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-details {
  display: flex; flex-direction: column; gap: 1.2rem;
  flex: 1;
}
.contact-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.2rem; border-radius: 16px;
  background: rgba(255,255,255,0.8); border: 1px solid #dbeafe;
  box-shadow: 0 14px 34px rgba(15,34,68,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(15,34,68,0.1);
}
.contact-item svg { width: 22px; height: 22px; color: #2563eb; flex-shrink: 0; }
.contact-item div strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8aa0c8; margin-bottom: 0.2rem; }
.contact-item div span { font-size: 0.95rem; color: #0f2244; font-weight: 500; }
.contact-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
  width: 100%;
  min-width: 0;
}
.contact-preview-grid > * { min-width: 0; }
.map-placeholder {
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, #eaf2ff, #dbeafe);
  height: 100%;
  min-height: 340px;
  display: block;
  border: 1px solid #dbeafe; position: relative;
  box-shadow: 0 24px 56px rgba(15,34,68,0.1);
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 16px;
  display: block;
}

/* ── SOCIAL MREŽE (O nama) ── */
.social-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}
.social-links-grid > * { min-width: 0; }
.social-link-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  text-align: left;
  background: #fff;
  border: 1px solid #e2eaf6;
  box-shadow: 0 4px 16px rgba(15,34,68,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,34,68,0.12);
}
.slc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.linkedin-card  .slc-icon { background: rgba(10,102,194,0.1);  color: #0a66c2; }
.instagram-card .slc-icon { background: rgba(220,39,67,0.08);  color: #cc2366; }
.facebook-card  .slc-icon { background: rgba(24,119,242,0.12); color: #1877f2; }
.slc-icon svg { width: 22px; height: 22px; display: block; }
.slc-body { min-width: 0; flex: 1; text-align: left; }
.slc-body h3 {
  color: #0f2244;
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slc-body p  { font-size: 0.83rem; color: #6a7a9a; margin: 0; line-height: 1.4; }
.slc-handle, .slc-cta { display: none; }

/* ── SCROLL REVEAL ── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.revealing {
  animation: revealUp 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── FOOTER ── */
footer {
  background: #0f2244;
  color: #8aa0c8;
  padding: 3.5rem 0 0;
  border-top: 1px solid rgba(96,165,250,0.12);
  position: relative;
  overflow: hidden;
  text-align: left;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 1rem 3rem;
  padding-bottom: 2.5rem;
  align-items: start;
}
footer .footer-col,
footer .footer-brand,
footer .footer-contact {
  text-align: left;
}
footer .footer-tagline {
  font-size: 0.82rem;
  color: #6a84b0;
  margin: 0.75rem 0 1.2rem;
  line-height: 1.6;
  text-align: left;
}
footer .footer-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 0.9rem;
  text-align: left;
}
footer ul.footer-links {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
footer ul.footer-links li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
footer ul.footer-links li a {
  font-size: 0.84rem;
  color: #a8c4e8;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}
footer ul.footer-links li a:hover { color: #fff; }
footer address.footer-nap {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
}
footer address.footer-nap p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #a8c4e8;
  margin: 0;
  line-height: 1.5;
  text-align: left;
}
footer address.footer-nap svg { flex-shrink: 0; margin-top: 3px; opacity: 0.6; }
footer address.footer-nap a { color: #a8c4e8; text-decoration: none; transition: color 0.2s; }
footer address.footer-nap a:hover { color: #fff; }
footer .footer-bottom {
  border-top: 1px solid rgba(96,165,250,0.1);
  padding: 1.2rem 0;
  text-align: center;
}
footer .footer-bottom p { font-size: 0.8rem; color: #4a6080; margin: 0; }
footer .logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}
footer p { font-size: 0.85rem; }
footer .footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0;
}
@media (max-width: 960px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  footer .footer-brand { grid-column: 1 / -1; }
  footer .footer-tagline { max-width: 100%; }
}
@media (max-width: 560px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
  }
  footer .footer-brand { grid-column: auto; }
}
footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
footer .footer-social a:hover {
  transform: translateY(-2px);
}
footer .footer-social a.social-linkedin:hover {
  color: #fff;
  background: #0a66c2;
  border-color: #0a66c2;
}
footer .footer-social a.social-instagram:hover {
  color: #fff;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
}
footer .footer-social a.social-facebook:hover {
  color: #fff;
  background: #1877f2;
  border-color: #1877f2;
}
footer .footer-social svg { width: 22px; height: 22px; }

/* ── PAGE-HERO DECORATIONS (resenja + subpages) ── */
.ph-arm {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 28vw, 400px);
  pointer-events: none;
  z-index: 0;
  animation: ph-arm-float 6s ease-in-out infinite;
  opacity: 0.82;
}
@keyframes ph-arm-float {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 14px)); }
}
.ph-deco-left {
  position: absolute;
  left: 2%; top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 10vw, 180px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: ph-deco-drift 9s ease-in-out infinite alternate;
}
@keyframes ph-deco-drift {
  0%   { transform: translateY(calc(-50% - 8px)); }
  100% { transform: translateY(calc(-50% + 8px)); }
}
/* Circuit node blink */
.deco-node   { animation: deco-blink 4s ease-in-out infinite; }
.deco-node-2 { animation-delay: -1.4s; }
.deco-node-3 { animation-delay: -2.8s; }
@keyframes deco-blink {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; filter: drop-shadow(0 0 5px rgba(37,99,235,0.7)); }
}
.deco-ring   { animation: deco-ring-pulse 4s ease-in-out infinite; }
.deco-ring-2 { animation-delay: -2s; }
@keyframes deco-ring-pulse {
  0%, 100% { r: 14; opacity: 0.07; }
  50%       { r: 20; opacity: 0.14; }
}
/* Arm LED + pointer tip pulse */
.ph-arm-led {
  animation: arm-led-blink 2.5s ease-in-out infinite;
}
@keyframes arm-led-blink {
  0%, 100% { opacity: 1; }
  45%, 55% { opacity: 0.1; }
}
.ph-arm-pointer {
  animation: arm-pointer-glow 2s ease-in-out infinite;
}
@keyframes arm-pointer-glow {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.25; filter: drop-shadow(0 0 6px #2563eb); }
}

/* ── ANIMATIONS ── */

/* Canvas particle network */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Robot arm sway - rotates full arm around base joint (230px, 370px in SVG viewBox) */
.arm-body {
  transform-box: view-box;
  transform-origin: 230px 370px;
  animation: arm-sway 8s ease-in-out infinite alternate;
}
@keyframes arm-sway {
  0%   { transform: rotate(-6deg); }
  50%  { transform: rotate(2deg); }
  100% { transform: rotate(7deg); }
}

/* Gripper fingers open/close */
.arm-finger-l {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: finger-l 7s ease-in-out infinite;
}
.arm-finger-r {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  animation: finger-r 7s ease-in-out infinite;
}
@keyframes finger-l {
  0%, 20%   { transform: translateX(0); }
  35%, 55%  { transform: translateX(-5px); }
  70%, 100% { transform: translateX(0); }
}
@keyframes finger-r {
  0%, 20%   { transform: translateX(0); }
  35%, 55%  { transform: translateX(5px); }
  70%, 100% { transform: translateX(0); }
}

/* Joint glow pulse */
.joint-pulse   { animation: joint-glow 3.5s ease-in-out infinite; }
.joint-pulse-2 { animation-delay: -1.2s; }
.joint-pulse-3 { animation-delay: -2.4s; }
@keyframes joint-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; filter: drop-shadow(0 0 7px rgba(37,99,235,0.9)); }
}

/* Laser scan line (inside .hero-visual) */
.arm-scan-line {
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(37,99,235,0.0) 10%,
    rgba(37,99,235,0.7) 40%,
    rgba(147,210,255,0.9) 50%,
    rgba(37,99,235,0.7) 60%,
    rgba(37,99,235,0.0) 90%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
  animation: scan-sweep 4s linear infinite;
}
@keyframes scan-sweep {
  0%   { top: 8%; opacity: 0; }
  6%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

/* ══════════════════════════════════════════════
   TECH BACKGROUND PATTERNS
   Industrial robotics aesthetic - all 5-10% opacity,
   slow animations, dark-theme compatible
   ══════════════════════════════════════════════ */

/* Base layer - shared by all pattern variants */
.bg-tech {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-tech svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ensure page-hero content always sits above bg layers */
.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* ── 1. PCB circuit traces (homepage hero) ── */
.bg-pcb .pcb-tile-layer {
  opacity: 0.07;
}
.pcb-pulse {
  fill: none;
  stroke: #2563eb;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 18 9999;
  stroke-dashoffset: 0;
  opacity: 0.18;
  animation: pcb-pulse-move 22s linear infinite;
}
@keyframes pcb-pulse-move {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -2300; }
}

/* ── 2. Industrial signal paths (solutions page) ── */
.sig-group {
  stroke: #2563eb;
  stroke-width: 1;
  fill: none;
}
.sig-g1 { opacity: 0.06; animation: sig-pulse 10s ease-in-out infinite; }
.sig-g2 { opacity: 0.06; animation: sig-pulse 10s ease-in-out infinite; animation-delay: -3.33s; }
.sig-g3 { opacity: 0.06; animation: sig-pulse 10s ease-in-out infinite; animation-delay: -6.66s; }
@keyframes sig-pulse {
  0%, 100% { opacity: 0.04; }
  35%, 65%  { opacity: 0.10; }
}

/* ── 3. Vision system coordinate grid (pick-and-place) ── */
.vision-grid { opacity: 0.05; }
.reticle-a   { opacity: 0.09; }
.reticle-b {
  opacity: 0.07;
  animation: vision-scan 16s ease-in-out infinite alternate;
}
@keyframes vision-scan {
  from { transform: translateX(0px); }
  to   { transform: translateX(200px); }
}

/* ── 4. Robotic trajectory arcs (cobots page) ── */
.traj-arc {
  fill: none;
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.traj-a1 {
  stroke-width: 1;
  opacity: 0.09;
  animation: traj-draw 18s ease-in-out infinite alternate;
}
.traj-a2 {
  stroke-width: 1;
  stroke-dasharray: 4 6;  /* dashed secondary path */
  stroke-dashoffset: 0;
  opacity: 0.07;
  animation: traj-fade 18s ease-in-out infinite alternate;
  animation-delay: -5s;
}
.traj-a3 {
  stroke-width: 0.8;
  opacity: 0.07;
  animation: traj-draw 18s ease-in-out infinite alternate;
  animation-delay: -10s;
}
@keyframes traj-draw {
  0%   { stroke-dashoffset: 2000; opacity: 0; }
  15%  { opacity: 0.09; }
  70%  { stroke-dashoffset: 0; opacity: 0.09; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes traj-fade {
  0%, 100% { opacity: 0.03; }
  40%, 60%  { opacity: 0.09; }
}
.traj-wp {
  fill: #2563eb;
  opacity: 0;
  animation: wp-show 18s ease-in-out infinite alternate;
}
.traj-wp-2 { animation-delay: -5s; }
.traj-wp-3 { animation-delay: -10s; }
@keyframes wp-show {
  0%, 12%  { opacity: 0; }
  25%, 75%  { opacity: 0.13; }
  95%, 100% { opacity: 0; }
}

/* ── 5. Circuit grid on footer (dark theme, CSS-only) ── */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='140'%3E%3Cpath d='M0,35 H70 V105 H130 V35 H200 M100,0 V35 M100,105 V140' stroke='%2360a5fa' stroke-width='.8' fill='none'/%3E%3Ccircle cx='70' cy='35' r='3' fill='none' stroke='%2360a5fa' stroke-width='.8'/%3E%3Ccircle cx='130' cy='35' r='3' fill='none' stroke='%2360a5fa' stroke-width='.8'/%3E%3Ccircle cx='70' cy='105' r='3' fill='none' stroke='%2360a5fa' stroke-width='.8'/%3E%3Ccircle cx='130' cy='105' r='3' fill='none' stroke='%2360a5fa' stroke-width='.8'/%3E%3Ccircle cx='100' cy='35' r='1.5' fill='%2360a5fa'/%3E%3Ccircle cx='100' cy='105' r='1.5' fill='%2360a5fa'/%3E%3C/svg%3E");
  background-size: 200px 140px;
  opacity: 0.07;
}

/* Hide all tech backgrounds on mobile for performance */
@media (max-width: 900px) {
  .bg-tech { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ph-arm, .ph-deco-left { display: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-placeholder { height: 340px; min-height: 0; }
  .map-placeholder iframe { height: 340px; min-height: 0; }
  .about-grid { align-items: start; }
  .about-text, .about-values { align-self: auto; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .contact-preview-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-text h1 {
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-text p {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-text .eyebrow { text-align: center; }
  .stats-bar { margin-top: -1rem; }
  .project-wrap { grid-template-columns: 1fr; }
  .project-image-block {
    border-right: none;
    border-bottom: 1px solid rgba(219,234,254,0.9);
    padding: 1.25rem;
  }
  .project-photo { max-width: 320px; margin: 0 auto; }
  .project-info { padding: 1.6rem 1.4rem; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .products-grid,
  .products-grid--2col {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .product-card--solo {
    max-width: none;
  }
  .spec-grid { grid-template-columns: 1fr; }
  .social-links-grid { grid-template-columns: 1fr; }
  .contact-item,
  .value-item,
  .product-card {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 1.2rem; }
  #hero { padding-top: 6.5rem; }
  .hero-text h1 { max-width: 100%; }
  .hero-text p { font-size: 1rem; }
  section { padding: 4rem 0; }
  .stats-inner { gap: 1rem; padding: 1.5rem 1.2rem; border-radius: 22px; }
  .stat strong { font-size: 1.5rem; }
  .project-photo img { max-height: 360px; }
  .tag { padding: 0.45rem 0.7rem; }
}
@media (max-width: 375px) {
  .container { padding: 0 1rem; }
  .stats-inner { padding: 1.2rem 0.8rem; }
  .stat strong { font-size: 1.3rem; }
  .btn { padding: 0.75rem 1.2rem; font-size: 0.95rem; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .article-body { padding: 2.5rem 1rem; }
  .article-hero .container { padding: 0 1rem; }
}
