.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: bold; 
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    transition: all 0.3s ease;
    position: relative;
  }

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
  }

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #E2F1E7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

.navbar-nav .nav-link:hover::after {
    width: 80%;
  }

#main {
    margin-top: 15px;   /* Margin outside of the border */
    background-color: #243642;
}

.navbar-nav {
    margin-right: 20px; /* Adjust as needed */
}

.nav-item {
    margin-right: 10px; /* Add space between nav items */
}

.navbar-brand {
    margin-right: 70px; /* Pushes the nav items to the right */
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
}

.nav-item:hover {
    color: #E2F1E7 !important;
}

.main-content {
    display: grid;
    flex-direction: column;
    /* height: 250vh; */
    /* margin-left: 150px;
    margin-right: 150px; */
}

.navbar {
    width: 100%;
    z-index: 1;
    background-color: #243642;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* head */

header.masthead {
    margin-top: 15px;
    position: relative;
    padding-top: 15rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: linear-gradient(135deg, #243642 0%, #387478 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    animation: fadeIn 1s ease-in;
  }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

  header.masthead h1, header.masthead .h1 {
    font-size: 2.25rem;
  }
  @media (min-width: 992px) {
    header.masthead {
      height: 100vh;
      min-height: 0rem;
      padding-top: 4.5rem;
      padding-bottom: 0;
    }
    header.masthead p {
      font-size: 1.15rem;
      color: white 
    }
    header.masthead h1, header.masthead .h1 {
      font-size: 3rem;
    }
  }
  @media (min-width: 1200px) {
    header.masthead h1, header.masthead .h1 {
      font-size: 3.5rem;
    }
  }

.divider {
  background: linear-gradient(to right, transparent, white, transparent);
  height: 3px;
  border: none;
  opacity: 0.8;
}

/* about */
.page-section {
  padding: 8rem 0;
  --bs-bg-opacity: 1;
  background: linear-gradient(135deg, #387478 0%, #629584 100%);
  font-size: 1.15rem;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem !important;
  }
  h2, .h2 {
    font-size: 1.75rem !important;
  }
  .page-section {
    padding: 4rem 0 !important;
  }
  header.masthead {
    padding-top: 8rem !important;
  }
}

p {
  color: white;
}

.text-black {
  color: black;
}

.border-black {
  border-color: black;
}

/* services */
#portfolio {
    background-color: #E2F1E7 !important;
    color: black !important;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

#portfolio .col {
    transition: transform 0.3s ease;
}

#portfolio .col:hover {
    transform: translateY(-5px);
}

#portfolio .col > div {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

#portfolio .col > div:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* footer */
#footer {
  background: linear-gradient(135deg, #243642 0%, #1e2d36 100%);
  color: white !important;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* portfolio */
#portfolio .container-fluid, #portfolio .container-sm, #portfolio .container-md, #portfolio .container-lg, #portfolio .container-xl, #portfolio .container-xxl {
  max-width: 1920px;
  background-color: #E2F1E7;
}
#portfolio .container-fluid .portfolio-box, #portfolio .container-sm .portfolio-box, #portfolio .container-md .portfolio-box, #portfolio .container-lg .portfolio-box, #portfolio .container-xl .portfolio-box, #portfolio .container-xxl .portfolio-box {
  position: relative;
  display: flex;
}
#portfolio .container-fluid .portfolio-box .portfolio-box-caption, #portfolio .container-sm .portfolio-box .portfolio-box-caption, #portfolio .container-md .portfolio-box .portfolio-box-caption, #portfolio .container-lg .portfolio-box .portfolio-box-caption, #portfolio .container-xl .portfolio-box .portfolio-box-caption, #portfolio .container-xxl .portfolio-box .portfolio-box-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  text-align: center;
  opacity: 0;
  color: black;
  background: #E2F1E7;
  transition: opacity 0.25s ease;
}

#portfolio .container-fluid .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-sm .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-md .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-lg .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-xl .portfolio-box .portfolio-box-caption .project-category, #portfolio .container-xxl .portfolio-box .portfolio-box-caption .project-category {
  font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
#portfolio .container-fluid .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-sm .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-md .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-lg .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-xl .portfolio-box .portfolio-box-caption .project-name, #portfolio .container-xxl .portfolio-box .portfolio-box-caption .project-name {
  font-size: 1.2rem;
}
#portfolio .container-fluid .portfolio-box:hover .portfolio-box-caption, #portfolio .container-sm .portfolio-box:hover .portfolio-box-caption, #portfolio .container-md .portfolio-box:hover .portfolio-box-caption, #portfolio .container-lg .portfolio-box:hover .portfolio-box-caption, #portfolio .container-xl .portfolio-box:hover .portfolio-box-caption, #portfolio .container-xxl .portfolio-box:hover .portfolio-box-caption {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

#contact {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 5rem 0;
}

#contact .btn-primary {
  background: linear-gradient(135deg, #387478 0%, #629584 100%);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 116, 120, 0.3);
}

#contact .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(56, 116, 120, 0.5);
  background: linear-gradient(135deg, #2d5a5e 0%, #4d7769 100%);
}

#contact .btn-primary i {
  margin-right: 0.5rem;
}