/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  font-family: 'Inter', sans-serif;
  color: #222;
  scroll-behavior: smooth;
}

/* Header and Background Image */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: brightness(1.2) contrast(1.1);
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background-color: transparent;
}

.navbar .logo {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(26, 140, 63, 0.7); /* Highlight effect for logo; overridden in about-us.html and contact.html */
}

.navbar nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #28a745;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 0.6s ease-out;
}

.hero-content h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  max-width: 800px;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.intro-text {
  max-width: 700px;
  margin-top: 20px;
}

.intro-text p {
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn {
  padding: 12px 25px;
  font-size: 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, background-color 0.3s;
}

.btn.green {
  background-color: #28a745;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn.green:hover {
  background-color: #218838;
  transform: scale(1.05);
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  background-color: #0d3d4f;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.footer .copyright {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  text-align: center;
  vertical-align: middle;
}

/* Animation */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px 20px;
    gap: 10px;
  }

  .navbar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav a {
    margin: 5px 10px;
    font-size: 14px;
  }

  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .intro-text {
    max-width: 90%;
  }

  .intro-text p {
    font-size: 14px;
  }

  .footer {
    padding: 10px;
    font-size: 13px;
  }
}