/* ============ VVTECH — stilovi (dark premium) ============ */

:root {
  --bg: #070d1a;
  --bg-alt: #0a1224;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(143, 192, 255, 0.35);
  --text: #eef3fb;
  --text-dim: #b3c2da;
  --navy: #143c74;
  --navy-deep: #0a2143;
  --accent: #3da5ff;
  --accent-2: #6fc2ff;
  --accent-deep: #1e5aa8;
  --accent-soft: rgba(61, 165, 255, 0.12);
  --glow: 0 0 40px rgba(61, 165, 255, 0.25);
  --radius: 16px;
  --container: 1140px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 0.5s ease;
}

@keyframes page-in { from { opacity: 0; } }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

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

::selection { background: rgba(61, 165, 255, 0.35); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ Scroll progres traka ============ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-2));
  z-index: 200;
  box-shadow: 0 0 12px rgba(61, 165, 255, 0.7);
}

/* ============ Reveal animacije (skrol) ============ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

/* Animacije rade uvek — namerno ne reagujemo na prefers-reduced-motion
   (stednja baterije na telefonu je gasila globus i marquee traku). */

/* ============ Header / navigacija ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 13, 26, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links > li > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  box-shadow: 0 0 10px rgba(61, 165, 255, 0.8);
}

.nav-links > li > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-links a:hover { color: #fff; }

.nav-links > li > a.active:not(.btn) { color: #fff; }
.nav-links > li > a.active:not(.btn)::after { transform: scaleX(1); }

.lang-switch a {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}
.lang-switch a::after { display: none; }
.lang-switch a:hover { background: var(--accent-soft); border-color: var(--border-strong); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============ Dugmad ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border: 0;
  transition: transform 0.2s, box-shadow 0.25s, filter 0.25s;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(61, 165, 255, 0.35);
  filter: brightness(1.1);
}
.btn:hover::before { left: 120%; }

.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-strong); box-shadow: none; }

.btn-small { padding: 9px 18px; color: #fff !important; }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 90px 0 110px;
  overflow: hidden;
  color: #fff;
}

.hero > .container { width: 100%; }

.hero {
  background:
    radial-gradient(ellipse 70% 55% at 70% -10%, rgba(30, 90, 168, 0.4), transparent),
    radial-gradient(ellipse 45% 40% at 10% 105%, rgba(30, 90, 168, 0.25), transparent),
    var(--bg);
}

#net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000, transparent);
  pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-1 {
  width: 520px; height: 520px;
  background: rgba(30, 90, 168, 0.55);
  top: -180px; right: -100px;
  animation: float-a 11s ease-in-out infinite;
}

.blob-2 {
  width: 380px; height: 380px;
  background: rgba(61, 165, 255, 0.3);
  bottom: -160px; left: -120px;
  animation: float-b 14s ease-in-out infinite;
}

.blob-3 { display: none; }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-38px, 32px) scale(1.08); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(42px, -28px) scale(0.94); }
}

.hero-inner { position: relative; max-width: 640px; z-index: 2; }

/* tamni oreol iza hero teksta — odvaja slova od globusa i zvezda */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -70px -90px;
  background: radial-gradient(closest-side, rgba(7, 13, 26, 0.78), rgba(7, 13, 26, 0.45) 55%, transparent);
  z-index: -1;
  pointer-events: none;
}

/* na desktopu desna polovina pripada globusu — poravnaj tekst uz levu
   ivicu kao ostale .container sekcije (element nosi obe klase pa bi ga
   margin:auto centrirao) */
@media (min-width: 901px) {
  .hero .hero-inner {
    margin-left: max(24px, calc((100% - var(--container)) / 2));
    margin-right: 0;
  }
  .hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
  text-shadow: 0 4px 40px rgba(7, 13, 26, 0.6);
}

/* naslov se otkriva reč po reč (JS umotava reči u .w spanove) */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero h1.words-in .w > span { transform: none; }

/* sekundarna akcija — tekst-link sa animiranom linijom (ne pill) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 4px;
  position: relative;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 9px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .btn-arrow { transition: transform 0.25s; }
.link-arrow:hover .btn-arrow { transform: translateX(5px); }

/* zrnasta tekstura preko hero-a — filmski ton umesto sterilnog gradijenta */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="240" height="240" filter="url(%23n)"/></svg>');
  opacity: 0.05;
  pointer-events: none;
}

