/* === RESET / ZÁKLAD === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

/* === SEKCE: POZADÍ === */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

#background video,
#background img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -3;
}

#bgOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #2167c2, #fdfdfd);
  opacity: 0,7;
  z-index: -1;
}

/* === JAZYKOVÝ PŘEPÍNAČ === */
#language-switch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 15px;
}

#language-switch button {
  background: #0a89ff81;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  margin-left: 5px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 5px;
}

#language-switch button:hover {
  background: #ff00b3c9;
  color: white;
}

/* === OBSAH STRÁNKY === */
.content {
  position: relative;
  text-align: center;
  padding: 100px 20px 50px;
  z-index: 1;
  background-color: transparent;
}

/* === NADPISY === */
.content h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(83, 81, 81, 0.692);
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin: 0 auto 50px auto;
  text-shadow: 1px 1px 3px rgba(83, 81, 81, 0.692);
}


/* === BANNERY === */
.banners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 120px;
  margin-bottom: 60px;
}

.banner {
  position: relative;
  display: inline-block;
  padding: 20px 40px;
  background: #0091ffc7;
  border: 2px solid #ffffff;
  border-radius: 15px;
  font-size: 1.1rem;
  text-decoration: none;
  color: #ffffff;
  z-index: 1;
  overflow: visible;
  transition: transform 0.3s ease;
}

.banner:hover {
  transform: scale(1.03);
  background: rgba(255, 1, 128, 0.801); /* přidá tmavší pozadí při hoveru */
  box-shadow: 0 0 15px 5px #00ccff;
}

/* === ČÍSELNÉ BANNERY === */
.numbers {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.counter-box {
  background: none;
  border: none;
  box-shadow: none;
  padding: 10px;
  text-align: center;
  animation: none;
  width: auto;
  height: auto;
}

.counter-box .counter {
  font-size: 7rem;
  font-weight: bold;
  color: #ffffff;
}

.counter-box p {
  margin-top: 10px;
  font-size: 2rem;
  color: #ffffff;
  text-align: center;
}

/* === RESPONSIVITA === */
@media (max-width: 1200px) {
  .content h1 { font-size: 2.2rem; }
  .content h2 { font-size: 1rem; }
  .banner { font-size: 1rem; padding: 16px 30px; }
  .counter-box .counter { font-size: 2rem; }
}

@media (max-width: 768px) {
  .content { padding-top: 80px; }
  .content h1 { font-size: 1.8rem; padding: 0 10px; }
  .content h2 { font-size: 0.95rem; padding: 0 15px; }
  .banners {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  .banner {
    width: 100%;
    text-align: center;
  }
  .numbers {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .counter-box {
    width: 160px;
    height: 120px;
  }
    #language-switch {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 12px;
  }

  #language-switch button {
    font-size: 0.9rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .content h1 { font-size: 1.5rem; }
  .content h2 { font-size: 0.85rem; }
  .banner {
    font-size: 0.95rem;
    padding: 14px 20px;
  }
  .counter-box {
    padding: 15px 20px;
    width: 140px;
    height: 110px;
  }
  .counter-box .counter { font-size: 1.6rem; }
}

.content h1, .content h2 {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}

.content h2 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responzivní texty pro čísla/statistiky === */
p[data-translate="satisfied_clients"],
p[data-translate="completed_projects"] {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  p[data-translate="satisfied_clients"],
  p[data-translate="completed_projects"] {
    font-size: 1.2rem;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  p[data-translate="satisfied_clients"],
  p[data-translate="completed_projects"] {
    font-size: 1rem;
    margin-top: 0.8rem;
  }
}

.numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 120px;
  flex: 1 1 120px;
}

.counter-box .counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
}

.counter-box p {
  margin-top: 0.5rem;
  color: #fff;
  font-weight: 600;
}

/* === Mobilní rozvržení: dvě vedle sebe === */
@media (max-width: 480px) {
  .numbers {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 1rem;
  }

  .counter-box {
    flex: 1 1 50%;
    padding: 0.8rem;
  }

  .counter-box .counter {
    font-size: 2rem;
  }

  .counter-box p {
    font-size: 0.9rem;
  }
}


