@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css);


:root {
  --dark: #222;
  --gray: #555;
  --light: #f5f5f5;
  --accent: #d3d3d3;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}


body {
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

#about{
  background-color: #a3a3a375;
}
#projects{
  background-color: #a3a3a375;
}

#sponsor{
  background-color: #a3a3a375;
}
section{
  padding-top: 20px;
}
/* === HEADER === */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}
.logo{
  display: flex;
  flex-direction: column;
 align-items: center;

}
.logo span {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

/* Desktop navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--dark);
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;

}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  height: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark);
  font-weight: 600;
}

/* === MOBILE MENU === */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 320px;
  height: 100vh;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4rem 2rem;
  transition: right 0.4s ease;
  z-index: 1050;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 1rem 0;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav.active {
  right: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* === HERO SECTION - PŘEPRACOVÁNO PRO VIDEO === */
.hero {
  /* ZÁLOŽNÍ POZADÍ */
  background-image: url("imgs/poster.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden; 
}

/* KONTENJER PRO VIDEO */
.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; 
}

/* SAMOTNÉ VIDEO */
#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%; 
    transform: translate(-50%, -50%);
    object-fit: cover; 
}

/* TMÁVÝ PŘEKRYV (pro lepší čitelnost textu) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 2; 
}

/* OBSAH NAD VIDEEM */
.hero-content {
  position: relative;
  z-index: 10; 
  background: rgba(0,0,0,0.4); 
  padding: 2rem 3rem;
  border-radius: 10px;
  animation: fadeInUp 1.2s ease;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.hero p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.btn {
  background: var(--dark);
  color: white;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: var(--gray);
}

/* === MODAL OKNO (Nezměněno) === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
   overflow-y: auto; 
  padding: 2rem; 
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  padding: 2.5rem;
  border-radius: 15px;
  background: rgba(245, 245, 245, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  color: var(--light);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s ease, opacity 0.4s ease;
    overflow: hidden;

}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content h2 {
  margin-bottom: 2rem;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.5px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.modal-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;   
  align-items: center;      
  justify-content: center;  
  text-align: center;       
}

.modal-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.modal-contact-btn{
    background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;   
  align-items: center;      
  justify-content: center;  
  text-align: center;       
}
.modal-contact-btn:hover{
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}
.modal-card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.modal-card p {
  color: #ddd;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.2);
}

.modal-card img {
  width: 100%;              
  height: auto;             
  border-radius: 8px;       
  margin-bottom: 1rem;      
  object-fit: cover;        
  max-height: 100px;        
}
/* Responsivita */
@media (max-width: 768px) {
  .modal-content {
      width: 100%;
    max-width: none;
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 10px;
  }

   .modal-overlay {
    align-items: flex-start; 
    padding: 1.5rem; 
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }

  
}


/* Mobile */
@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* === SECTIONS === */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1300px;
  margin: auto;
}
 .container p{
  text-align: center;
 }
 .container h1, h2, h3, h4{
  padding-left: 20px;
 }
/* Cards / Grid */
.service-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card:hover {
  transform: translateY(-10px);
}

/* Project item */
.project-item {
  position: relative;
  height: 220px;
  border-radius: 10px;
  background: #ccc;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-image: url(https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=60);
}

/* aby "project-item" mohl byt i button (karta je klikatelna) */
.project-card{
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.project-card:focus-visible{
  outline: 3px solid rgba(0,0,0,0.35);
  outline-offset: 4px;
}
.overlay-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  text-align: center;
  padding: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-item:hover .overlay-text {
  opacity: 1;
}

/* ===========================================================
   MODAL - NASE REALIZACE (galerie v modalu)
   =========================================================== */
.project-modal{
  color: #fff;
}

.project-modal-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.project-modal-grid img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .project-modal-grid{
    grid-template-columns: 1fr;
  }
  .project-modal-grid img{
    height: 190px;
  }
}

@media (max-width: 768px){
  .project-modal-grid{
    grid-template-columns: 1fr;
  }
  .project-modal-grid img{
    height: 200px;
  }
}

/* === FORMS === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
.contact-form button {
  align-self: center;
}
.testimonial{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}
/*Testimonial*/
.snip1533 {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  color: #9e9e9e;
  display: inline-block;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  margin: 35px 10px 10px;
  max-width: 310px;
  min-width: 250px;
  position: relative;
  text-align: center;
  width: 100%;
  background-color: #ffffff;
  border-radius: 5px;
  border-top: 5px solid #333333;
}

.snip1533 *,
.snip1533 *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.1s ease-out;
  transition: all 0.1s ease-out;
}

.snip1533 figcaption {
  padding: 13% 10% 12%;
}

