/* BUTTON CSS */
.btn {
  padding: 0.8rem 1.2rem;
  display: inline-block;
}

.green {
  font-size: 1rem;
  color: var(--light);
  background-color: var(--main);
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid transparent;
}

.green:hover {
  background-color: var(--light);
  color: var(--main);
}

.white {
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--light);
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid transparent;
}

.white:hover {
  background-color: var(--dark);
  color: var(--light);
}

.main {
  font-size: 1rem;
  color: var(--light);
  background-color: var(--secondary);
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid transparent;
}

.main:hover {
  background-color: var(--light);
  color: var(--secondary);
}

/* COLORS  */
:root {
  --main: #4f8321;
  --light: #ffffff;
  --dark: #070709;
  --red: #e50027;
  --yellow: #ffff00;
  --blue: #3b5998;
  --cyan: #1da1f2;
}

/* FONT FAMILY  */
body {
  font-family: serif;
  overflow-x: hidden;
  scroll-x: hidden;
  margin: 0;
}

li {
  list-style: none;
}

/* CONTAINER */
.container {
  padding: 1rem 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}

/*======= HEADER ======= */
.header {
  background-color: var(--main);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-img img {
  width: 22rem;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-left: 0;
}

.header-nav li a {
  font-size: 1.4rem;
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
}

.header-nav li a:hover {
  color: var(--yellow);
}

.header-socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-left: 0;
}

.header-socials li a {
  font-size: 1.2rem;
  border-radius: 10px;
  color: var(--light);
}

.fb {
  background-color: var(--blue);
  padding: 0.5rem 0.8rem;
}

.twitter {
  background-color: var(--cyan);
  padding: 0.5rem 0.5rem;
  font-size: 1.1rem;
}

.yt {
  background-color: var(--red);
  padding: 0.5rem 0.5rem;
}

/* MOBILE LAYOUT */
@media screen and (max-width: 480px) {
  .header-img img {
    width: 15rem;
  }

  .header-nav {
    justify-content: center;
    gap: 1.5rem;
  }

  .header-nav li a {
    font-size: 1.2rem;
  }

  .header-socials {
    justify-content: center;
    gap: 1rem;
  }
}

