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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0d0d0d;
  color: #f0f0f0;
  line-height: 1.6;
}

nav {
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00bcd4;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #00bcd4;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #fff;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #111;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}

header {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../gallery/main-foto.jpg') no-repeat center center/cover;
  height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

header h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.container {
  max-width: 100%;
  margin: 2rem auto;
  padding: 1rem;
}

.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #00bcd4;
}

.button, button {
  background-color: #00bcd4;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.button:hover, button:hover {
  background-color: #0097a7;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-item {
  background-color: #1a1a1a;
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-item img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.tech-item p {
  margin-top: 0.5rem;
  color: #ccc;
}

.tech-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  white-space: pre-wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 0.9rem;
  z-index: 100;
  width: max-content;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.tech-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 1rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #222;
  color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00bcd4;
}

.contact-details {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
}

.contact-details h3 {
  margin-bottom: 1rem;
  color: #00bcd4;
}

.contact-details a {
  color: #00bcd4;
  text-decoration: none;
}

@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  color: #f0f0f0;
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
  margin: 2rem auto;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%);
  z-index: 0;
}

.promo-text {
  z-index: 1;
  flex: 1.5;
}

.promo-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #00bcd4;
}

.promo-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.promo-image {
  flex: 1;
  z-index: 1;
}

.promo-image img {
  max-width: 100%;
  border-radius: 12px;
}

.promo-button {
  background-color: #00bcd4;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.promo-button:hover {
  background-color: #0097a7;
}

@media (max-width: 768px) {
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .promo-image {
    order: -1;
  }
}

.kontakt-form {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  margin: 2rem auto;
  color: #f0f0f0;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.kontakt-form h2 {
  color: #00bcd4;
  margin-bottom: 1rem;
}

.kontakt-form .contact-logo {
  display: block;
  max-width: 120px;
  margin-bottom: 5%;
}

.kontakt-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  font-size: 1rem;
}

.kontakt-form button {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontakt-form button:hover {
  background-color: #0097a7;
}

/* ✅ Upravená galerie: zobrazí obrázky celé bez ořezání */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  justify-items: center; /* vycentruje obrázky v buňkách */
}

.gallery-grid img {
  width: auto;           /* necháme automatickou šířku podle obsahu */
  max-width: 80%;        /* maximálně 80% šířky kontejneru */
  height: auto;          /* výška se automaticky přizpůsobí šířce */
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;   /* zachová celý obrázek bez ořezu */
  margin: 0 auto;        /* vycentrování fotky v kontejneru */
  display: block;        /* aby margin auto fungovalo */
  aspect-ratio: auto;    /* zachovat poměr stran */
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
}


.slideshow-container {
  position: relative;
  max-width: 70%;
  height: 700px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.slideshow-container img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
}

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0.3; }
  to { opacity: 1; }
}


header > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* prostor mezi textem a tlačítkem */
  max-width: 700px;
  margin: 0 auto;
}

.button {
  padding: 1rem 2rem;
  font-size: 1.25rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  box-shadow: 0 8px 15px rgba(0, 188, 212, 0.3);
  transition: background 0.4s ease, transform 0.3s ease;
  display: inline-block;
}

.button:hover {
  background: linear-gradient(135deg, #0097a7, #006f75);
  transform: scale(1.05);
  cursor: pointer;
}

.button:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Vycentrování celé galerie */
.slideshow-container {
  max-width: 700px;
  margin: 2rem auto;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  height: 450px; /* lehce menší výška než původních 700 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.slideshow-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 15px;
  margin: 0 auto;
  display: block;
}

/* FAQ Grid - příjemnější rozložení */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  text-align: left;
}

/* FAQ jednotlivé položky */
.faq-item {
  background-color: #1a1a1a;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,188,212,0.15);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(0,188,212,0.3);
}

.faq-item h3 {
  color: #00bcd4;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.faq-item p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
}

/* Nadpis FAQ na střed */
#faq > h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #00bcd4;
}

/* Nadpis galerie na střed */
#galerie > h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #00bcd4;
}

nav ul li a:hover, nav ul li a[aria-current="page"] {
  color: #00bcd4;
}
.modal {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: #1a1a1a;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #333;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  color: #5e5e5e;
  position: relative;
  box-shadow: 0 0 20px rgba(0,188,212,0.4);
}

.modal-content h2 {
  color: #00bcd4;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: none;
  border-radius: 6px;
  background-color: #333;
  color: #fff;
}

.modal-content button {
  width: 100%;
  padding: 0.75rem;
  background-color: #00bcd4;
  border: none;
  border-radius: 6px;
  color: #333;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-content button:hover {
  background-color: #0097a7;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: none;
  border-radius: 6px;
  background-color: #333;   /* tmavé pozadí, aby to nekřičelo bílým */
  color: #fff;              /* světlý text */
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
}
