/* ===== Hero Section Styles ===== */
.hero {
  position: relative;
  width: 100%;
  height: 120vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}


/* Background Image Layer */
.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(60%); /* darken image for readability */
}

/* Content Layer */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
  padding-top: 90px;
}

/* Headline */
.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Signature Word in Headline */
.hero-content h2 .signature {
  font-family: 'Pacifico', cursive; /* Signature-style font */
  color: #ffffff;                   /* Green color */
  font-size: 5rem;                /* Slightly bigger than rest of headline */
}


/* Text */
.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #f0fdf4;
}


/* Button */
.hero .btn {
  display: inline-block;
  margin-top: 2rem;
  background-color: #ffffff;
  color: #2E8B57;
  padding: 1.2rem 3rem;       /* increased padding for bigger button */
  font-size: 1.3rem;          /* larger text inside the button */
  /*border-radius: 40px;         /* slightly more rounded */
  text-decoration: none;
  font-weight: 700;            /* bolder text */
  transition: all 0.3s ease;
}

/* Hero Button with Animated Hover Effect */
.hero .hover-button {
  --baseColor: #ffffff;
  --fillerColor: #2e8b57; /* green fill wave */
  --baseTextColor: #2e8b57;
  --hoverTextColor: #ffffff;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  text-decoration: none;

  font-weight: 700;
  font-size: 1.2rem;
 
  padding: 1rem 3rem;
  background: var(--baseColor);
  color: var(--baseTextColor);
  cursor: pointer;
  transition: none;
}

.hero .button__text {
  position: relative;
  z-index: 2;
  display: block;
}

.hero .button__filler {
  background: var(--fillerColor);
  position: absolute;
  width: 150%;
  height: 200%;
  border-radius: 50%;
  top: -50%;
  left: -25%;
  transform: translate3d(0, 75%, 0);
  z-index: 1;
}

/* Hover Animation States */
.hover-button.hover-in .button__text {
  animation: textHoverIn 0.3s forwards;
}
.hover-button.hover-in .button__filler {
  animation: fillerHoverIn 0.3s forwards;
}
.hover-button.hover-out .button__text {
  animation: textHoverOut 0.3s forwards;
}
.hover-button.hover-out .button__filler {
  animation: fillerHoverOut 0.3s forwards;
}

/* Text animations */
@keyframes textHoverIn {
  0% { opacity: 0; }
  1% { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(0); color: var(--hoverTextColor); }
}

@keyframes textHoverOut {
  0% { opacity: 0; }
  1% { transform: translateY(100%); opacity: 1; }
  100% { transform: translateY(0); }
}

/* Filler animations */
@keyframes fillerHoverIn {
  0% { transform: translate3d(0, 75%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes fillerHoverOut {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -75%, 0); }
}


/* Hero Contact Info */
.hero-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 8.5rem;
  font-size: 1rem;
  color: #ffffff;  /* light green for readability */
  flex-wrap: wrap; /* makes it responsive on small screens */
  gap: 2rem;
  padding: 0.8rem 0;         /* small padding so it’s not cut off visually */
  background: rgba(0, 0, 0, 0.2); /* optional: soft background overlay */
  font-size: 1rem;
  color: #ffffff;
  white-space: nowrap;
}

.hero-contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-contact i {
  color: #ffffff; /* green icon color */
  font-size: 1.2rem;
}

/* SCROLL-DOWN ARROW */
.scroll-down-arrow {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #ffffff;
  opacity: 0.8;
  animation: bounce 1.5s infinite;
  display: none; /* hidden by default */
  z-index: 5;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ===== Scroll Ease-In Animation ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible */
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Hide mobile image by default */
.hero-mobile-img {
  display: none;
}

/* ==========================
      768px (Tablets)
========================== */
@media (max-width: 768px) {

  .hero {
    height: 109vh;
    padding: 0 0rem;
  }

  /* Switch to mobile image */
  .hero-desktop-img {
    display: none;
  }

  .hero-mobile-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
  }

  .hero-content {
    padding-top: 50px;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-content h2 .signature {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 90%;
  }

  .hero .btn {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
  }

  .hero-contact {
    margin-top: 10rem;
    gap: 0.7rem;
    font-size: 0.5rem;
    padding: 0.6rem 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    white-space: normal;
  }

  .hero-contact span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {

  .hero {
    height: 85vh;
    max-width: 100%;
  }

  .hero-content {
    padding-top: 40px;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content h2 .signature {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1.3rem;
  }

  /* Hide contact info completely */
  .hero-contact {
    display: none !important;
  }

  /* Show scroll down arrow */
  .scroll-down-arrow {
    display: block;
  }


}
