/* ============================================
   HERO SEKCE - Kompletně přepsáno
   ============================================ */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0b0b0b;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-background {
  position: absolute; /* Pouze v hero sekci */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Obrázek s zoom animací - VYCENTROVANÝ NA STŘED (SVÁŘEČ) */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%; /* Zobrazí dolní část obrázku se svářečem a jiskrami */
  animation: heroZoomSmooth 15s ease-in-out infinite;
  transform-origin: center center;
  filter: brightness(60%);
}

/* Overlay přes obrázek pro lepší čitelnost textu */
.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.75) 30%,
    rgba(0, 0, 0, 0.4) 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Keyframe animace pro zoom - JEMNĚJŠÍ */
@keyframes heroZoomSmooth {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Kontejner pro padající jiskry */
#hero-sparks-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-sparks-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Jednotlivá jiskra - s náhodným pohybem (jittering) */
.hero-spark {
  position: absolute;
  /* Bazální pozice */
  left: var(--spark-base-x, 50%);
  top: var(--spark-base-y, 50%);
  transform: translate(-50%, -50%);

  /* Základní velikost */
  width: var(--spark-min-size, 6px);
  height: var(--spark-min-size, 6px);
  border-radius: 50%;

  /* Hezký gradient kolečko - ostřejší, světlejší střed */
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 15%,
    var(--spark-color, #fb6331) 35%,
    var(--spark-color, #fb6331) 65%,
    rgba(185, 18, 0, 0.6) 85%,
    rgba(0, 0, 0, 0) 100%
  );

  /* Minimální blur pro jemný efekt */
  filter: blur(0.5px);
  opacity: 0.85;

  /* Dva nezávislé animační cykly */
  animation: sparkJitter var(--spark-move-duration, 5s) ease-in-out
      var(--spark-move-delay, 0ms) infinite,
    sparkSizeChange var(--spark-size-duration, 7s) ease-in-out
      var(--spark-size-delay, 0ms) infinite;

  /* Jemný glow */
  box-shadow: 0 0 8px var(--spark-color, #fb6331),
    0 0 12px rgba(255, 100, 50, 0.4), inset 0 0 3px rgba(255, 255, 255, 0.6);

  /* Pointer events vypnuté */
  pointer-events: none;
}

/* Náhodný pohyb (jittering v radiusu) */
@keyframes sparkJitter {
  0% {
    transform: translate(calc(-50% + 0px), calc(-50% + 0px));
  }
  20% {
    transform: translate(
      calc(-50% + var(--spark-jitter-radius, 15px) * 0.6),
      calc(-50% - var(--spark-jitter-radius, 15px) * 0.4)
    );
  }
  40% {
    transform: translate(
      calc(-50% - var(--spark-jitter-radius, 15px) * 0.5),
      calc(-50% + var(--spark-jitter-radius, 15px) * 0.7)
    );
  }
  60% {
    transform: translate(
      calc(-50% + var(--spark-jitter-radius, 15px) * 0.3),
      calc(-50% + var(--spark-jitter-radius, 15px) * 0.5)
    );
  }
  80% {
    transform: translate(
      calc(-50% - var(--spark-jitter-radius, 15px) * 0.7),
      calc(-50% - var(--spark-jitter-radius, 15px) * 0.3)
    );
  }
  100% {
    transform: translate(calc(-50% + 0px), calc(-50% + 0px));
  }
}

/* Náhodná změna velikosti */
@keyframes sparkSizeChange {
  0%,
  100% {
    width: var(--spark-min-size, 6px);
    height: var(--spark-min-size, 6px);
  }
  33% {
    width: calc(
      var(--spark-min-size, 6px) +
        (var(--spark-max-size, 10px) - var(--spark-min-size, 6px)) * 0.7
    );
    height: calc(
      var(--spark-min-size, 6px) +
        (var(--spark-max-size, 10px) - var(--spark-min-size, 6px)) * 0.7
    );
  }
  66% {
    width: var(--spark-max-size, 10px);
    height: var(--spark-max-size, 10px);
  }
}

.hero-content {
  position: relative;
  z-index: 10; /* Vyšší z-index než parallax vrstvy */
  max-width: 900px;
  padding: var(--spacing-md);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-orange) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  z-index: 10; /* Vyšší z-index než parallax vrstvy */
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-orange);
  border-bottom: 2px solid var(--color-orange);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(45deg) translateY(0) translateX(0);
  }
  40% {
    transform: rotate(45deg) translateY(-8px) translateX(-8px);
  }
  60% {
    transform: rotate(45deg) translateY(-5px) translateX(-5px);
  }
}

/* ============================================
   O NÁS SEKCE
   ============================================ */
.about {
  padding: var(--spacing-xl) 0;
  background-color: #0a0a0a;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-text {
  padding-right: var(--spacing-md);
}

