/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
  }
  
  /* ===== Nawigacja ===== */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #0066cc;
    color: white;
    flex-wrap: wrap;
  }
  
  nav .nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.2s ease;
  }
  
  nav ul li a:hover {
    color: #ffdd57;
  }
  
  /* ===== Przełącznik języka ===== */
  .language-switcher {
    display: flex;
    gap: 10px;
    order: 2;
  }
  
  .language-switcher button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #0066cc;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .language-switcher button:hover {
    background-color: #e0e0e0;
  }
  
  /* ===== Główna zawartość ===== */
  main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
  }
  
  .home-main {
    background-image: url('akropol.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    padding: 20px;
  }
  
  /* ===== Sekcja lewa ===== */
  .left {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .left h2 {
    margin-bottom: 20px;
    color: #003366;
  }
  
  .info-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .info-block {
    background-color: #0066cc;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
  }
  
  /* ===== Sekcja prawa ===== */
  .right {
    flex: 2;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .right p {
    color: #333;
    font-size: 1rem;
  }
  
  /* ===== Stopka ===== */
  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background-color: #0066cc;
    color: white;
    width: 100%;
    flex-shrink: 0;
  }
  
  footer img {
    height: 70px;
    transition: transform 0.3s ease;
  }
  
  footer img:hover {
    transform: scale(1.1);
  }
  
  /* ===== Strona Uczestnicy ===== */
  .participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  .participants-grid > .participant-card {
  height: 100%;
}

  .participant-card {
  background-color: #d6ecff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative; /* <--- to dodaj */
  overflow: hidden;    /* <--- ukrywa .info poza kartą */
  transition: transform 0.3s ease; /* dla hover */
  }
  
 .participant-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.participants-grid img {
  width: 200px;     /* ustalona szerokość */
  height: 300px;    /* ustalona wysokość */
  object-fit: cover; /* przytnie obraz tak, by wypełnić ramkę */
  border-radius: 8px; /* opcjonalnie zaokrąglone rogi */
  display: block;
  margin: 0 auto;
}

.participant-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

 .participant-card .info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  font-weight: bold;
  text-align: center;
  pointer-events: none; /* nie przeszkadza w klikaniu */
}

.participant-card:hover .info {
  opacity: 1;
  pointer-events: auto;
}
  
  .participant-card .info h4,
  .participant-card .info p {
  margin: 10px 0;
  font-size: 1.2rem;
  color: white;
  background-color: #0066cc;
  padding: 6px 10px;
  border-radius: 8px;
}
  
  /* ===== Strona Firmy ===== */
 .companies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolumny */
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}


  .company-block {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .company-block:hover {
    transform: scale(1.02);
  }
  
  .company-block img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  
  .company-block h3 {
    margin: 10px 0;
    color: #0066cc;
  }
  
  .company-block p {
    color: #333;
    flex-grow: 1;
  }
  
  /* ===== Strona Galeria ===== */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover {
    transform: scale(1.02);
  }
  
  .gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
  }
  
  .gallery-item .info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
  }
  
  .gallery-item:hover .info {
    opacity: 1;
  }
  
  /* ===== Media Queries ===== */
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: flex-start;
    }
  
    nav .nav-center {
      justify-content: flex-start;
    }
  
    nav ul {
      flex-direction: column;
      gap: 10px;
    }
  
    .language-switcher {
      order: 1;
      margin-bottom: 10px;
    }
  
    main {
      flex-direction: column;
      align-items: center;
    }
  
    .left, .right {
      width: 100%;
      margin-bottom: 20px;
    }
  
    .participants-grid, .companies-grid, .gallery-grid {
      grid-template-columns: 1fr;
      padding: 20px;
    }
  
    .participant-card img,
    .company-block img,
    .gallery-item img {
      height: auto;
    }
  }
  
  @media (min-width: 769px) and (max-width: 1024px) {
    .participants-grid,
    .companies-grid,
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  
    .participant-card img,
    .company-block img,
    .gallery-item img {
      height: 200px;
    }
  }

  /* ===== Modal (lightbox) ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ffdd57;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  transform: translateY(-50%);
  transition: color 0.3s ease;
  z-index: 1001;
}

.modal-arrow:hover {
  color: #ffdd57;
}

.modal-prev {
  left: 30px;
}

.modal-next {
  right: 30px;
}
