@property --orbit-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --orbit-angle-2 {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}


:root {
  /* Glavna pozadina stranice – mekana, zelenkasta, SofTechRS-friendly */
  --page-bg: #e9fdf7; /* svetla mint/teal nijansa */

  /* Ako želiš malo tamniju: #dff8f1 */
  /* Ako želiš topliju: #f0fff8 */

  --bg-soft: #020617;
  --bg-hero: var(--page-bg);
  --bg-card: #ffffff;

  --border-soft: rgba(148, 163, 184, 0.26);
  --border-strong: rgba(148, 163, 184, 0.6);

  --text-main: #020617;
  --text-muted: #6b7280;

  --primary: #17c3c8;
  --primary-soft: rgba(23, 195, 200, 0.12);

  --secondary: #0b1e39;
  --secondary-soft: rgba(11, 30, 57, 0.12);

  --accent: #2af598;
  --accent-soft: rgba(42, 245, 152, 0.12);
  --accent-outline: rgba(42, 245, 152, 0.55);


  --badge-bg: rgba(2, 6, 23, 0.9);
  --badge-border: rgba(148, 163, 184, 0.45);
}

body {
  background: var(--page-bg);
  color: var(--text-main);
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--page-bg);   /* ✅ sada je svuda mint */
  scroll-behavior: smooth;
}


/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 70;
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform-origin: left;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 1.2rem 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.7rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.94rem;
  color: #4b5563;
  transition: color 0.15s ease;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #4b5563;
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.45);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(10px);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.4rem 0;
  text-decoration: none;
  font-size: 0.94rem;
  color: #4b5563;
}

/* HERO */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(23, 195, 200, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(42, 245, 152, 0.16), transparent 55%),
    var(--bg-hero);
}


.hero-inner {
  padding: 4.5rem 0 3rem;
}

.hero-content {
  max-width: 54rem;
  margin: 0 auto;
}

/* Blobs */
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.3;
  animation: blobPulse 9s ease-in-out infinite;
}

.blob-blue {
  top: 4rem;
  right: 10%;
  background: rgba(23, 195, 200, 0.70); /* primary */
}

.blob-purple {
  bottom: 3rem;
  left: 10%;
  background: rgba(42, 245, 152, 0.65); /* accent */
  animation-delay: 2s;
}

@keyframes blobPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.18;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Hero meta */
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.pill-light {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.35);
}

.pill-icon {
  font-size: 0.9rem;
}

.meta-text {
  color: #4b5563;
}

.dot {
  color: #9ca3af;
}

/* Hero title */
.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #0f172a;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

/* Hero image */
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transform-origin: center center;
  transition: transform 0.35s ease-out;
}


.hero-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
}

/* BLOG */
.blog {
  background: transparent;
  padding: 3rem 0 3.5rem;
}

.blog-inner {
  padding-top: 0.5rem;
}

.blog-max {
  max-width: 56rem;
  margin: 0 auto;
}

/* General sections */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.9rem;
  color: #111827;
}

.section-title.with-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.section-text {
  font-size: 0.97rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 48rem;
}

/* Lead text */
.lead {
  font-size: 1.02rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-sm {
  gap: 1rem;
}

.gap-md {
  gap: 1.3rem;
}

.gap-lg {
  gap: 1.6rem;
}

/* Cards */
.card-soft {
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  background: #f9fafb;
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.card-soft h3,
.card-soft h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #111827;
}

.card-soft p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
}

.card-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  background: #e5edff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* Note boxes */
.note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  border-left: 4px solid var(--primary);
  background: rgba(37, 99, 235, 0.04);
  font-size: 0.94rem;
  color: #374151;
  display: flex;
  gap: 0.4rem;
}

.note-label {
  font-weight: 600;
  color: var(--primary);
}

.note.warm {
  border-left-color: #f97316;
  background: #fff7ed;
}

