/* ==========================================================
   MODELARKA STUDIO — javni sajt
   Tamna tema sa narandzastim/vatrenim akcentima,
   glassmorphism karticama i blagim glow efektima.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;

  /* boje — dark graphite + toplo narandžasto/amber/crveni glow */
  --bg: #0a0908;
  --bg-soft: #14100e;
  --surface: rgba(255, 244, 235, 0.05);
  --surface-strong: rgba(255, 244, 235, 0.08);
  --border: rgba(255, 218, 190, 0.1);
  --border-strong: rgba(255, 218, 190, 0.18);

  --text: #f8f4ef;
  --text-dim: #b6ada4;
  --text-faint: #7a726a;

  --accent: #ff6a1a;
  --accent-2: #ffb347;
  --accent-amber: #ffce6a;
  --accent-strong: #ff4d00;
  --accent-red: #f5361f;
  --accent-glow: rgba(255, 106, 26, 0.5);
  --accent-glow-soft: rgba(255, 130, 40, 0.2);
  --amber-glow: rgba(255, 190, 90, 0.16);

  --danger: #ff5555;
  --success: #33d17a;

  /* tipografija */
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* razmak / oblik */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.5);

  --nav-h: 72px;
  --mobile-nav-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: radial-gradient(ellipse 120% 55% at 50% -8%, rgba(255, 130, 40, 0.2), transparent 60%),
    radial-gradient(ellipse 90% 50% at 85% 8%, rgba(245, 54, 31, 0.1), transparent 60%),
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(255, 190, 90, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  overscroll-behavior-y: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

::selection {
  background: var(--accent-glow);
  color: #fff;
}

/* fokus — vidljiv prsten svuda, nikad uklonjen bez zamene */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: #140900;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
}

/* ---------- dugmad ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
  color: #140900;
  box-shadow: 0 6px 20px var(--accent-glow-soft);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
}

.btn-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}

.btn-instagram:hover {
  box-shadow: 0 8px 24px rgba(221, 42, 123, 0.4);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 26px;
  font-size: 1.02rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  backdrop-filter: blur(10px);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- header / desktop navigacija ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px var(--accent-glow-soft);
  color: #140900;
  font-weight: 800;
  overflow: hidden;
  animation: markGlow 4s ease-in-out infinite;
}

/* blagi shine koji prelazi preko logo znaka */
.brand-mark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: markShine 5.5s ease-in-out infinite;
}

@keyframes markGlow {
  0%, 100% { box-shadow: 0 0 16px var(--accent-glow-soft); }
  50% { box-shadow: 0 0 26px var(--accent-glow); }
}

@keyframes markShine {
  0% { left: -120%; }
  50%, 100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand-mark::after {
    animation: none !important;
  }
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-desktop a:not(.btn) {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-desktop a:not(.btn):hover {
  color: var(--text);
  background: var(--surface);
}

.nav-desktop a.active {
  color: var(--text);
  background: var(--surface-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-trigger {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #140900;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.cart-count[hidden] {
  display: none;
}

/* ---------- mobilna donja navigacija ---------- */

.nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 10, 14, 0.9);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  display: flex;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
}

.nav-mobile li {
  flex: 1;
}

.nav-mobile a,
.nav-mobile button {
  width: 100%;
  height: var(--mobile-nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 600;
  position: relative;
}

.nav-mobile svg {
  width: 22px;
  height: 22px;
}

.nav-mobile .active {
  color: var(--accent-2);
}

.nav-mobile .mobile-cart-count {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #140900;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile .mobile-cart-count[hidden] {
  display: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: block;
  }
  .nav-mobile {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background: radial-gradient(closest-side, var(--accent-glow-soft), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  max-width: 15ch;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
}

.hero-stat span {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- sekcije opsteg tipa ---------- */

.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-soft) 12%, var(--bg-soft) 88%, transparent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  margin-top: 8px;
  max-width: 55ch;
}

.section-kicker {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

/* ---------- katalog: filteri i sort ---------- */

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.87rem;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.chip:hover {
  color: var(--text);
}

.chip[aria-pressed='true'] {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
  border-color: transparent;
  color: #140900;
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---------- custom dropdown (sortiranje) ---------- */

.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 172px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface-strong), var(--surface));
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.dropdown-trigger:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-soft);
}

.dropdown-trigger:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.dropdown.is-open .dropdown-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-soft);
}