/*======= BANNER ======= */
.banner {
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-content {
  background-color: rgba(79, 131, 33, 0.8);
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner-wrapper {
  width: 100%;
  height: 100%;
  /* bottom: 0; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-text {
  /* position: absolute; */
  bottom: 8rem;
  padding: 2rem;
}

.banner-text h4 {
  font-size: 2rem;
  color: var(--light);
  font-weight: 500;
  margin: 0;
}

.banner-text h2 {
  font-size: 3.5rem;
  color: var(--light);
  font-weight: 500;
  /* width: 40rem; */
  margin: 0;
}

@media screen and (max-width: 480px) {
  .banner-text h4 {
    font-size: 1.2rem;
  }

  .banner-text h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 800px) {
  .banner-text h4 {
    font-size: 1.5rem;
  }

  .banner-text h2 {
    font-size: 2.5rem;
  }
}

/*======= COMPANY ======= */
.company {
  background-color: var(--light);
}

.company-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 10rem;
  margin-bottom: 3rem;
}

.company-label h4 {
  margin: 0;
  color: var(--main);
  font-size: 1.2rem;
}

.company-label h2 {
  margin: 0;
  color: var(--dark);
  font-size: 2.5rem;
}

.company-img img {
  width: 100%;
}

.company-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.company-desc {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0;
}

.company-btn {
  margin-top: 2rem;
}

@media screen and (max-width: 480px) {
  .company-label h4 {
    font-size: 1rem;
  }

  .company-label h2 {
    font-size: 1.5rem;
  }

  .company-title {
    font-size: 1.2rem;
  }

  .company-desc {
    font-size: 1rem;
  }
}

/*======= SERVICES ======= */
.service {
  position: relative;
  padding: 3rem 0;

  background-image: url("./img/service-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: fixed; /* Adds the parallax effect */
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(79, 131, 33, 0.7);
  z-index: 1; /* Ensure it stays above the background image */
}

.service-content {
  position: relative;
  z-index: 2;
}

.service-wrapper {
  position: relative;
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 5rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 10rem;
  margin-bottom: 3rem;
}

.service-img img {
  width: 100%;
  margin-bottom: -8rem;
}

.service-title {
  font-size: 2.5rem;
  color: var(--light);
  margin: 0;
}

.service-list {
  margin: 2.5rem 0;
  padding-inline-start: 0;
}

.service-list li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
  color: var(--light);
  font-size: 1.2rem;
}

.service-btn a {
  font-size: 0.9rem;
}

@media screen and (max-width: 480px) {
  .service-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .service-title {
    font-size: 1.5rem;
  }

  .service-list li {
    font-size: 0.9rem;
  }

  .service-img img {
    margin-bottom: 0;
  }
}

/*======= CONTACT ======= */
.contact {
  position: relative;
  padding-bottom: 2rem;
  padding-top: 5rem;

  background-image: url("./img/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: fixed; /* Adds the parallax effect */
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(79, 131, 33, 0.8);
  z-index: 1; /* Ensure it stays above the background image */
}

.contact-wrapper {
  position: relative;
  /* display: flex;
  justify-content: center;
  align-items: center;
  gap: 15rem; */
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 10rem;
  margin-bottom: 3rem;
}
.contact-items-text {
  overflow: auto;
  word-wrap: break-word;
}
.contact-img img {
  width: 20rem;
  margin-bottom: -3.2rem;
}

.contact-title {
  font-size: 3.5rem;
  color: var(--light);
  margin: 0;
}

.contact-list {
  margin: 1rem 0;
}

.contact-items {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 1.5rem;
}

.contact-items img {
  width: 2.5rem;
}

.contact-items-text p {
  font-size: 1.2rem;
  color: var(--light);
}

@media screen and (max-width: 480px) {
  .contact-wrapper {
    flex-direction: row;
    gap: 15rem;
  }

  .contact-title {
    font-size: 3.5rem;
  }

  .contact-items {
    flex-direction: row;
    justify-content: left;
    align-items: center;
    gap: 1.5rem;
  }

  .contact-items-text p {
    font-size: 1.2rem;
  }
}

/*======= QUALITY ASSURANCE ======= */
.quality {
  padding: 5rem 0;
  background-color: var(--light);
}

.quality-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 10rem;
  margin-bottom: 3rem;
}

.quality-label h2 {
  font-size: 3rem;
  color: var(--dark);
}

.quality-label p {
  font-size: 1.2rem;
  color: var(--dark);
  /* width: 30rem; */
  text-align: right;
  line-height: 1.2;
}

.carousel-holder {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.slides img {
  width: 25rem;
}

/*======= PROMISE SECTION ======= */
.promise {
  padding: 3rem 0;
  background-color: var(--light);
}

.promise-label {
  margin-bottom: 3rem;
}

.promise-label h2 {
  font-size: 3rem;
  color: var(--dark);
  margin-top: 0;
}

.promise-label p {
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.2;
  margin-top: 0;
}

.promise-carousel-wrapper-1 {
  display: flex;
  gap: 2.5rem;
}

.promise-carousel-wrapper-1-img img {
  width: 25rem;
}

.promise-carousel-wrapper-2 {
  display: flex;
  gap: 2.5rem;
  margin: 1rem 0;
}

.promise-carousel-wrapper-2-img img {
  width: 25rem;
}

.promise-carousel-wrapper-3 {
  display: flex;
  gap: 3.5rem;
}

.promise-carousel-wrapper-3-img img {
  width: 20rem;
}

/*======= LINK SECTION ======= */
.link {
  background-color: var(--light);
  padding: 2rem 0;
}

.link-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 10rem;
  margin-bottom: 3rem;
}

.link-item-1 img {
  width: 100%;
  margin-bottom: 0.5rem;
}

.link-item-1 p {
  font-size: 1.2rem;
  color: var(--dark);
  /* width: 25rem; */
  line-height: 1.5;
}

.link-item-2 h3 {
  font-size: 1.3rem;
  margin-bottom: 3rem;
}

.link-item-2 ul {
  padding-left: 0;
}

.link-item-2 ul li {
  margin-bottom: 1rem;
}

.link-item-2 ul li a {
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
}

.link-item-2 ul li a:hover {
  text-decoration: underline;
}

.link-item-3 h3 {
  font-size: 1.3rem;
  margin-bottom: 3rem;
}

.link-item-3 ul {
  padding-left: 0;
}

.link-item-3 ul li {
  font-size: 1.1rem;
  color: var(--dark);
  width: 12rem;
}

.link-item-3 ul li:first-child {
  margin-bottom: 1.5rem;
}

.link-item-4 h3 {
  font-size: 1.3rem;
  margin-bottom: 3rem;
}

.link-item-4 h6 {
  font-size: 0.9rem;
  font-weight: 100;
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.textbox {
  /* width: 15rem; */
  height: 2rem;
  border: none;
  background-color: rgba(0, 0, 0, 0.05);
  padding-left: 1rem;
}

.textbox:hover {
  cursor: pointer;
}

.textbox::placeholder {
  font-size: 1rem;
  font-weight: 700;
}

.textbox:active {
  border-style: none;
}

/*======= FOOTER SECTION ======= */
.footer {
  background-color: var(--dark);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-wrapper h6 {
  font-size: 0.9rem;
  color: var(--light);
  font-style: italic;
}

.footer-wrapper ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-wrapper ul li a {
  font-size: 1rem;
  border-radius: 10px;
  color: var(--light);
}

/* navbar css  */
.header {
  /* width: 100%;
      padding: 15px 0;
      background-color: #fff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-img {
  max-width: 180px;
}

.header-img img {
  width: 100%;
  height: auto;
}

.header-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .header-nav a {
      text-decoration: none;
      color: #333;
      font-weight: 500;
      position: relative;
      padding: 5px 0;
      transition: color 0.3s ease;
    } */

/* .header-nav a:hover {
      color: #007bff;
    } */

/* .header-nav a::after {
      content: "";
      position: absolute;
      width: 0;
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: #007bff;
      transition: width 0.3s ease;
    } */

.header-nav a:hover::after {
  width: 100%;
}

.header-socials {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .header-socials a {
      color: #333;
      font-size: 18px;
      transition: transform 0.3s ease, color 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      background-color: #f5f5f5;
    } */

.header-socials a:hover {
  transform: translateY(-3px);
}

#fb:hover {
  color: #1877f2;
  /* background-color: #e4f0ff; */
}

#twitter:hover {
  color: #1da1f2;
  /* background-color: #e8f5fd; */
}

#yt:hover {
  color: #ff0000;
  /* background-color: #ffe6e6; */
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 800px) {
  .header-wrapper {
    position: relative;
  }

  .hamburger {
    display: flex;
    order: 3;
  }

  .header-img {
    order: 1;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(255, 255, 255, 0.98); */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 90;
  }

  .header-nav.active {
    display: flex;
    animation: fadeIn 0.3s ease;
    background-color: #4f8321f0;
  }

  .header-nav a {
    font-size: 24px;
  }

  .header-socials {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    justify-content: center;
    gap: 30px;
    z-index: 91;
    display: none;
  }

  .header-nav.active + .header-socials {
    display: flex;
    animation: fadeIn 0.3s ease 0.2s forwards;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