.note-heading {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Image break */
.image-break {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0;
}

.image-break img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Border cards landing vs site */
.card-border-blue,
.card-border-purple {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.4rem;
  background: #ffffff;
  border: 2px solid #bfdbfe;
}

.card-border-purple {
  border-color: #ddd6fe;
}

.card-badge-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}

.card-badge-icon.green {
  background: #dcfce7;
}

.card-badge-icon.blue {
  background: #dbeafe;
}

.card-badge-icon.purple {
  background: #ede9fe;
}

/* Bullet list */
.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.94rem;
  color: #374151;
}

.bullet-list li {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.bullet-list li::before {
  content: "•";
  color: #4b5563;
  margin-top: 0.1rem;
}

/* Gradient card (anatomija) */
.card-gradient {
  margin-top: 1.7rem;
  padding: 1.6rem 1.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #eff6ff, #ede9fe);
}

.card-gradient h4 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  color: #111827;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.step {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 0.93rem;
  color: #374151;
}

/* Metrics cards */
.card-metric {
  border-radius: var(--radius-md);
  padding: 1.2rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.18);
}

.card-metric h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.card-metric p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
}

.metric-value {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Dark gradient card (elementi dobre kartice) */
.card-gradient-dark {
  margin-top: 1.7rem;
  padding: 1.8rem 1.6rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

.card-gradient-dark h4 {
  margin: 0 0 1rem;
}

.check-row {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.94rem;
}

.check-row::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
}

/* Card boxes (brzina, responzivnost, SEO) */
.card-box {
  border-radius: 1.2rem;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.4rem;
}

.card-box-header {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.card-box-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.card-box-header p {
  margin: 0;
  font-size: 0.94rem;
  color: #4b5563;
}

.bullet-list.indent {
  margin-left: 3.5rem;
}

/* Metric pill */
.pill.metric {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
}
/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.4rem;

  /* osnovni shadow + blagi neon glow */
  box-shadow:
    0 10px 28px rgba(148, 163, 184, 0.18),
    0 0 18px rgba(56, 189, 248, 0.18);

  /* zmijice oko bordera */
  border: 2px solid transparent;
  --orbit-angle: 0deg;
  --orbit-angle-2: 0deg;

  background:
    /* unutrašnjost kartice */
    linear-gradient(#ffffff, #ffffff) padding-box,
    /* prva zmijica – jača neon traka */
    conic-gradient(
      from var(--orbit-angle),
      transparent 0deg 295deg,
      rgba(34, 211, 238, 0.0) 296deg,
      rgba(34, 211, 238, 0.85) 310deg,
      rgba(34, 197, 94, 0.95) 335deg,
      rgba(59, 130, 246, 0.9) 358deg,
      transparent 360deg
    ) border-box,
    /* druga zmijica – bleđa, ide u suprotnom smeru */
    conic-gradient(
      from var(--orbit-angle-2),
      transparent 0deg 285deg,
      rgba(56, 189, 248, 0.0) 286deg,
      rgba(56, 189, 248, 0.7) 305deg,
      rgba(34, 197, 94, 0.7) 335deg,
      transparent 360deg
    ) border-box;

  /* 2 animacije – jedna napred, druga nazad */
  animation:
    orbitSnake 14s linear infinite,
    orbitSnakeReverse 26s linear infinite;

  transition:
    box-shadow 0.2s ease,
    transform 0.18s ease;
}

/* obične timeline kartice, bez zmijica */
.timeline-item:not(.orbit) {
  border-color: rgba(148, 163, 184, 0.35);
  background: #ffffff;
  animation: none;
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.18);
}

/* pauza animacije + jači glow na hoveru */
.timeline-item.orbit:hover {
  animation-play-state: paused;
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.22),
    0 0 30px rgba(56, 189, 248, 0.8);
  transform: translateY(-2px);
}

@keyframes orbitSnake {
  to {
    --orbit-angle: 360deg;
  }
}