.gradient-text {
  background: linear-gradient(92deg, #6fc2ff, #3da5ff 55%, #a8dcff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-slide 5s ease-in-out infinite;
}

@keyframes gradient-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  color: #dde8f7;
  font-size: 1.16rem;
  max-width: 680px;
  margin-bottom: 40px;
  text-shadow: 0 1px 14px rgba(7, 13, 26, 0.9);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  display: block;
  z-index: 2;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--accent-2);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ Marquee traka ============ */

.marquee {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 15px 0;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

/* pauza na hover samo tamo gde hover stvarno postoji (mis) —
   na touch ekranu tap "zaglavi" :hover i traka stane */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

.marquee-track span {
  color: var(--accent-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track i { color: rgba(255, 255, 255, 0.25); font-style: normal; font-size: 0.7rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Sekcije ============ */

.section { padding: 110px 0; position: relative; }

.section-alt { background: var(--bg-alt); }

.section-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

/* animirana akcentna linija ispod naslova sekcija */
.section-title.reveal::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title.reveal.in::after { transform: scaleX(1); }

.contact .section-title.reveal::after { margin-left: auto; margin-right: auto; transform-origin: center; }

/* ikonica kartice "iskoci" pri otkrivanju */
.card.reveal.in .card-icon { animation: icon-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

@keyframes icon-pop {
  from { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.section-sub {
  color: var(--text-dim);
  max-width: 660px;
  margin-bottom: 56px;
  font-size: 1.05rem;
}

/* zaglavlje podstranice — h1 umesto h2, malo vise prostora gore */
.page-head { padding-top: 90px; }
.page-head h1.section-title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }

.center-cta { text-align: center; margin-top: 44px; }

.section-dark {
  background:
    radial-gradient(ellipse 55% 50% at 85% 0%, rgba(30, 90, 168, 0.3), transparent),
    var(--bg-alt);
}

.section-dark .section-title { color: #fff; }

/* ============ Kartice ============ */

.grid { display: grid; gap: 22px; }

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 980px; }

/* blokovi oblasti na stranici Projekti — gusci ritam */
.area-block { padding: 56px 0; }
.area-block .section-title { font-size: 1.45rem; margin-bottom: 26px; }

/* usamljena kartica u zadnjem redu — centriraj je */
@media (min-width: 981px) {
  .grid-3 > .card-solo:nth-child(3n + 1):last-child { grid-column: 2; }
}

/* jedina kartica u gridu (teaser na pocetnoj) — cela sirina */
.grid-3 > .card:only-child { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 165, 255, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), var(--glow);
}
.card:hover::after { transform: scaleX(1); }
.card:hover::before { opacity: 1; }

.card h3 { margin-bottom: 10px; font-size: 1.14rem; color: #fff; }

.card p { color: #bfcde3; font-size: 0.96rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 0 24px rgba(61, 165, 255, 0.5);
}
.card:hover .card-icon svg { fill: #fff; }

.card-icon svg { width: 27px; height: 27px; fill: var(--accent-2); transition: fill 0.3s; }

/* ============ Animirane tehničke ilustracije ============ */

.card-illu {
  height: 130px;
  margin-bottom: 20px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(30, 90, 168, 0.18), transparent),
    rgba(7, 13, 26, 0.55);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-illu svg, .area-illu svg { width: 100%; height: 100%; display: block; }

.area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.area-head .section-title { margin-bottom: 0; }

.area-illu {
  width: 220px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(7, 13, 26, 0.55);
  border: 1px solid var(--border);
  overflow: hidden;
}

@media (max-width: 640px) {
  .area-illu { display: none; }
}

/* animacije unutar SVG shema */
.i-flow {
  stroke-dasharray: 6 9;
  animation: i-flow 1.6s linear infinite;
}
.i-flow.d2 { animation-delay: 0.4s; }
.i-flow.d3 { animation-delay: 0.8s; }
.i-flow.d4 { animation-delay: 1.2s; }

@keyframes i-flow { to { stroke-dashoffset: -60; } }

.i-led { animation: i-led 1.6s ease-in-out infinite; }
.i-led.d2 { animation-delay: 0.5s; }
.i-led.d3 { animation-delay: 1s; }

@keyframes i-led { 0%, 55% { opacity: 1; } 70%, 85% { opacity: 0.15; } 100% { opacity: 1; } }

.i-spin { animation: i-spin 7s linear infinite; transform-box: fill-box; transform-origin: center; }
.i-spin-rev { animation: i-spin 5s linear infinite reverse; transform-box: fill-box; transform-origin: center; }

@keyframes i-spin { to { transform: rotate(360deg); } }

.i-tilt { animation: i-tilt 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes i-tilt {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}

.i-piston { animation: i-piston 1.5s ease-in-out infinite; }

@keyframes i-piston {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(34px); }
}

.i-bar { transform-box: fill-box; transform-origin: bottom; animation: i-bar 2.6s ease-in-out infinite; }
.i-bar.d2 { animation-delay: 0.3s; }
.i-bar.d3 { animation-delay: 0.6s; }
.i-bar.d4 { animation-delay: 0.9s; }

@keyframes i-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}

.i-draw {
  stroke-dasharray: 160;
  animation: i-draw 3.2s ease-in-out infinite;
}

@keyframes i-draw {
  0% { stroke-dashoffset: 160; }
  55%, 100% { stroke-dashoffset: 0; }
}

.i-glowpulse { animation: i-glowpulse 3s ease-in-out infinite; }

@keyframes i-glowpulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(61, 165, 255, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(61, 165, 255, 0.9)); }
}

/* ============ Proces (koraci) ============ */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: none;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  background: linear-gradient(92deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.02rem; margin-bottom: 8px; color: #fff; }

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

/* ============ Projekti ============ */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags li {
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s;
}

.card:hover .tags li { border-color: var(--border-strong); color: #fff; }

/* ============ O nama ============ */

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p { color: var(--text-dim); margin-bottom: 16px; }
.about-text p.reveal.d-1 { color: var(--text); font-size: 1.06rem; }

.about-facts {
  list-style: none;
  display: grid;
  gap: 14px;
}

.about-facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  gap: 2px;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.about-facts li:hover {
  transform: translateX(8px);
  background: var(--surface-hover);
  box-shadow: var(--glow);
}

.about-facts strong { color: #fff; font-family: var(--font-head); }
.about-facts span { color: var(--text-dim); font-size: 0.92rem; }

/* ============ Kontakt ============ */

.section-contact {
  background:
    radial-gradient(ellipse 60% 70% at 50% 115%, rgba(30, 90, 168, 0.28), transparent),
    var(--bg);
}

.contact { text-align: center; }

.contact .section-sub { margin-left: auto; margin-right: auto; }

.contact-grid { text-align: left; margin-bottom: 46px; }

.contact-card { text-decoration: none; display: block; }

.contact-card p { color: var(--accent-2); font-weight: 600; word-break: break-all; }

.contact-cta { display: grid; place-items: center; gap: 16px; }

.contact-note { color: var(--text-dim); font-size: 0.95rem; }

/* ============ Kontakt formular ============ */

.contact-form {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: left;
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(6px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 165, 255, 0.18);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.form-actions {
  display: grid;
  place-items: center;
  gap: 12px;
  margin-top: 6px;
}

.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
}

/* ============ Footer ============ */

.site-footer {
  background: #050a14;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  padding: 46px 0 26px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { margin-top: 14px; max-width: 320px; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: grid; gap: 9px; }

.footer-col a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.88rem;
}

.footer-bottom a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

.footer-logo { height: 30px; width: auto; opacity: 0.9; }

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

/* ============ Dugme nazad na vrh ============ */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 18, 36, 0.9);
  color: var(--accent-2);
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: var(--glow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
  z-index: 90;
}

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-deep); color: #fff; }

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}

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

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    display: none;
  }

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

  .nav-links li { padding: 10px 0; }

  .nav-links .btn-small { justify-content: center; margin-top: 8px; }

  .hero { padding: 96px 0 104px; min-height: 88vh; align-items: flex-end; }

  .section { padding: 76px 0; }

  .scroll-cue { display: none; }
}
