html {
  scroll-padding-top: calc(4.5rem - 1px);
}

body {
  letter-spacing: 0.0625em;
}

#mainNav {
  min-height: 3.5rem;
  background-color: #1a1a1a;
}
#mainNav .navbar-toggler {
  padding: 0.75rem;
  color: #7781f7;
}
#mainNav .navbar-toggler:focus {
  outline: none;
}
#mainNav .navbar-brand {
  font-weight: 700;
  padding: 0.9rem 0;
}
#mainNav .navbar-nav .nav-item:hover {
  color: fade(80%);
  outline: none;
  background-color: transparent;
}
#mainNav .navbar-nav .nav-item:active, #mainNav .navbar-nav .nav-item:focus {
  outline: none;
  background-color: transparent;
}
@media (min-width: 992px) {
  #mainNav {
    border-bottom: none;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
  }
  #mainNav .navbar-brand {
    padding: 0.5rem 0;
    color: var(--bs-navbar-brand-color);
  }
  #mainNav .nav-link {
    transition: none;
    color: var(--bs-navbar-color);
  }
  #mainNav .nav-link:hover {
    color: var(--bs-navbar-hover-color);
  }
  #mainNav .nav-link:active {
    color: #1a1a1a;
  }
  #mainNav.navbar-shrink {
    background-color: #1a1a1a;
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: var(--bs-navbar-brand-color);
    transition: color 0.3s ease-in-out;
  }
  #mainNav.navbar-shrink .nav-link {
    color: var(--bs-navbar-color);
    transition: color 0.3s ease-in-out;
  }
  #mainNav.navbar-shrink .nav-link:hover {
    color: #7781f7;
  }
  #mainNav.navbar-shrink .nav-link:active {
    color: #467370;
  }
  #mainNav.navbar-shrink .nav-link.active {
    color: #7781f7;
    outline: none;
    border-bottom: 0.25rem solid #7781f7;
  }
}

.btn {
  box-shadow: 0 0.1875rem 0.1875rem 0 rgba(0, 0, 0, 0.1) !important;
  padding: 1.25rem 2rem;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 80%;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  border: 0;
}

.masthead {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 35rem;
  padding: 15rem 0;
  background: black;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}
.masthead h1, .masthead .h1 {
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 2.5rem;
  line-height: 2.5rem;
  letter-spacing: 0.8rem;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
          background-clip: text;
}
.masthead h2, .masthead .h2 {
  max-width: 20rem;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .masthead h1, .masthead .h1 {
    font-size: 4rem;
    line-height: 4rem;
  }
}
@media (min-width: 992px) {
  .masthead {
    height: 100vh;
    padding: 0;
  }
  .masthead h1, .masthead .h1 {
    font-size: 6.5rem;
    line-height: 6.5rem;
    letter-spacing: 0.8rem;
  }
  .masthead h2, .masthead .h2 {
    max-width: 30rem;
    font-size: 1.25rem;
  }
}

.masthead_button {
  width: 75%;
}

@media (min-width: 992px) {
  .masthead_button {
    width: 50%;
  }
}

.create_button {
  background-color: #7781f7;
}

.create_button:hover {
  background-color: #6f79e6;
}

.about-section {
  padding-top: 10rem;
  background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.8) 100%);
}

.projects-section {
  padding: 6rem 0;
}
.projects-section .featured-text {
  padding: 2rem;
}
@media (min-width: 992px) {
  .projects-section .featured-text {
    padding: 0 0 0 2rem;
    border-left: 0.5rem solid #7781f7;
  }
}
.projects-section .project-text {
  padding: 3rem;
  font-size: 90%;
}
@media (min-width: 992px) {
  .projects-section .project-text {
    padding: 5rem;
  }
}

.cta-section {
  background: linear-gradient(to bottom, rgb(var(--bs-primary-rgb)), rgb(var(--bs-black-rgb)));
}


.footer {
  padding: 5rem 0;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

#video-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: cover;
  background-position: center center;
}

#video-foreground video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Medium-sized phones */
@media (min-width: 376px) {
  #video-foreground {
    top: 0;
  }
}

/* Medium-sized phones in landscape */
@media (min-width: 376px) and (max-width: 991px) and (orientation: landscape) {
  #video-foreground {
    top: 0;
    height: 100%;
  }
}

/* Desktop settings */
@media (min-width: 992px) {
  #video-foreground {
    top: 0;
  }
  
  #video-foreground iframe {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.masthead .container {
  position: relative;
  z-index: 2;
}

.masthead::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -2px; /* Extend slightly beyond the bottom */
  width: 100%;
  height: calc(100% + 2px); /* Increase height to match bottom extension */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.8) 75%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 1;
}

/* You can also add specific mobile adjustments if needed */
@media (max-width: 767px) {
    #video-foreground {
        background-position: 50% 50%; /* Alternative syntax, same effect */
    }
}