.dropdown-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-caret {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-2);
  transition: transform 0.22s var(--ease);
}

.dropdown.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #16121055;
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong), 0 0 30px rgba(255, 130, 40, 0.06);
  backdrop-filter: blur(16px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s 0.18s;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s 0s;
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.dropdown-option:hover,
.dropdown-option.is-active {
  background: var(--surface-strong);
  color: var(--text);
}

.dropdown-option.is-selected {
  color: var(--accent-2);
  font-weight: 600;
}

.dropdown-option.is-selected::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.dropdown-option:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}

/* ---------- prazan katalog ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 60px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.empty-state .empty-icon svg {
  width: 30px;
  height: 30px;
}

.empty-state h3 {
  font-size: 1.25rem;
}

.empty-state p {
  color: var(--text-dim);
  max-width: 42ch;
}

.empty-state .btn {
  margin-top: 6px;
}

/* ---------- grid proizvoda ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

/* tanka svetleća linija na vrhu kartice (pojačava se na hover) */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  z-index: 2;
}

@media (min-width: 860px) {
  .product-card:hover::before {
    opacity: 0.9;
  }
}

@media (min-width: 860px) {
  .product-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--shadow-strong), 0 0 34px var(--accent-glow-soft);
    border-color: var(--border-strong);
  }

  .product-card:hover .product-card-media img {
    transform: scale(1.06);
  }
}

.product-card:active {
  transform: scale(0.985);
}

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
  color: #140900;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px var(--accent-glow-soft);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.product-category {
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

.product-desc {
  color: var(--text-dim);
  font-size: 0.87rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.product-price small {
  color: var(--text-faint);
  font-weight: 500;
  font-size: 0.7rem;
  margin-left: 3px;
}

/* ---------- kako narucujemo / koraci ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-card {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- O izradi ---------- */

.about-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 130, 40, 0.08), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft), inset 0 0 60px rgba(255, 130, 40, 0.04);
}

.about-copy h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-top: 8px;
}

.about-copy p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card,
.why-card {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.about-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), 0 0 26px var(--accent-glow-soft);
  border-color: var(--border-strong);
}

.about-icon,
.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.16), rgba(255, 77, 0, 0.1));
  border: 1px solid var(--border-strong);
}

.about-icon svg,
.why-icon svg {
  width: 22px;
  height: 22px;
}

.about-card h3,
.why-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.about-card p,
.why-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- Zašto Modelarka ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

@media (max-width: 860px) {
  .about-panel {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 24px;
  }
}

@media (max-width: 460px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 34ch;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- korpa: overlay + panel ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.6);
  backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #0c0c11;
  border-left: 1px solid var(--border-strong);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  overscroll-behavior: contain;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-size: 1.2rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-item-media {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-item-price {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 2px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
}

.cart-item-remove {
  align-self: start;
  background: none;
  border: none;
  color: var(--text-faint);
  padding: 6px;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-dim);
}

.cart-empty svg {
  width: 46px;
  height: 46px;
  color: var(--text-faint);
}

.cart-footer {
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}

.cart-total-row strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

@media (max-width: 560px) {
  .cart-panel {
    width: 100%;
    top: auto;
    height: min(88vh, 720px);
    border-left: none;
    border-top: 1px solid var(--border-strong);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }
  .cart-panel.is-open {
    transform: translateY(0);
  }
}

