* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

a{
  text-decoration: none;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #f5f5f5 !important;
  background-color: #1e1e1e;
}

.custom-navbar {
  background-color: rgba(0, 0, 0, 0.85);
  color: #f5f5f5;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Oswald', sans-serif;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img{
  height: 2.5rem;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar-links li a {
  text-decoration: none;
  color: #f5f5f5;
  font-size: 1.4rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.4s ease, padding-bottom 0.4s ease;
}

.navbar-links li a:hover {
  padding-bottom: 6px;
  border-bottom-color: #f5f5f5;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 999;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #f5f5f5;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #333;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #f5f5f5;
}

/* Responsive */
@media (max-width: 850px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  .navbar-links.active {
    display: flex;
    padding: 50px 10px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .dropdown:hover .dropdown-menu {
    position: relative;
    top: auto;
    left: auto;
  }
}

.nahled {
  background: url(images/main/idk.jpg);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100vh;
  position: relative;
}

.container1 {
    height: 100vh;
    text-align: center;
    position: relative;
}

.container-align{
  display: flex;
  justify-content: center;
  align-items: center; 
  flex-direction: column;
  position: absolute;
  transform:translate(-50%, -50%);
  left: 50%;
  top: 40%;
}

.sideNadpis{
  font-size: clamp(2.5rem, 6vw, 6rem);
  animation: 
    hidden 2.5s,
    sidetyping 2.5s steps(25, end) 2.5s;
  font-family: 'Oswald', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.sideNadpis::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #f5f5f5;
  animation:
    blink-cursor 0.75s step-end 5s,
    puff-out 0.3s ease-out forwards;
  animation-delay: 5s, 5s; /* puff-out začne po blinku */
}

@keyframes hidden {
  0%,100%{
    visibility: hidden;
  }
}

@keyframes sidetyping {
  from { width: 0ch; }
  to { width: 7ch; }
}

.mainNadpis {
  color: #f5f5f5;
  font-size: clamp(5rem, 12vw, 12rem);
  font-family: 'Oswald', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  animation:
    typing 2.5s steps(25, end),
    blink 0.75s step-end 2.5s 3;
  position: relative;
}

.mainNadpis::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #f5f5f5;
  animation:
    blink-cursor 0.75s step-end 2.5s 3,
    puff-out 0.3s ease-out forwards;
  animation-delay: 2.5s, 4.75s; /* puff-out začne po blinku */
}

@keyframes typing {
  from { width: 0ch; }
  to { width: 6.5ch; }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes puff-out {
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

.down-arrow {
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 100px;
  font-size: 5rem;
  color: #f5f5f5;
  text-align: center;
  animation: blinkDown 1.2s infinite;
}

@keyframes blinkDown {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

.about-us {
  padding: 7.5rem 2rem;
  background-color: #1e1e1e;
  color: #f5f5f5;
  font-family: 'Open Sans', sans-serif;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  gap: 7rem;
}

.about-text {
  flex: 1 1 40%;
  font-size: 1.3rem;
  line-height: 1.6;
}

.about-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: #e63946;
  border-radius: 2px;
  transform: translateX(-100%);
  animation: slideIn 1s forwards ease-out;
  animation-delay: 0.5s;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.about-image {
  flex: 1 1 45%;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
  cursor: pointer;
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: 15px;
  transition: filter 0.5s ease, transform 0.5s ease;
}

.about-image:hover img {
  filter: brightness(1.1) saturate(1.2);
  transform: scale(1.05);
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background-color: #e63946;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #d62828;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
  }
  .about-text, .about-image {
    flex: 1 1 100%;
  }
  .about-text h2 {
    font-size: 2.2rem;
  }
}

.mainFoto {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
}

.courses-section {
  padding: 7.5rem 2rem 7.5rem 2rem;
  background-color: #121212;
  text-align: center;
  color: #f5f5f5;
}

.courses-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: center;
}

.course-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  max-width: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.6);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0; /* obrázek nebude zmenšen */
}

.card-content {
  padding: 1.2rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-family: 'Oswald', sans-serif;
  color: #e63946;
}

.card-content p {
  font-size: 1.111119rem;
  color: #ccc;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #f5f5f5;
  background: #e63946;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  align-self: flex-start;
}


.kontakt-mapa-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.kontakty {
  flex: 1 1 40%;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
}

.mapa {
  flex: 1 1 40%;
  min-width: 300px;
}

.mapa iframe {
  width: 100%;
  height: 300px;
  border-radius: 1rem;
  border: none;
}

.container2 {
  flex-direction: column;
  align-items: center;
}

.naseFoto,
.oNas {
  width: 90%;
}

.references-section {
  padding: 7.5rem 2rem;
  background-color: #1e1e1e;
  color: #f5f5f5;
  text-align: center;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 3.5rem;
  font-family: 'Oswald', sans-serif;
}

.references-container {
  max-width: 1000px;
  max-height: 420px;
  overflow-y: auto;
  padding:1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scroll-behavior: smooth;
  margin: 0 auto;
}

.references-container::-webkit-scrollbar {
  width: 6px;
}

.references-container::-webkit-scrollbar-thumb {
  background-color: #e63946;
  border-radius: 3px;
}

.reference-card {
  background-color: #2b2b2b;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.reference-card:hover {
  /* transform: scale(1.02); */
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

.reference-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  color: #e63946;
  font-family: 'Oswald', sans-serif;
}

.reference-card p {
  font-size: 1.222229rem;
  color: #ddd;
  margin-bottom: 0.5rem;
}

.stars {
  color: gold;
  font-size: 1.444449rem;
}

.slide-in-hidden {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-show {
  opacity: 1;
  transform: translateX(0);
}


.kontakt-mapa-wrapper {
  flex-direction: column;
  align-items: center;
}

.kontakty,
.mapa {
  width: 90%;
  text-align: center;
}

.container{
  display: flex;
  justify-items: center;
  justify-content: space-around;
  align-items: center;
}

.text-center{
  color: #f5f5f5;
}
/*  */
.container4 {
  padding: 7.5rem 2rem 2rem 2rem;
  background-color: rgb(18, 18, 18);
  color: #f5f5f5;
}

.kontakt-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  max-width: 2000px;
  margin: 0 auto;
}

.kontakt-box {
  /* flex: 1 1 300px; */
  min-width: 280px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
  min-height: 300px;
  max-width: 300px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.icon {
  width: 48px;
  height: 48px;
  fill: #f5f5f5;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.icon:hover {
  transform: scale(1.2);
  fill: #e63946;
}

.info {
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.6em;
}

.info h2{
  margin-bottom: .5em;
}

@media (max-width: 768px) {
  .kontakt-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

.parallax-bg {
  background-image: url('images/background3.png'); /* nahraď vlastní obrázek */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
}

.pulsate {
  animation: pulsate 1.5s ease-out infinite;
}

@keyframes pulsate {
  0% { transform: scale(1);}
  50% { transform: scale(1.15);}
  100% { transform: scale(1);}
}

.none{
  display: none !important;
}