/* ================================
   GLOBAL STYLES  (global.css)
   ================================ */

:root {
  --bg-main: #050c1f;
  --accent: #477F8B;
  --accent-soft: rgba(71, 127, 139, 0.2);
  --text-main: #ffffff;
  --text-muted: #a9b4d8;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-strong: 0 26px 80px rgba(0, 0, 0, 0.7);
}

/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #07112e 0%, #020615 40%, #00010b 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* ====== BLUEPRINT POZADINA – ista kao na under-construction ====== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(
      transparent 0 92%,
      rgba(255, 255, 255, 0.06) 92% 100%
    ),
    linear-gradient(
      90deg,
      transparent 0 92%,
      rgba(255, 255, 255, 0.06) 92% 100%
    );
  background-size: 90px 90px;
  opacity: 0.32;
  mix-blend-mode: screen;
  animation: moveGrid 35s linear infinite;
  pointer-events: none;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 0%, rgba(55, 143, 255, 0.22), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(245, 197, 66, 0.16), transparent 55%);
  opacity: 0.8;
  filter: blur(2px);
  z-index: -2;
  animation: slowDrift 50s ease-in-out infinite alternate;
}

@keyframes moveGrid {
  to {
    transform: translate3d(-90px, -90px, 0);
  }
}

@keyframes slowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-50px, 40px, 0) scale(1.03);
  }
}

/* Layout helpers */
.page-root {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Cards / blokovi */
.card {
  background: linear-gradient(135deg, rgba(7, 16, 44, 0.96), rgba(3, 6, 20, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

/* Tekst */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Linkovi & gumbi */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary {
  color: #050713;
  background: linear-gradient(135deg, #70a9b6, #477F8B);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

/* Section spacing */

/* Simple utility classes */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: 12px;
}
.mt-md {
  margin-top: 24px;
}
.mt-lg {
  margin-top: 40px;
}

/* ================================
   TYPOGRAPHY CONTRAST BOOST
================================ */

h2, h3 {
  letter-spacing: -0.01em;
}

.service-layout-two-column__text h2 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.service-layout-two-column__text h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--text-main);
}

.service-layout-two-column__text p {
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 620px;
  color: rgba(169, 180, 216, 0.9);
}

.stat-card__icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 6px;
}




/* Responsive tweaks */
@media (max-width: 768px) {
  .section {
    padding-block: 40px;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  body {
    padding-top: 0; /* navbar ima svoje paddinge */
  }
}


/* =========================================================
   MOBILE NAV: block scroll when menu is open
========================================================= */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}