@import url('https://fonts.googleapis.com/css2?family=Rubik+Distressed&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&family=Rubik+Distressed&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100..900&display=swap');

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

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: darkorange;
  transition: top 0.3s;
  z-index: 1000;
  font-family: roboto condensed;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 99%;
  margin: 0 auto;
  padding: 15px 20px;
}

.nav-logo a {
  color: inherit;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 10%;
  background: url("obrazky/heroBg.jpg") no-repeat center center/cover;
  
}

.hero-text {
  transform: rotate(-1.5deg);
  font-family: rubik distressed;
}

.hero-text h1 {
  font-size: 7rem;
  animation: float 2s ease-in-out infinite;
}

.hero-text h2 {
  margin-top: 20px;
  font-size: 2rem;

  font-weight: normal;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.content {
  padding: 9%;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  font-family: roboto condensed;
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Sekce 1 - text vlevo, obrázek vpravo */
.section-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-left-text {
  flex: 1;
  max-width: 44%;
  font-size: 1.67rem;
  background-color: #ebebeb;
  padding: 2%;
}

.section-left-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.section-left-img img {
  width: 70%;
  margin-left: 22%;
}

/* Sekce 2 - obrázek vlevo, text vpravo */
.section-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6.7%;
  padding-bottom: 6.7%;
  font-size: 1.6rem;
}

.section-right-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.section-right-img img {
  max-width: 100%;
}

.section-right-text {
  flex: 1;
  margin-left: 10%;
  background-color: #ebebeb;
 padding: 1%;
}

/* Sekce 3 - místo obrázku timeline */

.section-left-timeline {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: ;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 5px solid #111;
}

.timeline li {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
  font-size: 1.5rem;
  line-height: 1.6;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid #111;
  border-radius: 50%;
}

.timeline span {
  font-weight: bold;
  margin-right: 12px;
  color: #111;
  font-size: 1.67rem;
}

.timeline-left-text {
  max-width: 54%;
  font-size: 1.67rem;
  background-color: #ebebeb;
  padding: 2%;
}

/* Výbava učebny */
.equipment {
  padding: 80px 10%;
  text-align: center;
  margin-top: 5%;
}

.equipment h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.equipment-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.equipment-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.equipment-item img {
  height: 220px;
}

.equipment-item p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 50px;
}

/* Sponzoři */
.sponsors {
  margin-top: 4%;
  background: #fff;
  text-align: center;
}

.sponsors h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.sponsor-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.sponsor-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  text-align: center;
  text-decoration: none;
  color: #111;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sponsor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.sponsor-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.sponsor-card p {
  font-size: 1.2rem;
  font-weight: bold;
}

.sponsor-text {
  max-width: 75%;
  padding-top: 1%;
}


/* Footer */
footer {
  background: darkorange;
  color: #fff;
  padding: 20px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-column {
  flex: 1 1 400px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.footer-column p {
  margin: 6px 0;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Skrytí sekcí pro JavaScript */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responzivita */

@media (max-width: 992px) {
  .section-left, 
  .section-right {
    flex-direction: column;
    text-align: center;
  }

  .section-left-text, 
  .section-right-text,
  .timeline-left-text {
    max-width: 100%;
    margin: 20px 0;
  }

  .section-left-img img, 
  .section-right-img img {
    width: 80%;
    margin: 0 auto;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

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

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }
  
    #navbar {
    display: none;
  }
}
