@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Afacad:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  overflow-x: hidden;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  background: #D8F4FB;
  padding: 0.6rem;
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 3rem;
}

nav ul li a {
  text-decoration: none;
  color: #066174;
  font-family: 'Afacad', sans-serif;
  font-size: 20px;
  text-transform: lowercase;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 15px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #066174;
  border-radius: 2px;
}

main {
  scroll-snap-type: y mandatory;
}

section {
  scroll-snap-align: start;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 4rem 2rem;
}

#surface {
  background: linear-gradient(to bottom, #D8F4FB 0%, #97BBD3 100%);
  position: relative;
  overflow: hidden;
}

#reef {
  background: linear-gradient(to bottom, #5793A9 50%, #066174 100%);
}

#twilight {
  background: linear-gradient(to bottom, #066174 0%, #10365B 100%);
}

#depths {
  background: linear-gradient(to bottom, #10365B 0%, #010508 100%);
}

.background-overlay {
  content: "";
  position: absolute;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100% - 70px);
  background: url('images/Frame 1.png') center center no-repeat;
  background-size: 100vw auto;
  z-index: 2;
  pointer-events: none;
}

#reef::before,
#twilight::before,
#depths::before {
  content: "";
  background-size: 100vw auto;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100%;
  z-index: 0;
}

#reef::before {
  background-image: url('images/sekcja2.png');
}
#twilight::before {
  background-image: url('images/sekcja3.png');
}
#depths::before {
  background-image: url('images/sekcja4.png');
}

/* TYTUŁY */
section > div h1 {
  font-family: 'Afacad', sans-serif;
  font-weight: 700;
  font-size: clamp(6rem, 8vw, 12rem);
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  margin: 0 auto 1rem;
  text-align: center;
}

section > div h1 span {
  font-weight: 700;
  font-family: 'Afacad', sans-serif;
  font-size: clamp(3rem, 5vw, 8rem);
  display: block;
  margin-top: 0.3rem;
  text-transform: uppercase;
  mix-blend-mode: exclusion;
}

#surface h1 span { color: #d3eaf9; }
#reef h1 span { color: #d4977a; }
#twilight h1 span { color: #4a82bc; }
#depths h1 span { color: #000070; }

.wave-divider {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 175%;
}

.wave-divider path {
  fill: #5793A9;
}

section > div {
  position: relative;
  z-index: 2;
  color: #fff;
}

#contact {
  background: #010508;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.newsletter input {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  outline: none;
  min-width: 200px;
}

.newsletter button {
  padding: 0.5rem 1rem;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-info {
  margin-top: 3rem;
  line-height: 1.6;
}

p {
  font-family: 'Afacad', sans-serif;
  font-weight: 700;
  font-size: 20px;
  max-width: 90%;
  margin: 1rem auto 0 auto;
  z-index: 3;
  position: relative;
  text-align: center;
  color: #fff;
}

/* MOBILE */
@media (max-width: 600px) {
  .background-overlay {
    background-image: url('images/sekcja1 mobile.png');
    background-size: 100vw auto;
    width: 100vw;
    background-repeat: no-repeat;
    background-position: center;
  }

  #reef::before {
    background-image: url('images/sekcja2 mobile.png');
  }

  #twilight::before {
    background-image: url('images/sekcja3 mobile.png');
  }

  #depths::before {
    background-image: url('images/sekcja4 mobile.png');
  }
}


@media (max-width: 768px) {
  header {
    background: transparent;
  }

  .newsletter form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #contact {
    min-height: 300px;
    padding: 2rem 1rem;
    justify-content: center !important;
    align-items: center;
    text-align: center;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0rem;
    padding: 2rem 1rem;
    background: #D8F4FB;
    top: 70px;
    right: 10px;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-height: 100px;
  }

  nav ul.show {
    display: flex;
  }

  .hamburger {
    display: flex;
    background: #D8F4FB;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  }

  .menu-container {
    justify-content: flex-end;
  }
}