@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
*,
*::after,
*::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  font-size: 62.5%;
}
body {
  font-family: "Poppins", sans-serif;
}
/*!  ######################## UTILITY CLASSES##################   */
.button {
  position: fixed;
  text-decoration: none;
  display: inline-block;
  padding: 0.5em 1.5em;
  font-weight: 500;
  margin: 0.5em;
  z-index: -100;
}

.header {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../static/imgs/crop.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.glow-on-hover {
  width: 220px;
  height: 50px;
  border: none;
  outline: none;
  color: #fff;
  background: #2e7d32; /* Dark Green */
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 100px;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.3s ease-in-out;
}

/* Lighter green hover effect */
.glow-on-hover:hover {
  background: #43a047; /* Slightly Brighter Green */
}

/* Glow effect */
.glow-on-hover:before {
  content: "";
  background: linear-gradient(
    45deg,
    #2e7d32,
    #66bb6a,
    #a5d6a7,
    #81c784,
    #2e7d32
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 300%;
  z-index: -1;
  filter: blur(8px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 100px;
}

/* Activate glow on hover */
.glow-on-hover:hover:before {
  opacity: 1;
}

/* Subtle click effect */
.glow-on-hover:active {
  background: #1b5e20; /* Darker Green */
}

.glow-on-hover:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #388e3c; /* Mid Green */
  left: 0;
  top: 0;
  border-radius: 100px;
}

/* Glow animation */
@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}
/* ! ################## HOME PAGE ################ */
.navbar {
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.479);
  position: fixed;
  width: 100%;
  background: #fff;
  color: #000;
  opacity: 0.85;
  top: 0;
  text-align: center;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 30px;
  z-index: 1000;
  a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    align-self: center;
    transition: color 0.4s ease-in-out;
  }
  a:hover {
    color: red;
  }
}
#translateButton {
  position: absolute;
  top: 50%; /* Centers it vertically */
  right: 20px; /* Positions it at the extreme right */
  transform: translateY(-50%); /* Perfect vertical centering */
  background-color: #4caf50;
  border: 2px solid #4caf50;
  color: white;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.4s ease-in-out;
}
#upcoming {
  position: absolute;
  top: 50%; /* Centers it vertically */
  left: 20px; /* Positions it at the extreme left */
  transform: translateY(-50%); /* Perfect vertical centering */
  background: linear-gradient(135deg, #004d40, #00695c); /* Deep Emerald to Dark Teal */
  border: 2px solid rgba(0, 255, 136, 0.5); /* Neon Green Border */
  color: #d4ffec; /* Soft Mint Green Text */
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2); /* Soft Neon Glow */
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
}

#upcoming:hover {
  background: linear-gradient(135deg, #00695c, #004d40); /* Reverse gradient on hover */
  transform: translateY(-50%) scale(1.08); /* Smooth hover effect */
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4); /* Stronger glow on hover */
  border-color: rgba(0, 255, 136, 0.8);
  color: #ffffff; /* Pure white text for better contrast */
}

#translateButton:hover {
  color: #4caf50;
  border: 2px solid #4caf50;
  background: white;
}
#translateButton:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6); /* Soft green glow */
}
.content {
  position: relative;
  max-width: 1200px;
  width: 80%;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  /* margin-top: 16rem; */
  padding-bottom: 10rem;
  color: whitesmoke;
  h1 {
    font-size: 80px;
  }
  p {
    font-size: 2rem;
  }
  a {
    text-decoration: none;
    /* color: rebeccapurple; */
    font-size: 20px;
    transition: all ease-in-out 0.3s;
  }
}
.button1 {
  text-decoration: none;
  /* border-radius: 10px; */
  background-color: blue;
  color: white;
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
}

/* ! ######################## CROPS ########################*/

#crops {
  margin-bottom: 30px;
}

#crops h2 {
  text-align: center;
  margin-top: 150px;
  font-size: 50px;
  margin-bottom: 20px;
}

.crop-container {
  display: flex;
  justify-content: space-between;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 20px;
}
.crop-container2 {
  display: flex;
  justify-content: space-between;
  /* max-width: 1200px; */
  margin-top: 2rem;
  padding: 0 20px;
}
.crop-type img {
  display: block;
  width: 100%;
  height: 300px;
  margin: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 50px;
}

.crop-type {
  flex: 1;
  margin: 0 15px;
}

.img-container {
  position: relative;
}

.img-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 2;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.img-content h3 {
  color: #fff;
  font-size: 2.5rem;
}

.img-content a {
  font-size: 1.2rem;
}

.img-container::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  z-index: 1;
  transition: all 0.3s ease-in-out;
  border-radius: 50px;
}

.img-container:hover::after {
  opacity: 1;
}

.img-container:hover .img-content {
  opacity: 1;
}
.img-container2 {
  position: relative;
}

.img-content2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1; /* Make the text visible by default */
  z-index: 2;
  text-align: center;
  font-size: 2rem;
  color: #fff;
}

.img-content2 h3 {
  color: #fff;
  font-size: 2.5rem;
}

/* Dark overlay for crop-container2 images without hover */
.img-container2::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
  border-radius: 50px;
}
/* ! ############ MORE CROPS UPCOMING ###################  */
#more-crops {
  background-color: #f7f7f7;
  padding: 10px 20px;
  text-align: center;
}

#more-crops h2 {
  font-size: 36px;
  color: #388e3c;
  margin-bottom: 20px;
}

#more-crops p {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

#more-crops .container {
  max-width: 1200px;
  margin: 0 auto;
}

#more-crops::before {
  content: "";
  display: block;
  height: 4px;
  width: 80px;
  background-color: #388e3c;
  margin: 20px auto;
}

#more-crops h2:hover {
  color: #2e7d32;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

/* ! ############# footer ############# */
footer {
  text-align: center;
  padding: 1.3rem;
  font-weight: 500;
  color: #fff;
  background: rgba(54, 69, 79, 1);

  h2 {
    font-size: 2rem;
    font-weight: 400;
    /* margin-top: 1rem; */
  }
  p {
    font-weight: 300;
    font-size: 1.1rem;
  }
}
/* ! ###### HOVER BUTTON ######## */
.img-content {
  a {
    font-size: 2rem;
  }
}
.btn-one {
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
  position: relative;
}
.btn-one span {
  transition: all 0.3s;
}
.btn-one::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  transform: scale(0.1, 1);
}
.btn-one:hover span {
  letter-spacing: 2px;
}
.btn-one:hover::before {
  opacity: 1;
  transform: scale(1, 1);
}
.btn-one::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.1);
}
.btn-one:hover::after {
  opacity: 0;
  transform: scale(0.1, 1);
}
@media (max-width: 767px) {
  .header {
    background-position: top;
    height: 60vh;
  }

  .navbar {
    font-size: 20px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .content {
    padding-bottom: 5rem;
    h1 {
      font-size: 4rem;
    }
    p {
      font-size: 1.5rem;
    }
  }

  .button {
    z-index: 100;
    position: relative;
  }

  .crop-container,
  .crop-container2 {
    flex-direction: column;
    padding: 0 10px;
  }

  .crop-type {
    margin-bottom: 15px;
  }

  .crop-type img {
    height: 250px;
  }

  .img-content h3 {
    font-size: 2rem;
  }

  .glow-on-hover {
    width: 180px;
    height: 45px;
    font-size: 14px;
  }

  #crops h2 {
    font-size: 30px;
    margin-top: 100px;
  }

  #more-crops h2 {
    font-size: 30px;
  }

  footer {
    font-size: 1rem;
  }

  .btn-one span {
    font-size: 1.5rem;
  }
}
