/* =====================================================================
   YOTTA SOLUTION — styles.css
   Static company website. Plain CSS, no build step.
   Palette: light (white) surfaces + brand red accents + red network.
   ===================================================================== */

/* ------------------------ Tokens ------------------------ */
:root {
  /* Forbid Chrome Auto Dark Mode from inverting this light-only site */
  color-scheme: only light;

  /* Brand */
  --red: #e11b22;
  --red-bright: #ed1c24;
  --red-deep: #b4141a;
  --grad-red: linear-gradient(135deg, #ed1c24 0%, #c2141b 100%);

  /* Surfaces (light theme) */
  --bg: #ffffff;
  --bg-2: #f3f5f9;
  --bg-3: #ffffff;
  --panel: #ffffff;
  --line: rgba(20, 22, 30, 0.1);
  --line-2: rgba(20, 22, 30, 0.2);

  /* Secondary light surfaces */
  --light: #f3f5f9;
  --light-2: #ffffff;
  --light-line: rgba(20, 22, 30, 0.1);

  /* Text (dark on light) */
  --text: #1a1d27;
  --text-soft: #4b5160;
  --muted: #5e6472;
  --ink: #16181f;
  --ink-soft: #3c4150;
  --ink-muted: #6a7183;

  /* Type — Oswald (display: headings, nav, labels) + Poppins (body) */
  --font-sans:
    "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;

  /* Metrics */
  --container: 1220px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------ Reset ------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* `only` blocks Chrome/Samsung Auto Dark Mode from inverting the light site */
  color-scheme: only light;
  background-color: #ffffff;
}
html:focus-within {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: #ffffff;
  color-scheme: only light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}
ul {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ------------------------ Layout ------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section-dark {
  background: var(--bg);
  color: var(--text);
  position: relative;
}
.section-light {
  background: var(--light);
  color: var(--ink);
  position: relative;
}

section {
  position: relative;
  overflow: hidden;
}

/* Shared section paddings */
.about,
.dev,
.products,
.tech,
.contact {
  padding-block: clamp(70px, 9vw, 128px);
}

/* ------------------------ Eyebrow / titles ------------------------ */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 26px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 600;
  letter-spacing: 0;
}
.section-title.dark {
  color: var(--ink);
}

.title-underline,
.hero-underline {
  width: 66px;
  height: 4px;
  background: var(--grad-red);
  border-radius: 2px;
  margin-top: 22px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-intro {
  color: var(--text-soft);
  margin-top: 24px;
  font-size: 1.05rem;
}
.section-intro.dark {
  color: var(--ink-soft);
}
.lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  margin-top: 22px;
}

/* ------------------------ Buttons ------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(225, 27, 34, 0.6);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(225, 27, 34, 0.75);
}
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}
.btn-outline-dark {
  border: 1px solid rgba(25, 28, 37, 0.35);
  color: var(--ink);
  margin-top: 34px;
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-3px);
}
.btn-block {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color-scheme: only light;
  transition:
    background 0.3s var(--ease),
    height 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 68px;
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 22, 30, 0.5);
}
/* Frosted background on ::before — always present so nav text stays readable
   over the hero (and under Chrome Auto Dark) before the first scroll. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s var(--ease);
}
.site-header.scrolled::before {
  background: rgba(255, 255, 255, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
}
.site-header.scrolled .brand-logo {
  height: 32px;
  transition: height 0.3s var(--ease);
}

.main-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.28s var(--ease);
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link.is-active {
  color: var(--ink);
}
.nav-link.is-active::after {
  width: 100%;
}

/* Language switch (SR | EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: var(--radius);
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.lang-opt .flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(20, 22, 30, 0.14);
}
.lang-opt .flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lang-opt:hover {
  color: var(--ink);
}
.lang-opt.is-active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(20, 22, 30, 0.06);
}
.lang-sep {
  width: 1px;
  height: 15px;
  background: var(--line);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Decorative backgrounds
   ============================================================ */
.net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  contain: layout paint;
  background-color: transparent;
}
.hero-glow {
  position: absolute;
  top: 8%;
  right: -6%;
  width: 60%;
  height: 90%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(225, 27, 34, 0.12),
    rgba(225, 27, 34, 0) 60%
  );
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  contain: layout paint;
}
.poly-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.poly-left {
  left: 0;
  top: 20%;
  width: 340px;
  height: 420px;
  background:
    linear-gradient(135deg, rgba(225, 27, 34, 0.08), transparent 55%),
    linear-gradient(220deg, rgba(20, 22, 30, 0.03), transparent 60%);
  clip-path: polygon(0 0, 55% 12%, 30% 60%, 62% 78%, 12% 100%, 0 70%);
}
.poly-right {
  right: 0;
  bottom: 0;
  width: 380px;
  height: 380px;
  background: linear-gradient(300deg, rgba(20, 22, 30, 0.03), transparent 60%);
  clip-path: polygon(100% 0, 100% 100%, 20% 100%, 60% 55%, 35% 30%);
}
.binary-strip {
  position: absolute;
  top: 46%;
  right: 4%;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(20, 22, 30, 0.05);
  transform: rotate(-90deg);
  transform-origin: right top;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  display: none;
}
.light-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(20, 22, 30, 0.03) 50%,
    transparent 100%
  );
  -webkit-mask-image: repeating-linear-gradient(
    60deg,
    #000 0 2px,
    transparent 2px 120px
  );
  mask-image: repeating-linear-gradient(
    60deg,
    #000 0 2px,
    transparent 2px 120px
  );
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 80px;
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: center;
  color-scheme: only light;
  background-color: #ffffff;
  background-image: radial-gradient(
    125% 95% at 88% -8%,
    #fbe7e8 0%,
    #ffffff 52%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-copy {
  max-width: 780px;
}
.hero-title {
  font-size: clamp(2.25rem, 4.7vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}
/* Always solid brand red — no prefers-color-scheme, no transparent clip
   (Chrome Auto Dark often makes clipped transparent text vanish). */
.hero-title .hl {
  color: var(--red-deep);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* Service cards (in hero) */
.cards-grid {
  position: relative;
  z-index: 2;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px -22px rgba(20, 22, 30, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 20px 40px;
  color: var(--ink);
}
.service-icon svg {
  width: 54px;
  height: 54px;
  stroke-width: 1.3;
  opacity: 0.92;
}
.service-label {
  background: var(--grad-red);
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.35;
  padding: 20px 18px;
  margin-top: auto;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 27, 34, 0.4);
  box-shadow: 0 26px 46px -28px rgba(20, 22, 30, 0.35);
}
.service-card:hover .service-icon svg {
  opacity: 1;
}

/* ============================================================
   O NAMA
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.about-copy .lead {
  color: var(--text-soft);
}
.about-copy p {
  color: var(--muted);
  margin-top: 18px;
}
.check-list {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-soft);
}
/* Red disc with a perfectly-centered white check (SVG background) */
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 13px 13px no-repeat,
    var(--grad-red);
  box-shadow: 0 0 0 4px rgba(225, 27, 34, 0.12);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 10px 30px -24px rgba(20, 22, 30, 0.35);
  padding: 30px 26px;
  text-align: left;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.stat-card:hover {
  border-color: rgba(225, 27, 34, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -26px rgba(20, 22, 30, 0.4);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ============================================================
   RAZVOJ SOFTVERA — dev grid
   ============================================================ */
.about {
  background: var(--bg-2);
}
.dev {
  background: var(--light-2);
}
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dev-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 30px -24px rgba(20, 22, 30, 0.3);
  padding: 38px 32px;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.dev-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.dev-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 27, 34, 0.35);
  box-shadow: 0 24px 40px -28px rgba(20, 22, 30, 0.4);
}
.dev-card:hover::before {
  transform: scaleX(1);
}
.dev-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(225, 27, 34, 0.1);
  border: 1px solid rgba(225, 27, 34, 0.25);
  color: var(--red-bright);
  margin-bottom: 26px;
}
.dev-icon svg {
  width: 30px;
  height: 30px;
}
.dev-card h3 {
  font-size: 1.22rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.dev-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ============================================================
   PROIZVODI I REŠENJA
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.products-copy p {
  color: var(--ink-soft);
  margin-top: 26px;
  font-size: 1.03rem;
}
.products-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.products-list {
  display: grid;
  gap: 16px;
}
.product-item-wrap {
  background: var(--grad-red);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -18px rgba(225, 27, 34, 0.9);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.product-item-wrap:hover {
  transform: translateX(6px);
  box-shadow: 0 18px 36px -18px rgba(225, 27, 34, 1);
}
.product-item {
  display: block;
  width: 100%;
  text-align: left;
  color: #fff;
  padding: 20px 24px;
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.product-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.product-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.product-toggle::before,
.product-toggle::after {
  content: "";
  position: absolute;
  background: #fff;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.product-toggle::before {
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
}
.product-toggle::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}
.product-item[aria-expanded="true"] .product-toggle::after {
  transform: scaleY(0);
}
.product-desc {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  padding: 0 24px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  transition:
    max-height 0.4s var(--ease),
    opacity 0.35s var(--ease),
    padding 0.35s var(--ease),
    visibility 0s linear 0.4s;
}
.product-item[aria-expanded="true"] + .product-desc {
  max-height: 160px;
  opacity: 1;
  padding-bottom: 20px;
  visibility: visible;
  transition-delay: 0s;
}

.products .section-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.products-slider {
  --slider-gap: 22px;
  --per-view: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.slider-viewport {
  container-type: inline-size;
  overflow: hidden;
  min-width: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider-viewport::-webkit-scrollbar {
  display: none;
}
.slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--slider-gap);
  align-items: stretch;
}
.product-card {
  box-sizing: border-box;
  flex: 0 0 calc((100cqi - (var(--per-view) - 1) * var(--slider-gap)) / var(--per-view));
  width: calc((100cqi - (var(--per-view) - 1) * var(--slider-gap)) / var(--per-view));
  min-width: calc((100cqi - (var(--per-view) - 1) * var(--slider-gap)) / var(--per-view));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px -22px rgba(20, 22, 30, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 27, 34, 0.4);
  box-shadow: 0 26px 46px -28px rgba(20, 22, 30, 0.35);
}
.product-card-name {
  background: var(--grad-red);
  color: #fff;
  text-align: center;
  padding: 20px 18px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.product-card-title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.product-card-sub {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.92;
}
.product-card-body {
  margin: 0;
  padding: 24px 22px 28px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.product-card-body strong {
  color: var(--ink);
  font-weight: 600;
}

.slider-nav {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -18px rgba(20, 22, 30, 0.5);
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.slider-nav svg {
  width: 20px;
  height: 20px;
}
.slider-nav:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.no-js .slider-nav {
  display: none;
}
.no-js .products-slider {
  display: block;
}
.no-js .slider-viewport {
  overflow: visible;
}
.no-js .slider-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.no-js .product-card {
  flex: none;
  width: auto;
}

/* ============================================================
   TEHNOLOGIJE
   ============================================================ */
.tech {
  background: var(--light-2);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.tech-card {
  border: 1px solid var(--light-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 30px -24px rgba(20, 22, 30, 0.3);
  padding: 32px 26px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 27, 34, 0.35);
  box-shadow: 0 24px 44px -26px rgba(20, 22, 30, 0.35);
}
.tech-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(225, 27, 34, 0.08);
  border: 1px solid rgba(225, 27, 34, 0.16);
  color: var(--red);
  margin-bottom: 22px;
}
.tech-icon svg {
  width: 28px;
  height: 28px;
}
.tech-card h3 {
  color: var(--ink);
  font-size: 1.24rem;
  margin-bottom: 18px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tags li {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: #f3f5f9;
  border: 1px solid var(--light-line);
  border-radius: 100px;
  padding: 6px 13px;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.tech-tags li:hover {
  color: #fff;
  background: var(--grad-red);
  border-color: transparent;
}

/* ============================================================
   KONTAKTI
   ============================================================ */
.contact {
  background: radial-gradient(120% 100% at 18% 0%, #fbe7e8 0%, #f3f5f9 55%);
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.contact-inner .eyebrow {
  justify-content: center;
}
.contact-inner .title-underline {
  margin-inline: auto;
}
.contact-inner .lead {
  color: var(--text-soft);
  margin-inline: auto;
  max-width: 560px;
}
.contact-actions {
  margin-top: 36px;
}
.contact-details {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 36px;
}
.contact-details li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-soft);
}
.contact-details a {
  transition: color 0.2s var(--ease);
}
.contact-details a:hover {
  color: var(--red-bright);
}
.contact-ic {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(225, 27, 34, 0.1);
  border: 1px solid rgba(225, 27, 34, 0.22);
  color: var(--red-bright);
}
.contact-ic svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  padding-top: 88px;
  background-color: #0b0d12;
  background-image: linear-gradient(180deg, #14171f 0%, #0b0d12 100%);
  border-top: 3px solid var(--red);
  overflow: hidden;
  /* Already-dark section: tell Chrome not to invert it again */
  color-scheme: only dark;
  /* Dark island on a light page → locally restore dark-theme text tokens */
  --text: #eef0f5;
  --text-soft: #c3c8d3;
  --muted: #939aac;
  --line: rgba(255, 255, 255, 0.1);
  color: #c3c8d3;
}
.footer-inner {
  position: relative;
  z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 22px;
}
.footer-brand p {
  color: #939aac;
  max-width: 420px;
  font-size: 0.98rem;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #eef0f5;
  margin-bottom: 18px;
}
.footer-col ul {
  display: grid;
  gap: 12px;
}
.footer-col a,
.footer-col span {
  color: #939aac;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--red-bright);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px 40px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: #939aac;
}
.footer-made {
  color: rgba(255, 255, 255, 0.32) !important;
}

/* ============================================================
   To-top button
   ============================================================ */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-red);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(225, 27, 34, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s;
}
.to-top svg {
  width: 22px;
  height: 22px;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  transform: translateY(-3px);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.cards-grid .service-card {
  transition-delay: calc(var(--i, 0) * 70ms);
}
.dev-grid .dev-card {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid,
  .dev-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .no-js .slider-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hamburger engages below 1140px — below this the long Serbian nav labels +
   brand + language switch no longer fit the header on one row. */
@media (max-width: 1140px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px -30px rgba(20, 22, 30, 0.5);
    padding: calc(var(--header-h) + 20px) 32px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.4s var(--ease),
      visibility 0s linear 0.4s;
    margin-left: 0;
    z-index: 95;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.4s var(--ease),
      visibility 0s;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    padding: 12px 0 12px 16px;
  }
  .nav-link::after {
    display: none;
  }
  .nav-link.is-active {
    color: var(--red);
  }
  .nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--grad-red);
    border-radius: 2px;
  }
  .lang-switch {
    margin-left: auto;
    padding-left: 0;
    border-left: none;
  }
  .nav-toggle {
    display: flex;
    z-index: 110;
    margin-left: 6px;
  }
  .header-inner {
    gap: 12px;
  }
  body.nav-open {
    overflow: hidden;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 92;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  .products-slider {
    --per-view: 1;
    --slider-gap: 14px;
    display: block;
  }
  .slider-nav {
    display: none;
  }
  .slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }
  .product-card {
    flex-basis: 82cqi;
    width: 82cqi;
    min-width: 82cqi;
  }
  .no-js .slider-track {
    grid-template-columns: 1fr;
  }

  /* Drop expensive blur filters on phones — they stall first paint + scroll */
  .hero-glow {
    filter: none;
    opacity: 0.9;
  }
  .site-header::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
  }
  .main-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
  }
  .poly-decor,
  .light-decor {
    opacity: 0.35;
  }
}

@media (max-width: 620px) {
  .container,
  .header-inner {
    padding-inline: 20px;
  }
  .cards-grid,
  .dev-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 52px;
  }
  .cards-grid {
    margin-top: 48px;
  }
  .contact-form {
    padding: 26px 22px;
  }
  .btn {
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .footer-bottom {
    justify-content: flex-start;
  }
  .lang-opt {
    padding: 5px 6px;
    gap: 5px;
    font-size: 0.82rem;
  }
}
@media (max-width: 360px) {
  .lang-opt .flag {
    display: none;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .net-canvas,
  .hero-glow,
  .poly-decor,
  .light-decor,
  .to-top,
  .nav-toggle,
  .site-header,
  .nav-backdrop {
    display: none !important;
  }
  * {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  body {
    overflow: visible;
  }
  section,
  .site-footer {
    padding-block: 24px !important;
  }
  .hero {
    min-height: auto !important;
    padding-top: 24px !important;
  }
  .product-item-wrap,
  .service-label,
  .product-card,
  .stat-card,
  .dev-card,
  .tech-card,
  .tech-tags li {
    border: 1px solid #999 !important;
  }
  .slider-nav {
    display: none !important;
  }
  .products-slider {
    display: block !important;
  }
  .slider-viewport {
    overflow: visible !important;
  }
  .slider-track {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .product-card {
    flex: none !important;
    width: auto !important;
  }
  .product-desc {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 24px 12px !important;
  }
  .service-icon,
  .dev-icon,
  .tech-icon,
  .contact-ic {
    color: #000 !important;
  }
  a {
    text-decoration: underline;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
