:root {
  --font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: ui-monospace, Consolas, monospace;
}

body {
  background: url("assets/images/background.jpg") center / cover no-repeat fixed;
}

.profile-box {
  margin: 10% 0 0 5%;
  width: 200px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-1deg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  font-family: var(--font-family);

  & .avatar img {
    border-radius: 2px;
  }

  & .name {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
  }

  & .title {
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
  }

  & .position {
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: -0.8px;
  }

  & .employers {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;

    & .logo {
      flex: 0 0 calc((100% - 15px) / 2);

      & img {
        display: block;
        width: 100%;
      }
    }
  }

  & .actions {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    padding-top: 10px;
    display: flex;
    gap: 5px;

    & .action {
      display: flex;
      align-items: center;
      min-width: 0;
      flex-shrink: 1;

      & .mark {
        font-size: 18px;
        font-weight: 700;
        padding-right: 5px;
      }

      & .desc {
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: max-width 0.5s ease;
        font-size: 14px;
        letter-spacing: -0.8px;
        flex-shrink: 1;

        & a {
          color: inherit;
        }
      }
    }

    & .action:hover .desc {
      max-width: 150px;
    }
  }
}

@media (max-width: 768px) {
  /* Reveal actions upfront on mobile devices */
  .profile-box {
    & .actions {
      display: block;

      & .action .desc {
        max-width: 150px;
      }
    }
  }
}
