:root {
  --primary-color: #97c11f;
  --secondary-color: #008194;
}

.lato {
  font-family: "Lato", sans-serif;
  font-style: normal;
}

.lato-thin {
  font-weight: 100;
}

.lato-light {
  font-weight: 300;
}

.lato-regular {
  font-weight: 400;
}

.lato-bold {
  font-weight: 700;
}

.lato-black {
  font-weight: 900;
}

.lato-thin-italic {
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-weight: 900;
  font-style: italic;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif; /* Użycie domyślnej czcionki dla całego dokumentu */
}

body {
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #333;
  scroll-behavior: smooth;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9;
}

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  transform: translate(0, -100%);
  flex-direction: column;
  width: 100%;
  text-align: center;
  transition: 0.5s linear;
}

.nav-links.active {
  display: flex;
  position: absolute;
  padding-top: 60px;
  top: 0;
  left: 0;
  background-color: #333;
  transform: translate(0, 0);
}

.nav-links li {
  list-style-type: none;
  margin: 1rem 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #4caf50;
}

.logo {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 11;
  height: 40px;
  cursor: pointer;
}

.hamburger {
  position: fixed;
  right: 20px;
  top: 20px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 11;
  background-color: transparent;
  border: none;
}

.hamburger span {
  width: 40px;
  height: 5px;
  background-color: white;
}

.navbar.dark-mode .hamburger span {
  background-color: var(--primary-color);
}

.landing {
  background-image: url("assets/landingpage.webp");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 100px;
  z-index: 1;
  position: relative;
  transition: background-image 0.5s ease-in-out;
  overflow: hidden;
}

.landing * {
  cursor: pointer;
}

.landing-title-wrap {
  position: absolute;
  display: flex;
  font-weight: bold;
  font-size: 256px;
  opacity: 0.6;
  transform: translate(0, -20%);
  left: 20%;
  animation: slideInFromLeft 4s ease-out forwards;
  z-index: -1;
}

.title-h1 {
  font-size: 4.4rem;
  font-weight: bold;
  animation: slideIn 1.5s ease forwards; /* Zmiana nazwy animacji */
  opacity: 0;
}

.landing h2 {
  animation: slideIn 1.5s ease forwards; /* Użycie tej samej animacji */
  opacity: 0;
  margin: 0 2rem;
}

.landing-content {
  transform: translate(0, -25%);
}

.landing-content div {
  display: flex;
  justify-content: center;
  font-size: 1.4rem;
  gap: 16px;
}

.landing-content img {
  width: 4rem;
}

.about {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.about p {
  margin: 0 8rem;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  background: linear-gradient(
    to left,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: -1;
}

.btn-cta {
  background-color: #4caf50;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #45a049;
}

.section-icon {
  width: 64px;
  margin-top: 2rem;
}

.contact {
  text-align: center;
}

.section {
  text-align: center;
  width: 100%;
  display: flex;
  align-items: stretch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.7s ease;
}

.slide-from-left,
.slide-from-bottom {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.7s ease;
}

.slide-from-left {
  transform: translateX(0);
}

.slide-from-bottom {
  transform: translateY(0);
}

.section .wrapper {
  width: 100%;
  margin: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section-img {
  width: 50%;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact button {
  background-color: #4caf50;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: #45a049;
}

footer {
  margin-top: 2rem;
  padding: 2rem 2rem;
  background-color: #333;
  color: white;
  display: flex;
  justify-content: center;
  gap: 4rem;
  align-items: flex-end;
}

footer a {
  color: white;
  text-decoration: none;
}

footer li {
  list-style-type: none;
}

.arrow-down-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.scroll-down-link {
  bottom: 8rem;
  font-size: 18px;
  text-decoration: none;
  color: white;
  margin-bottom: 10px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary-color);
  padding: 15px;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
  animation: slideInBottom 2s ease forwards;
  opacity: 0;
}

.scroll-down-link:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.arrow-down {
  width: 12px;
  height: 12px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.only-mobile {
  display: none;
}

.gradient-line {
  height: 0.3rem;
  background: linear-gradient(
    to left,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 2rem auto;
  width: 60%;
  border-radius: 2rem;
}

.success-message {
  color: green;
  font-weight: bold;
}

.error-message {
  color: red;
  font-weight: bold;
}

@media (max-width: 768px) {
  body {
    text-align: justify;
  }
  .landing {
    padding: 2rem;
  }
  .landing h1 {
    font-size: 3.2rem;
  }
  .landing h2 {
    margin: 0;
  }
  .landing-content {
    transform: translate(0, 0);
  }
  .about p {
    margin: 0 2rem;
  }
  .only-mobile {
    display: block;
  }
  .only-desktop {
    display: none;
  }
  .section {
    flex-direction: column;
    align-items: center;
  }
  .section-img {
    width: 100%;
    height: 30vh;
  }
  .wrapper {
    padding: 2rem;
  }
  .section h2 {
    font-size: 1.3rem;
    margin-bottom: 0;
  }
  .contact form {
    max-width: 80%;
    margin-top: 1rem;
  }

  footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-links {
    display: none;
  }
  .footer-logo {
    width: 6rem;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInBottom {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    left: -100%;
  }
  100% {
    left: 25%;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(-10px) rotate(-45deg);
  }
  60% {
    transform: translateY(-5px) rotate(-45deg);
  }
}
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: center;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

#cookie-close {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#cookie-close:hover {
  background-color: var(--secondary-color);
}