/* Reset & ogólne */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: sans-serif;
    line-height: 1.5;
    background: #f5f5f5;
  }
  
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    z-index: 10;
    backdrop-filter: blur(6px);
} 
  
  .navbar .logo {
    font-size: 24px;
    font-weight: bold;
  }
  .navbar nav a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
  }
  .navbar nav a:hover {
    text-decoration: underline;
  }
  
  /* 🎞️ Hero slider */
  .hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
     /* by nie przykryło menu */
  }
  
  .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
  }
  
  .slide.active {
    opacity: 1;
    z-index: 1;
   
  }

  .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.1); /* Ustawiamy początkowy stan */
  }
  
  .zoom-reset {
    animation: zoomImage 30s linear;
  }
  
  @keyframes zoomImage {
    0% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1.7);
    }
  }


  
  .slide-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    border-radius: 10px;
    color: white;
    max-width: 500px;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    z-index: 1;
  }
  
  .slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Strzałki */
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 30px;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2;
  }
  .nav.prev {
    left: 20px;
  }
  .nav.next {
    right: 20px;
  }
  .nav:hover {
    background: rgba(0, 0, 0, 0.6);
  }
  
  /* 🔘 Kropki */
  .dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
  }
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s;
  }
  .dot.active {
    background: white;
  }
  
  /* 📱 Responsywność */
  @media (max-width: 768px) {
    .slide-content {
      left: 20px;
      right: 20px;
      max-width: unset;
      font-size: 16px;
    }
  
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
      }

    .navbar nav {
      margin-top: 10px;
    }
    .navbar nav a {
      margin-left: 0;
      margin-right: 15px;
    }
  }.buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
  }
  .btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
  }
  .btn.primary {
    background: #007bff;
    color: white;
  }
  .btn.primary:hover {
    background: #0056b3;
  }
  .btn.secondary {
    background: white;
    color: #333;
  }
  .btn.secondary:hover {
    background: #eee;
  }
  
  
  /* 📱 Responsywność rozszerzona */
  @media (max-width: 768px) {
    .slide-content {
      left: 20px;
      right: 20px;
      max-width: unset;
      font-size: 16px;
    }
    .buttons {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .navbar {
      flex-direction: column;
      align-items: flex-start;
      padding: 15px 20px;
    }
    .navbar nav {
      margin-top: 10px;
    }
    .navbar nav a {
      margin: 0 15px 5px 0;
    }
  }
  



  .scroll-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }
  
  .sticky-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
  }
  
  

  /* Sekcja z nagłówkiem */
.info-section {
  background: #f9f9f9;
  padding: 150px 20px 150px;
  text-align: center;
}

.info-section h2 {
  font-size: 42px;
  margin-bottom: 15px;
  color: #222;
}

.info-section p {
  font-size: 20px;
  color: #555;
}

/* Sekcja z tłem */
.scroll-section {
  position: relative;
  height: 60vh;
  background-image: url('images/electric.jpg'); /* tło początkowe */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: background-image 1s ease-in-out;
}

.scroll-section.change-bg {
  background-image: url('images/lakiernia.jpg'); /* tło po wejściu w sekcję */
}

.scroll-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding-top: 150px;
}










/* 📌 Sekcja usług */
.services {
  text-align: center;
  padding: 180px 60px;
  background-color: #f4f4f4;
}

.services h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #333;
}

/* 🔳 Kontener na kafle */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* 🔲 Kafel usługi */
.service-card {
  width: 300px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.03);
}

/* 🖼️ Tła dla poszczególnych usług */
.service-card.card-powypadkowe {
  background-image: url('images/naprawy_powypadkowe.png');
}

.service-card.card-felgi {
  background-image: url('images/naprawafelg.jpg');
}

.service-card.card-gradobicie {
  background-image: url('images/pdr.jpg');
}

/* 🔘 Link w kaflu */
.service-card a {
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

/* 📎 Przycisk „Cała oferta” */
.btn.secondary2 {
  display: inline-block;
  margin-top: 10px;
  padding: 15px 30px;
  background: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.btn.secondary2:hover {
  background: #0056b3;
}

.fade-up {
  opacity: 0;
  transform: translateY(100px);
  transition: all 1.5s ease;
}


.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}






.about {
  background: #fff;
  padding: 180px 20px 250px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.about-image {
  flex: 1 1 400px;
  height: 300px;
  background-image: url('images/mechanika.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.about-text p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.about-content {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

  




.footer-parallax {
  position: relative;
  height: 60vh;
  background: url('images/zaufanier.png') no-repeat center center / cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  overflow: hidden;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.footer-text {
  color: white;
  max-width: 800px;
  z-index: 2;
  animation: fadeUp 1.2s ease both;
}

.footer-text h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.footer-text p {
  font-size: 18px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .footer-parallax {
    height: 40vh;
  }

  .footer-text h2 {
    font-size: 24px;
  }

  .footer-text p {
    font-size: 16px;
  }
}
