/* =============================================
   VÝŤAHY BARBORÍK – Global Stylesheet
   Pripravené pre WP šablónu (header.php + style.css)
   ============================================= */

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

/* ─── TYPOGRAFIA ─── */
h1, h2, h3, .heading-font { font-family: 'Space Grotesk', sans-serif; }
body                       { font-family: 'Inter', sans-serif; }
.mono-font                 { font-family: 'JetBrains Mono', monospace; }


/* ─── HERO GRID OVERLAY ─── */
/* Jemná mriežka maskovaná radial-gradientom – viditeľná iba vľavo/v strede */
.hero-grid {
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
          mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
}


/* ─── BLINK – ostré terminálové blikanie ─── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
.animate-sharp-blink { animation: blink 1s step-end infinite; }


/* ─── ŽILY MRIEŽKY – Horizontálne glow pruhy ─── */
@keyframes sweepH {
  0%   { transform: translateX(-400px); }
  100% { transform: translateX(calc(100vw + 400px)); }
}

/* ─── ŽILY MRIEŽKY – Vertikálne glow pruhy DOLE (výťah ide dolu) ─── */
@keyframes sweepDown {
  0%   { transform: translateY(-400px); }
  100% { transform: translateY(calc(100vh + 400px)); }
}

/* ─── ŽILY MRIEŽKY – Vertikálne glow pruhy HORE (výťah ide hore) ─── */
@keyframes sweepUp {
  0%   { transform: translateY(calc(100vh + 400px)); }
  100% { transform: translateY(-400px); }
}

.glow-v {
  position: absolute;
  width: 1px;
  height: 400px;
  background: linear-gradient(180deg,
    transparent          0%,
    rgba(245,158,11,.45) 50%,
    transparent         100%);
  animation: sweepDown linear infinite;
  will-change: transform;
}

.glow-v-up {
  position: absolute;
  width: 1px;
  height: 400px;
  background: linear-gradient(180deg,
    transparent          0%,
    rgba(245,158,11,.45) 50%,
    transparent         100%);
  animation: sweepUp linear infinite;
  will-change: transform;
}


/* ─── H1 STAGGERED WORD REVEAL ─── */
@keyframes wordReveal {
  0%   { opacity: 0; transform: translateY(110%) skewY(4deg); }
  100% { opacity: 1; transform: translateY(0)    skewY(0deg); }
}

.word-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word {
  display: inline-block;
  opacity: 0;
  animation: wordReveal 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.word:nth-child(1)  { animation-delay: 0.50s; }
.word:nth-child(2)  { animation-delay: 0.60s; }
.word:nth-child(3)  { animation-delay: 0.68s; }
.word:nth-child(4)  { animation-delay: 0.76s; }
.word:nth-child(5)  { animation-delay: 0.84s; }
.word:nth-child(6)  { animation-delay: 0.92s; }
.word:nth-child(7)  { animation-delay: 1.00s; }
.word:nth-child(8)  { animation-delay: 1.08s; }
.word:nth-child(9)  { animation-delay: 1.16s; }
.word:nth-child(10) { animation-delay: 1.24s; }

/* Pre slová s inline color overridom – zachovaj farbu */
.word.amber { color: #f59e0b; }


/* ─── FADE-UP – badge, H2, CTA, trust ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.65s ease-out forwards;
}


/* ─── NAV UNDERLINE – amber linka pri hoveri ─── */
.nav-link {
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #f59e0b;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }


/* ─── PRIMARY BUTTON – Brutalist 3D offset shadow ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #f59e0b;
  color: #0d1526;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 1rem 2rem;
  border-radius: 0;
  box-shadow: 4px 4px 0 0 rgba(245, 158, 11, 0.30);
  transition: transform 0.13s ease-out, box-shadow 0.13s ease-out;
}
.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 rgba(245, 158, 11, 0.45);
}
.btn-primary:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 0 rgba(245, 158, 11, 0.35);
}
.btn-primary svg {
  transition: transform 0.2s ease;
}
.btn-primary:hover svg {
  transform: translateX(4px);
}


/* ─── HEADER – solid po scrolle ─── */
.header-solid {
  background: rgba(8, 13, 26, 0.97) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