/* ---------- modal porudzbine ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0e0e13;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 26px;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.28s var(--ease);
}

.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-head h2 {
  font-size: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.order-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.87rem;
  color: var(--text-dim);
  white-space: pre-wrap;
  margin-bottom: 16px;
  max-height: 220px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- modal: detaljan prikaz proizvoda ---------- */

body.modal-open {
  overflow: hidden;
}

.product-modal-card {
  position: relative;
  max-width: 560px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 130, 40, 0.06), #0e0e13 40%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.pm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(8, 8, 11, 0.6);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pm-main-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}

.pm-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 16px 0;
  flex-wrap: wrap;
}

.pm-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: var(--bg-soft);
  padding: 0;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-thumb:hover {
  transform: translateY(-2px);
}

.pm-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow-soft);
}

.pm-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}

.pm-info h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.pm-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-2);
}

.pm-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.pm-info .btn {
  margin-top: 6px;
}

@media (max-width: 560px) {
  .product-modal .modal-card {
    max-width: 100%;
    max-height: 94vh;
  }
  .pm-main-media {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--mobile-nav-h) + 18px);
  transform: translate(-50%, 12px);
  background: #16161d;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-strong);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .toast {
    bottom: 24px;
  }
}

@media (max-width: 640px) {
  .hero-actions .btn,
  .empty-state .btn {
    width: 100%;
  }
}

/* ==========================================================
   ANIMACIJE I "ŽIVI" VIZUAL
   Sve je lagano: samo transform / opacity / SVG, bez canvas/WebGL.
   Poštuje prefers-reduced-motion (blok na kraju fajla).
   ========================================================== */

/* ---------- animirana pozadina ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-fx .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}

.blob-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.5), transparent 68%);
  animation: blobFloat1 22s var(--ease) infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  top: 30%;
  right: -140px;
  background: radial-gradient(circle, rgba(245, 54, 31, 0.42), transparent 68%);
  animation: blobFloat2 27s var(--ease) infinite;
}

.blob-3 {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: 40%;
  background: radial-gradient(circle, rgba(255, 190, 90, 0.32), transparent 68%);
  animation: blobFloat3 32s var(--ease) infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 50px) scale(1.12); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.1); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -50px) scale(1.15); }
}

/* tanke "filament" linije koje polako klize (slojevi 3D štampe) */
.filament-lines {
  position: absolute;
  inset: -20% 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 38px,
    rgba(255, 255, 255, 0.028) 39px,
    transparent 40px
  );
  animation: filamentScroll 24s linear infinite;
}

@keyframes filamentScroll {
  from { transform: translateY(0); }
  to { transform: translateY(80px); }
}

/* jedva vidljiva tehnička mreža */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}

/* ---------- hero layout (premium, širi) ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* shine efekat na naslovu */
.shine {
  background: linear-gradient(100deg, var(--accent-2) 20%, #fff 40%, var(--accent-strong) 60%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineMove 6s linear infinite;
}

@keyframes shineMove {
  to { background-position: 220% center; }
}

/* ---------- hero 3D-print vizual ---------- */

.hero-visual {
  position: relative;
}

.printer-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 130, 40, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(255, 244, 235, 0.08), rgba(255, 244, 235, 0.02));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-strong), inset 0 0 70px rgba(255, 106, 26, 0.1), 0 0 40px rgba(245, 54, 31, 0.08);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

/* svetlosni "sweep" preko kartice — mekši */
.scanline {
  position: absolute;
  top: 0;
  left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 190, 90, 0.1), transparent);
  transform: skewX(-14deg);
  animation: scanSweep 6.5s ease-in-out infinite;
}

@keyframes scanSweep {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

/* floating particles oko kartice */
.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-glow);
  opacity: 0.7;
}

