/* =========================================================
   HERO — FULLSCREEN FIXED BACKGROUND + CENTERED CONTENT
========================================================= */

.hero {
  min-height: 100vh;
  padding: 120px 22px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(5, 12, 31, 0.41), rgba(3, 6, 20, 0.94)),
    url("../img/hero/hero.jpg") center/cover no-repeat;
  background-attachment: fixed;
}

/* ✅ Mobile viewport stability (iOS 100vh fix) */
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}

.hero-logo-overlay {
  position: fixed;           /* preko cijelog ekrana */
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}
.hero-logo-overlay img {
  max-width: 340px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.85));
  transform: scale(1.05);
}

/* mala korekcija da je hero-content spreman za pomak */
.hero-content {
  position: relative;
  max-width: 720px;
}

/* Tamni overlay — mekani, moderan, dobro se vidi tekst */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(85, 140, 155, 0.32), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

/* Unutarnji sadržaj */
.hero-inner {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 10px;
}

/* Skratio sam i modernizirao oznaku (tag) */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Glavni naslov */
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 760px;
}

.hero-title span {
  color: var(--accent);
}

/* Podnaslov */
.hero-subtitle {
  font-size: 1.05rem;
  max-width: 630px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* CTA gumbi */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.btn-primary:hover {
  background: #65c0b4;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: 0.25s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Layout sekcije */
.section-stats {
  padding-top: 50px;
}

.stats-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* HEADER KAO NA SLICI */
.stats-header {
  max-width: 820px;
}

.stats-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.stats-heading {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 14px;
}

.stats-subcopy {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 700px;
}

/* GRID KARTICA */
.stats-cards-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* FILMSKE KARTICE */
.stat-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, rgba(71, 127, 139, 0.22), transparent 55%),
              rgba(2, 6, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  transform-origin: center bottom;
}

/* "Prašina" slojevi – pale se klasom .is-impact */
.stat-card::before,
.stat-card::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  filter: blur(0);
}

.stat-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
}

.stat-card::after {
  background: radial-gradient(circle, rgba(71, 127, 139, 0.6), transparent 70%);
}

.stat-card.is-impact::before {
  animation: dust-burst 0.7s ease-out forwards;
}

.stat-card.is-impact::after {
  animation: dust-burst 0.7s ease-out 0.05s forwards;
}

@keyframes dust-burst {
  0% {
    opacity: 0.6;
    transform: scale(0.75);
    filter: blur(0px);
  }
  60% {
    opacity: 0.3;
    transform: scale(1.08);
    filter: blur(6px);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
    filter: blur(10px);
  }
}

/* Unutrašnjost kartice */
.stat-card-inner {
  position: relative;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

/* + na kraju brojke */
.stat-value::after {
  content: "+";
  margin-left: 4px;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Hover – lagani lift */
.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(71, 127, 139, 0.35);
  border-color: rgba(71, 127, 139, 0.9);
}

@media (max-width: 1024px) {
  .stats-cards-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stats-cards-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-title,
.hero-subtitle,
.hero-cta-row {
  will-change: transform, opacity;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 920px) {
  .hero {
    text-align: left;
    padding-top: 140px;
  }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 32px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 150px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  /* ✅ iOS/Android: fixed background često radi glitch (pomak/zoom) */
  .hero {
    background-attachment: scroll;
    background-position: center top;
  }
}

/* ✅ iOS Safari specifično: fixed background + scroll trigger zna “pucati” */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
    background-position: center top;
  }
}