* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Regular.ttf") format('truetype');
  font-weight: normal;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.71429;
  font-weight: 400;
  letter-spacing: 0;
  color: #151515;
  background-color: #ffffff;
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: subpixel-antialiased;
  margin: 0;
}

.row {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 576px) {
  .row {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .row {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .row {
    max-width: 960px;
  }
}

header {
  background: #000;
  a {
    color: #fff;
    text-decoration: none;
  }
  .row {
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
    a.logo {
      display: flex;
      align-items: center;
      height: 70px;
      img {
        display: block;
        height: 100%;
      }
    }
    nav {
      ul {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        li {
          a {
            display: block;
            padding: 15px;
          }
          a:hover {
            color: #00c0ff;
          }
        }
      }
    }
  }
}

.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #00c0ffdd, #000000dd), 30% -100px / auto auto url("../images/ocean-bg.jpeg");
  .row {
    padding: 40px 15px;
    color: #fff;
    text-align: center;
    z-index: 5;
    h1 {
      text-transform: uppercase;
      font-size: 48px;
      margin: 0;
      letter-spacing: 5px;
      line-height: 1.25;
      &.animated {
        animation: .75s ease-out 0s 1 slideInFromLeft; animation-fill-mode:forwards;
      }
    }
    h4 {
      font-size: 25px;
      text-shadow: 0px 0px 15px #00e5ff;
      opacity: 0;
      font-weight: 400;
      color: #0b3042;
      &.animated {
        animation: .75s ease-out .5s 1 slideInFromBottom; animation-fill-mode:forwards;
      }
    }
  }
  &::before {
    content: "";
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.5;
  }
}

#team {
  padding: 60px 0;
  .row {
    h2 {
      font-size: 36px;
      line-height: 1.2;
      letter-spacing: 2px;
      color: #151515;
      text-align: center;
    }
    .team {
      display: flex;
      justify-content: space-between;
      margin: 0 0 25px 0;
      flex-direction: column;
      align-items: center;
      flex-wrap: wrap;
      .ansatt {
        width: 100%;
        position: relative;
        margin: 0 0 15px 0;
        overflow: hidden;
        max-width: 250px;
        img {
          width: 100%;
          object-fit: cover;
          height: 100%;
          display: block;
          min-height: 250px;
          border: 3px solid #0b3042;
        }
        .overlay {
          width: 100%;
          position: absolute;
          left: -20px;
          bottom: 10px;
          background: rgb(11 48 66 / 40%);
          z-index: 2;
          left: 0;
          bottom: 12px;
          width: 80%;
          min-width: 300px;
          margin-left: -25px;
          padding: 15px 20px 15px 50px;
          transition: all .3s ease;
          z-index: 1;
          h3 {
            font-size: 20px;
            font-family: "Poppins", sans-serif;
            line-height: 1.3;
            margin: 0;
            color: #fff;
            font-weight: normal;
          }
          span {
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.6);
            letter-spacing: .025em;
          }
        }
      }
    }
  }
}

@media (min-width: 576px) {
  #team {
    .row {
      .team {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-around;
      }
    }
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

footer {
  background: #0b3042;
  .top {
    padding: 50px 0;
    .row {
      .logo-section {
        max-width: 300px;
        margin: 0 auto;
        a {
          img {
            display: block;
            margin: 0 auto;
            height: 75px;
          }
        }
        p {
          color: rgba(255, 255, 255, 0.6);
          margin: 0;
          text-align: center;
          font-size: 16px;
          line-height: 1.5;
          margin: 15px 0 0 0;
        }
      }
      .contacts {
        border-top: 1px solid #ffffff4d;
        margin: 30px 40px 0 40px;
        padding: 30px 0 0 0;
        ul {
          margin: 0;
          padding: 0;
          list-style: none;
          text-align: center;
          li {
            color: #fff;
            font-size: 16px;
            padding: 0 0 10px 0;
            line-height: 1.5;
            &:last-of-type {
              padding: 0;
            }
          }
        }
      }
    }
  }
  .bottom {
    background: #000;
    padding: 30px 0;
    .row {
      p {
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
      }
    }
  }
}

  @media (min-width: 576px) {
      footer {
          .top {
              .row {
                  display: flex;
                  justify-content: space-between;
                  align-items: flex-end;
                  .logo-section, .contacts {
                      width: calc(50% - 15px);
                  }
                  .logo-section {
                      margin: 0;
                      a {
                          img {
                              margin: 0;
                          }
                      }
                      p {
                          text-align: left;
                      }
                  }
                  .contacts {
                      margin: 0;
                      border: none;
                      padding: 0;
                      ul {
                          text-align: right;
                      }
                  }
              }
          }
          .bottom {
              .row {
                  p {
                      text-align: left;
                  }
              }
          }
      }
  }

  .method {
    padding: 60px 0;
    background: #0b3042;
    .row {
        max-width: 500px;
        h2 {
            font-size: 36px;
            line-height: 1.2;
            letter-spacing: 2px;
            color: #fff;
            text-align: center;
        }
        p {
            font-size: 16px;
            line-height: 1.75;
            text-align: center;
            color: #fff;
        }
        .presentation {
            color: #ffffff;
            background-color: #3c6a36;
            position: relative;
            overflow: hidden;
            display: block;
            min-width: 200px;
            padding: 19px 32px 17px;
            font-size: 14px;
            line-height: 1.34;
            font-weight: 500;
            letter-spacing: 0.075em;
            text-transform: uppercase;
            white-space: nowrap;
            text-overflow: ellipsis;
            text-align: center;
            cursor: pointer;
            vertical-align: middle;
            user-select: none;
            transition: 250ms all ease-in-out;
            text-decoration: none;
            margin: 30px auto 0 auto;
            width: 300px;
            &:hover {
                background: #eda407;
            }
        }
    }
}