:root {
  --primary: #0070bf;
  --primary-dark: #005897;
  --secondary: #2e2d2c;
  --light-grey: #f5f5f5;
  --dark-grey: #404040;
  --light: #fff;
  --dark: #000;
}

* {
  font-family: "Open Sans", sans-serif;
}

main {
  overflow: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #073a61;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  animation: splashBg 1s ease forwards;
  border-top: 30px solid var(--primary);
}

#splash.fade-out {
  top: -100dvh;
  transition: top 0.5s ease;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 1000px;
  opacity: 0;
  transform: scale(0.8);
  animation: logoPop 0.8s ease forwards;
  animation-delay: 0.2s;

  svg {
    width: 100%;
  }

  @media (max-width: 1024px) {
    animation: logoPopMedium 0.8 ease forwards;
  }

  @media (max-width: 768px) {
    animation: logoPopSmall 0.8 ease forwards;
  }
}

@keyframes splashBg {
  0% {
    background: #073a61;
  }
  100% {
    background: #073a61;
  }
}

@keyframes logoPop {
  0% {
    opacity: 0;
    width: 0px;
  }
  60% {
    opacity: 1;
    width: 1100px;
  }
  100% {
    opacity: 1;
    width: 1000px;
  }
}

@keyframes logoPopMedium {
  0% {
    opacity: 0;
    width: 0px;
  }
  60% {
    opacity: 1;
    width: 800px;
  }
  100% {
    opacity: 1;
    width: 700px;
  }
}

@keyframes logoPopSmall {
  0% {
    opacity: 0;
    width: 0px;
  }
  60% {
    opacity: 1;
    width: 450px;
  }
  100% {
    opacity: 1;
    width: 350px;
  }
}

.blur-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  mask-image: linear-gradient(
    to top right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  -webkit-mask-image: linear-gradient(
    to top right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 50%
  );
}

#burger,
#mobile-nav,
.home-header {
  transition: 0.15s;
}
.mobile-navigation {
  overflow-y: auto;
  position: fixed;
  z-index: 30;
  background-color: var(--primary);
  color: var(--dark);
  width: 100%;
  height: calc(100dvh - 108px);
  opacity: 0;
  left: -100vw;
  top: 108px;
  text-align: center;
  padding: 3rem 2rem 3rem;
}
.nav-active {
  left: 0;
  opacity: 1;
}
body.menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .top-navigation > a:last-of-type {
    background-color: var(--primary);
    color: var(--light);
    padding: 8px 26px;
    border-radius: 8px;
    transition: 0.2s;

    &:hover {
      background-color: var(--primary-dark);
      color: var(--light);
    }
  }
}

.has-children {
  @media (min-width: 1025px) {
    a {
      padding: 20px 0;
      background-color: transparent;
    }

    &:hover {
      .submenu-wrapper {
        display: block;
        margin-top: 68px;

        a:hover {
          color: var(--light);
          background-color: var(--primary-dark);
        }
      }
    }

    .submenu-wrapper {
      display: none;

      a {
        padding: 12px 20px;
        border-radius: 12px;
        text-wrap: nowrap;
      }
    }
  }
}

.breadcrumbs {
  flex-wrap: wrap;
  row-gap: 0;
  column-gap: 8px;
}

.template-text {
  h1 {
    font-size: 2rem;
    font-weight: bold;
  }
  h2 {
    font-size: 2rem;
    font-weight: bold;
  }
  h3,
  h4,
  h5,
  h6 {
    font-size: 1.5rem;
    font-weight: bold;
  }
  p {
    margin-bottom: 1rem;
  }
}

.mask,
.mask-alt {
  mask-repeat: no-repeat;
  mask-size: contain;
  object-fit: cover;
  height: initial;
}
.mask.up {
  mask-image: url(../img/hovecon-arrow-up.svg);
  height: 446px;

  @media (max-width: 1024px) {
    height: 300px;
  }

  @media (max-width: 425px) {
    &.home-mask {
      height: 245px;
      width: 145px;
      bottom: 10px;
      position: relative;
    }
  }
}
.mask.down {
  mask-image: url(../img/hovecon-arrow-down.svg);
  height: 548px;

  @media (max-width: 1024px) {
    height: 365px;
  }
  @media (max-width: 425px) {
    height: 300px;

    &.home-mask {
      height: 290px;
    }
  }
}
.mask-alt.left {
  mask-image: url("../img/hovecon-arrow-right.svg");
  mask-position: left;
}
.mask-alt.right {
  mask-image: url("../img/hovecon-arrow-left.svg");
  mask-position: right;
}

