* {
  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: #fff;
  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 #fff;
  background-color: #2c2c2c;
  margin-right: 30px;
  margin-left: 30px;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 1/1;
}

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

.nav-item .nav-link {
  color: #fff;
  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: #fff;
  font-weight: 600;
  border-bottom: 2px solid #fff;
}

.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: #2e7d32;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }
  .nav-item .nav-link {
    font-size: 16px;
    padding: 10px 0;
    color: #fff;
  }
  .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;
  padding: 40px 20px 0px 20px;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

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

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

/* Subtitle / team */
.hero-content p {
  font-size: 1.125rem;
  color: #a5d6a7;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-section {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.media-layout {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 40px;
}

.carousel-container,
.images-stack {
  flex: 1;
}

.carousel {
  max-width: 90%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  background: #404040;
}

.carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #2e7d32;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #ddd;
  bottom: 10px;
  max-width: 96%;
  text-align: center;
}

.stacked-image {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  border: 2px solid #2e7d32;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.youtube-video {
  width: 100%;
  height: 240px;
  max-width: 420px;
  border-radius: 12px;
  border: 2px solid #2e7d32;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.stacked-caption {
  font-size: 14px;
  color: #b0b0b0;
  text-align: center;
  max-width: 420px;
  margin: 8px auto 0;
  line-height: 1.4;
}

.stacked-caption a {
  color: #a5d6a7;
  text-decoration: underline;
}

.stacked-caption a:hover {
  color: #c8e6c9;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .project-section {
    padding: 40px 15px;
  }
  .media-layout {
    flex-direction: column;
    align-items: center;
  }
  .carousel {
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: #404040;
  }
  .carousel-caption,
  .stacked-caption {
    font-size: 8px;
  }
  .youtube-video {
    max-width: 100%;
    height: 255px;
  }
}
