* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Poppins", sans-serif;
  color: #fff;
}

body {
  background-color: #2c2c2c;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 80px;
}

body::before {
  content: "";
  background: url("https://maccommunitydesignteam.com/images/background.JPG") center/cover no-repeat;
  background-attachment: scroll;
  position: fixed;
  inset: 0;
  opacity: 0.65;
  z-index: -2;
}

body::after {
  content: "";
  background: rgba(0, 0, 0, 0.45);
  position: fixed;
  inset: 0;
  z-index: -1;
}

.navbar {
  background-color: #2e7d32;
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: background 0.3s ease;
}

.scrolled .navbar {
  background: rgba(46, 125, 50, 0.95);
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding-left: 30px;
  margin-right: 100px;
}

.navbar-brand .logo-image {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background-color: #2c2c2c;
  margin-right: 30px;
  margin-left: 30px;
  object-fit: cover;
  object-position: center;
  display: hinge;
  aspect-ratio: 1/1;
}

.navbar-nav {
  display: flex;
  gap: 25px;
  margin-right: 30px;
}

.nav-item .nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-item .nav-link:hover {
  color: #c8e6c9;
}

.nav-item .nav-link.active {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 2px solid #ffffff;
}

.navbar-toggler {
  border: none;
  padding: 10px;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 1500px) {
  .navbar {
    flex-wrap: wrap;
  }

  .navbar-toggler {
    display: block !important;
    margin-right: 20px;
    visibility: visible;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-collapse.show {
    display: flex;
    max-height: 600px;
  }

  .navbar-nav {
    padding: 10px 20px;
    gap: 15px;
    flex-direction: column;
    background-color: #2e7d32;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }

  .nav-item .nav-link {
    font-size: 16px;
    padding: 10px 0;
    color: #ffffff;
  }

  .navbar-brand .logo-image {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    margin-right: 15px;
  }

  .navbar-brand {
    font-size: 20px;
    padding-left: 10px;
    margin-right: 20px;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 80px);
  padding: 100px 20px;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.125rem;
  color: #a5d6a7;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  border-radius: 0.35rem;
  font-weight: 600;
  border: 2px solid #4caf50;
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.cta-button:hover {
  background: #4caf50;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
}

.hero-image {
  order: -1;
}

.profile-picture {
  max-width: 380px;
  width: 100%;
  border-radius: 0.75rem;
  border: 2px solid #2e7d32;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .profile-picture {
    max-width: 280px;
  }
  .cta-button {
    display: block;
    margin: 0.75rem auto;
    width: fit-content;
  }
}