.particle-1 { top: 20%; left: 14%; animation: floatP 7s ease-in-out infinite; }
.particle-2 { top: 68%; left: 22%; animation: floatP 9s ease-in-out infinite 0.6s; }
.particle-3 { top: 30%; right: 16%; animation: floatP 8s ease-in-out infinite 1.2s; }
.particle-4 { top: 74%; right: 20%; width: 4px; height: 4px; animation: floatP 10s ease-in-out infinite 0.3s; }

@keyframes floatP {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(6px, -12px); opacity: 0.85; }
}

.printer-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

/* ==== glava štampača (print head) ==== */

/* Y-osa: polako prati rast modela (isti 12s ciklus kao štampa) */
.head-y {
  animation: headY 12s ease-in-out infinite;
}

@keyframes headY {
  0%, 6% { transform: translateY(107px); }   /* dole — start štampe */
  46% { transform: translateY(50px); }         /* kraj štampe (vrh modela) */
  54%, 80% { transform: translateY(16px); }    /* portal se diže i miruje gore dok slon ulazi u kutiju */
  100% { transform: translateY(107px); }       /* povratak dole pred novi ciklus */
}

/* X-osa: brzo levo-desno kretanje SAMO tokom štampe, posle stane */
.head-x {
  animation: headX 12s ease-in-out infinite;
}

@keyframes headX {
  0%, 6% { transform: translateX(0); }
  10% { transform: translateX(-12px); }
  14% { transform: translateX(12px); }
  18% { transform: translateX(-12px); }
  22% { transform: translateX(12px); }
  26% { transform: translateX(-12px); }
  30% { transform: translateX(12px); }
  34% { transform: translateX(-12px); }
  38% { transform: translateX(12px); }
  42% { transform: translateX(-12px); }
  46%, 100% { transform: translateX(0); }
}

/* print-efekti (heat glow, filament, soplo) — vidljivi samo tokom štampe */
.print-fx {
  animation: printFx 12s ease-in-out infinite;
}

@keyframes printFx {
  0%, 6% { opacity: 0; }
  12%, 44% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

.nozzle-glow {
  animation: nozzlePulse 1.1s ease-in-out infinite;
}

@keyframes nozzlePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.heat-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: heatPulse 1.6s ease-in-out infinite;
}

@keyframes heatPulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.18); }
}

.filament-drip {
  animation: dripPulse 0.9s ease-in-out infinite;
}

@keyframes dripPulse {
  0%, 100% { opacity: 0.4; transform: translateY(-1px); }
  50% { opacity: 1; transform: translateY(1px); }
}

/* LED indikatori trepere */
.led {
  animation: ledBlink 2.4s ease-in-out infinite;
}
.led-b { animation-delay: 1.2s; }

@keyframes ledBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==== ciklus štampe dekor-modela ==== */

/* model se otkriva sloj po sloj (odozdo nagore) — sinhrono sa glavom */
.clip-rect {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: printBuild 12s ease-in-out infinite;
}

@keyframes printBuild {
  0%, 6% { transform: scaleY(0); }
  46%, 74% { transform: scaleY(1); }
  76%, 100% { transform: scaleY(0); }
}

/* gotov slon se pomera ka kutiji, postepeno se smanjuje i ulazi unutra */
.model-wrap {
  transform-box: view-box;
  transform-origin: 118px 188px;
  animation: modelMove 12s ease-in-out infinite;
}

@keyframes modelMove {
  0%, 56% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  62% { transform: translate(40px, -4px) rotate(-4deg) scale(0.92); opacity: 1; }
  68% { transform: translate(66px, 4px) rotate(2deg) scale(0.72); opacity: 1; }
  74% { transform: translate(81px, 12px) rotate(0deg) scale(0.5); opacity: 1; }
  77% { transform: translate(81px, 15px) rotate(0deg) scale(0.42); opacity: 0; }
  78%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0; }
}

/* poklopac kutije se otvara NAGORE pre nego slon uđe, pa se zatvara */
.tray-lid {
  transform-box: view-box;
  transform-origin: center;
  animation: trayLid 12s ease-in-out infinite;
}