.swiper-button-next,
.swiper-button-prev {
  &::after {
    content: "" !important;
  }
}
.swiper-btn {
  background-color: var(--primary);
  color: var(--light) !important;
  font-size: 18px;
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 8px;

  svg {
    transform: translateX(0);
    transition: 0.2s;
  }
}
.swiper-button-next:hover svg {
  transform: translateX(5px);
}
.swiper-button-prev:hover svg {
  transform: translateX(-5px);
}
.services-swiper-wrap {
  .swiper-wrapper {
    align-items: center;
  }
  .swiper-btn {
    background-color: transparent;
    color: var(--dark-grey) !important;
    border: 1px solid var(--dark-grey);
  }
  .swiper-button-next {
    right: -4rem;

    @media (max-width: 1024px) {
      top: -3rem;
      right: 43%;
    }
    @media (max-width: 768px) {
      right: 40%;
    }
    @media (max-width: 425px) {
      top: -2rem;
      right: 35%;
    }
  }
  .swiper-button-prev {
    left: -4rem;

    @media (max-width: 1024px) {
      top: -3rem;
      left: 43%;
    }
    @media (max-width: 768px) {
      left: 40%;
    }
    @media (max-width: 425px) {
      top: -2rem;
      left: 35%;
    }
  }
}
.swiper-btn-timeline.swiper-button-next {
  bottom: 0;
  right: 50%;
  transform: translateX(120%);

  @media (max-width: 768px) {
  }
}
.swiper-btn-timeline.swiper-button-prev {
  bottom: 0;
  left: 50%;
  transform: translateX(-120%);

  @media (max-width: 768px) {
  }
}

.swiper-btn-machine.swiper-button-next {
  top: -4rem;
  right: 0;
}
.swiper-btn-machine.swiper-button-prev {
  top: -4rem;
  right: 4rem;
  left: unset;
}

.swiper-btn-projects {
  background-color: transparent;
  color: var(--dark-grey) !important;
  border: 1px solid var(--dark-grey);
}
.swiper-btn-projects.swiper-button-next {
  top: 28rem;
  right: 50%;
  transform: translateX(120%);

  @media (max-width: 1024px) {
    top: 30rem;
  }
  @media (max-width: 768px) {
    top: -3rem;
    left: 0.5rem;
  }
}
.swiper-btn-projects.swiper-button-prev {
  top: 28rem;
  right: 50%;
  transform: translateX(-20%);
  left: unset;

  @media (max-width: 1024px) {
    top: 30rem;
  }
  @media (max-width: 768px) {
    top: -3rem;
    left: 0;
    transform: translateX(0%);
  }
}

.timeline-container {
  position: relative;
}
.timeline-content {
  margin-top: 20px;
}
.timeline-section {
  margin-bottom: 20px;
}
.timestamps-container {
  .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    font-size: 24px;

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: var(--dark-grey);
    }

    &.swiper-slide-active {
      font-weight: bold;
      font-size: 28px;

      .dot {
        width: 20px;
        height: 20px;
        background-color: var(--primary);
        margin-bottom: 0.75rem;
      }
    }
  }
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 2rem;

  @media (max-width: 768px) {
    margin-top: 1rems;
  }
}
.masonry-item {
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 1;
  transform: scale(1);
  position: relative;
  will-change: opacity, transform;
}
.masonry-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
}
.masonry-item.item-hidden {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  pointer-events: none;
}

.filter-buttons {
  margin-bottom: 16px;
  text-align: center;
  display: flex;
  justify-content: space-between;

  @media (max-width: 768px) {
    gap: 0.5rem;
    overflow: scroll;
  }
}
.filter-buttons button {
  padding: 15px 50px;
  border: none;
  background-color: #f5f5f5;
  color: var(--dark);
  border-radius: 8px;
  cursor: pointer;

  @media (max-width: 1024px) {
    padding: 15px 25px;
  }
}
.filter-buttons button.active {
  background-color: var(--primary);
  color: var(--light);
}

.contact-page-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;

  .form-item {
    position: relative;
    font-weight: bold;

    &.select {
      margin-top: 10px;
    }

    .form-label {
      position: absolute;
      padding: 5px 10px;
      background: #ffffff;
      z-index: 1;
      left: 25px;
      top: 6px;
    }

    .wpcf7-checkbox {
      margin-top: 10px;
      display: flex;
      gap: 10px;

      .wpcf7-list-item.first {
        margin-left: 0;
      }
      .wpcf7-list-item label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: normal;
        font-size: 20px;

        input {
          width: 20px;
          height: 20px;
        }
      }
    }
  }
  input,
  textarea {
    border: 1px solid var(--dark);
    width: 100%;
    border-radius: 8px;
    padding: 15px;
  }
  input[type="submit"] {
    background: var(--dark);
    color: var(--light);
    width: fit-content;
    padding: 20px 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;

    &:hover {
      background: var(--light);
      color: var(--dark);
    }
  }
}

.youtube {
  height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

#logo-icon,
#logo-title,
#logo-subtitle {
  opacity: 0;
}

#logo-icon {
  animation: slideInRight 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

#logo-title {
  animation: slideInUp 0.6s ease-out forwards;
  animation-delay: 1s;
}

#logo-subtitle {
  animation: slideInRight 0.6s ease-out forwards;
  animation-delay: 1.6s;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.home-header-text {
  text-shadow: #000000cc 1px 0 50px;
}

.video-header-pages {
  @media (min-width: 2101px) {
    height: 175% !important;
  }
  @media (min-width: 2401px) {
    height: 200% !important;
  }
  @media (min-width: 2751px) {
    height: 220% !important;
  }
  @media (min-width: 3021px) {
    height: 250% !important;
  }
  @media (min-width: 3401px) {
    height: 300% !important;
  }
  @media (min-width: 4051px) {
    height: 350% !important;
  }
  @media (min-width: 4701px) {
    height: 400% !important;
  }
}

.video-thumbnail.is-hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#scrollButton {
  bottom: 192px;

  @media (min-width: 1536px) {
    bottom: 80px;
  }

  &.move {
    bottom: 80px;

    @media (min-width: 1536px) {
      bottom: 80px;
    }
  }
}
