/* Fonts */
@font-face {
    font-family: Raleway;
    src: url(../fonts/Raleway-VariableFont_wght.ttf);
    font-display: swap;
  }
@font-face {
    font-family: Clear Sans;
    src: url(../fonts/ClearSans-Regular.ttf);
    font-display: swap;
  }

/* Font Styles */
.header {
  font-family: Raleway;
  font-size: 3em;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
}
@media (max-width: 1600px) {
  .header {
    font-size: 2.5em;
  }
}
.copy {
  font-family: Clear Sans;
  font-size: 12pt;
  color: white;
  text-transform: none;
  font-weight: 100;
}
.fadeIn {
  opacity: 0;
  transition: 0.5s opacity;
}


/* Styling */
body{
  background-color: #1F3B4D;
  max-width: 100%;
}

/* Navbar */
#navbar {
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  height: 13vh; 
  opacity: 0;
  transition: opacity 1s;
  margin-bottom: -13vh;
}
#navbarButton {
  margin-top: 0.5em; 
  margin-bottom: 0.5em;
}
.nav-item {
  margin-top: 5vh;
  margin-left: 5em;
  margin-right: 5em;
  list-style: none;
}
.nav-link {
  font-family: Raleway;
  font-size: 16px;
  color: white;
  text-transform: uppercase;
  height: 10vh;
  margin-top: 2.5vh;
  text-decoration: none;
}
.nav-link:focus, .nav-link:hover {
  text-decoration: none;
}

/* Home */
#heroShot {
  height: 80vh;
  margin-bottom: -80vh;
  position: relative;
  z-index: -1;
}
#heroShot img {
  width: 100%;
  height: 100%; 
  position: absolute; 
  z-index: -2; 
  object-fit: cover; 
  object-position: center center;
}
#homeGradient{
  position:absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(31, 59, 77, 1), transparent);
  width: 100%;
  height: 50%;
  z-index: 0;
}
#home {
  position: relative;
  min-height: 80vh;
  max-height: 80vh;
  /* background-image: url('../img/homeBackground.jpg'); */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  }
#home::before {
  content: "";
  background-color: rgba(31, 59, 77, 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  animation: fadeIn 2s ease forwards;
}
.homeButton {
  object-fit: contain;
  height: 10vh;
}
#homeContent {
  z-index: 3;
  color:white;
}
#homeName img {
  max-height: 100%;
  display: block;
  margin: auto;
  transform: scale(0.75);
}
#homeTagline {
  margin-top: 0.25em;
  font-family: Raleway;
  font-size: 2em;
  color: white;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  #homeTagline {
    font-size: 1em;
    
  }
}


/* Intro Row */
#intro {
  padding-bottom: 2em;
  padding-left: 1em;
}
#introHeader{
  padding-top: 1em;
  padding-left: 1em;
  padding-right: 1em;
  position: relative;
  z-index: 3;
}
#introGraphic {
  max-height: 850px;
}
#introGraphic img {
  object-fit: contain;
  max-width: 100%; 
  max-height: 100%
}
#introCopy {
  padding-top: 2em; 
  padding-left: 2.7em;
  padding-right: 3em;
  padding-bottom: 3em;
}
.row {
  max-width: 100%;
  --bs-gutter-x: 0;
}


/* Services */

#bgImgTopFade {
  height: 30vh;
  background-image: linear-gradient(#1F3B4D, transparent);
  position: relative;
  z-index: -1;
  margin-bottom: -30vh;
}
#bgImgBtmFade {
  height: 40vh;
  background-image: linear-gradient(transparent, #1F3B4D);
  position: relative;
  z-index: 0;
  margin-top: -40vh;
}
#bgImg {
  position: relative; 
  opacity: 10%; 
  height: 150vh; 
  margin-bottom: -150vh;
  z-index: -3;
}
#bgImg img {
  width: 100%;
  height: 100%; 
  position: absolute; 
  z-index: -10; 
  object-fit: cover; 
  object-position: center center;
}

  #branding,
  #tech {
    position: relative;
    z-index: 3; /* Adjust the z-index if necessary */
  }
  #msGradientTop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: linear-gradient(to bottom, rgba(31, 59, 77, 1), transparent);
    z-index: 2;
  }
  #msGradientBottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: linear-gradient(to top, rgba(31, 59, 77, 1), transparent);
    z-index: 1;
  }
.relative {
  position: relative;
}
.serviceHeader {
  padding: 0.35em;
  position: relative;
  z-index: 2;
  /* color: #F46A4A; */
}
.servicePadding {
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 2em;
}
.serviceGraphic {
  height: 60vh;
}
.serviceGraphic img {
  height: 100%; 
  width:100%; 
  object-fit: contain; 
  padding-left: 3em;
  padding-right: 2em;
}
.serviceImg {
  max-height: 100%;
  margin-bottom: 1em;
  align-items: center;
  justify-content: center;
  display: flex;
  /* padding-bottom: 0; */
  padding-top: 1em;
}

.serviceImg img{
  object-fit: contain;
  max-width: 100%;
  max-height: 1000px;
}
.serviceCopy {
  padding-left: 5em;
}

/* Staff */

.staffPic {
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
}
.staffPic img{
  position:relative;
  height: 100%; 
  width:100%; 
  object-fit: contain; 
  padding-left: 2.5em;
  padding-right: 2.5em;
  padding-top: 2em;
  padding-bottom: 1em;
  opacity: 80%;
  margin: 0 auto;  
}
.staffCopy {
  padding-left: 3em;
  padding-right: 3em;
  padding-top: 1em;
  padding-bottom: 2em;
}

