@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import '../css/bootstrap.min.css';
@import '../css/animate.css';
@import 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css';

$brand-color: #024c9e;

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;

  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  &::-webkit-scrollbar-track {
    background: lighten($brand-color, 50%);
  }

  &::-webkit-scrollbar-thumb {
    background: lighten($brand-color, 20%);
    border-radius: 5px;
  }
}

a {
  text-decoration: none !important;
}

.navbar-landing {
  padding: 1.5rem 1rem;
  background-color: transparent;
  transition: all 0.35s ease-in-out;

  .navbar-brand {
    .white-logo, .dark-logo {
      width: 200px;
      transition: all 0.35s ease-in-out;
    }

    .dark-logo {
      display: none;
    }
  }

  .nav {
    .nav-item {
      .nav-link {
        color: #fff;
        padding: 0.5rem 1.5rem;

        &.active {
          border-radius: 20px;
          background-color: $brand-color;
        }
      }
    }
  }

  &.navbar-fixed-landing {
    padding: 0.5rem 1rem;
    background-color: #fff;
    box-shadow: 4px 2px 11px 1px rgba(22, 28, 45, 0.1);

    .navbar-brand {
      .white-logo {
        display: none;
      }

      .dark-logo {
        display: block;
      }
    }

    .nav {
      .nav-item {
        .nav-link {
          color: $brand-color;

          &.active {
            color: #fff;
          }
        }
      }
    }
  }
}

header {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: $brand-color;
  background: -o-linear-gradient(top left, #81bbfe 0%, #024c9e 100%);
  background: -moz-linear-gradient(top left, #81bbfe 0%, #024c9e 100%);
  background: linear-gradient(to bottom right, #81bbfe 0%, #024c9e 100%);
  background: -webkit-linear-gradient(top left, #81bbfe 0%, #024c9e 100%);

  .container {
    z-index: 2;

    .header-content {
      .title {
        margin-bottom: 1rem;

        .text-highlighted {
          color: #003366;
          font-weight: 800;
          font-size: 2.5rem;
        }
      }

      .sub-title {
        font-weight: normal;
        color: darken(#024c9e, 10%);
      }

      .call-to-action {
        margin-bottom: 1rem;

        .btn-1, .btn-2 {
          cursor: pointer;
          font-size: 16px;
          font-weight: 500;
          border-radius: 30px;
          text-decoration: none;
          display: inline-block;
          padding: 0.5rem 2.4rem;
          border: 2px solid lighten($brand-color, 65%);
          transition: 0.3s ease-in-out;
        }

        .btn-1 {
          margin-right: 0.5rem;
          background-color: lighten($brand-color, 65%);
          color: darken(#024c9e, 20%);

          &:hover {
            background-color: lighten($brand-color, 65%);
          }
        }

        .btn-2 {
          color: lighten($brand-color, 65%);

          &:hover {
            border-color: darken(#024c9e, 20%);
            background-color: darken(#024c9e, 20%);
          }
        }
      }

      .technology {
        ul {
          margin: 0;
          padding: 0;
          display: flex;
          list-style: none;

          li {
            padding: 0 0.65rem;

            img {
              width: 35px;
            }

            &:first-child {
              padding-left: 0;
            }

            &:last-child {
              padding-right: 0;
            }
          }
        }
      }
    }

    .header-banner {
      position: relative;

      .banner-image-1, .banner-image-2, .banner-image-3 {
        img {
          border-radius: 10px;
          box-shadow: 1px 2px 10px 5px rgba(0, 0, 0, 0.5);
        }
      }

      .banner-image-1 {
        img {
          position: absolute;
          top: 40%;
          right: 15%;
        }
      }

      .banner-image-2 {

      }

      .banner-image-3 {
        position: absolute;
      }
    }
  }

  .bg-cubes {
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;

    li {
      position: absolute;
      bottom: -160px;
      list-style: none;
      display: block;
      width: 40px;
      height: 40px;
      border-radius: 15px;
      background-color: rgba(white, 0.05);
      transition-timing-function: linear;
      -webkit-transition-timing-function: linear;
      animation: animateSquare 25s infinite;
      -webkit-animation: animateSquare 25s infinite;

      &:nth-child(1) {
        left: 10%;
      }

      &:nth-child(2) {
        left: 20%;
        width: 80px;
        height: 80px;
        animation-delay: 1s;
        animation-duration: 17s;
      }

      &:nth-child(3) {
        left: 25%;
        animation-delay: 4s;
      }

      &:nth-child(4) {
        left: 40%;
        width: 60px;
        height: 60px;
        animation-duration: 22s;
        background-color: rgba(white, 0.15);
      }

      &:nth-child(5) {
        left: 70%;
      }

      &:nth-child(6) {
        left: 80%;
        width: 120px;
        height: 120px;
        animation-delay: 3s;
        background-color: rgba(white, 0.05);
      }

      &:nth-child(7) {
        left: 32%;
        width: 160px;
        height: 160px;
        animation-delay: 7s;
      }

      &:nth-child(8) {
        left: 55%;
        width: 20px;
        height: 20px;
        animation-delay: 15s;
        animation-duration: 40s;
      }

      &:nth-child(9) {
        left: 25%;
        width: 10px;
        height: 10px;
        animation-delay: 2s;
        animation-duration: 40s;
        background-color: rgba(white, 0.30);
      }

      &:nth-child(10) {
        left: 90%;
        width: 160px;
        height: 160px;
        animation-delay: 11s;
      }
    }
  }
}

.demo-section {
  padding: 7rem 0;

  .section-heading {
    text-align: center;
    color: $brand-color;
    margin-bottom: 3rem;

    .title {
      font-weight: 600;
    }
  }

  .section-content {
    .demo-item {
      color: #838383;
      padding: 1rem;
      text-align: center;
      margin-bottom: 30px;
      border-radius: 10px;
      transition: all 0.5s ease-in-out;
      box-shadow: 1px 2px 30px 5px rgba(0, 0, 0, 0.06);

      img {
        border-radius: 10px;
      }

      &:hover {
        color: #fff;
        background: $brand-color;
        transform: translateY(-8px);
        -webkit-transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(60, 72, 88, 0.15) !important;
        -webkit-box-shadow: 0 10px 25px rgba(60, 72, 88, 0.15) !important;
      }
    }
  }
}

@media (min-width: 1400px) {
  .container {
    //max-width: 1500px;
  }
}

@-webkit-keyframes animateSquare {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-700px) rotate(600deg);
  }
}

@keyframes animateSquare {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-700px) rotate(600deg);
  }
}
