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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #2e1065 40%, #064e3b 100%);
  overflow-x: hidden;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 1px;
  display: flex;

}

.subtitle {
  opacity: .75;
  margin-bottom: 36px;
  text-align: center;
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1000px;
}

.box {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  padding: 22px 10px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.box .value {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffd86b;
  line-height: 1.1;
}

.box .label {
  margin-top: 8px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .8;
}

/* padajúci sneh – fixný, neblokuje klikanie */
.snow {
  position: fixed;
  top: -10px;
  color: #fff;
  pointer-events: none;
  user-select: none;
  animation: fall linear forwards;
  z-index: 0;
}

@keyframes fall {
  to { transform: translateY(105vh) translateX(40px); }
}

h1, .subtitle, .countdown, .message, .target {
  position: relative;
  z-index: 1;
}

nav {
  all: unset;
  box-sizing: border-box;
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;

  min-height: 10vh;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  overflow: hidden;              /* nič nevyčnieva z rámu */
  text-align: center;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #fff;

  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .6rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, .85);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  background-color: transparent;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1),
              color .25s ease,
              background-color .25s ease;
}

/* podčiarknutie, ktoré sa rozbehne zo stredu */
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width .3s cubic-bezier(.2, .8, .2, 1);
}

/* Instagram a Facebook bez podčiarknutia */
nav #ins::after,
nav #face::after {
  display: none;
}

/* hover: jemný zdvih, odkaz ostáva v ráme */
nav a:hover,
nav a:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
  outline: none;
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 55%;
}

/* klik */
nav a:active {
  transform: translateY(0) scale(.97);
  transition-duration: .1s;
}

/* prístupnosť: bez animácií pre používateľov, ktorí si to vypli */
@media (prefers-reduced-motion: reduce) {
  nav a,
  nav a::after { transition: none; }
  nav a:hover,
  nav a:focus-visible { transform: none; }
}

.nav-font {
  font-family: "Jaro", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* farby sociálnych sietí */
nav #ins:hover,
nav #ins:focus-visible { color: rgb(218, 91, 155); }

nav #git:hover,
nav #git:focus-visible { color: #b392f0; }

.fab {
  font-size: 24px;
  font-weight: 100;
}
nav #git:hover,
nav #git:focus-visible { color: #b392f0; }

.creator {
  position: fixed;   /* alebo position: absolute, ak je rodič relatívny #b392f0 */
  bottom: 0;
  right: 0;
  bottom: 10px; 
  right: 10px;
  color: rgba(255, 255, 255, .2);
  text-decoration: none;
}
h1.nav-font{
  font-size: 5rem;
  position: fixed;   /* alebo position: absolute, ak je rodič relatívny #b392f0 */
  top: 7rem;
  color: #fff;
}
#boxes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* dva boxy vedľa seba */
  gap: 16px;
  width: 100%;
  max-width: 700px;
  margin-top: 14rem;  /* miesto pre fixný nadpis a nav */
}

#boxes a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 22px 10px;
  text-align: center;
  text-decoration: none;
  color: #ffd86b;
  font-size: clamp(2.5rem, 3.5vw, 2rem);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1),
              background-color .25s ease,
              color .25s ease;
}

#boxes a:hover,
#boxes a:focus-visible {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, .16);
  color: #fff;
  outline: none;
}

#boxes a:active {
  transform: scale(.97);
  transition-duration: .1s;
}

/* päť odkazov: posledný (INFO) cez celú šírku, aby nezostala diera */
#boxes a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* na úzkych mobiloch boxy pod seba */
@media (max-width: 420px) {
  #boxes { grid-template-columns: 1fr; }
}
/* ===== Responzívny dizajn ===== */

/* tablety na šírku / menšie notebooky */
@media (max-width: 1024px) {
  h1.nav-font {
    font-size: 4rem;
  }
  #boxes {
    max-width: 600px;
    margin-top: 13rem;
  }
}

/* tablety na výšku */
@media (max-width: 768px) {
  nav {
    gap: 4px;
    padding: 8px 10px;
  }
  nav a {
    padding: .4rem .8rem;
    font-size: 1.1rem;
  }
  .fab {
    font-size: 20px;
  }

  h1.nav-font {
    font-size: 2.8rem;
    top: 9rem;
    max-width: 90vw;
    justify-content: center;
    text-align: center;
  }

  #boxes {
    max-width: 500px;
    margin-top: 15rem;
    gap: 12px;
  }
  #boxes a {
    min-height: 110px;
  }

  .box {
    padding: 18px 8px;
  }
}

/* mobily */
@media (max-width: 480px) {
  body {
    padding: 16px 12px;
  }

  nav {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 6px 8px;
    border-radius: 12px;
  }
  nav a {
    padding: .35rem .6rem;
    font-size: .95rem;
  }
  .fab {
    font-size: 18px;
  }

  h1.nav-font {
    font-size: 2rem;
    top: 10rem;
  }

  #boxes {
    margin-top: 17rem;
    gap: 10px;
  }
  #boxes a {
    min-height: 80px;
    padding: 14px 8px;
    font-size: 1.2rem;
  }

  .creator {
    font-size: .75rem;
    bottom: 6px;
    right: 6px;
  }
}

