body {
  font-size: 32px;
  background-color: rgb(240, 240, 240);
  font-family: 'Franklin Gothic Medium','Arial Narrow',Arial,Calibri;
  margin: 0;
  padding: 0;
  scroll-timeline: --backgroundTimeline y;
  scroll-timeline: --backgroundTimeline vertical;
  overflow-y: scroll;
}

.contents {
  color: aliceblue;
}

.first-h1 {
  font-size: 80px;
  margin-top: 20%;
  margin-left: 10%;
  text-align: left;
}

.second-h1 {
  font-size: 80px;
  margin-top: 20%;
  margin-right: 10%;
  text-align: right;
}

.goals-content {
  margin-top: 20%;
  margin-left: 80%;
}

.about-content {
  margin-top: 20%;
  margin-left: 12%;
}

.logo {
  height: 64px;
  margin-top: 30px;
}

.scroll_logo {
  display: flex;
  margin-top: 20%;
}

h1 {
  text-align: center;
  color: white;
  font-size: 150px;
  padding: 40px;
  margin: 0;
}

.background-img {
    position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  
  object-fit: cover;
  filter: brightness(50%); /* bazowe przyciemnienie */
  z-index: -2;    
  animation-timeline: --backgroundTimeline;
}

.background-black {
  background-color: black;
  display: flex;
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: -3;
}

.background {
position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;       /* cały blok pod treścią */
  overflow: hidden;
}
.background::after {
    content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: black;
  opacity: var(--overlay-opacity, 0); /* JS steruje tą wartością */
  pointer-events: none;
  transition: opacity 0.2s linear;
  z-index: -1;  /* nad obrazkiem, ale pod treścią */
}



@keyframes scale-in-top {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

nav {
  display: flex;
  margin: 30px 30px 0 30px;
  font-size: 50px;
  height: 80px;
  padding: 0;
  width: fit-content;
  flex-direction: column;
}

nav:hover .submenu {
  display: flex;
}

.submenu {
  display: none;
  flex-direction: column;
  align-items: baseline;
  width: 100%;
  line-height: 36px;
  margin: 0;
  box-sizing: border-box;
  animation: scale-in-top 0.3s ease-in-out;
  transform-origin: top;
}

.submenu a {
  color: #cecece;
  margin: 16px 0;
  padding: 8px 0;
  font-size: 32px;
}

.main-menu-container {
  margin: 10% 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 30px;
  color: white;
}

.main-menu-header-container {
  display: flex;
  flex-direction: column;
}

ul {
  height: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 20px;
}

ul li {
  display: inline-block;
  margin-right: 15px;
  transition: all 0.3s ease-in-out;
}

ul li:hover .submenu {
  height: 85px;
}

ul li:hover a {
  color: #cecece;
}

ul li:hover a::before {
  visibility: visible;
  transform: scale(1,1);
}

ul a {
  color: #cecece;
  display: block;
  padding: 0 7px;
  margin: 0 10px;
  text-decoration: none;
  position: relative;
}

ul a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -10px;
  left: 0;
  background-color: #cecece;
  transition: all 0.2s ease-in-out;
  transform: scale(0,0);
  visibility: hidden;
}
.main-text-cointainer{
  display:inline
}
.main-text-h1 {
  margin-top: 20%;
  font-size: 80px;
  text-align: left;
  margin-left: 200px;
  color: white;
}


.c1 {
  font-size: 36px;
  margin: 2% 15% 0 10%;
  color: aliceblue;
  text-align: left;
  transform: translateY(-50%);
}

.n2 {
  font-size: 80px;
  text-align: right;
  margin-right: 200px;
  margin-top: 10%;
}

.c2 {
  color: aliceblue;
  font-size: 36px;
  margin: 7% 15%;
  text-align: left;
  transform: translateY(-50%);
}

.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

.obrazki-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10%;
  padding-top: 5%;
  margin: 10%;
}

.obrazki-wrapper img {
  width: 10%;
  height: auto;
  filter: brightness(0) invert(1);
}

.obrazki-blok {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 100px;
}

.hover-image {
  position: absolute;
  top: 140px;
  right: 20%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.hover-image.show {
  opacity: 1;
  pointer-events: auto;
}

.hover-image img {
  width: 200px;
  height: auto;
}

.trigger-img {
  width: 150px;
  cursor: pointer;
}