.about-subtitle {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.about-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

/* Feature statistiky */
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1),
    rgba(253, 184, 19, 0.05)
  );
  border-left: 4px solid var(--color-orange);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.15),
    rgba(253, 184, 19, 0.1)
  );
}

.feature-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 100px;
  text-align: center;
}

.feature-text h4 {
  color: var(--color-white);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.feature-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

/* Vizuál - obrázek */
.about-visual {
  position: relative;
}

.about-top {
  display: flex;
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 30vw;
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  min-width: 500px;
  object-fit: cover;
  object-position: center center;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  padding: 1rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  animation: pulse 2s infinite;
}

.badge-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-white);
}

.badge-text {
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ============================================
   SLUŽBY SEKCE
   ============================================ */
.services {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-black);
}

.services-grid {
  display: grid;
  grid-template-columns: 3fr;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #0a0a0a;
  padding: var(--spacing-lg);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 20px 30px rgba(255, 107, 53, 0.3);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.service-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  border-radius: 50%;
}

.service-icon img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.service-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.service-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  max-width: 500px;
}

.service-features {
  list-style: none;
  padding-left: 0;
}

.service-features li {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-white);
  font-weight: bold;
}

.service-features li:last-child {
  border-bottom: none;
}

/* ============================================
   GALERIE SEKCE
   ============================================ */
.gallery {
  padding: var(--spacing-xl) 0;
  background-color: #0a0a0a;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(50%);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: blur(0px) brightness(85%);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  color: var(--color-white);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ============================================
   REFERENCE SEKCE
   ============================================ */
.references {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-black);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 40px;
}

.reference-card {
  background-color: #0a0a0a;
  padding: var(--spacing-lg);
  border-radius: 12px;
  border-left: 4px solid var(--color-orange);
  transition: all 0.3s ease;
  box-shadow: 0 20px 30px rgba(255, 107, 53, 0.3);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.reference-card:hover {
  transform: translateY(-10px);
}

/* Hvězdičky */
.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--spacing-md);
}

.star {
  font-size: 1.5rem;
  color: var(--color-white);
}

.reference-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  font-style: italic;
  font-size: 1rem;
}

.reference-author {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reference-author h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.reference-company {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================
   PŘÍLOHY SEKCE
   ============================================ */
.attachments {
  padding: var(--spacing-xl) 0;
  background-color: #0a0a0a;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.attachment-card {
  text-align: center;
  background-color: black;
  padding: var(--spacing-lg);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0px 30px rgba(255, 107, 53, 0.3);
  user-select: none;
}

.attachment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.attachment-icon {
  margin: 0 auto var(--spacing-md);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.2),
    rgba(253, 184, 19, 0.2)
  );
  border-radius: 12px;
}

.attachment-icon svg {
  stroke: var(--color-orange);
  stroke-width: 2;
}

.attachment-card h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.attachment-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
}

.download-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-orange);
  color: var(--color-white);
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: var(--color-yellow);
  color: var(--color-black);
  transform: scale(1.05);
}

/* ============================================
   KONTAKT SEKCE
   ============================================ */
.contact {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-black);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: start;
}

/* Kontaktní informace */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.info-item {
  display: flex;
  gap: var(--spacing-sm);
}

.info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  border-radius: 50%;
}

.info-icon svg {
  stroke: var(--color-white);
  stroke-width: 2;
}

.info-content h4 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.info-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.info-content a {
  color: var(--color-white);
}

.info-content a:hover {
  color: var(--color-white);
}

/* Kontaktní formulář */
.contact-form {
  background-color: var(--color-gray);
  padding: var(--spacing-lg);
  border-radius: 12px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  width: 100%;
}

/* Google Maps */
.contact-map {
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-height: 300px;
}

.map-note {
  text-align: center;
  margin-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: italic;
}

/* ============================================
   GALLERY MODAL
   ============================================ */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Tmavý overlay pozadí */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1;
}

/* Modal container */
.modal-container {
  position: relative;
  z-index: 2;
  background-color: #0a0a0a;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(185, 18, 0, 0.3);
}

/* Header */
.modal-header {
  position: sticky;
  top: 0;
  background: linear-gradient(
    135deg,
    rgba(63, 6, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
  padding: var(--spacing-md);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 3;
}

.modal-title {
  color: var(--color-white);
  font-size: 1.5rem;
  margin: 0;
  padding-right: 40px;
}

.modal-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* Křížek na zavření */
.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Modal content */
.modal-content {
  padding: var(--spacing-lg);
}

/* Grid s obrázky - desktop 2 sloupce */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.modal-grid img,
.modal-grid video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.modal-grid img:hover,
.modal-grid video:hover {
  transform: scale(1.05);
}
