body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    overflow: auto;
  }
  
  body {
    background: url("img/aboutBG.JPEG");
    background-size: cover;
  }
  
  .main {
    background-color: transparent;
    color: white;
  }
  
  .navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
  }
  
.main-menu_icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.main-menu_icon.open span:nth-child(2) {
  opacity: 0;
}

.main-menu_icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
  
  .profile-img {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
  }
  
  .main-menu_icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    z-index: 10;
  }
  
  .main-menu_icon span {
    display: block;
    height: 0.2rem;
    background: white;
    border-radius: 1rem;
    transition: 0.4s;
  }
  
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    z-index: 2;
    border-bottom-left-radius: 2dvh;
    border-bottom-right-radius: 2dvh;
  }
  .navbar-menu.open {
    max-height: 50vh;
  }
  
  .menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  .menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0.3rem 0;
  }
  .menu-links a:hover {
    color: #ffcc00ab;
  }
  .fourth-child {
    color: #ffcc00 !important;
  }
  .second-child, .third-child, .fourth-child, .fifth-child {
    margin-top: 1.8vh !important;
  }
  .menu-links hr {
    width: 80%;
    border: none;
    border-top: 1px solid #ffffff4d;
    margin: 0.5rem auto;
  }
  .menu-links .copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #ccc;
    text-align: center;
  }
  .copyright span {
    color: #007BFF !important;
  }
  
  main {
    padding-top: 80px;
  }
  
  /* ZMIANA: teraz równy layout kafelków */
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
  }
  
  .image-box {
    position: relative;
    width: 300px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.5),
      0 8px 15px rgba(0, 0, 0, 0.3);
  }
  
  .background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    animation: fadeInOverlay 1.7s ease forwards;
    animation-delay: 0.7s;
  }
  @keyframes fadeInOverlay {
    to {
      background-color: rgba(0, 0, 0, 0.6);
    }
  }
  
  .title {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 90%;
    height: fit-content;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInText 0.8s ease forwards;
    animation-delay: 2.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    text-overflow: unset;
    overflow: visible;
  }  
  @keyframes fadeInText {
    to {
      opacity: 1;
    }
  }
  
  /* MEDIA QUERIES */
  @media (max-width: 768px) {
    .navbar {
      padding: 0.8rem;
    }
  
    .profile-img {
      width: 2.5rem;
      height: 2.5rem;
    }
  
    .main-menu_icon {
      width: 1.6rem;
      height: 1.6rem;
      gap: 0.3rem;
    }
  
    .main-menu_icon span {
      height: 0.15rem;
    }
  
    .menu-links a {
      font-size: 1rem;
    }
  
    .menu-links .copyright,
    .copyright span {
      font-size: 0.7rem;
    }
  
    .title {
      font-size: clamp(1rem, 5vw, 1.6rem);
    }
  
    main {
      padding-top: 70px;
    }
  
    .container {
      padding-top: 0.5rem;
      padding-bottom: 40px;
    }
  
    .image-box {
      width: 90%;
    }
  }
  #hrefNav {
    color: white;
    text-decoration: none;
    position: absolute;
    margin-left: 5em;
    text-shadow: 2px 1px 10px white;
  }
  
