
/* tady jsem si udělal proměnné, pro barvy (asi je to zbytečné, ale když jsem na to narazil tak jsem to chtěl zkusit*/
:root {
  --orange: #ed8338; 
  --gray: #464849;
}

body {
  margin: 0;
    font-family: 'Poppins', sans-serif;
}
/* navbar nahoře, je locklý při scrollu */

.navbar {
  background-color: rgba(70, 72, 73, 0.9);
  backdrop-filter: blur(8px); 
}

.navbar-brand {
  color: #fff !important;
  font-weight: 600;
}

.nav-link {
  color: #fff !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--orange); /* tady je příklad využítí té proměnné  */
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* hero sekce (ta hlavní) */

.hero-section {
  position: relative;
  height: 100vh;
  background: url("./obrazky/frfr.webp") center/cover no-repeat; /* obrázek do pozadí */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.60);
}

.hero-content {
  position: relative;
}

.hero-content h1 {
  font-size: 5rem; /* pokud jsem nesměl používat rem jednotky, tak se omlouvám */
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 3rem  ;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

.hero-section .btn {
  background-color: #ff6600;       
  color: #fff;                     
  font-size: 1.2rem;               
  padding: 0.75rem 2rem;          
  border: none;                    
  border-radius: 50px;             
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-section .btn:hover {
  background-color: #e65c00;       
  transform: scale(1.05);         
  text-decoration: none;          
}

/* barvy sekcí, abych to mohl použít v html, kde se střídají */
.orange-section {
  background-color: var(--orange);
  color: #fff;
}

.gray-section {
  background-color: var(--gray);
  color: #fff;
}

.section-title {
  font-weight: 600;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  color: #fff;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}


.info-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  color: #fff;
  backdrop-filter: blur(4px);
}

.info-box:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.15);
}

.info-box h5 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-box p {
  font-size: 1rem;
  margin: 0;
}


/* sekce s timeline */
.timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 2rem;
  max-width: 1200px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: var(--orange);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.timeline-time {
  font-weight: 700;
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.timeline-content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  color: #ddd;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: 8px;
  }
}

/* sekce s hvězdama dne */

.hover-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
}

.hover-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.4s ease;
}

.hover-image .hover-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: 0.4s ease;
}

.hover-image:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.hover-image:hover .hover-text {
  opacity: 1;
}

.hover-text h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hover-text p {
  margin: 0;
}


/* sekce s vybavením */

.equipment-box img {
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.equipment-box h5 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.equipment-box p {
  color: #fff;
  font-size: 1rem;
}

  
.section-title{
  width: 100%;
  text-align: center ;
}


/* sekce se sponzory */

.sponsors-grid {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 2rem; 
}

.sponsor-logo {
  width: 150px;   
  height: 100px;  
  object-fit: contain; 
  transition: transform 0.3s ease; 
  cursor: pointer;
}

.sponsor-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .sponsor-logo {
    width: 120px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .sponsor-logo {
    width: 100px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .sponsor-logo {
    width: 80px;
    height: 60px;
  }
}

/* sekce s kontakty */

.contact-link {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-around; 
  gap: 2rem;
}

.contact-column {
  flex: 1 1 250px; 
  text-align: center;
}

.contact-column h3 {
  margin-bottom: 0.5rem;
  color: #ff6600; 
  font-weight: 700; 
  font-size: 1.2rem;
}

.contact-column p {
  margin: 0.3rem 0;
}

.contact-link {
  color: #fff;
  text-decoration: none;
}


.contact-link:hover {
  text-decoration: underline;
  color: #ff6600;
}

/* sekce s footer */

footer {
  font-size: 0.9rem;
}

/*finální úprava burger ikony, aby nebyla basic černá */

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ed8338' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
