* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  position: relative;
  padding-block: 2em;
  width: 100vw;
  min-height: 100vh;
  display: grid;
  gap: 1em;
  place-content: center;
  background: #002339;
  overflow-x: hidden;

  &::-webkit-scrollbar {
    width: 5px;
  }

  &::-webkit-scrollbar-track {
    background: #d1e5ff;
  }

  &::-webkit-scrollbar-thumb {
    background: #0076c0;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
  }

  & > h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 1em;
  }

  & #container {
    padding: 1em;
    width: 100vw;
    max-width: 1200px;
    height: max-content;
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    align-items: center;
    justify-content: space-evenly;

    & .card {
      border-radius: 2rem;
      width: 320px;
      height: 350px;
      overflow: hidden;
      position: relative;
      box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
      transition: 0.5s ease;

      &:hover {
        cursor: pointer;
        scale: 1.1;
        border-radius: 1rem;

        & .bottom {
          top: 50%;
        }

        & .top {
          background-color: #00000018;
        }
      }

      & .top {
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-blend-mode: multiply;
      }

      & .bottom {
        width: 100%;
        height: 50%;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1em;
        background-color: #ffffff5e;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        backdrop-filter: blur(5px);
        transition: top 0.5s ease;

        & .link-box {
          display: flex;
          gap: 1em;
          align-items: center;
          justify-content: center;

          & a {
            text-decoration: none;
            width: fit-content;
            box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px,
              rgba(0, 0, 0, 0.23) 0px 3px 6px;
            padding: 10px 3em;
            background-color: rgb(0, 162, 255);
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            scale: 1;
            transition: 0.3s ease;
            -webkit-transition: 0.3s ease;
            -moz-transition: 0.3s ease;
            -ms-transition: 0.3s ease;
            -o-transition: 0.3s ease;

            & button {
              border: none;
              outline: none;
              color: #fff;
              background-color: transparent;
              cursor: pointer;
            }

            &:hover {
              scale: 1.03;
              background-color: rgb(2, 146, 229);
            }
          }
        }
      }
    }
  }

  & #social-link-box {
    position: fixed;
    top: 1em;
    right: 1em;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    z-index: 10;

    @media (max-width: 768px) {
      top: 3.5em;
    }

    & .social-link {
      align-items: center;
      backdrop-filter: blur(3px);
      background-color: rgba(71, 71, 71, 0.5);
      border: 1px solid rgba(71, 71, 71, 0.5);
      border-radius: 6px;
      box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      display: inline-flex;
      gap: 10px;
      padding: 10px 20px;
      text-decoration: none;
      transition: background-color 400ms, border-color 400ms;
      z-index: 100;

      &:hover {
        background-color: rgba(187, 187, 187, 0.5);
        border: 1px solid rgba(187, 187, 187, 0.5);
      }

      & > img {
        height: 35px;
        width: 35px;

        &.linkedin-logo {
          border-radius: 5px;
        }
      }

      & > span {
        color: white;
        font-weight: 500;

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