.project-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.project-description_2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.project-description2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.hardware-hero {
  width: 100vw;
  height: 340px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hardware-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  text-shadow: 0 0 2px black, 0 0 2px black;
  position: relative;
  z-index: 2;
}

.hardware-hero img.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  transform: translateY(0);
  transition: transform 0.1s linear;
}


.angled-section {
  display: flex;
  width: 100vw;
  height: 300px;  /* zmniejszona wysokość */
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.text-box {
  background-color: var(--nav-bg);
  color: var(--text-color);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  clip-path: polygon(0 0, 50% 0, 65% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  z-index: 1;
  padding: 20px 900px 20px 50px;  /* Padding-right = 80px na odsunięcie od cięcia */
  box-sizing: border-box;
  width: 100%;  
}

.image-box {
  width: 100%;
  height: 100%;  /* Możesz zmieniać */
  overflow: hidden;
  position: relative;
  background-color: #000;
}

.image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  transform: translate(130%, -150%) scale(3);  /* Przesunięcie i powiększenie */
  transform-origin: top left;
  display: block;
}

@media (max-width: 768px) {
  .angled-section {
    flex-direction: column;
    width: 100%;
    height: auto;
    transform: none;
    left: 0;
    overflow: hidden;
  }

  .text-box {
    width: 100%;
    height: auto;
    position: relative;
    clip-path: none;  /* Bez cięcia */
    text-align: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 0;
    background-color: var(--nav-bg);
  }

  .text-box-reverse-content {
    max-width: 100%;
  }

  .image-box {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);  /* Ścięcie z góry */
    margin-top: -25px;   /* Obrazek podchodzi pod tekst */
    z-index: 1;
  }

  .image-box img {
    width: 100%;
    margin-top:15px;
    height: auto;
    object-fit: cover;
    position: relative;
    transform: none;
    display: block;
  }
}

.angled-section-reverse {
  display: flex;
  width: 100vw;
  height: 400px;
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.text-box-reverse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--nav-bg);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 35% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 20px 20px 20px 0px;  /* Padding-left = 80px */
  box-sizing: border-box;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
  text-align: right;
}

.text-box-reverse-content {
  max-width: 50%;
}

.image-box-reverse {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-color: #000;
  z-index: 0;
  clip-path: polygon(0 0, 50% 0, 35% 100%, 0% 100%);
}

.image-box-reverse img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  transform: translate(-30%, -40%) scale(2.3);
  transform-origin: top left;
  display: block;
}

@media (max-width: 768px) {
  .angled-section-reverse {
    flex-direction: column;
    width: 100%;
    height: auto;
    transform: none;
    left: 0;
    overflow: hidden;
  }

  .text-box-reverse {
    width: 100%;
    margin-top:-25px;
    height: auto;
    position: relative;
    clip-path: none;  /* Bez cięcia */
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 0;
    background-color: var(--nav-bg);
  }

  .text-box-reverse-content {
    max-width: 100%;
  }

  .image-box-reverse {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 0, 100% 0%, 100% 90%, 0% 100%);  /* Ścięcie z góry */
    margin-top: _40px;  /* Podciągnięcie pod tekst */
    z-index: 1;
  }

  .image-box-reverse img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    transform: none;
    display: block;
  }
}



@media (max-width: 768px) {
  .hardware-hero {
    height: 200px;
    background-position: center center;
    background-size: cover;
    margin-bottom: -6rem;
  }

  .hardware-hero h1 {
    font-size: 2rem;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
  }
  
  .project-description_2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  }

}

/* Startowy stan ukrycia */
.hidden-on-load {
  opacity: 0;
  transition: all 0.8s ease;
}

/* Animacja z lewej */
.slide-in-left.show-on-scroll {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-left {
  transform: translateX(-80px);
}

/* Animacja z prawej */
.slide-in-right.show-on-scroll {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  transform: translateX(80px);
}

.project-split {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 40px auto;
  gap: 0px;
  padding: 0 10px;
}

.project-split .split-left,
.project-split .split-right {
  flex: 1;
}

.project-split .split-left img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-split .split-left img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.project-split .split-right p {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 768px) {
  .project-split {
    flex-direction: column;
    gap: 16px;
  }

  .project-split .split-left,
  .project-split .split-right {
    width: 100%;
  }

  .project-split .split-right p {
    text-align: center;
  }

  /* Wyłącz animację przesunięcia na mobile */
  .slide-in-left,
  .slide-in-right {
    transform: translateX(0);
  }
}

.project-download {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.download-btn {
  display: center;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: white;
  padding: 8px 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  gap: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 0.95rem;
  cursor: pointer;
  width: 300px;
}

.download-btn:hover {
  background-color: var(--link-hover);
  transform: translateY(-1px);
}

.download-btn img.download-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  filter: invert(1);
}

.download-btn:hover img.download-icon {
  transform: scale(1.1);
}


.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: white;
  padding: 10px 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  gap: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.details-btn:hover {
  background: var(--link-hover);
  transform: translateY(-2px);
}

.details-icon {
  width: 18px;
  height: 18px;
  background: url('../../img/icons/dropdown.svg') no-repeat center center;
  background-size: contain;
  display: inline-block;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.details-btn:hover .details-icon {
  transform: scale(1.15);
}

.details-btn-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}



.details-content {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}


.details-content.visible {
  max-height: 1000px; /* Daj wartość większą niż potrzebujesz */
}

.details-content.expanded {
  max-height: 1000px; /* Ustaw większe jeśli potrzeba */
}

.spec-list {
  border-top: 1px solid #ccc;
  margin-top: 20px;
  width: 100%;
}

.spec-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
  transition: all 0.3s ease;
}

.spec-row:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.spec-left {
  display: flex;
  align-items: center;
  width: 40%;
  gap: 10px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
}

.spec-right {
  width: 60%;
  border-left: 1px solid #ccc;
  padding-left: 12px;
  color: var(--text-color);
  font-weight: 500;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s ease;
}

.spec-left.show-left {
  opacity: 1;
  transform: translateX(0);
}

.spec-right.show-right {
  opacity: 1;
  transform: translateX(0);
}

.spec-left img {
  width: 24px;
  height: 24px;
  filter: invert(0);
  transition: transform 0.3s ease;
}

.spec-left img:hover {
  transform: scale(1.2);
}

body.dark .spec-left img {
  filter: invert(1);
}

@media (max-width: 768px) {
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .spec-left,
  .spec-right {
    width: 100%;
    border: none;
    padding: 5px 0;
  }
}