@keyframes trayLid {
  0%, 52% { transform: translateY(0); }        /* zatvoren tokom štampe */
  58%, 74% { transform: translateY(-16px); }    /* otvoren nagore dok slon ulazi */
  82%, 100% { transform: translateY(0); }       /* zatvoren */
}

.printer-caption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(8, 8, 11, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- pulsirajuća tačka ---------- */

.pulse-dot,
.hero-eyebrow .dot {
  position: relative;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.pulse-dot::after,
.hero-eyebrow .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- blaga "lebdeća" ikona (empty state) ---------- */

.float-soft {
  animation: floatSoft 4.5s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- scroll reveal ---------- */

[data-reveal],
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible,
[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.24s; }

/* ---------- letenje proizvoda u korpu ---------- */

.fly-layer {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
}

.fly-dot {
  position: fixed;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
  box-shadow: 0 0 18px var(--accent-glow);
  pointer-events: none;
  will-change: transform, opacity;
}

/* kratki "pop" na ikoni korpe kad se doda proizvod */
.cart-bump {
  animation: cartBump 0.4s var(--ease);
}

@keyframes cartBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* ---------- Tehnologija iza proizvoda (donji tech-blok) ---------- */

.tech-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 130, 40, 0.08), transparent 60%),
    var(--bg-soft);
}

/* suptilna pozadinska animacija: spora filament linija + glowing tačkice */
.tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-filament {
  position: absolute;
  inset: -40% 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 46px,
    rgba(255, 190, 90, 0.05) 47px,
    transparent 48px
  );
  animation: techFilament 22s linear infinite;
}

@keyframes techFilament {
  from { transform: translateX(0); }
  to { transform: translateX(60px); }
}

.tech-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-glow);
  opacity: 0.5;
}

.tech-dot-1 { top: 30%; left: 12%; animation: techDot 9s ease-in-out infinite; }
.tech-dot-2 { top: 60%; left: 84%; animation: techDot 11s ease-in-out infinite 1s; }
.tech-dot-3 { top: 24%; left: 68%; width: 4px; height: 4px; animation: techDot 8s ease-in-out infinite 0.5s; }

@keyframes techDot {
  0%, 100% { transform: translate(0, 0); opacity: 0.25; }
  50% { transform: translate(4px, -10px); opacity: 0.7; }
}

.tech-section .container {
  position: relative;
  z-index: 1;
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section-head-center p {
  margin-inline: auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.tech-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 130, 40, 0.06), var(--surface));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong), 0 0 30px var(--accent-glow-soft);
  border-color: var(--border-strong);
}

.tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.18), rgba(255, 77, 0, 0.12));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 20px rgba(255, 130, 40, 0.08);
}

.tech-icon svg {
  width: 26px;
  height: 26px;
}

.tech-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* rasteretimo mobilni: manje floating čestica u hero vizualu */
@media (max-width: 640px) {
  .particle-3,
  .particle-4 {
    display: none;
  }
}

/* ---------- reduced motion: sve mirno, ali sadržaj vidljiv ---------- */

@media (prefers-reduced-motion: reduce) {
  .bg-fx,
  .scanline,
  .head-y,
  .head-x,
  .print-fx,
  .clip-rect,
  .model-wrap,
  .tray-lid,
  .nozzle-glow,
  .heat-glow,
  .filament-drip,
  .led,
  .particle,
  .pulse-dot::after,
  .hero-eyebrow .dot::after,
  .float-soft,
  .shine,
  .tech-filament,
  .tech-dot {
    animation: none !important;
  }
  /* u reduced-motion model je gotov i vidljiv, glava parkirana, kutija zatvorena */
  .clip-rect {
    transform: scaleY(1) !important;
  }
  .print-fx {
    opacity: 0 !important;
  }
  .head-y {
    transform: translateY(20px) !important;
  }
  .shine {
    background: linear-gradient(100deg, var(--accent-2), var(--accent-strong));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
