* {
  margin: 0px;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  background-color: #f4ede3;
}

a {
  text-decoration: none;
}

.wave-pattern {
  width: 100vw;
}

.section-text-container {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  height: fit-content;
  align-items: center;
  z-index: 10;
}
.section-header {
  font-family: "Spectral", serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: #1f2a3b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-align: center;
}
.section-description {
  font-weight: 400;
  font-size: 1rem;
  color: #3c5060;
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 160%;
}

@media screen and (min-width: 768px) {
  .section-header {
    font-size: 4rem;
  }
  .section-description {
    font-size: 1.125rem;
  }
}

.text-highlight {
  color: #e04b2f;
  font-style: italic;
  font-weight: 600;
}

#hero {
  background: linear-gradient(178.2deg, #e04b2f 15.1%, #f7b568 55.12%, #f4ede3 95.15%);
}

#pattern-angle-1 {
  position: absolute;
  width: 100%;
  z-index: 1;
  top: -5%;
  pointer-events: none;
}
#nav-burger {
  background-color: #1f2a3b;
  border-radius: 15px;
  padding: 5px;
}

#navbar {
  position: relative;
  z-index: 100;
}
#navbar > img {
  display: block;
  margin: 50px 0 0 30px;
  width: 3.5rem;
  z-index: 100;
}
#navbar > div {
  position: fixed;
  text-align: center;
  width: 100vw;
  height: 100vh;
  top: 0%;

  left: 100%;
  transition: 0.5s;
  overflow: hidden;
}
#navbar > div h2 {
  font-family: Spectral;
  font-weight: 600;
  font-size: 70px;
  line-height: 100%;
  letter-spacing: -0.07em;
  color: #f7b568;
  padding-top: 50px;
  overflow: hidden;
}
#close-button {
  position: absolute;
  margin: 0;
  top: 0%;
  right: 0%;
  padding: 27.9px;
  width: 35px;
}
#navbar > div > div {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 40px;
}
#navbar > div > div > a {
  text-decoration: none;
  font-weight: 500;
  font-size: 22px;
  line-height: 100%;
  color: white;
  padding: 2px;
  transition: 0.3s;
	line-height: 120%;
}
#navbar > div > div > a:hover {
  text-decoration: underline;
}
#navbar > div > div > a:active {
  color: rgba(224, 75, 47, 1);
}

#navbar.toggled > div {
  left: 0%;
  background: #1f2a3b;
  z-index: 100;
}

#hero-container {
  display: block;
}

#hero-img {
  position: relative;
  left: 50%;
  transform: translate(-50%);
  z-index: 2;
  min-width: 50rem;
}

#hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

#hero-title {
  font-family: Spectral;
  font-weight: 600;
  font-size: 80px;
  color: rgba(31, 42, 59, 1);
}
#hero-description {
  font-family: Montserrat;
  font-weight: 400;
  font-size: 32px;
  color: rgba(60, 80, 96, 1);
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  #navbar img {
    display: none;
  }
  #navbar > div {
    position: static;
    width: auto;
    height: auto;
  }
  #navbar > div > div {
    display: flex;
    flex-direction: row;
    transform: none;
    position: static;
  }
  #navbar > div > div a {
    display: block;
    color: rgba(60, 80, 96, 1);
    font-family: Montserrat;
    font-weight: 500;
    font-size: 14px;
    padding-left: 0px;
  }
  #navbar > div > h2 {
    display: none;
  }
  #pattern-angle-1 {
    rotate: -90deg;
    width: 35rem;
  }
  #navbar {
    display: flex;
    gap: 50px;
    padding: 29px 59px;
    background: rgba(245, 210, 169, 1);
    width: max-content;
    border-radius: 100px;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
  }
  #nav-container {
    position: fixed;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    top: 30px;
    right: 80px;
    margin-bottom: 10rem;
  }
  #hero-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
  }

  #hero-img {
    left: auto;
    width: 50%;
    transform: none;
  }

  #hero-title {
    font-size: 150px;
  }
  #hero-description {
    font-size: 64px;
  }
}

.next-section {
  font-family: Montserrat;
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  border-radius: 30px;
  padding: 11px 43px;
  background: rgba(224, 75, 47, 1);
  color: rgba(244, 237, 227, 1);
  transition: 0.3s;
}

.next-section:hover {
  background: rgba(245, 210, 169, 1);
  color: rgba(31, 42, 59, 1);
}
.next-section:active {
  background: rgba(31, 42, 59, 1);
  color: white;
}

#narodziny {
  margin-top: 100px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
}
#narodziny-img-container {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}
#narodziny-img-container::after {
  content: "";
  position: absolute;
  border-radius: 100%;
  width: 14rem;
  height: 2rem;
  background: rgba(204, 203, 199, 1);
  z-index: -1;
  bottom: 0;
}

