/* Ogólny layout podstrony */
.project-page {
  padding: 5rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
  background-color: #ffffff;
}

.project-page .container {
  max-width: 960px;
  width: 100%;
}

/* Link „Powrót” */
.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  user-select: none;
}

.back:hover {
  color: #007bff;
}

/* Tytuł projektu */
.project-page h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-family: "Inter", "Segoe UI", sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
}

/* Wprowadzenie */
.project-page .intro {
  font-size: 1.25rem;
  color: #555;
  background-color: #f9f9f9;
  padding: 1.2rem 1.8rem;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  margin-bottom: 2.5rem;
  text-align: center;
  line-height: 1.75;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  cursor: default;
  user-select: none;
}

/* Opis projektu */
.o-projekcie.o-projekcie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 3rem 3.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e5e5;
  margin: 0 auto 4rem;
  max-width: 1100px;
  font-family: "Segoe UI", "Open Sans", sans-serif;
  position: relative;
}

.o-projekcie.o-projekcie-grid::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  background-color: #e2e2e2;
  transform: translateX(-0.5px);
}
@media (max-width: 900px) {
  .o-projekcie.o-projekcie-grid::before {
    display: none;
  }
}

.o-projekcie.o-projekcie-grid .column {
  display: flex;
  flex-direction: column;
}

.o-projekcie.o-projekcie-grid h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #007bff;
  font-weight: 600;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 0.5rem;
  text-align: left;
  cursor: default;
  user-select: none;
  text-align: center;
}

.o-projekcie.o-projekcie-grid p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  font-size: 1.06rem;
  color: #2c2c2c;
  text-align: justify;
  cursor: default;
  user-select: none;
}

.o-projekcie.o-projekcie-grid strong {
  font-weight: 600;
  color: #000;
}

.o-projekcie {
  line-height: 1.6;
}

.o-projekcie h3 {
  margin-bottom: 0.75rem;
  color: #1d4ed8;
  font-weight: 600;
}

.o-projekcie p {
  margin-bottom: 1rem;
  max-width: 640px;
}

.o-projekcie-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .o-projekcie-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
/* Sekcje h2 */
.project-page h2 {
  font-size: 1.8rem;
  margin: 4rem 0 1.5rem;
  color: #111;
  text-align: center;
  font-weight: 600;
}

/* Technologie / funkcje */
.tech-list,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin-bottom: 3rem;
}

.tech-list li,
.feature-list li {
  background: #f7f7f7;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0.95;
  cursor: default;
  user-select: none;
  font-weight: 500;
  color: #222;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tech-list li:hover,
.feature-list li:hover {
  background-color: #eaeaea;
  transform: scale(1.05);
}

.gallery-lead {
  text-align: center;
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
  cursor: default;
  user-select: none;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.tech-list li {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #333;
}

/* === Galeria === */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0 4rem;
}

.gallery-wrapper h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
  text-align: center;
}

.gallery-main {
  position: relative;
}

.gallery-main img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  background-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
}

.image-caption {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: #2c3e50;
  background: #f6f8fa;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 400px;
  margin: 0 auto 1rem;
  font-family: "Segoe UI", "Open Sans", sans-serif;
  letter-spacing: 0.3px;
}

/* Miniaturki */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-width: 800px;
  width: 100%;
}

.gallery-thumbnails img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease, transform 0.2s ease;
}

.gallery-thumbnails img:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

.gallery-thumbnails img.active-thumbnail {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

/* === Fullscreen modal === */
#fullscreen-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#fullscreen-modal img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  cursor: zoom-out;
}

/* Link GitHub */
.project-links {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.project-links .btn {
  padding: 0.85rem 1.7rem;
  background: linear-gradient(to right, #007bff, #0056b3);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.project-links .btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(to right, #0062cc, #003f7f);
  box-shadow: 0 8px 20px rgba(0, 91, 187, 0.4);
}

.gallery-thumbnails .thumb {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.gallery-thumbnails .thumb img {
  margin-bottom: 6px;
}

.planned-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  color: #444;
  cursor: default;
  user-select: none;
}

.roadmap-title {
  font-size: 1.75rem;
  text-align: center;
  margin: 4rem 0 0.5rem;
  color: #111;
  font-weight: 600;
  position: relative;
  cursor: default;
  user-select: none;
}

.roadmap-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #007bff;
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.github-btn {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.github-btn .github-icon {
  flex-shrink: 0;
  fill: #fff;
  transition: transform 0.3s ease;
}

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

.gallery-lead {
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.feature-list li {
  background: #f8f9fa;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}

.feature-list li:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}
