#header {
  position: fixed;
}

#backgroundvideo {
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  z-index: 1;
  margin-top: -100px;
}

/*
showcase
*/

#showcasewrapper {
  z-index: 999;
}

video {
  z-index: 1;
}

#showcase {
  position: relative;
  top: -230px;
  max-width: 1000px;
  margin: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 0px 80px 7px black;
}

#showcase > h1 {
  text-align: center;
  font-size: 70px;
  margin: 0;
  background-color: #111;
}

#showcase h1 a {
  display: block;
  color: white;
  padding: 10px;
  transition: padding 0.3s ease;
  text-decoration: none; /* TODO make decision on this property */
}

#showcase > h1 a:hover, #showcase > h1 a:focus {
  padding: 46.5px;
}

#showcase > h1 a i {
  padding-left: 50px;
  font-size: 64px;
  transition: left 0.3s ease;
  position: relative;
  left: 0;
}

#showcase > h1 a:hover i, #showcase > h1 a:focus i {
  left: 36.5px;
}

#showcase .grid {
  margin: auto;
  height: 500px;
  display: grid;
  grid-template-areas: 
    "big big small1 small2"
    "big big small3 small4";
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

#showcase .grid a {
  transition: border-width 0.3s ease;
  border: 0 solid #ffffff;
}

#showcase .grid a:hover, #showcase .grid a:focus {
  border-width: 10px;
}

#showcase .grid a div {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

#showcase .grid a:first-child {
  grid-area: big;
  border-bottom-left-radius: 10px;
  overflow: hidden;
}

#showcase .grid a:nth-child(2) {
  grid-area: small1;
}

#showcase .grid a:nth-child(3) {
  grid-area: small2;
}

#showcase .grid a:nth-child(4) {
  grid-area: small3;
}

#showcase .grid a:nth-child(5) {
  grid-area: small4;
}

#showcase .grid a:last-child {
  border-bottom-right-radius: 10px;
  overflow: hidden;
}

#showcase .grid .hover {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
}

#showcase .grid .hover h1 {
  display: inline-block;
  color: white;
  text-decoration: none;
  margin: 0;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#showcase .grid a:first-child .hover h1 {
  font-size: 40px;
}

#showcase .grid a:hover .hover, #showcase .grid a:focus .hover {
  opacity: 1;
}

/*
about
*/

#about {
  position: relative;
  color: var(--main-text-colour);
}

#aboutwrapper {
  background-color: var(--main-bg-colour);
  display: flex;
}

#about .left, #about .right {
  margin: 0;  
}

#about .left {
  padding-top: 100px;
  flex: 1;
  padding-bottom: 140px;
}

#about .left .content {
  max-width: 700px;
  margin: auto;
}

#about .left .content > * {
  margin-left: 80px;
}

#about .left h1 {
  font-size: 60px;
  margin-bottom: 5px;
}

#about .left p {
  margin-top: 5px;
  line-height: 30px;
  font-size: 19px;
  text-align: justify;
  font-weight: 100;
}

#about .right {
  margin-left: auto;
}

#rightimage {
  height: 100%;
  width: 50vw;
  background-image: url("../media/team.jpg");
  background-position: center;
  background-position-x: 50% !important;
  background-size: cover;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

#hireusbutton a {
  position: relative;
  top: -7px;
  left: -7px;
  background-color: white;
  box-shadow: 10px 10px #46464654;
  color: var(--main-bg-colour);
  margin: 0;
  display: inline-block;
  padding: 5px;
  font-size: 30px;
  border-radius: 5px;
  margin-top: 20px;
  font-weight: 500;
  transition: box-shadow 0.2s ease, top 0.2s ease, left 0.2s ease;
  text-decoration: none; /* TODO make decision on this property */
}

#hireusbutton a i {
  padding-left: 15px;
  margin-left: 0;
  transition: margin-left 0.2s ease;
}

#hireusbutton a:hover i, #hireusbutton a:focus i {
  margin-left: 10px;
}

#hireusbutton a:hover, #hireusbutton a:focus {
  box-shadow: 3px 3px #46464654;
  top: 0;
  left: 0;
}

/*
on scroll
*/

#header, #logo img, #navbar a, #social a {
  transition-duration: 350ms;
  transition-timing-function: ease;
  transition-delay: 100ms;
}

#header {
  transition-property: background-color, height, border-bottom, box-shadow;
}

#logo img {
  transition-property: height;
}

#header #social a {
  transition-delay: 0ms;
}

#header #navbar a {
  transition-property: color;
}

#header.noscroll {
  background-color: transparent;
  border-bottom: none;
  height: 100px;
  box-shadow: none;
}

#header.noscroll #navbar a {
  color: white;
}

#header.noscroll #social a {
  color: white;
  filter: grayscale(100%) brightness(1000%); /* TODO temporary? white or coloured */
}

#header.noscroll #logo img {
  height: 90px;
}