#narodziny-img {
  overflow: visible;
  position: relative;
  width: 20rem;
}

@media screen and (max-width: 720px) {
  .section-description {
    padding: 0px 50px;
  }
}

@media screen and (min-width: 768px) {
  #narodziny {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap-reverse;
    overflow: visible;
  }
  #narodziny-img-container {
    transform: translate(0, 11.5%);
    margin-bottom: 85px;
  }
  #narodziny-img-container::after {
    width: 20rem;
  }
  #narodziny-img {
    width: 25rem;
  }
  #hero-img {
    padding-top: 100px;
  }
}
@media screen and (min-width: 1500px) {
  #narodziny-img-container {
    transform: translate(10vw, 11.5%);
  }
}

#doroslosc {
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#doroslosc-img-container {
  position: relative;
  overflow: visible;
}
#doroslosc-img {
  width: 40rem;
  position: relative;
  left: 50%;
  transform: translate(-50%);
}

@media screen and (min-width: 768px) {
  #doroslosc {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    z-index: 10;
  }

  #doroslosc-img {
    width: clamp(40rem, 50vw, 60rem);
  }
}

@media screen and (min-width: 1400px) {
  #doroslosc-img-container {
    transform: translate(0, -40%);
  }
}

#budowa-gniazda {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
}

#gniazdo-img-container {
  position: relative;
  overflow: hidden;
}
#gniazdo-img,
#grzywa-img {
  width: 35rem;
}

@media screen and (min-width: 768px) {
  #budowa-gniazda {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap-reverse;
    overflow: visible;
  }

  #gniazdo-img,
  #grzywa-img {
    width: clamp(40rem, 50vw, 60rem);
  }
}

@media screen and (min-width: 1400px) {
  #budowa-gniazda div:first-child {
    transform: translate(30%, 0);
  }
  #gniazdo-img-container {
    position: relative;
    transform: translate(5%, 30%);
  }
}

#smierc {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#smierc-img-container {
  position: relative;
  overflow: visible;
  transform: translate(5%, 30%);
  margin-top: -20rem;
  padding-bottom: 50px;
}

@media screen and (min-width: 768px) {
  #smierc {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
  #smierc div:last-child {
    max-width: 500px;
    text-align: center;
  }

  #smierc-img-container {
    transform: translate(0, 20%);
  }
  #smierc-img {
    width: clamp(40rem, 50vw, 70rem);
  }
}
@media screen and (min-width: 1400px) {
  #smierc-img-container {
    transform: translate(-10%, 20%);
  }
}

#popiol {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}
#popiol-img-container {
  overflow: hidden;
  position: relative;
}
#popiol-img {
  padding-bottom: 25px;
  width: 50rem;
}

@media screen and (min-width: 768px) {
  #popiol {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap-reverse;
    overflow: visible;
    margin-bottom: 200px;
  }
  #popiol div:first-child {
    max-width: 500px;
  }

  #popiol-img {
    width: clamp(40rem, 50vw, 60rem);
  }
}

footer {
  display: flex;
  position: relative;
  align-items: center;
  flex-direction: column;
  background: rgba(31, 42, 59, 1);
  overflow: hidden;
}

#footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  flex-direction: row;
  padding: 5rem 0;
}

#footer-links a {
  color: rgba(244, 237, 227, 1);
  font-family: Montserrat;
  font-weight: 500;
  font-size: 1rem;
  margin: 0px 10px;
  transition: 0.3s;
}

#footer-links a:hover {
  text-decoration: underline;
  color: rgba(247, 181, 104, 1);
}

#footer-links a:active {
  color: rgba(224, 75, 47, 1);
}

#footer-feather {
  position: absolute;
  width: 14rem;
  margin-right: 10px;
  rotate: 15deg;
  left: 70%;
  top: clamp(0%, 27%, 25vw);
}

footer h2 {
  font-family: Spectral;
  font-weight: 600;
  font-size: 4rem;
  letter-spacing: -5px;
  color: rgba(244, 237, 227, 1);
}
footer p {
  font-family: Montserrat;
  font-weight: 500;
  font-size: 14px;
  margin: 1rem;
  color: rgba(244, 237, 227, 0.6);
}

@media screen and (max-width: 768px) {
  footer {
    justify-content: center;
    align-items: center;
  }
  #footer-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  #footer-feather {
    width: 8rem;
    top: 27%;
    pointer-events: none;
  }
  footer h2 {
    font-size: 2.5rem;
    letter-spacing: -2px;
  }
  footer p {
    font-size: 0.6875rem;
  }
}

