:root {
  --primary: #214c2b;
  --secondary: #387f49;
  --medium: #4fb268;
  --shade: #83c994;
  --fade: #b7dfc1;
  --light: #f7fbf8;
}

* {
  font-family: "Quicksand", sans-serif;
}

.nav-brand {
  width: 30%;
  height: 90px;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.logo-footer {
  width: 300px !important;
  height: 150px !important;
  transform: scale(1.4);
  object-position: center 48%;
}

.parallax {
  /* Set a specific height */
  height: 80vh;
  /* overflow: hidden; */
  /* Create the parallax scrolling effect */
  background-image: url("../images/green-paddy.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  line-height: 3.5rem;
}

.parallax h1 {
  color: var(--light);
  font-size: 5rem;
  margin: 0;
  font-weight: 700;
  animation: fadeInOut 4s ease-in-out infinite;
}

.parallax p {
  color: var(--light);
  font-size: 2rem;
  margin: 0;
  font-weight: 600;
  animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

.nav-container {
  background: var(--light);
}

.menu-item {
  font-weight: 550;
}

.active,
.menu-item:hover {
  color: var(--medium);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-thickness: 3px;
}

.product-image {
  max-height: 250px;
  object-fit: cover;
}

.swiper {
  width: 600px;
  height: 300px;
  z-index: 111;
}

.swiper-container {
  position: absolute;
  right: 5%;
  bottom: -20%;
  border: 1rem solid var(--medium);
}

.swiper-button-prev,
.swiper-button-next {
  bottom: 0;
  color: var(--fade) !important;
}

/* Medium screens (<= 1024px) */
@media (max-width: 1024px) {
  .swiper {
    width: calc(100vw - 100px); /* Leaves 50px space on each side */
  }
}

/* Small screens (<= 768px) */
@media (max-width: 768px) {
  .nav-brand {
    width: 50%;
  }

  .parallax {
    line-height: 3rem;
    padding: 0.5rem;
  }
  .parallax h1 {
    font-size: 3rem;
    line-height: 2rem;
  }
  .parallax p {
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
  }
  .swiper-container {
    right: auto;
  }
  .swiper {
    width: calc(100vw - 60px); /* Leaves 30px space on each side */
  }
}

/* Extra small screens (<= 480px) */
@media (max-width: 480px) {
  .nav-brand {
    width: 70%;
  }
  .parallax h1 {
    font-size: 2.3rem;
  }
  .swiper {
    width: calc(100vw - 40px); /* Leaves 20px space on each side */
    height: 200px; /* Adjusted height */
  }
}

.peer:focus ~ .label {
  background: var(--fade);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Animations */
@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-15px, 15px);
  }
}
@keyframes float3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0, -20px);
  }
}
.animate-float1 {
  animation: float1 8s ease-in-out infinite;
}
.animate-float2 {
  animation: float2 10s ease-in-out infinite;
}
.animate-float3 {
  animation: float3 12s ease-in-out infinite;
}

/* Orb follow effect */
.orb {
  transform: translate(-50%, -50%);
  opacity: 0.3;
  transition: transform 0.1s ease-out;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 10000;
}

#loader {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 5px solid var(--secondary);
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.current-menu-item {
  color: var(--medium);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-thickness: 3px;
}