@keyframes orbitSnakeReverse {
  to {
    --orbit-angle-2: -360deg;
  }
}

.timeline-step {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

/* Raspored teksta u kartici procesa */
.timeline-body {
  position: static;
  padding-right: 6rem;  /* prostor za trajanje desno */
}

.timeline-body p {
  margin: 0;
  font-size: 0.94rem;
  color: #4b5563;
}

.timeline-header {
  display: block;         /* više nije flex red */
  margin-bottom: 0.35rem;
}

.timeline-header h4 {
  margin: 0;
  font-size: 1rem;
  max-width: 75%;
}

/* trajanje – pravo desno dole, relativno na celu karticu */
.timeline-duration {
  position: absolute;
  right: 1.6rem;
  bottom: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* veći odmak između procesa i "Ključni zaključci" */
.process-orbit {
  margin-bottom: 3rem;
}

/* Takeaways */
.takeaways {
  padding: 1.8rem 1.6rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

.takeaways h3 {
  margin: 0 0 1rem;
}


/* =============================== */
/*   ULEPŠANE KARTICE – PREMIUM    */
/* =============================== */

.card-soft,
.card-metric,
.card-border-blue,
.card-border-purple,
.card-box {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

/* Istaknutije kartice sa jačim okvirom */
.card-border-blue,
.card-border-purple {
  border-width: 2px;
  background: rgba(255, 255, 255, 0.96);
}

/* Hover efekat – lagano podizanje */
.card-soft:hover,
.card-metric:hover,
.card-border-blue:hover,
.card-border-purple:hover,
.card-box:hover,
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
  background-color: #ffffff;
  border-color: rgba(148, 163, 184, 0.40);
}

/* Ikonice u karticama – malo “chip” feeling */
.card-icon,
.card-badge-icon {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 0.9rem;
}

/* Stat / badge varijante – sekundarna nijansa */
.stat-card .blog-card-icon,
.card-badge-icon.green,
.card-badge-icon.blue,
.card-badge-icon.purple {
  background: var(--secondary-soft);
  color: var(--secondary);
}


/* CTA */
.cta {
  padding: 3rem 0 3.5rem;
  background: transparent;
}

.cta-wrap {
  max-width: 56rem;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.6rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.cta-left {
  padding: 1.8rem 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

.cta-left h3 {
  margin: 0 0 0.6rem;
}

.cta-left p {
  margin: 0 0 1.1rem;
  color: #e0ecff;
}

.cta-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.cta-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.cta-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-item-title {
  font-weight: 600;
}

.cta-item-sub {
  font-size: 0.86rem;
  color: #dbeafe;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.3rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
}

.btn-arrow {
  transform: translateX(0);
  transition: transform 0.15s ease;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(3px);
}

/* CTA right */
.cta-right {
  padding: 1.8rem 1.8rem;
  background: #f9fafb;
}

.cta-right h4 {
  margin: 0 0 0.7rem;
}

.cta-right .bullet-list li::before {
  color: var(--primary);
}

/* Share */
.share {
  text-align: center;
  margin-top: 1.4rem;
}

.share p {
  margin: 0 0 0.4rem;
  color: #4b5563;
}

.share-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.share-buttons button {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  color: #4b5563;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.share-buttons button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.1rem 0 1.2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  gap: 0.6rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #60a5fa;
}

/* Scroll top button */
.scroll-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 1.3rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
  z-index: 65;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.55);
}

@keyframes floatUpSoft {
  0% {
    transform: translateY(0);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.55);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
  }
}

.scroll-top.visible:not(:hover) {
  animation: floatUpSoft 2.4s ease-in-out infinite;
}


/* Responsive */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    padding-top: 4.5rem;
  }

  .hero-image img {
    height: 280px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .image-break img {
    height: 260px;
  }
}

/* Scroll reveal – osnovni stil */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    filter 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* Poštovanje prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