@media screen and (min-width: 768px) {
  #footer-feather {
    top: clamp(0%, 17%, 25vw);
  }
}
#hero {
  position: relative;
  overflow: hidden;
}

#hero-cloud,
#hero-cloud-2 {
  user-select: none;
  pointer-events: none;
  position: absolute;
  top: 35%;
  z-index: 10;
  animation: flyCloud 50s ease-out infinite;
}
#hero-cloud-2 {
  top: 30%;
  z-index: 0;
  animation: flyCloud 80s ease-out infinite;
}

@keyframes flyCloud {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(calc(100vw + 400px));
  }
}

@media screen and (min-width: 768px) {
  #hero-cloud,
  #hero-cloud-2 {
    top: 30%;
  }
  #hero-cloud-2 {
    top: 25%;
  }
}

@media screen and (min-width: 1500px) {
  #narodziny {
    margin-top: -50px;
  }
  #hero-container {
    padding-bottom: 200px;
  }
  #hero-cloud,
  #hero-cloud-2 {
    top: 48%;
  }
  #hero-cloud-2 {
    opacity: 0.85;
    top: 44%;
  }
}

@media screen and (min-width: 1920px) {
  #hero-cloud,
  #hero-cloud-2 {
    top: 49%;
  }
  #hero-cloud-2 {
    top: 45%;
  }
}

#narodziny-img {
  animation: shake 2s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }
  4% {
    transform: rotate(-8deg);
  }
  8% {
    transform: rotate(8deg);
  }
  12% {
    transform: rotate(-6deg);
  }
  16% {
    transform: rotate(6deg);
  }
  20% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

#doroslosc-img {
  transform: translate(-150%, -50%);
  animation: flyInOutRight 8s ease-in-out infinite;
  animation-play-state: paused;
}
#doroslosc-img.in-view {
  animation-play-state: running;
}

@keyframes flyInOutRight {
  0% {
    opacity: 0;
  }
  12.5% {
    transform: translate(-70%, -15%) rotate(-45deg);
    opacity: 1;
  }
  50% {
    transform: translate(-70%, -15%) rotate(-45deg);
    opacity: 1;
  }
  62.5% {
    transform: translate(150%, -50%) rotate(-65deg);
    opacity: 0;
  }
  100% {
    transform: translate(150%, -50%) rotate(-55deg);
    opacity: 0;
  }
}

#smierc-img-ghost {
  position: absolute;
  top: 21%;
  left: 10%;
  opacity: 0.85;
  z-index: -1;
  animation: shakeGhost 8s ease-in-out infinite;
}

@keyframes shakeGhost {
  0% {
    transform: translate(5%, 0%);
  }
  12.5% {
    transform: translate(5%, 5%);
  }
  50% {
    transform: translate(5%, 0%);
  }
  62.5% {
    transform: translate(5%, 5%);
  }
  100% {
    transform: translate(5%, 0%);
  }
}

@media screen and (min-width: 768px) {
  #smierc-img-ghost {
    position: absolute;
    top: 5%;
    left: -5%;
    opacity: 0.85;
    z-index: -1;
    animation: shakeGhost 8s ease-in-out infinite;
  }
}

@media screen and (min-width: 1600px) {
  #smierc-img-ghost {
    position: absolute;
    top: 20%;
    left: 12.5%;
    scale: 1.2;
    opacity: 0.85;
    z-index: -1;
    animation: shakeGhost 8s ease-in-out infinite;
  }
}

@media screen and (min-width: 1920px) {
  #smierc-img-ghost {
    position: absolute;
    top: 30%;
    left: 16.5%;
    scale: 1.5;
    opacity: 0.85;
    z-index: -1;
    animation: shakeGhost 8s ease-in-out infinite;
  }
}

#grzywa-img {
  position: absolute;
  z-index: -1;
  left: 0%;
  top: -5%;
  animation: grzywaShake 8s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes grzywaShake {
  0% {
    transform: rotate(0deg);
  }
  12.5% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-2deg);
  }
  62.5% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

#popiol-img-anim {
  position: absolute;
  top: 14%;
  left: 20%;
  opacity: 0.35;
  width: 55%;
  z-index: -1;
  animation: popiolShake 15s ease-in infinite;
}

@keyframes popiolShake {
  0% {
    transform: translate(0%, 0%);
  }
  12.5% {
    transform: translate(0%, -4.5%);
  }
  50% {
    transform: translate(0%, -0%);
  }
  62.5% {
    transform: translate(0%, -4.5%);
  }
  100% {
    transform: translate(0%, -0%);
  }
}

@media screen and (min-width: 768px) {
  #popiol-img-anim {
    position: absolute;
    top: 8%;
    width: 60%;
    opacity: 0.35;
    z-index: -1;
    animation: popiolShake 15s ease-in infinite;
  }
}