.snip1533 figcaption:before {
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  color: #0f0f0f;
  content: "\f10e";
  font-family: 'FontAwesome';
  font-size: 32px;
  font-style: normal;
  left: 50%;
  line-height: 60px;
  position: absolute;
  top: -30px;
  width: 60px;
}

.snip1533 h3 {
  color: #3c3c3c;
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  margin: 10px 0 5px;
}

.snip1533 h4 {
  font-weight: 400;
  margin: 0;
  opacity: 0.5;
}

.snip1533 blockquote {
  font-style: italic;
  font-weight: 300;
  margin: 0 0 20px;
}

.header__logo{
  display: flex;
  flex-shrink: 0;
  width: 12rem;
}

/* === GALERIE === */
#gallery {
  padding: 6rem 2rem;
  background: var(--light);
  text-align: center;
}

#gallery h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3000;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

.lightbox-img {
  max-width: 90%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  margin-top: 1rem;
  color: white;
  font-size: 1rem;
  opacity: 0.9;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close:hover {
  transform: scale(1.2);
}

/* Fade animace */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile optimalizace */
@media (max-width: 768px) {
  .gallery-item {
    height: 180px;
  }
}

/*=Kontaktní formulář=*/


/* === CONTACT SECTION (Nezměněno) === */
#contact {
  padding: 6rem 2rem;
  background: var(--light);
  color: var(--dark);
  position: relative;
}

.section-header {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

/* === WRAPPER === */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* === FORM KONTEJNER === */
#contact-form {
  flex: 1 1 500px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* === FORM ELEMENTS === */
.form-group {
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--gray);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
  resize: none;
  height: 180px;
}

/* === SUBMIT BUTTON === */
.send-button {
  align-self: flex-start;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.send-button:hover {
  background: var(--gray);
  transform: translateY(-2px);
}

.alt-send-button i {
  font-size: 1rem;
}

/* === CONTACT INFO BOX === */
.direct-contact-container {
  flex: 1 1 400px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* === CONTACT LIST === */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.list-item i {
  font-size: 1.3rem;
  color: var(--dark);
  min-width: 24px;
  text-align: center;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.list-item:hover i {
  opacity: 1;
}
.contact-text{
  padding-left: 10px;
}
.contact-text a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-text a:hover {
  color: var(--gray);
}

/* === SOCIAL ICONS === */
.social-media-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-icon {
  color: var(--dark);
  font-size: 1.4rem;
  transition: transform 0.3s, color 0.3s;
}

.contact-icon:hover {
  color: var(--gray);
  transform: scale(1.2);
}

.contact-box {
  max-width: 1150px;
  margin: 0 auto;
  text-align: left;
}

.contact-info p {
  margin: 4px 0;
  font-size: 15px;
  color: var(--text-muted);
  text-align: left;
}

.contact-info a {
  color: black;
}

.contact-map {
  display: grid;
  grid-template-rows: 270px auto;
  gap: 16px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* === COPYRIGHT === */
.copyright {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 1.5rem;
}

/* === ANIMACE === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 1202px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero-content {
    padding: 1.5rem;
  }

  .logo{
     justify-content: space-between;
  }
  
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  #contact-form,
  .direct-contact-container {
    width: 100%;
    max-width: 600px;
  }

  .send-button {
    align-self: center;
  }
}
.send-text{
  padding-left: 10px;
}

/* === RESPONZIVITA VIDEO BACKGROUND === */
@media (max-width: 768px) {
    /* UMOŽNĚNÍ ZOBRAZENÍ VIDEA NA MOBILU (ponecháno, jak jsme chtěli) */
    .video-background-container {
        display: block; 
        /* Zvýšíme Z-index, aby se správně překrylo statickým pozadím hero */
        z-index: 5; 
    }
    
    /* Vlastní styly pro video na mobilu */
    #heroVideo {
        /* Ponecháme center, ale upravíme min-width */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        
        /* KLÍČOVÁ ZMĚNA: Uvolníme agresivní roztahování pro mobil */
        /* Zajistíme, že video bude mít minimálně 100% šířky, ale nebude zbytečně vysoké */
        min-width: 100%;
        min-height: auto; /* ZMĚNA: Dovolíme výšce, aby se řídila poměrem stran */
        width: 100%;
        height: auto;
    }
    
    .hero {
        /* Ponecháme záložní pozadí z posteru pro případ, že se video nespustí */
        background-image: url("imgs/poster.jpg"); 
        background-size: cover;
        background-position: center;
    }
    
    .video-overlay {
        display: block; /* Překryv nad videem */
        z-index: 6; 
    }
    
    /* === Zajištění čitelnosti textu === */
    .hero-content {
        z-index: 10;
        /* Na menších obrazovkách centrování textu bez roztahování */
        width: 90%; 
        max-width: 400px; 
    }
}