/* veľmi malé mobily */
@media (max-width: 360px) {
  nav a {
    padding: .3rem .45rem;
    font-size: .85rem;
  }
  h1.nav-font {
    font-size: 1.7rem;
  }
}

/* nízke obrazovky (mobil na šírku): nadpis nech nie je fixný a neprekrýva boxy */
@media (max-height: 520px) {
  h1.nav-font {
    position: static;
    font-size: 2rem;
    margin-top: 6rem;
  }
  #boxes {
    margin-top: 1rem;
  }
}
/* ===== animations.css – pridaj až PO style.css ===== */
/* Navigácia (nav) sa tu nemení ani neanimuje. */

/* ---------- Živé pozadie ---------- */
body {
  background-size: 300% 300%;
  animation: bgShift 18s ease-in-out infinite;
}

@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* plávajúce farebné "aurora" škvrny (za obsahom, neblokujú klikanie) */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  pointer-events: none;
}

body::before {
  top: -20vmax;
  left: -15vmax;
  background: radial-gradient(circle, #7c3aed 0%, transparent 65%);
  animation: blobA 22s ease-in-out infinite alternate;
}

body::after {
  bottom: -22vmax;
  right: -18vmax;
  background: radial-gradient(circle, #10b981 0%, transparent 65%);
  animation: blobB 26s ease-in-out infinite alternate;
}

@keyframes blobA {
  to { transform: translate(25vmax, 18vmax) scale(1.2); }
}

@keyframes blobB {
  to { transform: translate(-22vmax, -16vmax) scale(1.15); }
}

/* ---------- Nadpis ---------- */
h1.nav-font {
  animation:
    titleIn 1s cubic-bezier(.2, .8, .2, 1) both,
    titleGlow 4s ease-in-out 1s infinite;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(-30px) scale(.92); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 216, 107, .15); }
  50%      { text-shadow: 0 0 28px rgba(255, 216, 107, .65), 0 0 50px rgba(179, 146, 240, .35); }
}

/* ---------- Boxy s odkazmi ---------- */
#boxes a {
  position: relative;
  overflow: hidden;
  animation: boxIn .7s cubic-bezier(.2, .8, .2, 1) backwards;
}

/* postupné objavovanie (stagger) */
#boxes a:nth-child(1) { animation-delay: .25s; }
#boxes a:nth-child(2) { animation-delay: .40s; }
#boxes a:nth-child(3) { animation-delay: .55s; }
#boxes a:nth-child(4) { animation-delay: .70s; }
#boxes a:nth-child(5) { animation-delay: .85s; }

@keyframes boxIn {
  from { opacity: 0; transform: translateY(40px) scale(.9); }
  to   { opacity: 1; transform: none; }
}

/* jemné vznášanie – cez vlastnosť "translate", aby nekolidovalo s hover transformom */
#boxes a {
  animation:
    boxIn .7s cubic-bezier(.2, .8, .2, 1) backwards,
    floaty 6s ease-in-out 1.5s infinite;
}
#boxes a:nth-child(1) { animation-delay: .25s, 1.5s; }
#boxes a:nth-child(2) { animation-delay: .40s, 2.1s; }
#boxes a:nth-child(3) { animation-delay: .55s, 2.7s; }
#boxes a:nth-child(4) { animation-delay: .70s, 3.3s; }
#boxes a:nth-child(5) { animation-delay: .85s, 3.9s; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

/* lesklý pás, ktorý prejde po boxe pri hoveri */
#boxes a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

#boxes a:hover::before,
#boxes a:focus-visible::before {
  animation: shine .8s ease;
}

@keyframes shine {
  to { left: 140%; }
}

#boxes a:hover,
#boxes a:focus-visible {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 22px rgba(255, 216, 107, .3);
  border-color: rgba(255, 216, 107, .55);
}

/* ---------- Odpočítavanie (ak ho používaš na ďalších stránkach) ---------- */
.box {
  animation: boxIn .7s cubic-bezier(.2, .8, .2, 1) backwards;
  transition: transform .25s ease, box-shadow .25s ease;
}
.box:nth-child(2) { animation-delay: .1s; }
.box:nth-child(3) { animation-delay: .2s; }
.box:nth-child(4) { animation-delay: .3s; }
.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

/* ---------- Pätička ---------- */
.creator {
  transition: color .3s ease, transform .3s ease;
}
.creator:hover {
  color: rgba(255, 255, 255, .7);
  transform: translateY(-2px);
}

/* ---------- Mobily: ľahšie efekty ---------- */
@media (max-width: 768px) {
  body::before,
  body::after {
    filter: blur(50px);
    opacity: .28;
  }
}

@media (max-width: 480px) {
  @keyframes floaty {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -3px; }
  }
}

/* ---------- Prístupnosť: bez animácií, ak si ich používateľ vypol ---------- */
@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after,
  h1.nav-font,
  #boxes a,
  .box {
    animation: none !important;
  }
  #boxes a::before { display: none; }
}