/* Special CSS for #home Fade Effect */
.hide {
  opacity: 0;
  transition: opacity 1s linear;
  -webkit-transition: opacity 1s linear;
  -moz-transition: opacity 1s linear;
  -o-transition: opacity 1s linear;
}
.show {
  opacity: 1;
  transition: opacity 1s linear;
  -webkit-transition: opacity 1s linear;
  -moz-transition: opacity 1s linear;
  -o-transition: opacity 1s linear;
}

  /* Contact Form */

  #contact {
    padding-top: 0;
  }

  .contact-form {
    width: 100%;
    margin: 0 auto;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-group label {
    font-weight: bold;
    color: rgba(244,106,74,1);
  }
  .form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }
  .form-group textarea {
    height: 150px;
  }
  .form-group button {
    background-color: rgba(244,106,74,1);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    float: right;
  }

  #successMessage {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10px; /* Adjust as needed */
    font-weight: 300;
    font-family: Clear Sans;
    font-size: 0.75em;
  }

#footer {
  background-color: rgba(0,0,0,0.3); 
  padding-top: 1em;
}
.orangeLink a{
  color: rgba(244,106,74,1);
  text-decoration: none;
}
.orangeLink a:visited {
  color: rgba(244,106,74,1);
}

/* Special CSS for Fade Effect on Pseudo-Elements*/
@keyframes fadeIn {
  0% {
    background-color: rgba(31, 59, 77, 0);
    
  }
  100% {
    background-color: rgba(31, 59, 77, 0.05);
    
  }
}

/* Special CSS to override Bootstrap Buttons */
.btn{
  color: #fff;
  background-color:rgba(244,106,74,0.9);
  font-family:'Raleway';
  font-size: 22px;
  font-weight: 300;
  padding: 10px 20px;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}
.btn:hover {
   color: #fff;
  background-color:rgba(244,106,74,0.9);
}

.slide {
  opacity: 0; /* Initially, make it invisible */
  transform: translateY(50px); /* Initially, move it down */
  transition: opacity 0.5s, transform 0.5s; /* Add transition for smooth animation */
}

/* .slide.delayed {
  transition-delay: 0.25s; 
} */

.slide.delayed-more {
  transition-delay: 0.75s; /* Delay the animation by 1 second */
}


/* Custom Mobile Nav Menu */
#ham-menu {
  display: none;
}

label[for="ham-menu"] {
  display: block;
  position: fixed;
  top: 24px;
  left: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;

}

.ham-menu {
  width: 50vw;
  height: 100%;
  position: fixed;
  top: 0;
  visibility: hidden;
  transform: translate(-110%);
  z-index: 998;
  background-color: #162936;
  transition: 1s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ham-menu > ul {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-around;
  padding: 20px;
  height: 50%;
  font-family: Raleway;
}

.ham-menu > ul > li {
  font-size: 2rem;
  white-space: nowrap;
  letter-spacing: 0.15em;
  cursor: pointer;
}

#ham-menu:checked + label {
  background-color: transparent;
  border-color: #ffffff;
}

#ham-menu:checked ~ div.ham-menu {
  transform: translate(0px);
  visibility: visible;
}

#ham-menu:checked ~ div.full-page-blue {
  display: block;
  opacity: 1;
  visibility: visible;
}

[for="ham-menu"] > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column wrap;
  align-content: center;
  align-items: center;
}

.menu-line {
  display: block;
  width: 17px;
  height: 2px;
  margin: 10px 0 5px;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  background-color: #ffffff;
  transition: 500ms;
  transform-origin: right center;
}

[for="ham-menu"] > div > span:nth-child(4),
[for="ham-menu"] > div > span:nth-child(5),
[for="ham-menu"] > div > span:nth-child(6) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  transform-origin: left center;
}

#ham-menu:checked + label span:nth-child(2),
#ham-menu:checked + label span:nth-child(5) {
  transform: scale(0);
}

#ham-menu:checked + label span:nth-child(1) {
  transform: translateY(17px) rotate(45deg);
}

#ham-menu:checked + label span:nth-child(4) {
  transform: translateY(17px) rotate(-45deg);
}

#ham-menu:checked + label span:nth-child(3) {
  transform: translateY(-17px) rotate(-45deg);
}

#ham-menu:checked + label span:nth-child(6) {
  transform: translateY(-17px) rotate(45deg);
}


.text {
  font-size: 2.5em;
  line-height: 1.5em;
  word-spacing: 0.5em;
  letter-spacing: 0.1em;
  font-family: "Raleway";
}

.title {
  font-size: 3rem;
  line-height: 1.5em;
  word-spacing: 0.5em;
  letter-spacing: 0.1em;
  font-family: "Raleway";
  color: #ffffff;
  padding: 10px;
}

.heading {
  font-size: 6rem;
  line-height: 1.5em;
  word-spacing: 0.5em;
  letter-spacing: 0.1em;
  font-family: "Raleway";
}

.centre-text {
  text-align: center;
}

.bold-text {
  font-weight: bold;
}

/* CSS for the mobile navigation menu hiding*/
#mobileNav {
  display: none;
  color: white;
}

#mobileNav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

/* Media query for screens smaller than xl */
@media (max-width: 1199.98px) {
  /* Hide the regular navbar */
  #navbar {
    display: none;
  }
  
  /* Show the mobile navigation menu */
  #mobileNav {
    display: block;
  }
}