@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  font-family: "Poppins", sans-serif;
  color: #2d2d2d;
  margin: 0;
  padding: 0;
  background-color: #e0e0e0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: #2d2d2d;
}

.background {
  background-color: #2d2d2d;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  transform: translateY(-100%);
  transition: all 0.5s ease-out;
  opacity: 0;
  z-index: 1;
}
.header {
  margin: 2% auto;
  width: 95%;
  display: flex;
  justify-content: space-between;
}

.name-title {
  font-size: 24px;
}

.menu-toggle {
  display: none;
}

.menu-button {
  position: relative;
  top: 0;
  right: 0;
  z-index: 10;
}

.navigation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
  transform: translateY(-100%);
  transition: all 0.5s ease-out;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 1;
}

.navigation a {
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.menu-button {
  cursor: pointer;
}

.icon {
  background: #2d2d2d;
  display: inline-block;
  height: 5px;
  position: relative;
  width: 30px;
  vertical-align: center;
  transition: all 0.2s ease-out;
} /* Style span tag */

.icon::before,
.icon::after {
  background: #2d2d2d;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
}
.icon::before {
  top: 10px;
  width: 15px;
  right: 0;
}
.icon::after {
  top: -10px;
  width: 15px;
}

.menu-toggle:checked ~ .menu-button .icon {
  transform: rotate(-45deg);
  background-color: white;
}

.menu-toggle:checked ~ .menu-button .icon::before {
  transform: rotate(-90deg);
  top: 8px;
  right: 7.5px;
  background-color: white;
}

.menu-toggle:checked ~ .menu-button .icon::after {
  transform: rotate(90deg);
  left: 7.5px;
  top: -8px;
  background-color: white;
}

body:has(.menu-toggle:checked) .navigation {
  transform: translateY(0%) !important;
  opacity: 1;
}
body:has(.menu-toggle:checked) .background {
  transform: translateY(0%) !important;
  opacity: 1;
}
body:has(.menu-toggle:checked) {
  overflow: hidden;
}

.hero {
  margin: 5% auto;
  width: 95%;
}

.headerTitle {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0em;
}

.headerGreet {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3em;
}

.headerImage {
  width: 100%;
  aspect-ratio: 4/1;
  object-fit: fill;
}

.projectShowCase {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.projectShowcaseTitle {
  font-size: 24px;
  font-weight: 500;
  margin: 10vw 5vw;
}

.projectCard {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  margin: 10px 0;
  z-index: 0;
  transition: filter 0.2s ease-in-out;
}

.overlay {
  width: 100%;
  height: 100%;
  background: rgba(77, 77, 77, 0.62);
  position: absolute;
  z-index: 0;
  transition: background 0.2s ease-in-out;
}

.projectCardImage {
  width: 100%;
  aspect-ratio: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  filter: grayscale(100%);
  object-fit: cover;
}

.projectCardContainer {
  padding: 10% 5%;
  z-index: 1;
}

.projectCardTitle {
  margin: 0;
  padding: 0;
  color: #fff;
  font-weight: 500;
  font-size: 24px;
}

.projectCardTagline {
  margin: 0;
  padding: 0;
  color: #fff;
  font-weight: 500;
  font-size: 22px;
}

.sectionTitle {
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  margin: 10vw 5vw;
}

.logoGrid {
  display: flex;
  aspect-ratio: 1;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 20vw;
}

.logos {
  width: 50%;
  aspect-ratio: 2/1;
  object-fit: cover;
  mix-blend-mode: darken;
}

.logos:last-of-type {
  margin-bottom: 20px;
}

.divider {
  width: 100%;
  height: 2px;
  background-color: #2d2d2d;
  margin: 10px auto;
  max-width: 100%;
}

.hideOnSmall {
  display: none;
}

.backToTop {
  display: none;
  color: #2d2d2d;
  background-color: #fa793b;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #2d2d2d;
  position: fixed;
  bottom: 10px;
  right: 10px;
  appearance: none;
}

.backToTop img {
  width: 24px;
  aspect-ratio: 1;
}

.projectCard:hover .projectCardImage {
  filter: none;
}

.projectCard:hover .overlay {
  background-color: rgba(77, 77, 77, 0.32);
}

.big-video-display {
  display: flex;
  flex-direction: column;
  width: 95%;
  margin: 0 auto;
}

.big-video-display video {
  width: 100%;
  margin: 0px 0 15px 0;
}

@media screen and (min-width: 768px) {
  .headerGreet {
    font-size: 32px;
  }

  .projectShowcaseTitle {
    width: 95%;
    margin: 5vw auto 2.5vw auto;
  }
  .projects {
    width: 95%;
    margin: 0 auto;
  }

  .row {
    display: flex;
    flex-direction: row;
    height: 300px;
    justify-content: space-between;
    column-gap: 5px;
  }

  .projectCard {
    margin: 0 0 5px 0;
  }

  .projectCardImage {
    aspect-ratio: unset;
    height: 100%;
  }

  .projectCardContainer {
    padding: 10px;
  }

  .projectCardTitle {
    font-size: 20px;
  }

  .small {
    flex: 0.3;
  }

  .large {
    flex: 0.7;
  }

  .projectCardTagline {
    font-weight: 300;
    font-size: 14px;
  }

  .sectionTitle {
    margin: 5% auto;
    width: 95%;
  }

  .logoGrid {
    margin: 0 auto;
    width: 95%;
    aspect-ratio: unset;
  }

  .logos {
    width: 20%;
    object-fit: contain;
  }

  .footer {
    margin: 0 auto;
    width: 95%;
  }

  .footerTitle {
    font-size: 38px;
  }

  .footer a {
    font-size: 24px;
    margin: 10px 0;
  }

  .big-video-display {
  }
}

.help-breakpoint {
  display: none;
}

@media screen and (min-width: 1200px) {
  .headerGreet {
    font-size: 36px;
  }

  .row {
    height: unset;
    max-height: 30vw;
  }

  .small {
    aspect-ratio: 1;
  }

  .large {
    aspect-ratio: unset;
  }

  .header {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .background {
    display: none;
  }

  .navigation {
    all: unset;
    color: #2d2d2d;
    display: flex;
    flex: 0.3;
    justify-content: space-between;
    align-items: center;
  }

  .navigation a {
    all: unset;
    cursor: pointer;
    width: 200px;
    text-align: center;
    padding: 10px;
    transition: background-color 0.2s ease-in-out;
  }

  .navigation a:hover {
    background-color: #efefef;
  }

  .big-video-display {
    display: flex;
    flex-direction: row;
    width: 95%;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  .big-video-display video {
    width: 50%;
    margin: 0;
  }

  .big-video-display video:first-child{
    margin-right: 30px;
  }
}

@media screen and (min-width: 600px) {
  .help-breakpoint {
    display: initial;
  }
}
