@import url('https://fonts.googleapis.com/css2?family=Rubik:ital@0;1&display=swap');

/* Reset a základní stylování */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Rubik, sans-serif;
  background: url('digital-picture-world-from-outer-space.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  line-height: 1.6;
}

#main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: relative;
  top: 0;
  height: 200px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 0 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  transition: all 0.4s ease;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 50px;
  gap: 30px;
}

.about-text {
  flex: 1 1 45%;
  max-width: 600px;
}

.about-slider-wrapper {
  flex: 1 1 45%;
  max-width: 500px;
  position: relative;
}

.about-slider {
  width: 100%;
  height: 510px;
  border-radius: 12px;
  overflow: hidden;
}

.about-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Šipky a tečky */
.swiper-button-next,
.swiper-button-prev {
  color: white;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  text-align: center;
  width: 100%;
  z-index: 10;
}

.logo {
  text-align: center;
  transition: all 0.4s ease;
}

.logo img {
  height: 100px;
  transition: all 0.4s ease;
}

.scrolled .logo img {
  height: 75px;
  transition: height 0.4s ease;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  list-style: none;
}

.navbar a {
  position: relative;
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding-top: 20px;
  padding-bottom: 20px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar a::after {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 3px;
  background-color: #FFD700;
  transition: width 0.3s ease-in-out;
  margin-top: 0;
}

.navbar a::before {
  content: " ";
  display: block;
  width: 0;
  margin-bottom: 0;
  margin-left: auto;
  height: 3px;
  background-color: #FFD700;
  transition: width 0.3s ease-in-out;
}

.navbar a:hover {
  padding-left: 0;
  padding-right: 0;
  color: #000000;
}

.navbar a:hover span {
  transition: background-color .2s linear;
  transition-delay: .25s;
  padding-bottom: 5px;
  padding-top: 5px;
}

.navbar a span {
  display: inline-block;
  padding: 5px 10px;
  background-color: transparent;
  transition: background-color .2s linear;
}

.navbar a:hover span {
  height: 100%;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #FFD700;
  color:#000000
}

.navbar a:hover:after, .navbar a:hover:before {
  width: 100%;
}

section {
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #FFD700;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #000;
}

h4 {
  font-size: 24px;
}

li {
  margin-left: 2rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.photo {
  flex: 1 1 30%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.photo img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
}

#lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin-bottom: 1rem;
  object-fit: contain;
  display: block;
}

#lightbox p {
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

#closeBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.arrow.left {
  left: 30px;
}

.arrow.right {
  right: 30px;
}

.map-container {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

footer {
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #ccc;
}

/* Cookies Modal */
.cookie-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.cookie-modal.active {
  display: block;
}

.cookie-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 15px;
  background-color: #FFD700;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cookie-buttons button:hover {
  background-color: #e6be00;
}

.sticky .container {
  justify-content: space-between;
}

/* Login Form */
form#loginForm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.form-input {
  position: relative;
  margin-bottom: 15px;
}

form#loginForm input {
  padding: 15px 20px;
  width: 300px;
  height: 40px;
  border: 2px solid #ccc;
  outline: none;
  color: #FFFF;
  z-index: 1;
  font-weight: 500;
  background-color: transparent;
  transition: all .3s ease;
  font-size: 16px;
  border-radius: 4px;
  text-align: left;
}

form#loginForm label {
  cursor: text;
  color: #999;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 16px;
  font-weight: bold;
  background: transparent;
  padding: 0 10px;
  transition: all .2s ease-in-out;
}

form#loginForm input:focus,
form#loginForm input:valid {
  color: #FFD700;
  border-color: #FFD700;
  background-color: #333;
}

form#loginForm input:focus + label,
form#loginForm input:valid + label {
  transform: translateY(-43px);
  font-size: 14px;
  color: #FFD700;
}

form#loginForm button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #f3f3f3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form#loginForm button:hover {
  background-color: #e1b400;
  color: #000;
}

/* Scroll efekt na header */
.scrolled .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#main-header.scrolled {
  height: 100px;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  z-index: 999;
}

#main-header.scrolled .logo {
  transform: scale(0.8);
}

.kontakt-formular {
  max-width: 600px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background-color: rgba(167, 167, 167, 0.8);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,1);
}

.kontakt-formular input,
.kontakt-formular textarea {
  padding: 0.8rem;
  border: 2px solid #3b3a3a;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
  padding: 10px 20px 10px 20px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.kontakt-formular label {
  cursor: text;
  color: #000000;
  position: relative;
  left: 10px;
  top: 5px;

}

.kontakt-formular input:focus,
.kontakt-formular input:valid {
  color: #FFD700;
  border-color: #FFD700;
  background-color: #333;
}

.kontakt-formular textarea:focus,
.kontakt-formular textarea:valid {
  border-color: #FFD700;
  color: #FFD700;
  background-color: #333;
}

.kontakt-formular:focus + label,
.kontakt-formular:valid + label {
  transform: translateY(-43px);
  font-size: 14px;
  color: #FFD700;
}

.kontakt-formular button {
  padding: 0.9rem;
  background-color: #000;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontakt-formular button:hover {
  background-color: #333;
}

.btn-kontakt {
  padding: 15px 30px;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: #f3f3f3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-kontakt:hover {
  background-color: #e1b400;
  color: #000;
}

.success-message {
  max-width: 600px;
  margin: 1rem auto;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-align: center;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-text {
  flex: 1;
  min-width: 300px;
}

.contact-image {
  flex: 1;
  max-width: 500px;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.electro-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.electro-image {
  flex: 1;
  max-width: 500px;
}

.electro-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.servis-content {
  display: flex;
  align-items: top;
  justify-content: space-between;
}

.servis-text {
  flex: 1;
  margin-right: 20px;
}

.servis-image {
  flex: 1;
  max-width: 600px;
  margin-right: 20px;
}

.servis-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.security-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.security-text {
  flex: 1;
  margin-right: 80px;
}

.text-body {
  flex: 1;
}

.security-image {
  flex: 0 0 40%;
  max-width: 400px;
}

.security-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-top: 4em;
}

/* Hamburger button základní styl */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
}

@media (max-width: 1320px) {
  .hamburger {
    display: flex;
  }

  .navbar-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    width: 100%;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .navbar-wrapper.open {
    display: block;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .navbar a {
    font-size: 18px;
    color: white;
  }


  .scrolled .navbar a {
    display: flex;
    top: -60px;
    font-size: 13px;
  }

  .logo img {
    height: 70px;
  }

  .scrolled .logo img {
    height: 40px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

  .content {
    padding: 20px 30px;
  }

  .form {
    padding: 20px;
    width: 100%;
  }

  .security-content {
    flex-direction: column;
  }

  .text-body {
    flex-direction: column;
  }

  .security-image img {
    margin: 0 auto;
  }
}